/* Approved hero and card-title round. Other heading levels and controls retain their tokens. */
html:root{--type-card-title:clamp(17.6px,1.6vw,22.4px)}
body .dvornik-subpage-hero{padding:12px 0 0}
body .dvornik-hero-frame{height:280px;position:relative;isolation:isolate;display:flex;align-items:flex-end;overflow:hidden;border-radius:24px;background:var(--color-hero-base)}
body .dvornik-hero-picture{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:-2}
body .dvornik-hero-picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:65% 58%}
body .dvornik-subpage-hero[data-dvornik-hero="S04"] .dvornik-hero-picture img{object-position:50% 24%}
body .dvornik-hero-frame::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--color-hero-overlay)}
body .dvornik-hero-title{width:100%;padding:36px 40px}
body .dvornik-hero-title h1{font-size:var(--type-page-title);line-height:1.12;color:#fff;margin:0;max-width:25ch;text-shadow:0 1px 8px #0003}
body .dvornik-subpage-hero~.compact-hero{padding-top:24px;padding-bottom:20px}
body .dvornik-subpage-hero~.company-about{padding-top:28px}
body .dvornik-subpage-hero~.company-about .company-intro:has(>.company-heading):not(:has(>.company-heading>*)){grid-template-columns:minmax(0,1fr)}
body .dvornik-subpage-hero~.company-about .company-heading:not(:has(*)){display:none}
body .dvornik-subpage-hero~.company-about .company-intro>.company-body{width:100%;max-width:76ch;margin-inline:auto}
body .dvornik-home-books .hero-grid{min-height:540px;border-bottom-right-radius:0;overflow:visible}
/* Shared white separation for the two approved home photo insets. */
body .dvornik-home-books,body .offer-image-composition{--home-inset-gap:17.5px;--home-inset-photo-size:clamp(110px,calc(18vw - 40px),200px);--home-inset-size:calc(var(--home-inset-photo-size) + 2 * var(--home-inset-gap))}
/* The photograph is flush with the hero corner; the concentric white ring extends into the existing page gutter. The white notch masks the original corner. */
body .dvornik-home-books .hero-inset{display:block;position:absolute;right:calc(-1 * var(--home-inset-gap));bottom:calc(-1 * var(--home-inset-gap));width:var(--home-inset-size);max-width:none;aspect-ratio:1;padding:var(--home-inset-gap);border-radius:50% 50% 0 50%;background:var(--color-white);z-index:2;}
body .dvornik-home-books .hero-inset::before,body .dvornik-home-books .hero-inset::after{display:none;}
body .dvornik-home-books .hero-inset-image{margin:0;}
body .dvornik-home-books .hero-inset-image img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%;transform:none;}
@media(max-width:600px){body .dvornik-home-books,body .offer-image-composition{--home-inset-gap:8px;--home-inset-photo-size:104px}}
body .dvornik-home-books .hero-image{margin:0;border-radius:inherit;overflow:hidden}
body .dvornik-home-books .hero-grid::after{border-radius:inherit}
body .dvornik-home-books .hero-image>.dvornik-hero-picture{position:static;z-index:auto}
body .dvornik-home-books .hero-image img{object-position:58% 55%;transform:none!important}
@media(max-width:768px){
 body .dvornik-home-books .hero-image{border-top-left-radius:0;border-top-right-radius:0}
 body .dvornik-hero-frame{height:220px;border-radius:22px}
 body .dvornik-hero-title{padding:28px}
 body .dvornik-subpage-hero~.compact-hero{padding-top:20px;padding-bottom:16px}
}
@media(max-width:600px){
 body .dvornik-hero-frame{height:210px}
 body .dvornik-hero-title{padding:24px}
 body .dvornik-hero-title h1{max-width:19ch}
 body .dvornik-subpage-hero[data-dvornik-hero="P06"] h1{font-size:clamp(28px,8vw,34px);line-height:1.1}
 body .dvornik-hero-picture img{object-position:60% 58%}
 body .dvornik-home-books .hero-grid{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;gap:0;background:var(--color-hero-base)}
 body .dvornik-home-books .hero-grid::after{display:none}
 body .dvornik-home-books .hero-copy{position:relative;grid-area:auto;max-width:none;padding:28px 24px;z-index:1}
 body .dvornik-home-books .hero-image{position:relative!important;inset:auto!important;grid-area:auto!important;width:100%;height:245px;z-index:0}
 body .dvornik-home-books .hero-image img{height:245px;aspect-ratio:auto;object-fit:cover;object-position:60% 60%}
 body .dvornik-home-books .hero-image>.dvornik-hero-picture{display:block;height:245px}
 /* Blend the stacked copy surface into the photo without moving or recropping it.
    The inset is a separate higher layer and keeps its approved white separation. */
 body .dvornik-home-books .hero-image::after{content:"";position:absolute;inset:0 0 auto;height:clamp(110px,34vw,160px);z-index:1;pointer-events:none;background:linear-gradient(180deg,var(--color-hero-base) 0%,color-mix(in srgb,var(--color-hero-base) 78%,transparent) 28%,color-mix(in srgb,var(--color-hero-base) 28%,transparent) 65%,transparent 100%)}
}

/* Size each complete headline phrase from the actual copy column, not the viewport. */
/* Size containment needs a definite inline basis in the desktop flex layout.
   Existing responsive max-width and padding still determine the approved copy column. */
body .dvornik-home-books .hero-copy{width:100%;container-type:inline-size}
body .dvornik-home-books .hero-copy h1{width:100%;max-width:none;font-size:clamp(23px,7vw,64px);font-size:clamp(23px,10.5cqi,64px);line-height:1.09}
.home-headline-line{display:block;white-space:nowrap}

/* Show the feeder and paper in the separate mobile technology image. */
@media(max-width:600px){body .dvornik-subpage-hero[data-dvornik-hero="S04"] .dvornik-hero-picture img{object-position:50% 76%}}
