/* The approved homepage separates its sections with coloured rules. */
.proposal-home > section {
  position:relative;
  padding:84px 0 72px;
  border:0;
  background:#fff;
}
.proposal-home > section:nth-of-type(even) { background:var(--bg); }
.proposal-home > .home-news { --home-section-accent:var(--skola); }
.proposal-home > .home-life { --home-section-accent:var(--zaci); }
.proposal-home > .home-links { --home-section-accent:var(--galerie); }
.proposal-home > .partners { --home-section-accent:var(--poskole); }
.proposal-home > .contact-sec { --home-section-accent:var(--kontakty); }
.proposal-home > section::before {
  content:'';
  position:absolute;
  top:0;
  left:50%;
  width:min(1100px,92%);
  height:3px;
  border-radius:3px;
  background:linear-gradient(90deg,transparent,var(--home-section-accent) 30%,var(--home-section-accent) 70%,transparent);
  transform:translateX(-50%);
}
@media(prefers-reduced-motion:no-preference) {
  .proposal-home.has-heading-motion > section:not(.is-heading-visible):not(:has(.sec-head:focus-within)) {
    --heading-scale:0;
    --heading-opacity:0;
    --heading-shift:28px;
  }
  .proposal-home.has-heading-motion > section::before {
    transform:translateX(-50%) scaleX(var(--heading-scale,1));
  }
  .proposal-home.has-heading-motion > .is-heading-visible::before { transition:transform 1.1s cubic-bezier(.2,.8,.2,1); }
  .proposal-home.has-heading-motion .sec-head h2::after {
    transform:scaleX(var(--heading-scale,1));
  }
  .proposal-home.has-heading-motion .is-heading-visible .sec-head h2::after { transition:transform .7s cubic-bezier(.2,.8,.2,1) .25s; }
  .proposal-home.has-heading-motion .sec-head > * {
    opacity:var(--heading-opacity,1);
    transform:translateY(var(--heading-shift,0px));
  }
  .proposal-home.has-heading-motion .is-heading-visible .sec-head > * {
    transition:opacity .7s cubic-bezier(.2,.8,.2,1),transform .7s cubic-bezier(.2,.8,.2,1);
  }
}

.home-life .tile--no-photo { background: #2f443e; }

/* Live content and accessible controls in the supplied homepage composition. */
.tile-caption h3 {
  position:static
}
.hero .container {
  align-items:stretch
}
.hero .left {
  min-width:0
}
.hero-photos,.hero-photo {
  position:absolute;
  inset:0;
  width:100%;
  height:100%
}
.hero-photo {
  object-fit:cover;
  opacity:0;
  transition:opacity .8s
}
.hero-photo.is-active {
  opacity:1
}
.hero-shade {
  z-index:1;
  background:linear-gradient(90deg,rgba(25,38,23,.9),rgba(25,38,23,.55) 55%,rgba(25,38,23,.1))
}
.caption {
  max-width:560px
}
.caption h1 {
  color:#fff;
  font-size:48px;
  line-height:1.12;
  margin:14px 0 12px;
  text-shadow:0 3px 18px #0005
}
.caption p {
  font-size:16px
}
.hero-action {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:13px 22px;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
}
.hero .hero-action--primary {
  background:var(--info);
  color:#2b2410;
  box-shadow:0 8px 22px -6px rgba(232,199,102,.7);
}
.hero-action--ghost {
  border:2px solid rgba(255,255,255,.85);
  background:rgba(255,255,255,.14);
  color:#fff;
  backdrop-filter:blur(6px);
}
.hero-action--ghost:is(:hover,:focus-visible) { background:#fff; color:var(--text); }
.hero-action:focus-visible { outline-color:#fff; }
@media(prefers-reduced-motion:no-preference) {
  .hero-action { transition:transform .2s,background-color .2s,color .2s; }
  .hero-action--primary:is(:hover,:focus-visible) { transform:translateY(-2px); }
}
.hero-slider-controls {
  position:absolute;
  z-index:3;
  top:18px;
  right:18px;
  display:flex;
  align-items:center;
  gap:10px
}
.hero-dots {
  display:flex;
  gap:4px;
  align-items:center
}
.hero-dot {
  display:grid;
  place-items:center;
  width:30px;
  height:34px;
  padding:0;
  border:0;
  background:none
}
.hero-dot::before {
  content:'';
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ffffffa0;
  transition:width .2s
}
.hero-dot.is-active::before {
  width:24px;
  background:var(--info)
}
.hero-pause {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid #ffffff70;
  background:#0004;
  color:#fff;
  border-radius:50%;
  padding:8px
}
.hero-pause svg {
  width:16px;
  height:16px;
  fill:currentColor
}
.hero-pause .hero-play-icon {
  display:none
}
.hero-pause[aria-pressed=true] .hero-play-icon {
  display:block
}
.hero-pause[aria-pressed=true] .hero-pause-icon {
  display:none
}
/* Upcoming dates follow the supplied homepage card; current events sit below the hero. */
.events {
  min-height:0;
  height:auto;
  overflow:visible
}
.event-feature {
  margin-top:12px;
  padding:14px 16px;
  border-radius:16px;
  background:color-mix(in srgb,var(--skola) 8%,white)
}
.event-feature-row {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap
}
.event-card h2 {
  font-family:var(--f-head);
  font-weight:700;
  font-size:23px;
  line-height:1.2;
  margin:0
}
.event-card h2 a {
  text-decoration:none
}
.event-date {
  font-size:14px;
  color:var(--school-red-text);
  font-weight:700;
  margin:0
}
.event-countdown {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin:10px 0 0
}
.event-countdown>div {
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:3px;
  min-width:0;
  padding:4px 6px;
  border-radius:8px;
  background:#fff
}
.event-countdown strong {
  color:#36444c;
  font-size:16px;
  font-variant-numeric:tabular-nums;
  line-height:1.2
}
.event-countdown [data-count-label] {
  font-size:12px;
  color:var(--muted)
}
.event-countdown strong.is-digit { position:relative; display:inline-grid; place-items:center; min-width:2ch; height:1.2em; overflow:hidden; vertical-align:baseline; }
.countdown-number-current { display:block; grid-area:1/1; }
.countdown-number-previous { position:absolute; inset:0; display:grid; place-items:center; opacity:0; pointer-events:none; }
.event-countdown [data-count-label="days"] { min-width:3.2ch; }
.event-countdown [data-count-label="hours"] { min-width:5.5ch; }
.event-countdown [data-count-label="minutes"] { min-width:6.2ch; }
.event-countdown [data-count-label="seconds"] { min-width:7.2ch; }
.event-countdown[hidden] { display:none; }
@media(min-width:1101px) {
  .hero .left .hero-card { flex:1 0 400px; }
}
.event-list {
  display:flex;
  flex-direction:column;
  flex:1;
  list-style:none;
  margin:10px 0 12px;
  padding:0
}
.event-list li {
  --event-accent:var(--galerie);
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  padding:8px 4px;
  border-bottom:1px solid var(--line);
  line-height:1.35
}
.event-list li:last-child { border-bottom:0; }
.event-list li:nth-child(5n+2) { --event-accent:var(--kontakty); }
.event-list li:nth-child(5n+3) { --event-accent:var(--skola); }
.event-list li:nth-child(5n+4) { --event-accent:var(--zaci); }
.event-list li:nth-child(5n) { --event-accent:var(--poskole); }
.event-list li > div { min-width:0; }
.event-list time {
  flex:0 0 46px;
  padding:5px 0;
  border-radius:10px;
  background:color-mix(in srgb,var(--event-accent) 15%,white);
  color:color-mix(in srgb,var(--event-accent) 70%,#222);
  font-weight:700;
  text-align:center;
  line-height:1
}
.event-list time b { display:block; font-size:18px; }
.event-list time span { font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.event-list small { display:block; margin-top:1px; color:var(--muted); font-size:13px; }
.event-list a {
  font-weight:600;
  text-decoration:none;
  font-size:16.5px
}
.event-plan {
  margin-top:auto;
  align-self:flex-end;
  font-weight:700;
  text-decoration:none;
  font-size:15px;
  border-bottom:2px solid var(--skola);
  padding-top:4px
}
/* Homepage news follows the supplied compact card, with its arrow on the visual. */
.home-news .card {
  --c:var(--news-accent,var(--kontakty));
  grid-template-columns:minmax(0,1fr) 104px;
  gap:22px;
  min-height:158px;
  padding:22px 24px 22px 28px;
}
.home-news .card > div { min-width:0; }
.school-site .home-news .card h3 {
  font-family:var(--f-head)!important;
  font-size:23px;
  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-news .card h3 a,.home-news .card .tag {
  text-decoration:none
}
.home-news .card .meta { gap:6px 8px; margin-bottom:8px; }
.home-news .card .tag { padding:4px 10px; font-size:12px; line-height:1.2; }
.home-news .card .card-visual { position:relative; width:104px; height:104px; }
.home-news .card .go {
  bottom:-12px;
  right:0;
  color:var(--text);
}
.home-news .card:hover .go { color:#fff; }
.home-news .card .news-article-icon {
  width:46px;
  height:46px;
  max-height:none;
}
.tile::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(transparent 25%,#142016d9)
}
.tile-caption {
  position:absolute;
  left:20px;
  right:40px;
  bottom:18px
}
.tile-caption h3 {
  color:#fff;
  margin:0;
  font-size:22px
}
.tile-arrow {
  position:absolute;
  right:18px;
  bottom:24px;
  width:19px;
  height:19px
}
.tile:hover img {
  transform:scale(1.05)
}
.links>a>.i {
  position:absolute;
  top:22px;
  right:22px;
  color:var(--c)
}
.partner-list {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px
}
.partner {
  --c:var(--poskole);
  display:flex;
  flex:1 1 190px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-width:0;
  max-width:240px;
  min-height:152px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 20px -16px rgba(0,0,0,.3);
  text-align:center;
  text-decoration:none;
}
.partner .lg {
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(140px,100%);
  height:64px;
}
.partner .lg img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
/* The Ekoškola artwork has transparent padding around the mark. */
.partner .lg .partner-logo--ekoskola { height:92px; max-height:none; }
.partner span { font-size:16px; font-weight:700; line-height:1.15; }
.partner:focus-visible { outline:3px solid var(--school-turquoise-text); outline-offset:4px; }
.quick b {
  font-size:16px
}
@media(max-width:1100px) {
  .hero .container {
    grid-template-columns:1fr
  }
  .event-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:20px
  }
}
@media(max-width:720px) {
  .proposal-home > section { padding:48px 0; }
  .caption h1 {
    font-size:36px
  }
  .caption {
    left:22px;
    right:22px
  }
  .carousel {
    height:440px
  }
  .badge {
    font-size:10px;
    padding:6px 9px
  }
  .hero-action {
    font-size:14px;
    padding:11px 16px
  }
  .event-list {
    display:block
  }
  .hero .container {
    gap:20px
  }
  .partner {
    flex:0 0 calc(50% - 7px);
  }
}
@media(max-width:480px) {
  .event-countdown > div { flex-direction:column; align-items:center; gap:1px; padding:4px 3px; }
  .event-countdown [data-count-label] { min-width:0; font-size:11px; }
  .caption h1 {
    font-size:32px
  }
  .quick a {
    padding:12px 10px;
    gap:8px
  }
  .quick .ico {
    width:34px;
    height:34px
  }
  .quick b {
    font-size:15px
  }
  .caption p {
    font-size:15px
  }
  .home-news .card { grid-template-columns:minmax(0,1fr) 72px; gap:14px; min-height:0; padding:18px 18px 24px 22px; }
  .school-site .home-news .card h3 { font-size:20px; line-height:1.25; }
  .home-news .card .card-visual { width:72px; height:72px; }
  .home-news .card .news-article-icon { width:36px; height:36px; }
  .home-news .card .go { width:30px; height:30px; bottom:-10px; }
  .tile {
    aspect-ratio:3/2
  }
}
