/* Cheerful Pastel Preschool — visual layer only; V25 layout and behavior retained. */
:root {
  --kazka-gold: #ffb938;
  --kazka-amber: #925100;
  --kazka-orange: #945006;
  --kazka-ink: #382c26;
  --kazka-muted: #67564a;
  --kazka-vanilla: #fff1d4;
  --kazka-peach: #fff4e3;
  --kazka-mint: #eef4ed;
  --kazka-edge: #eddcc8;
  --kazka-shadow: 0 6px 24px -8px rgb(125 81 32 / 13%);
}
body { background-color: #fffcf6; color: var(--kazka-ink); }
.text-on-surface { color: var(--kazka-ink); }
.text-on-surface-variant { color: var(--kazka-muted); }
.text-secondary { color: var(--kazka-orange); }
.text-primary { color: var(--kazka-amber); }
.text-tertiary { color: #176d61; }
.bg-surface, .bg-background { background-color: #fffcf6; }
.bg-surface-container { background-color: var(--kazka-vanilla); }
.bg-surface-container-low { background-color: #fff5e7; }
.bg-surface-container-high { background-color: #ffe9c7; }
.bg-primary-container { background-color: var(--kazka-gold); }
.bg-secondary { background-color: var(--kazka-orange); }
.bg-secondary-container { background-color: #a44312; }
.bg-tertiary-container { background-color: #bce8d9; }
.bg-secondary.text-on-secondary, .bg-secondary-container.text-on-secondary { color: #fff; }
.text-on-primary-container { color: #603600; }
.custom-shadow-soft { box-shadow: var(--kazka-shadow); }
.custom-shadow-float { box-shadow: 0 16px 44px -12px rgb(125 81 32 / 19%); }
header.sticky {
  background: rgb(255 252 246 / 95%);
  border-bottom-color: #f2dfbc;
  box-shadow: 0 4px 24px -12px rgb(125 81 32 / 16%);
}
#mobileMenu { background: #fffcf6; }
h1, h2, h3 { text-wrap: pretty; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
h1 .underline { color: #945006; text-decoration-color: #ffcf72; text-decoration-thickness: .12em; }
section h2 { text-decoration: none; }
/* Painted shapes stay behind content, without adding overlays or page width. */
#beranda {
  background-color: #fffaf0;
  background-image:
    radial-gradient(circle at 94% 12%, #ffe2a4 0 48px, transparent 49px),
    radial-gradient(circle at 4% 93%, #fff0cf 0 70px, transparent 71px),
    linear-gradient(120deg, #fffdf8 35%, #fff3da);
}
#tentang-kami { background: #fff6e7; }
#program-kelas { background: #fffdf8; }
#kegiatan { background: #fff6e7; }
#galeri { background: #fffdf8; }
main > section:not([id]) { background: #fff6e7; }
#cabang { background: #fffdf8; }
#kontak {
  background-color: #fff6e7;
  background-image:
    radial-gradient(circle at 3% 12%, #ffedc6 0 40px, transparent 41px),
    radial-gradient(circle at 97% 90%, #ffe2a4 0 56px, transparent 57px);
}
footer { background: #fff0d3 !important; border-top-color: #edddbf !important; }
/* Existing card positions, dimensions and photo frames remain intact. */
:is(#program-kelas, #kegiatan, #cabang) .custom-shadow-soft {
  border-color: var(--kazka-edge);
  box-shadow: var(--kazka-shadow);
  transition: box-shadow .22s ease, border-color .22s ease;
}
#program-kelas .grid > .custom-shadow-soft { background-color: #ffffff; border-color: #eedfc5; }
#program-kelas .custom-shadow-soft { border-radius: 2.5rem 2.5rem 2rem 2rem; }
#kegiatan .grid > .custom-shadow-soft, #cabang article { background-color: #ffffff; }
#cabang article { border-radius: 2.25rem; }
#cabang article h3 { text-align: center; }
.kazka-photo-slot { background: linear-gradient(145deg, #fff4df, #ffebc6); }
.kazka-photo-empty { color: #806040; }
#program-kelas .grid > :nth-child(3n) .kazka-photo-slot { background: linear-gradient(145deg, #fff4df, #ffebc6); }
#galeri .gallery-item { border-radius: 1.5rem; }
#galeri .gallery-item:focus-visible { outline: 3px solid var(--kazka-amber); outline-offset: 3px; }
:is(a, button).rounded-full, #kontak a {
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.bg-secondary, button.bg-secondary {
  background: var(--kazka-gold);
  color: #50300b !important;
  box-shadow: 0 2px 0 #e6a02b, 0 6px 14px -7px rgb(146 81 0 / 20%);
}
.filter-btn { box-shadow: inset 0 0 0 1px rgb(146 81 0 / 9%); }
.filter-btn[aria-pressed="true"] { background: var(--kazka-gold); color: #50300b; box-shadow: 0 3px 0 #e6a02b; }
#kontak a { border-radius: 1.5rem; border-color: #eedfc5; box-shadow: var(--kazka-shadow); }
#kontak a svg { color: var(--kazka-orange); }
:is(a, button, input):focus-visible { outline: 3px solid #925100; outline-offset: 4px; }
@media (hover: hover) {
  :is(#program-kelas, #kegiatan, #cabang) .custom-shadow-soft:hover {
    border-color: #e6bd76;
    box-shadow: 0 12px 30px -10px rgb(125 81 32 / 21%);
  }
  :is(a, button).bg-secondary:hover { background-color: #ffc857; color: #50300b; transform: translateY(-2px); }
  a.bg-surface-container:hover { background-color: #ffdf9e; color: #603600; }
  .filter-btn:not([aria-pressed="true"]):hover { background-color: #ffe8b6; color: #603600; }
  #kontak a:hover { background-color: #fff8e9; box-shadow: 0 10px 24px -10px rgb(125 81 32 / 22%); }
}
@media (max-width: 767px) {
  #beranda { background-image: radial-gradient(circle at 98% 2%, #ffe2a4 0 25px, transparent 26px), linear-gradient(145deg, #fffdf8, #fff3da); }
  #kontak { background-image: radial-gradient(circle at 100% 100%, #ffe2a4 0 30px, transparent 31px); }
  #galeri .gallery-item { border-radius: 1rem; }
}
/* Reduce stacked whitespace while retaining every section and grid. */
main > section.py-20 {
  padding-top: 2.75rem !important;
  padding-bottom: 2.75rem !important;
}
main > section > div > .mb-16,
main > section > div > .mb-12,
main > section > div > .mb-10 {
  margin-bottom: 2rem;
}
#beranda { padding-bottom: 3rem; }
@media (min-width: 768px) {
  main > section.py-20 {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
  }
  main > section > div > .mb-16,
  main > section > div > .mb-12,
  main > section > div > .mb-10 {
    margin-bottom: 2.75rem;
  }
  #beranda { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
/* Keep the existing mobile navigation until the full navbar has enough room. */
@media (min-width: 768px) and (max-width: 1199px) {
  header > div:first-child > nav,
  header > div:first-child > .hidden { display: none; }
  #mobileMenuBtn { display: inline-flex; }
  #mobileMenu:not(.hidden) { display: block; }
}
@media (max-width: 1199px) {
  #mobileMenu {
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #mobileMenu > div { gap: .5rem; }
  #mobileMenu a { min-height: 44px; }
}
@media (max-width: 767px) {
  header > div:first-child { height: 4.25rem; padding-inline: 1.25rem; }
  #mobileMenu { max-height: calc(100vh - 4.25rem); max-height: calc(100dvh - 4.25rem); padding: 1rem 1.25rem; }
  #mobileMenuBtn { min-width: 44px; min-height: 44px; justify-content: center; }
  main > section > div[class*="max-w-"], footer > div { padding-inline: 1.25rem; }
  main .grid > *, main .flex > * { min-width: 0; }
  section h1 { font-size: clamp(1.875rem, 7.8vw, 2.25rem); line-height: 1.3; letter-spacing: -.025em; }
  section h2 { font-size: clamp(1.5rem, 6.3vw, 1.75rem); line-height: 1.35; letter-spacing: -.02em; }
  section h3 { line-height: 1.4; }
  section p { overflow-wrap: break-word; }
  #beranda .grid { gap: 2rem; }
  #beranda .grid-cols-3 { gap: .625rem; }
  #beranda .grid-cols-3 p:first-child { font-size: 1.5rem; line-height: 1.3; }
  #beranda .grid-cols-3 p:last-child { font-size: .75rem; line-height: 1.5; margin-top: .25rem; }
  #beranda [data-photo-slot="photo-1"] { height: clamp(17rem, 80vw, 23rem); border-radius: 1.5rem; }
  #beranda .custom-shadow-float { padding: .5rem; border-radius: 2rem; }
  #beranda .custom-shadow-soft.absolute { padding: .5rem .75rem; gap: .5rem; max-width: calc(100% - 2rem); }
  #beranda .custom-shadow-soft.top-6 { top: 1rem; left: 1rem; }
  #beranda .custom-shadow-soft.bottom-6 { bottom: 1rem; right: 1rem; }
  #beranda .animate-bounce { animation: none; }
  :is(#tentang-kami, #kegiatan) .p-8,
  main > section:not([id]) .p-8 { padding: 1.25rem; }
  #program-kelas .p-6, #cabang .p-6 { padding: 1.25rem; }
  #program-kelas .p-6.pt-0 { padding-top: 0; }
  #program-kelas .custom-shadow-soft,
  #kegiatan .custom-shadow-soft, #cabang article { border-radius: 1.75rem; }
  #program-kelas a, #kegiatan a, #cabang a { min-height: 44px; }
  #cabang a { line-height: 1.5; }
  #galleryFilters { scroll-padding-inline: .25rem; padding-top: .25rem; }
  #galleryFilters .filter-btn { flex-shrink: 0; min-height: 44px; padding-inline: 1rem; }
  #galleryFrame { padding: .5rem; border-radius: 1.5rem; }
  #galleryGrid .kazka-photo-empty { padding: .375rem; gap: .125rem; }
  #galleryGrid .kazka-photo-empty .material-symbols-outlined { font-size: 1.25rem; }
  #galleryGrid .kazka-photo-empty strong { font-size: .6875rem; }
  #galleryGrid .kazka-photo-empty small { font-size: .625rem; }
  #kontak a { min-height: 48px; padding: .875rem 1.25rem; }
  footer [class~="md:col-span-8"] > img { width: 4.5rem; height: auto; flex-shrink: 0; }
  footer [class~="md:col-span-8"] > p { font-size: .8125rem; line-height: 1.55; }
  footer a[aria-label] { min-width: 44px; min-height: 44px; }
}
/* Desktop-inspired portrait composition, requested for phones. */
@media (max-width: 767px) {
  main > section > div[class*="max-w-"] { padding-inline: 1rem; }
  main > section.py-20 { padding-block: 2rem !important; }
  main > section > div > :is(.mb-16, .mb-12, .mb-10) { margin-bottom: 1.5rem; }
  section h2 { font-size: clamp(1.25rem, 5vw, 1.625rem); }
  #beranda > div.relative > .grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: .875rem;
    align-items: center;
  }
  #beranda h1 { font-size: clamp(1.125rem, 4.8vw, 1.875rem); line-height: 1.35; }
  #beranda h1 .underline { text-underline-offset: .2em; }
  #beranda .space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: .875rem; }
  #beranda p.text-body-md { font-size: .75rem; line-height: 1.65; }
  #beranda .inline-flex.rounded-full { padding: .5rem .625rem; gap: .25rem; }
  #beranda .inline-flex.rounded-full .text-label-sm { font-size: .5625rem; letter-spacing: .02em; }
  #beranda a.rounded-full { font-size: .6875rem; line-height: 1.4; min-height: 44px; width: 100%; }
  #beranda a .material-symbols-outlined { font-size: 1rem; margin-left: .25rem; flex-shrink: 0; }
  #beranda .grid-cols-3 { gap: .375rem; padding-top: .75rem; }
  #beranda .grid-cols-3 p:first-child { font-size: 1rem; }
  #beranda .grid-cols-3 p:last-child { font-size: .625rem; }
  #beranda [data-photo-slot="photo-1"] { height: clamp(12rem, 50vw, 20rem); border-radius: 1rem; }
  #beranda .custom-shadow-float { border-radius: 1.25rem; padding: .375rem; }
  #beranda .absolute.-inset-4 { inset: -.375rem; border-radius: 1.5rem; }
  #beranda .custom-shadow-soft.absolute {
    position: static;
    margin-top: .375rem;
    padding: .375rem;
    gap: .25rem;
    max-width: 100%;
    border-radius: .75rem;
  }
  #beranda .custom-shadow-soft > .w-8 { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
  #beranda .custom-shadow-soft .text-label-sm { font-size: .5625rem; }
  #beranda .custom-shadow-soft p + p { font-size: .5rem; }
  :is(#program-kelas, #kegiatan, #cabang) > div > .grid,
  main > section:not([id]) > div > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  :is(#program-kelas, #kegiatan) > div > .grid > * { grid-column: auto; }
  :is(#program-kelas, #kegiatan) > div > .grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  :is(#program-kelas, #kegiatan, #cabang) .custom-shadow-soft,
  main > section:not([id]) .custom-shadow-soft { border-radius: 1.25rem; }
  :is(#program-kelas, #kegiatan, #cabang) :is(.p-6, .p-8),
  main > section:not([id]) .p-8 { padding: .875rem; }
  #program-kelas .p-6.pt-0 { padding-top: 0; }
  :is(#program-kelas, #kegiatan, #cabang) h3,
  main > section:not([id]) h3 { font-size: .9375rem; line-height: 1.4; }
  :is(#program-kelas, #kegiatan, #cabang) p,
  main > section:not([id]) .custom-shadow-soft p { font-size: .75rem; line-height: 1.65; }
  :is(#program-kelas, #kegiatan, #cabang) a { font-size: .6875rem; padding: .625rem .5rem; gap: .25rem; white-space: normal; }
  :is(#program-kelas, #kegiatan, #cabang) .relative:is(.h-48, .h-64) { height: clamp(7rem, 30vw, 11rem); }
  :is(#program-kelas, #kegiatan, #cabang) .relative > span.absolute {
    font-size: .5625rem; line-height: 1.4; padding: .25rem .5rem;
    max-width: calc(100% - 1rem); right: .5rem; top: .5rem;
  }
  #kegiatan .relative > span.absolute { left: .5rem; right: auto; top: auto; bottom: .5rem; }
  :is(#program-kelas, #kegiatan, #cabang) .kazka-photo-empty { padding: .5rem; }
  :is(#program-kelas, #kegiatan, #cabang) .kazka-photo-empty strong { font-size: .6875rem; }
  :is(#program-kelas, #kegiatan, #cabang) .kazka-photo-empty small { font-size: .625rem; }
  #cabang article .grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  #tentang-kami .grid .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  #tentang-kami .grid .grid > div { padding: .75rem; }
  #tentang-kami .grid .grid h4 { font-size: .8125rem; }
  #tentang-kami .grid .grid p { font-size: .75rem; line-height: 1.6; }
  main > section:not([id]) .w-14 { width: 2.5rem; height: 2.5rem; margin-bottom: .875rem; }
}
@media (min-width: 540px) and (max-width: 767px) {
  #program-kelas > div > .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #program-kelas > div > .grid > * { grid-column: span 2; }
  #program-kelas > div > .grid > :nth-child(n+4),
  #program-kelas > div > .grid > :last-child:nth-child(odd) { grid-column: span 3; }
  #tentang-kami > div > .grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .75rem; }
}
/* Photo labels belong in the card body, never over the photographs. */
.kazka-card-label {
  display: inline-block;
  margin-bottom: .625rem;
  padding: .25rem .625rem;
  border-radius: 999px;
  background: var(--kazka-vanilla);
  color: var(--kazka-amber);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
}
#beranda .custom-shadow-soft.absolute {
  position: static;
  display: inline-flex;
  max-width: 100%;
  margin-top: .625rem;
  animation: none;
}
@media (max-width: 767px) {
  .kazka-card-label { font-size: .625rem; padding: .25rem .5rem; margin-bottom: .5rem; }
  #beranda .custom-shadow-soft.absolute { display: flex; }
}
/* Mobile hero: title + photograph, followed by full-width supporting content. */
@media (max-width: 767px) {
  #beranda > div.relative > .hero-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: stretch;
  }
  #beranda .hero-copy,
  #beranda .hero-visual,
  #beranda .hero-visual-inner,
  #beranda .hero-visual-inner > .custom-shadow-float { display: contents; }
  #beranda .hero-copy > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
  #beranda .hero-copy > .inline-flex { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  #beranda h1 { grid-column: 1; grid-row: 2; align-self: center; font-size: clamp(1rem, 4.3vw, 1.75rem); line-height: 1.35; }
  #beranda [data-photo-slot="photo-1"] {
    grid-column: 2;
    grid-row: 2;
    height: auto;
    min-height: 0;
    align-self: stretch;
    border: 3px solid #fff;
    border-radius: 1rem;
    box-shadow: var(--kazka-shadow);
  }
  #beranda .hero-visual-inner > .absolute { display: none; }
  #beranda .hero-copy > p {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: none;
    font-size: .875rem;
    line-height: 1.75;
  }
  #beranda .hero-copy > .flex {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-top: 0;
    width: 100%;
  }
  #beranda .hero-copy > .flex a { font-size: .8125rem; padding: .75rem 1rem; }
  #beranda .hero-copy > .grid-cols-3 { grid-column: 1 / -1; grid-row: 5; gap: .75rem; padding-top: 1rem; }
  #beranda .grid-cols-3 p:first-child { font-size: 1.375rem; }
  #beranda .grid-cols-3 p:last-child { font-size: .75rem; }
  #beranda .custom-shadow-soft.absolute { grid-row: 6; margin-top: 0; align-items: center; }
  #beranda .custom-shadow-soft.top-6 { grid-column: 1; }
  #beranda .custom-shadow-soft.bottom-6 { grid-column: 2; }
}
/* Balance learning badges across both columns below the title and photo. */
@media (max-width: 767px) {
  #beranda .hero-grid h1 { grid-row: 2; }
  #beranda .hero-grid [data-photo-slot="photo-1"] { min-height: 6rem; }
  #beranda .hero-grid .hero-copy > p { grid-row: 4; }
  #beranda .hero-grid .hero-copy > .flex { grid-row: 5; }
  #beranda .hero-grid .hero-copy > .grid-cols-3 { grid-row: 6; }
  #beranda .hero-grid .custom-shadow-soft.absolute {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: .25rem .375rem;
    gap: .25rem;
    border-radius: .625rem;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 2px 8px rgb(56 44 38 / 10%);
  }
  #beranda .hero-grid .custom-shadow-soft.top-6 { grid-column: 2; grid-row: 3; align-self: stretch; justify-self: stretch; }
  #beranda .hero-grid .custom-shadow-soft.bottom-6 { grid-column: 1; grid-row: 3; align-self: stretch; justify-self: stretch; }
  #beranda .hero-grid .custom-shadow-soft.absolute { justify-content: center; }
  #beranda .hero-grid .custom-shadow-soft p { text-align: center; }
}
/* Restore the original photo overlays on desktop; phone badge rows stay intact. */
@media (min-width: 768px) {
  #beranda .custom-shadow-soft.absolute {
    position: absolute;
    margin-top: 0;
    z-index: 2;
  }
}
/* Center headings and descriptions on phones only. */
@media (max-width: 767px) {
  :is(main, footer) :is(h1, h2, h3, h4, h5, h6, p) { text-align: center; }
  main :is(h2, h3, h4).flex { justify-content: center; }
  #cabang article p.flex { justify-content: center; }
}
/* Align the first two activity headings beneath equally sized photo frames. */
#kegiatan > div > .grid > :nth-child(-n+2) { justify-content: flex-start; }
#kegiatan > div > .grid > :nth-child(-n+2) > .relative { flex-shrink: 0; }
#kegiatan > div > .grid > :nth-child(-n+2) > div:last-child { padding-top: 2rem; }
#kegiatan > div > .grid > :nth-child(-n+2) > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
#kegiatan > div > .grid > :nth-child(-n+2) > div:last-child > div:last-child {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 0;
}
#kegiatan > div > .grid > :nth-child(-n+2) a[data-gallery-filter] { margin-top: 0; }
@media (max-width: 767px) {
  #kegiatan > div > .grid > :nth-child(-n+2) > div:last-child { padding-top: .875rem; align-items: center; }
}
/* Center the footer contact heading and its four social icons. */
footer [class~="md:col-span-4"] { align-items: center; padding-left: 0; }
footer [class~="md:col-span-4"] > h4 { text-align: center; }
footer [class~="md:col-span-4"] > .flex { width: 100%; justify-content: center; }
.kazka-gallery-mobile-filter, .kazka-gallery-scroll-hint { display: none; }
@media (max-width: 767px) {
  #galleryFilters { display: none; }
  .kazka-gallery-mobile-filter { display: block; position: relative; z-index: 10; margin-bottom: 1rem; }
  #galleryFilterLabel {
    display: block;
    margin-bottom: .375rem;
    color: var(--kazka-muted);
    font-size: .8125rem;
    font-weight: 600;
  }
  #galleryFilterToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid var(--kazka-edge);
    border-radius: 1rem;
    background-color: #fff;
    color: var(--kazka-ink);
    font: inherit;
    font-size: 1rem;
  }
  #galleryFilterToggle[aria-expanded="true"] { background: var(--kazka-vanilla); border-radius: 1rem 1rem 0 0; }
  #galleryFilterToggle[aria-expanded="true"] .material-symbols-outlined { transform: rotate(180deg); }
  #galleryFilterPanel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    max-height: min(22rem, 60vh);
    max-height: min(22rem, 60dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem;
    border: 1px solid var(--kazka-edge);
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
    background: #fffcf6;
    box-shadow: 0 12px 28px -8px rgb(56 44 38 / 22%);
  }
  #galleryFilterPanel[hidden] { display: none; }
  #galleryFilterPanel button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .625rem .75rem;
    border-radius: .625rem;
    text-align: left;
    color: var(--kazka-ink);
    font-size: .875rem;
    line-height: 1.5;
  }
  #galleryFilterPanel button[aria-pressed="true"] { background: var(--kazka-vanilla); color: var(--kazka-amber); font-weight: 700; }
  #galleryFilterPanel button:hover { background: #fff1d4; }
  #galleryFilterToggle:focus-visible, #galleryFilterPanel button:focus-visible, #galleryViewport:focus-visible { outline: 3px solid var(--kazka-amber); outline-offset: 3px; }
  #galleryViewport {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #d6b374 #fff1d4;
    padding-bottom: .5rem;
  }
  #galeri #galleryGrid {
    /* Five columns, with exactly two columns fitting the viewport. */
    width: calc(250% + .9375rem);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .625rem;
  }
  #galleryGrid > .gallery-item { scroll-snap-align: start; }
  .kazka-gallery-scroll-hint { display: block; margin-top: .625rem; font-size: .6875rem; color: var(--kazka-muted); }
}
/* Compact mission cards without changing their content or column arrangement. */
#tentang-kami .kazka-missions { gap: .75rem; }
#tentang-kami .kazka-missions > div { padding: 1rem; border-radius: 1rem; }
#tentang-kami .kazka-missions > div > span {
  width: 2rem;
  height: 2rem;
  margin-bottom: .625rem;
  font-size: .75rem;
}
#tentang-kami .kazka-missions h4 { font-size: .875rem; line-height: 1.4; margin-bottom: .375rem; }
#tentang-kami .kazka-missions p { font-size: .8125rem; line-height: 1.55; }
@media (max-width: 767px) {
  #tentang-kami .kazka-missions > div { padding: .75rem 1rem; }
  #tentang-kami .kazka-missions > div > span { margin: 0 auto .5rem; width: 1.75rem; height: 1.75rem; }
}
/* Phone footer: description, contact/social links, then the original brand logo. */
@media (max-width: 767px) {
  footer > div > .grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  footer [class~="md:col-span-8"] { display: contents; }
  footer [class~="md:col-span-8"] > p {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 34rem;
    justify-self: center;
    text-align: center;
  }
  footer [class~="md:col-span-4"] { grid-column: 1; grid-row: 2; }
  footer [class~="md:col-span-8"] > img {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    align-self: center;
    width: 6rem;
    height: auto;
    max-height: 6rem;
    object-position: center;
  }
  footer .kazka-copyright-bar { grid-column: 1; grid-row: 4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  :is(a, button).bg-secondary:hover { transform: none; }
}
