:root { --model-width: min(1120px, calc(100% - 48px)); }

.graphic-model, .model-reader-link { display: none; }
.graphic-layout .model-text > :not(.hero), .graphic-layout .site-footer { display: none; }
.graphic-layout .graphic-model, .graphic-layout .model-reader-link { display: block; }
.graphic-layout body, .graphic-layout .site-header { background: #faf6ef; }
/* 363 source pixels of photo height in the 971 px social-services artboard. */
.graphic-layout main {
  container-type: inline-size;
  background: none;
}
.graphic-layout .hero {
  --hero-frame-height: calc(min(1120px, 100cqw - 48px) * 363 / 971);
  width: var(--model-width);
  padding: clamp(23px, 2.5vw, 31px) clamp(23px, 3.5vw, 48px) 0;
}
.graphic-layout .page-pestounske-rodiny { --hero-title: 3.5rem; }
.graphic-layout .hero-copy { padding: 0; }
.graphic-layout .hero h1 { font-size: clamp(2rem, 4.1vw, min(3.875rem, var(--hero-title, 4.125rem))); }
.graphic-layout .hero-copy .lead { font-size: clamp(1.08rem, 1.45vw, 1.25rem); margin-top: 13px; }
.graphic-layout .hero-copy .eyebrow { margin-bottom: 14px; }
.graphic-layout .hero-copy .eyebrow::after { margin-top: 9px; }
.graphic-layout .hero-copy h1:first-child::before { margin-bottom: 15px; }
.graphic-layout .hero-copy .actions { margin-top: 15px; gap: 10px 16px; }
.graphic-layout .hero-copy .button { min-height: 45px; padding-inline: 16px; font-size: 1.075rem; }
.graphic-layout .hero-copy .text-link { font-size: 1.04rem; }
.graphic-layout .hero-art > :is(.photo, .club-illustration) {
  height: var(--hero-frame-height);
  max-height: none;
  aspect-ratio: auto;
}

.graphic-layout .navrow {
  width: var(--model-width);
  min-height: 103px;
  padding-inline: clamp(21px, 3vw, 35px);
  gap: clamp(13px, 1.6vw, 23px);
}
.graphic-layout .site-header .brand-mark img { width: 85px; }
.graphic-layout .site-header .brand-copy strong { font-size: 1.86rem; }
.graphic-layout .site-header .brand-copy small { font-size: .92rem; }
.graphic-layout .main-nav { gap: clamp(12px, 1.9vw, 26px); }
.graphic-layout .main-nav > a,
.graphic-layout .nav-group summary { font-size: 1.05rem; }
.graphic-layout .header-support { min-height: 45px; padding-inline: 14px; font-size: 1.04rem; }
.graphic-layout .header-support .icon { padding: 0; background: none; color: currentColor; }

.model-canvas {
  position: relative;
  width: var(--model-width);
  aspect-ratio: var(--art-shape);
  margin-inline: auto;
  overflow: hidden;
}
.model-art {
  position: absolute;
  inset: var(--art-top) auto auto 0;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.model-paper {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to right, transparent, black 1%, black 99%, transparent),
    linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  mask-composite: intersect;
}
.model-link, .model-anchor { position: absolute; }
.model-anchor { left: 0; width: 1px; height: 1px; }
.model-link { border-radius: 6px; }
.model-link:focus-visible {
  outline: 3px solid #0c5141;
  outline-offset: -3px;
  box-shadow: 0 0 0 2px #fffdfa;
}
.model-reader-link { left: auto; right: 12px; }
