/* Dječji vrtić Dekanovec – child template logich_vrtic: "Sunčani crtež" (a sunny children's drawing).
   Crayon colours, hand-written headings (Grandstander, Patrick Hand), big elements, drawings from sites/vrtic/art.py.
   All decoration is inside html:not([data-lc-contrast="high"]): high contrast stays plain black and white.
   The rules of the former site layer (menu, enrolment steps, contact, document categories) are at the end. */

@font-face { font-family: "Grandstander"; src: url("../fonts/grandstander.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("../fonts/patrickhand.woff2") format("woff2"); font-weight: 400; font-display: swap; }

html[data-lc-palette] {
  --k-sun: #FFD43B; --k-yellow: #FFC94A; --k-orange: #FF8C42; --k-red: #F25F5C; --k-pink: #FF7EB6;
  --k-purple: #9B5DE5; --k-blue: #3A86FF; --k-sky: #BDE6FB; --k-green: #40A852; --k-grass: #2F7D4A;
  --k-ink: #3B2F2F; --k-paper: #FFFBF0;
  --lc-primary: #B8420C;        /* links on paper (contrast ≥ 4.5) */
  --lc-secondary: #2B7A3A;
  --lc-accent: #B8420C;
  --lc-page: var(--k-paper);
  --lc-ink: var(--k-ink);
  --lc-body: #463A3A;
  --lc-muted: #6A5B5B;
  --lc-footer: var(--k-grass);
  --lc-font-heading: "Grandstander", "Baloo 2", system-ui, sans-serif;
  --lc-font-display: "Grandstander", "Baloo 2", system-ui, sans-serif;
  --k-hand: "Patrick Hand", "Nunito", system-ui, sans-serif;
  --lc-radius: 22px; --lc-radius-card: 26px; --lc-radius-photo: 12px;
  --lc-logo-height: 86px;
  --k-line: 3px solid var(--k-ink);
  --k-shadow: 5px 5px 0 var(--k-ink);
}

@keyframes k-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes k-drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@keyframes k-hop { 0%, 100% { transform: translateY(0) rotate(-4deg); } 40% { transform: translateY(-18px) rotate(3deg); } 60% { transform: translateY(-14px) rotate(2deg); } }
@keyframes k-float { 0%, 100% { transform: translate(0, 0) rotate(-5deg); } 50% { transform: translate(-10px, -14px) rotate(3deg); } }
@keyframes k-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

html:not([data-lc-contrast="high"]) {

  body {
    font-size: 1.125rem;
    background: var(--k-paper) url("../images/doodles.svg") repeat;
    background-size: 340px;
  }
  :is(h1, h2, h3, .lc-eyebrow, .item-title, .page-header h1, .page-header h2) { font-family: var(--lc-font-heading); letter-spacing: 0; }
  h1, .page-header h1, .page-header h2 { font-weight: 800; }

  /* --- top bar and header: a crayon rainbow under the header --- */
  .lc-topbar { background: #3F3577; }
  .lc-header { background: #FFFFFF; border-bottom: 0; box-shadow: none; }
  .lc-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; pointer-events: none;
    background: linear-gradient(90deg, var(--k-red) 0 16.66%, var(--k-orange) 0 33.33%, var(--k-sun) 0 50%,
                                       var(--k-green) 0 66.66%, var(--k-blue) 0 83.33%, var(--k-purple) 0);
    -webkit-mask: radial-gradient(6px 5px at 50% 0, #000 98%, transparent) 0 0 / 12px 10px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 5px no-repeat;
            mask: radial-gradient(6px 5px at 50% 0, #000 98%, transparent) 0 0 / 12px 10px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 5px no-repeat;
  }
  .lc-logo__img { height: calc(var(--lc-logo-height) * .9); max-width: 260px; transition: transform 300ms ease; }
  .lc-logo:hover .lc-logo__img { animation: k-wiggle 600ms ease; }
  .lc-logo__name { font-family: var(--lc-font-heading); font-weight: 800; font-size: 1.45rem; letter-spacing: 0; text-transform: none; color: var(--k-ink); }

  /* main menu: big crayon pills, each item its own colour */
  .lc-nav__menu > .lc-nav__item:nth-child(6n+1) { --k-c: var(--k-red); }
  .lc-nav__menu > .lc-nav__item:nth-child(6n+2) { --k-c: var(--k-orange); }
  .lc-nav__menu > .lc-nav__item:nth-child(6n+3) { --k-c: var(--k-green); }
  .lc-nav__menu > .lc-nav__item:nth-child(6n+4) { --k-c: var(--k-blue); }
  .lc-nav__menu > .lc-nav__item:nth-child(6n+5) { --k-c: var(--k-purple); }
  .lc-nav__menu > .lc-nav__item:nth-child(6n+6) { --k-c: var(--k-pink); }
  .lc-nav__menu > .lc-nav__item > .lc-nav__link {
    font-family: var(--lc-font-heading); font-weight: 700; font-size: 1.2rem; color: var(--k-ink);
    border-radius: 999px; padding-inline: 16px; box-shadow: none;
    transition: background 150ms ease, transform 150ms ease;
  }
  .lc-nav__menu > .lc-nav__item > .lc-nav__link:hover,
  .lc-nav__menu > .lc-nav__item > .lc-nav__link[aria-expanded="true"] {
    background: color-mix(in oklab, var(--k-c) 22%, #FFF); color: var(--k-ink); transform: rotate(-2deg);
  }
  .lc-nav__menu > .lc-nav__item.is-active > .lc-nav__link {
    background: color-mix(in oklab, var(--k-c) 30%, #FFF); color: var(--k-ink);
    box-shadow: inset 0 0 0 3px var(--k-c); border-radius: 999px;
  }
  .lc-mega { border-top: 0; }
  .lc-mega__inner { border: var(--k-line); border-radius: var(--lc-radius-card); box-shadow: var(--k-shadow); background: #FFF; }
  .lc-mega__title { font-family: var(--lc-font-heading); font-size: 1.6rem; }
  .lc-mega__list a { font-size: 1.125rem; }

  /* buttons: stickers with a thick outline */
  .lc-btn {
    font-family: var(--lc-font-heading); font-weight: 700; font-size: 1.15rem; min-height: 52px; padding-inline: 26px;
    border: var(--k-line); border-radius: 999px; box-shadow: 4px 4px 0 var(--k-ink);
    background: var(--k-yellow); color: var(--k-ink);
    transition: transform 150ms ease, box-shadow 150ms ease;
  }
  .lc-btn:hover, .lc-btn:focus-visible { background: var(--k-sun); color: var(--k-ink); transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--k-ink); }
  .lc-btn--outline { background: #FFFFFF; }
  .lc-btn--outline:hover { background: #FFF3BF; }
  .lc-header__actions .lc-btn { background: var(--k-red); color: #FFF; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
  .lc-header__actions .lc-btn:hover { background: #E8433F; color: #FFF; }

  /* --- hero: sky, a big smiling sun, drifting clouds (the three "bubbles"), hills with flowers --- */
  .lc-hero {
    background: linear-gradient(180deg, #A9DDF8 0%, #D2EEFC 55%, #EEF9FF 100%);
    padding-block: clamp(48px, 7vw, 88px) clamp(170px, 18vw, 230px); overflow: hidden;
  }
  .lc-hero::before {
    content: ""; position: absolute; z-index: 0; top: clamp(10px, 3vw, 34px); right: clamp(4px, 6vw, 110px);
    width: clamp(110px, 19vw, 250px); aspect-ratio: 1; pointer-events: none;
    background: url("../images/sun.svg") center / contain no-repeat;
    animation: k-bob 6s ease-in-out infinite;
  }
  .lc-hero::after {
    content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: -2px; height: clamp(150px, 16vw, 220px); pointer-events: none;
    background: url("../images/hills.svg") center bottom / cover no-repeat;
  }
  .lc-hero__edge { display: none; }
  .lc-hero__bubbles i {
    border-radius: 0; opacity: 1; background: url("../images/cloud.svg") center / contain no-repeat;
    width: clamp(110px, 14vw, 200px); height: auto; aspect-ratio: 23 / 14;
    animation: k-drift 9s ease-in-out infinite alternate;
  }
  .lc-hero__bubbles i:nth-child(1) { top: 9%; left: 3%; }
  .lc-hero__bubbles i:nth-child(2) { top: 44%; left: 13%; width: clamp(80px, 9vw, 130px); animation-duration: 12s; }
  .lc-hero__bubbles i:nth-child(3) { top: 36%; right: 5%; left: auto; width: clamp(90px, 11vw, 160px); animation-duration: 10s; animation-direction: alternate-reverse; }
  /* the bird and the flute of the logo, floating */
  .lc-hero__bubbles::before, .lc-hero__bubbles::after { content: ""; position: absolute; pointer-events: none; background: center / contain no-repeat; }
  .lc-hero__bubbles::before {
    left: clamp(10px, 7vw, 120px); bottom: clamp(118px, 13vw, 180px); width: clamp(84px, 9vw, 136px); aspect-ratio: 17 / 16;
    background-image: url("../images/bird.svg"); animation: k-hop 3.4s ease-in-out infinite;
  }
  .lc-hero__bubbles::after {
    right: clamp(10px, 6vw, 110px); bottom: clamp(130px, 14vw, 200px); width: clamp(150px, 18vw, 270px); aspect-ratio: 35 / 15;
    background-image: url("../images/flute.svg"); animation: k-float 5.5s ease-in-out infinite;
  }
  .lc-hero__grid { z-index: 1; }
  .lc-hero .mod-custom > h1:first-child {
    font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.04; font-weight: 800; color: var(--k-ink); max-width: 15ch;
    text-shadow: 3px 3px 0 #FFF, -2px -2px 0 #FFF, 2px -2px 0 #FFF, -2px 2px 0 #FFF;
  }
  .lc-hero .mod-custom > h1 .k-c1 { color: #E0392F; }
  .lc-hero .mod-custom > h1 .k-c2 { color: #1C6FD1; }
  .lc-hero .mod-custom > h1 .k-c3 { color: #2E8B3E; }
  .lc-hero .mod-custom > p:not(:has(.lc-btn)) { font-family: var(--k-hand); font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--k-ink); max-width: 34ch; }
  .lc-hero .mod-custom p:has(> .lc-btn) { gap: 16px; margin-top: 28px; }
  .lc-hero .lc-btn { min-height: 60px; font-size: 1.3rem; padding-inline: 30px; }

  /* --- section headings: big, hand-written, a crayon scribble underneath and a little star --- */
  .lc-section-head { align-items: flex-end; margin-bottom: 26px; }
  .lc-eyebrow {
    position: relative; display: inline-block; margin: 0; padding-left: 46px;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--k-ink);
  }
  .lc-eyebrow::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 36px; height: 36px; translate: 0 -55%;
    background: url("../images/star.svg") center / contain no-repeat; animation: k-wiggle 3s ease-in-out infinite;
  }
  .lc-eyebrow::after {
    content: ""; position: absolute; left: 46px; right: -6px; bottom: -12px; height: 14px; background: var(--k-c, var(--k-orange));
    -webkit-mask: url("../images/scribble.svg") center / 100% 100% no-repeat; mask: url("../images/scribble.svg") center / 100% 100% no-repeat;
  }
  .vrtic-news { --k-c: var(--k-red); }
  .lc-home-cards { --k-c: var(--k-green); }
  .lc-more { font-family: var(--k-hand); font-size: 1.3rem; color: var(--lc-primary); }

  /* --- news cards: polaroids stuck on with tape --- */
  .lc-news-cards { gap: 34px 28px; }
  .lc-news-card { position: relative; }
  .lc-news-card:nth-child(3n+1) { --k-tape: rgba(255, 212, 59, .8); --k-tilt: -1.6deg; }
  .lc-news-card:nth-child(3n+2) { --k-tape: rgba(255, 126, 182, .7); --k-tilt: 1.2deg; }
  .lc-news-card:nth-child(3n+3) { --k-tape: rgba(77, 171, 247, .7); --k-tilt: -.8deg; }
  .lc-news-card::before {
    content: ""; position: absolute; z-index: 2; top: -13px; left: 50%; width: 104px; height: 28px; translate: -50% 0; rotate: -3deg;
    background: var(--k-tape); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    clip-path: polygon(0 10%, 5% 0, 10% 12%, 15% 0, 20% 10%, 80% 10%, 85% 0, 90% 12%, 95% 0, 100% 10%, 100% 90%, 95% 100%, 90% 88%, 85% 100%, 80% 90%, 20% 90%, 15% 100%, 10% 88%, 5% 100%, 0 90%);
  }
  .lc-news-card a {
    padding: 12px 12px 18px; border-radius: 6px; background: #FFF; transform: rotate(var(--k-tilt));
    box-shadow: 0 2px 3px rgba(59, 47, 47, .12), 0 14px 26px -16px rgba(59, 47, 47, .5);
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  .lc-news-card a:hover { transform: rotate(0) translateY(-4px) scale(1.02); box-shadow: 0 4px 6px rgba(59, 47, 47, .14), 0 24px 34px -18px rgba(59, 47, 47, .55); }
  .lc-news-card__img { border-radius: 3px; }
  .lc-news-card__body { padding: 14px 6px 4px; }
  .lc-news-card__title { font-family: var(--lc-font-heading); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
  .lc-news-card .lc-meta { font-family: var(--k-hand); font-size: 1.15rem; color: var(--lc-muted); }

  /* --- tiles (quick links, document categories): big crayon blobs with a thick outline --- */
  .lc-color-gold { --k-bg: #FFE9A6; --k-c: #F59F00; }
  .lc-color-red { --k-bg: #FFD3D1; --k-c: #E0392F; }
  .lc-color-blue { --k-bg: #CFE5FF; --k-c: #1C6FD1; }
  .lc-color-teal, .lc-color-green { --k-bg: #CDEFD5; --k-c: #2E8B3E; }
  .lc-color-purple { --k-bg: #E7DAFF; --k-c: #7B4FD1; }
  .lc-tiles { gap: 22px; }
  .lc-tile:nth-child(4n+1) .lc-tile__link { border-radius: 30px 38px 28px 40px / 36px 28px 40px 30px; }
  .lc-tile:nth-child(4n+2) .lc-tile__link { border-radius: 38px 28px 40px 30px / 28px 40px 30px 36px; }
  .lc-tile:nth-child(4n+3) .lc-tile__link { border-radius: 28px 40px 32px 36px / 40px 30px 36px 28px; }
  .lc-tile:nth-child(4n+4) .lc-tile__link { border-radius: 40px 30px 36px 28px / 30px 36px 28px 40px; }
  .lc-tile__link {
    background: var(--k-bg, #FFF3BF); border: var(--k-line); box-shadow: var(--k-shadow); color: var(--k-ink);
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  .lc-tile__link:hover, .lc-tile__link:focus-visible { border-color: var(--k-ink); transform: translate(-2px, -3px) rotate(-1.2deg); box-shadow: 8px 8px 0 var(--k-ink); }
  .lc-tile__icon { background: #FFF; color: var(--k-c); border: var(--k-line); border-radius: 50%; }
  .lc-tile__title { font-family: var(--lc-font-heading); font-weight: 800; color: var(--k-ink); }
  .lc-tile__link:hover .lc-tile__title { color: var(--k-ink); }
  .lc-tile__desc { color: #4F4242; font-size: 1rem; }
  /* quick links on the home page: tall, icon on top */
  .vrtic-quick .lc-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
  .vrtic-quick .lc-tile__link {
    grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; row-gap: 8px; padding: 26px 18px 24px; min-height: 210px;
  }
  .vrtic-quick .lc-tile__icon { grid-row: auto; width: 78px; height: 78px; }
  .vrtic-quick .lc-tile__icon svg { width: 40px; height: 40px; }
  .vrtic-quick .lc-tile__title { font-size: 1.65rem; }
  /* the current document category: pressed in, a little to the right */
  .lc-tile__link[aria-current="page"] {
    background: color-mix(in oklab, var(--k-bg) 55%, var(--k-c)); box-shadow: 2px 2px 0 var(--k-ink); transform: translate(3px, 3px);
  }
  .lc-layout__aside .lc-tile__title { font-size: 1.3rem; }

  /* --- "about" photo and section bands --- */
  .lc-section--tint { background: color-mix(in oklab, var(--k-sun) 14%, transparent); }
  .lc-split img {
    background: #FFF; padding: 12px 12px 40px; border-radius: 6px; rotate: -2deg;
    box-shadow: 0 2px 3px rgba(59, 47, 47, .12), 0 18px 30px -18px rgba(59, 47, 47, .55);
  }
  .lc-split h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
  .lc-split p { font-size: 1.2rem; }

  /* --- info cards on the home page: sticky notes with a pin --- */
  .lc-info-grid { gap: 30px; }
  .lc-info {
    position: relative; border: 0; border-radius: 4px 4px 22px 4px; padding-top: 30px;
    background: var(--k-bg, #FFF3B0); box-shadow: 0 2px 3px rgba(59, 47, 47, .12), 0 16px 26px -16px rgba(59, 47, 47, .5);
  }
  .lc-info:nth-child(3n+1) { rotate: -1.5deg; }
  .lc-info:nth-child(3n+2) { rotate: 1deg; }
  .lc-info:nth-child(3n+3) { rotate: -.6deg; }
  .lc-info::before {
    content: ""; position: absolute; top: 10px; left: 50%; width: 20px; height: 20px; translate: -50% 0; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFF 0 18%, var(--k-c, var(--k-red)) 22%); box-shadow: 1px 3px 3px rgba(0, 0, 0, .3);
  }
  .lc-info__icon { background: #FFF; color: var(--k-c); border: var(--k-line); }
  .lc-info__title { font-size: 1.5rem; font-weight: 800; }
  .lc-info__content { font-size: 1.125rem; }

  /* --- footer: a meadow with flowers along the top --- */
  .lc-footer { background: var(--k-grass); margin-top: 110px; }
  .lc-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: -88px; height: 90px; pointer-events: none;
    background: url("../images/meadow.svg") left bottom / auto 100% repeat-x;   /* never scaled: the tallest flowers stay whole on wide screens */
  }
  .lc-footer__title { font-family: var(--lc-font-heading); font-size: 1.35rem; color: #FFE066; }
  .lc-footer__logo span { font-family: var(--lc-font-heading); font-size: 1.4rem; }
  .lc-footer__logo img { background: #FFF; border-radius: 50%; padding: 6px; height: 64px; }
  .lc-footer__slogan { font-family: var(--k-hand); font-size: 1.35rem; }
  .lc-footer__map iframe { border: 4px solid #FFF; border-radius: 22px; }

  /* --- inner pages: a sheet of drawing paper --- */
  .lc-breadcrumbs { font-family: var(--k-hand); font-size: 1.2rem; }
  .lc-component {
    background: #FFF; border: var(--k-line); border-radius: 30px 26px 34px 24px / 24px 34px 26px 30px;
    box-shadow: 7px 7px 0 var(--k-yellow), 7px 7px 0 3px var(--k-ink);
  }
  .lc-component :is(.page-header, .com-content-article, .com-content-category-blog) > h1, .lc-component .page-header h1 {
    position: relative; display: inline-block; font-size: clamp(2.2rem, 4.4vw, 3.1rem); margin-bottom: .8em;
  }
  .lc-component .item-page .page-header h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
  .lc-component .blog-item .page-header h2 { font-size: 1.4rem; }
  .lc-component :is(.page-header, .com-content-article, .com-content-category-blog) > h1::after,
  .lc-component .page-header h1::after {
    content: ""; position: absolute; left: 0; right: -8px; bottom: -14px; height: 14px; background: var(--k-orange);
    -webkit-mask: url("../images/scribble.svg") center / 100% 100% no-repeat; mask: url("../images/scribble.svg") center / 100% 100% no-repeat;
  }
  .lc-component :is(h2, h3) { color: var(--k-ink); }
  .lc-component p, .lc-component li { font-size: 1.15rem; line-height: 1.65; }

  /* documents (LogiCh Media): big rows with a thick outline, coloured type badge */
  .lc-media__title { font-size: 1.7rem; font-weight: 800; }
  .lc-media__list { gap: 14px; }
  .lc-media__file-link {
    grid-template-columns: 58px minmax(0, 1fr) 34px; padding: 14px 18px;
    border: var(--k-line); border-radius: 20px; background: #FFF; box-shadow: 4px 4px 0 var(--k-ink);
    transition: transform 150ms ease, box-shadow 150ms ease;
  }
  .lc-media__file-link:hover { border-color: var(--k-ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--k-ink); background: #FFFBEA; }
  .lc-media__file-link:hover .lc-media__file-title { color: var(--k-ink); }
  .lc-media__file-title { font-family: var(--lc-font-heading); font-weight: 700; font-size: 1.25rem; }
  .lc-media__file-meta { font-size: 1rem; }
  .lc-media__ext { height: 48px; border-radius: 14px 10px 14px 10px; border: 2px solid var(--k-ink); font-size: .8rem; }
  .lc-media__download { width: 32px; height: 32px; background: var(--k-ink); }
  /* gallery: small polaroids (a white border; the blurred background stays inside it) */
  .lc-media__grid { gap: 18px; }
  .lc-media__link { border: 7px solid #FFF; border-radius: 5px; box-shadow: 0 2px 3px rgba(59, 47, 47, .14), 0 10px 18px -12px rgba(59, 47, 47, .5); }
  .lc-media__cell:nth-child(odd) .lc-media__link { rotate: -1.2deg; }
  .lc-media__cell:nth-child(even) .lc-media__link { rotate: 1deg; }
  .lc-media__link:hover { rotate: 0deg; }
  .lc-media__button { font-family: var(--lc-font-heading); font-size: 1.15rem; border: var(--k-line); border-radius: 999px; box-shadow: 4px 4px 0 var(--k-ink); background: var(--k-yellow); color: var(--k-ink); }

  /* news list page (Novosti): polaroids as on the home page */
  .com-content-category-blog .blog-item {
    border: 0; border-radius: 6px; padding: 12px 12px 4px; box-shadow: 0 2px 3px rgba(59, 47, 47, .12), 0 14px 26px -16px rgba(59, 47, 47, .5);
    transition: transform 200ms ease;
  }
  .com-content-category-blog .blog-item:nth-child(3n+1) { rotate: -1.2deg; }
  .com-content-category-blog .blog-item:nth-child(3n+2) { rotate: .9deg; }
  .com-content-category-blog .blog-item:nth-child(3n+3) { rotate: -.5deg; }
  .com-content-category-blog .blog-item:hover { rotate: 0deg; transform: translateY(-3px); }
  .com-content-category-blog .blog-item .item-image img { border-radius: 3px; }
  .com-content-category-blog .blog-item .item-content { padding: 14px 6px 14px; }
  .com-content-category-blog .blog-item .item-content h2 { font-size: 1.4rem; }
  .lc-component:has(.com-content-category-blog) { background: transparent; border: 0; box-shadow: none; padding-inline: 0; }

  /* weekly menu: one sticky note per day */
  .vrtic-menu__day { border: 0; border-radius: 4px 4px 20px 4px; box-shadow: 0 2px 3px rgba(59, 47, 47, .12), 0 14px 22px -14px rgba(59, 47, 47, .5); }
  .vrtic-menu__day:nth-child(5n+1) { background: #FFF3B0; rotate: -1deg; }
  .vrtic-menu__day:nth-child(5n+2) { background: #FFD6E0; rotate: .8deg; }
  .vrtic-menu__day:nth-child(5n+3) { background: #D3F9D8; rotate: -.6deg; }
  .vrtic-menu__day:nth-child(5n+4) { background: #D0EBFF; rotate: 1deg; }
  .vrtic-menu__day:nth-child(5n+5) { background: #E5DBFF; rotate: -.8deg; }
  .vrtic-menu__day h2 { flex-wrap: wrap; column-gap: 8px; row-gap: 0; color: var(--k-ink); font-size: 1.4rem; }
  .vrtic-menu__day dt { color: #2B7A3A; }
  .vrtic-menu__day.vrtic-menu__day--closed { background: #EFEBE4; }   /* grey note: closed */
  .vrtic-menu__day--closed .vrtic-menu__closed strong { color: var(--k-ink); font-size: 1.25rem; }

  /* cards on pages (enrolment steps, contact): coloured, with a thick outline */
  :is(.vrtic-steps, .vrtic-contact) > .lc-card {
    border: var(--k-line); box-shadow: var(--k-shadow); background: var(--k-bg);
    border-radius: 30px 38px 28px 40px / 36px 28px 40px 30px;
  }
  :is(.vrtic-steps, .vrtic-contact) > .lc-card:nth-child(3n+1) { --k-bg: #FFE9A6; }
  :is(.vrtic-steps, .vrtic-contact) > .lc-card:nth-child(3n+2) { --k-bg: #FFD3D1; }
  :is(.vrtic-steps, .vrtic-contact) > .lc-card:nth-child(3n+3) { --k-bg: #CDEFD5; }
  :is(.vrtic-steps, .vrtic-contact) h3 { font-size: 1.5rem; color: var(--k-ink); }

  /* motto of the home page (head teacher, 4. 11.): one sentence, "Sunčeka" yellow with a crayon outline, "Ftičeki" green */
  .lc-hero .mod-custom > h1.k-motto:first-child { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.12; max-width: 17ch; margin-block: 24px 40px; }
  .lc-hero .mod-custom > h1 .k-sun { color: #FFC21A; -webkit-text-stroke: 2px var(--k-ink); paint-order: stroke fill; }
  .lc-hero .mod-custom > h1 .k-bird { color: #2E8B3E; }

  /* phone */
  @media (max-width: 767px) {
    body { font-size: 1.0625rem; }
    .lc-hero::before { top: 8px; right: 6px; width: 92px; }
    .lc-hero__bubbles i:nth-child(2), .lc-hero__bubbles i:nth-child(3) { display: none; }
    .lc-hero .mod-custom > h1:first-child { padding-top: 56px; }
    .lc-hero { padding-bottom: 120px; }
    .lc-hero::after { height: 110px; }
    .lc-hero__bubbles::before { left: 6px; bottom: 70px; width: 62px; }
    .lc-hero__bubbles::after { right: 4px; bottom: 74px; width: 112px; }
    .lc-section-head { flex-wrap: wrap; gap: 10px; }
    .lc-eyebrow { font-size: 1.85rem; }
    .lc-logo__name { font-size: 1.15rem; }
    .vrtic-quick .lc-tile__link { min-height: 150px; padding: 18px 10px; }
    .vrtic-quick .lc-tile__icon { width: 62px; height: 62px; }
    .vrtic-quick .lc-tile__title { font-size: 1.3rem; }
    .lc-component { box-shadow: 5px 5px 0 var(--k-yellow), 5px 5px 0 3px var(--k-ink); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-hero::before, .lc-hero__bubbles i, .lc-hero__bubbles::before, .lc-hero__bubbles::after, .lc-eyebrow::before { animation: none !important; }
}

/* ======================================================================================================== */
/* former site layer (sites/vrtic/user.css until 3. 11. 2026.)                                              */
/* ======================================================================================================== */

/* hero: centred welcome with buttons */
.lc-hero { text-align: center; }
.lc-hero .mod-custom > :is(h1, h2):first-child { margin-inline: auto; max-width: 20ch; }
.lc-hero .mod-custom p { margin-inline: auto; }
.lc-hero .mod-custom p:has(> .lc-btn) { justify-content: center; }

/* first paragraph of a page */
.vrtic-lead { font-size: 1.25rem; line-height: 1.5; color: var(--lc-ink); }

/* news: blog items as cards in the column grid (Novosti) */
.com-content-category-blog .blog-items[class*="columns-"] { gap: 24px; }
.com-content-category-blog .blog-item {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-card); box-shadow: var(--lc-shadow-card);
}
.com-content-category-blog .blog-item .item-image { float: none; margin: 0; }
.com-content-category-blog .blog-item .item-image img { display: block; width: 100%; aspect-ratio: 4 / 3; }
.com-content-category-blog .blog-item .item-content { padding: 16px 18px 18px; }
.com-content-category-blog .blog-item .item-content h2 { font-size: 1.2rem; margin: 0 0 8px; }
.com-content-category-blog .blog-item .item-content h2 a { text-decoration: none; }
.com-content-category-blog .blog-item .article-info { font-size: .875rem; margin-bottom: 0; }
.lc-component .com-content-category-blog .blog-item + .blog-item { border-top: 1px solid var(--lc-border); margin-top: 0; padding-top: 0; }

/* steps and contact cards on pages */
.vrtic-steps h3, .vrtic-contact h3 { color: var(--lc-primary); }

/* photos next to text: whole photo (request of 3. 11.: no cropping) */
.lc-split img { height: auto; }

/* news cards: only the first paragraph, three lines (articles have no "read more" break, so Joomla prints all text) */
.com-content-category-blog .blog-item .item-content > :is(p, ul, ol, div, table, figure, h3, h4, blockquote):not(:first-of-type) { display: none; }
.com-content-category-blog .blog-item .item-content > p:first-of-type {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; font-size: 1rem; color: var(--lc-muted);
}
.com-content-category-blog .blog-item .item-content > p:first-of-type img { display: none; }

/* phone: quick links as a grid of two columns, title only */
@media (max-width: 767px) {
  html:not(#k) .vrtic-quick .lc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html:not(#k) .vrtic-quick .lc-tile__link { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 14px 10px; row-gap: 6px; min-height: 0; }
  .vrtic-quick .lc-tile__icon { grid-row: auto; }
  .vrtic-quick .lc-tile__desc { display: none; }
}

/* weekly menu (tools/jelovnik.py): one card per day, meals as label + dish */
.vrtic-menu { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 1.25em; }
.vrtic-menu__day { padding: 18px 18px 16px; }
.vrtic-menu__day h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 1.25rem; color: var(--lc-primary); }
.vrtic-menu__day h2 span { font-family: var(--lc-font-body); font-size: .9375rem; font-weight: 600; color: var(--lc-muted); }
.vrtic-menu__day dl { margin: 0; }
.vrtic-menu__day dt { margin-top: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lc-secondary); }
.vrtic-menu__day dt:first-child { margin-top: 0; }
.vrtic-menu__day dd { margin: 2px 0 0; line-height: 1.4; }
.vrtic-menu__note { margin-top: 1.25em; font-size: .9375rem; color: var(--lc-muted); }
.vrtic-menu__closed { margin: 0; line-height: 1.4; }   /* non-working day: "Vrtić ne radi" + holiday */
.vrtic-menu__closed strong { display: block; font-size: 1.0625rem; }
.vrtic-menu__closed span { display: block; margin-top: 6px; font-size: .9375rem; color: var(--lc-muted); }
@media (min-width: 1100px) {   /* the whole week in one row */
  .vrtic-menu { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .vrtic-menu__day { padding: 16px 14px 14px; }
  .vrtic-menu__day h2 { font-size: 1.125rem; }
}

/* contact cards: wide enough for the e-mail addresses on one line (three in a row on desktop) */
.vrtic-contact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vrtic-contact a[href^="mailto:"] { white-space: nowrap; }
@media (max-width: 420px) { .vrtic-contact a[href^="mailto:"] { font-size: .875rem; } }   /* phone: slightly smaller, still on one line */

/* document categories (tiles on Dokumenti and its categories): the current category */
.lc-tile__link[aria-current="page"] { border-color: var(--lc-tone); box-shadow: inset 0 0 0 1px var(--lc-tone); }
/* categories in the left column (sidebar-left); on phone and tablet above the content (the template puts it below) */
@media (max-width: 1023px) {
  .lc-layout__aside--left:has(.lc-tiles) { order: 0; }
}

/* quick links right below the hero (head teacher, 4. 11.): six tiles – one row on desktop, three on tablet
   (html:not(#k) = stronger than the rules in the html:not([data-lc-contrast]) block, in high contrast too) */
@media (min-width: 1100px) {
  html:not(#k) .vrtic-quick .lc-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  html:not(#k) .vrtic-quick .lc-tile__link { padding: 22px 12px 20px; min-height: 200px; }
  html:not(#k) .vrtic-quick .lc-tile__title { font-size: 1.45rem; }
  .vrtic-quick .lc-tile__desc { font-size: .9375rem; line-height: 1.35; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  html:not(#k) .vrtic-quick .lc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lc-color-teal { --k-bg: #CFF1EF; --k-c: #12807A; }

/* accessibility tools at the bottom of the page (child index.php moves them out of the top bar) */
.lc-footer__bottom { flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lc-footer__a11y { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lc-footer__a11y-label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lc-footer__a11y :is(.lc-textsize button, .lc-contrast-toggle) {
  height: 36px; min-width: 40px; border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 10px; font-size: 14px;
}
.lc-footer__a11y :is(.lc-textsize button, .lc-contrast-toggle):hover { background: rgb(255 255 255 / .18); }
.lc-footer__a11y :is(.lc-textsize button[aria-pressed="true"]:not([data-lc-text="normal"]), .lc-contrast-toggle[aria-pressed="true"]) { background: #FFF; color: #1F1A17; }
.lc-footer__a11y .lc-contrast-toggle__long { display: inline; }
.lc-footer__a11y .lc-contrast-toggle__short { display: none; }

/* drop-down menu (Robert, 4. 11.): the children of a main item as a simple list right below it – no full-width panel,
   no intro with the item's description (the drawer below 1180 px already shows only the list) */
@media (min-width: 1180px) {
  .lc-nav__item--mega { position: relative; }
  html:not(#k) .lc-mega {
    left: 0; right: auto; width: max-content; min-width: 230px; max-width: 360px;
    padding-top: 10px; border: 0; background: transparent; box-shadow: none;
  }
  html:not(#k) .lc-mega__inner { display: block; width: auto; max-width: none; margin: 0; padding: 10px; }
  html:not(#k) .lc-mega__intro { display: none; }
  html:not(#k) .lc-mega__col + .lc-mega__col { margin-top: 4px; }
  html:not(#k) .lc-mega__list { gap: 2px; }
  html:not(#k) .lc-mega__list a, html:not(#k) .lc-mega__list span { display: block; padding: 9px 14px; border-radius: 14px; text-decoration: none; }
  html:not(#k) .lc-mega__list a:hover, html:not(#k) .lc-mega__list a:focus-visible, html:not(#k) .lc-mega__list a.is-current {
    background: #FFF3BF; color: var(--lc-ink);
  }
  [data-lc-contrast="high"] .lc-mega__inner { background: #FFF; border: 2px solid #000; border-radius: 0; }
  [data-lc-contrast="high"] .lc-mega__list a:hover, [data-lc-contrast="high"] .lc-mega__list a.is-current { background: #FFF; text-decoration: underline; }
}

/* Niža traka naslovnice (~20 %; 4. 11., prihvaćeno 7. 11.) */
html:not([data-lc-contrast="high"]):not(#k) .lc-hero { padding-block: clamp(32px, 4vw, 48px) clamp(140px, 14.5vw, 185px); }
html:not([data-lc-contrast="high"]):not(#k) .lc-hero::after { height: clamp(125px, 13vw, 180px); }
html:not([data-lc-contrast="high"]):not(#k) .lc-hero::before { top: clamp(8px, 1.6vw, 18px); width: clamp(100px, 16vw, 210px); }
html:not([data-lc-contrast="high"]):not(#k) .lc-hero__bubbles::before { bottom: clamp(96px, 10.5vw, 145px); }
html:not([data-lc-contrast="high"]):not(#k) .lc-hero__bubbles::after { bottom: clamp(104px, 11.5vw, 160px); }
html:not([data-lc-contrast="high"]):not(#k) .lc-hero .mod-custom > h1.k-motto:first-child { margin-block: 8px 16px; }
@media (max-width: 767px) {
  html:not([data-lc-contrast="high"]):not(#k) .lc-hero { padding-bottom: 100px; }
  html:not([data-lc-contrast="high"]):not(#k) .lc-hero::after { height: 92px; }
  html:not([data-lc-contrast="high"]):not(#k) .lc-hero .mod-custom > h1.k-motto:first-child { padding-top: 40px; }
  html:not([data-lc-contrast="high"]):not(#k) .lc-hero::before { top: 6px; width: 80px; }
  html:not([data-lc-contrast="high"]):not(#k) .lc-hero__bubbles::before { bottom: 56px; }
  html:not([data-lc-contrast="high"]):not(#k) .lc-hero__bubbles::after { bottom: 60px; }
}

/* Sunce, ptičica i frula iznad oblaka i brežuljaka (7. 11.); moto trake ostaje iznad svega */
html:not([data-lc-contrast="high"]):not(#k) .lc-hero::before,
html:not([data-lc-contrast="high"]):not(#k) .lc-hero__bubbles::before,
html:not([data-lc-contrast="high"]):not(#k) .lc-hero__bubbles::after { z-index: 2; }
html:not([data-lc-contrast="high"]):not(#k) .lc-hero__grid { z-index: 3; }

/* --- header: wider page so the whole main menu (with Naslovnica) fits on one line (9. 11. 2026.) --- */
:root { --lc-container: 1440px; }
@media (min-width: 1180px) {
  .lc-nav__link { white-space: nowrap; }
  .lc-logo__name { white-space: nowrap; }
}
/* narrow desktop (1180-1339 px): a bit smaller pills so menu and logo still fit side by side */
@media (min-width: 1180px) and (max-width: 1339px) {
  .lc-header__inner { gap: 20px; }
  html:not([data-lc-contrast="high"]) .lc-nav__menu > .lc-nav__item > .lc-nav__link { font-size: 1.05rem; padding-inline: 11px; }
  html:not([data-lc-contrast="high"]) .lc-logo__name { font-size: 1.25rem; }
  html:not([data-lc-contrast="high"]) .lc-logo__img { height: calc(var(--lc-logo-height) * .75); }
}
