.theme-fallback-footer.store-footer,
.theme-fallback-footer.store-footer :is(a,button,p,span,small,strong,h2,h3,h4),
.theme-fallback-footer.store-footer :is(a,button):is(:hover,:focus,:visited,:active) {
    color: #fff !important;
}

.allpedia-menu-tiles-primary ul,.allpedia-menu-tiles-actions{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
    margin:0 0 8px;padding:0;list-style:none;
}
.allpedia-menu-tiles-primary li{list-style:none;margin:0;min-width:0}
.allpedia-menu-tiles-primary li>.sub-menu{display:grid;grid-template-columns:minmax(0,1fr);padding:6px 0 0;margin:0}
.allpedia-menu-tiles-footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.allpedia-menu-tiles-footer>div{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-content:start}
.allpedia-menu-tiles-footer h3{margin:4px 0 0;color:#20375b;font-size:.95rem}
.allpedia-menu-tiles :is(a,button){
    display:flex;align-items:center;justify-content:center;gap:5px;
    box-sizing:border-box;min-height:46px;padding:8px 7px;text-align:center;line-height:1.28;
    background:#fff;color:#1a3b6e;border:1px solid #d5e1f4;border-radius:10px;
    text-decoration:none;font-size:.9rem;font-weight:680;overflow-wrap:anywhere;cursor:pointer;
}
.allpedia-menu-tiles :is(a,button):is(:hover,:focus-visible){background:#ebf3ff;color:#164497;border-color:#3066c9}
.allpedia-menu-tiles :is(a,button):focus-visible{outline:2px solid #1b56bf;outline-offset:2px}

@media(max-width:620px){
    .allpedia-menu-tiles-primary ul,.allpedia-menu-tiles-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
    .allpedia-menu-tiles-footer{grid-template-columns:minmax(0,1fr);gap:10px}
    .allpedia-menu-tiles-footer>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .allpedia-menu-tiles-footer h3{grid-column:1/-1}
}

/* The restored Allpedia hero spans the viewport, above the compact catalog. */
.apd-home:has(> .allpedia-hero) {
    padding-top: 0;
    background: linear-gradient(175deg, #eaf3ff, #fbfaff 52%, #edf7ff);
}

.apd-home > .allpedia-hero {
    margin-bottom: clamp(26px, 4vw, 54px);
}

.apd-home > .allpedia-hero::after,
.apda-footer-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 78% 25%, #4394ff55, transparent 62%);
    opacity: .62;
}

.apd-home > .allpedia-hero:has(.allpedia-hero-copy.allpedia-motion-in)::after,
.apda-footer-cta:has(.allpedia-motion-in)::after {
    animation: allpedia-ambient 4s ease-out both;
}

.apd-home > .allpedia-hero .allpedia-hero-grid {
    position: relative;
    z-index: 1;
}

.apd-home > :is(.apd-home-section, .allpedia-extras) {
    --section-tint: #eff5ff;
    --section-accent: #3369d6;
    box-sizing: border-box;
    margin-block: clamp(20px, 3vw, 38px);
    padding: clamp(13px, 2.4vw, 28px);
    border: 1px solid color-mix(in srgb, var(--section-tint), #3d67a7 16%);
    border-top: 3px solid var(--section-accent);
    border-radius: clamp(16px, 2.6vw, 28px);
    background: linear-gradient(135deg, var(--section-tint), #fff 75%);
    box-shadow: 0 12px 36px #1a3e8210;
}

.apd-home > .allpedia-extras { --section-tint: #ecfcfc; --section-accent: #178182; }
.apd-home > #mitra { --section-tint: #fff3e4; --section-accent: #bb641e; }
.apd-home > .allpedia-menu-tiles { --section-tint: #f2edff; --section-accent: #7252c0; }
.apd-home > #informasi-referensi { --section-tint: #edf9fb; --section-accent: #137e9c; }
.apd-home > #tagihan-dan-pesanan { --section-tint: #ecf9f0; --section-accent: #228454; }

.apd-home > :is(.apd-home-section, .allpedia-extras) > h2 {
    margin-bottom: clamp(13px, 2vw, 22px);
}

.apd-home :is(.apd-home-grid, .allpedia-extra-grid, .apd-home-poster-grid) {
    gap: clamp(8px, 1.15vw, 14px);
    align-items: stretch;
}

.apd-home .apd-home-partner-grid { align-items: start; }

.apd-home :is(.apd-home-tile, .allpedia-extra-card) {
    --tile-tint: #eaf2ff;
    --tile-ink: #1b4f9e;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    align-content: center;
    overflow: hidden;
    min-height: 86px;
    padding: 9px 6px;
    gap: 6px;
    border-radius: 15px;
    color: #152d53;
    background: linear-gradient(150deg, #fff 23%, var(--tile-tint));
    border: 1px solid color-mix(in srgb, var(--tile-tint), var(--tile-ink) 23%);
    box-shadow: 0 4px 12px #173a6c0b;
    font-size: .83rem;
    transition: translate .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.apd-home :is(.apd-home-tile, .allpedia-extra-card)::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    right: -17px;
    bottom: -20px;
    width: 58px;
    height: 58px;
    border: 1px solid color-mix(in srgb, var(--tile-ink), transparent 78%);
    border-radius: 44%;
    rotate: -18deg;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--tile-ink), transparent 92%);
    transition: rotate .3s, scale .3s;
}

.apd-home :is(.apd-home-grid, .allpedia-extra-grid) > :nth-child(6n+2),
.apd-home .apd-home-partner-grid > :nth-child(2) > summary {
    --tile-tint: #ddf8ee;
    --tile-ink: #08745d;
}
.apd-home :is(.apd-home-grid, .allpedia-extra-grid) > :nth-child(6n+3),
.apd-home .apd-home-partner-grid > :nth-child(3) > summary {
    --tile-tint: #e8e0ff;
    --tile-ink: #5b38a5;
}
.apd-home :is(.apd-home-grid, .allpedia-extra-grid) > :nth-child(6n+4) {
    --tile-tint: #fff0d9;
    --tile-ink: #965415;
}
.apd-home :is(.apd-home-grid, .allpedia-extra-grid) > :nth-child(6n+5) {
    --tile-tint: #ffe6f0;
    --tile-ink: #a62959;
}
.apd-home :is(.apd-home-grid, .allpedia-extra-grid) > :nth-child(6n) {
    --tile-tint: #dbf5ff;
    --tile-ink: #156b82;
}

.apd-home .apd-home-grid .apd-home-tile .apd-home-icon,
.apd-home .allpedia-extra-card .allpedia-extra-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--tile-tint);
    color: var(--tile-ink);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile-ink), transparent 82%);
    font-size: 1.06rem;
    transition: transform .25s cubic-bezier(.22,.61,.36,1);
}

.apd-home :is(.apd-home-tile, .allpedia-extra-card):is(:hover, :focus-visible, [aria-expanded="true"]),
.apd-home .apd-home-partner[open] > summary.apd-home-tile {
    border-color: var(--tile-ink);
    background: var(--tile-tint);
    box-shadow: 0 7px 17px #173a6c1c;
}

@media (hover: hover) {
    .apd-home :is(.apd-home-tile, .allpedia-extra-card):hover { translate: 0 -3px; }
    .apd-home :is(.apd-home-tile, .allpedia-extra-card):hover::before { rotate: 24deg; scale: 1.2; }
    .apd-home :is(.apd-home-tile, .allpedia-extra-card):hover :is(.apd-home-icon, .allpedia-extra-icon) {
        transform: translateY(-2px) rotate(-8deg);
    }
}

.apd-home .apd-home-poster {
    background: #fff;
    box-shadow: 0 6px 18px #1a3e8215;
    transition: border-color .2s, box-shadow .2s;
}
.apd-home .apd-home-poster:is(:hover, [open]) {
    border-color: #729ce6;
    box-shadow: 0 9px 25px #1a3e8224;
}
.apd-home .apd-home-poster[open] .apd-home-poster-actions,
.apd-home .apd-home-partner[open] .partner-card {
    animation: allpedia-card-arrive .34s ease-out both;
}

.allpedia-menu-tiles .allpedia-menu-tiles-primary {
    padding-bottom: clamp(12px, 2vw, 22px);
    border-bottom: 1px solid #dcd4f3;
    margin-bottom: clamp(15px, 2.5vw, 28px);
}
.allpedia-menu-tiles .allpedia-menu-tiles-primary ul,
.allpedia-menu-tiles .allpedia-menu-tiles-actions {
    gap: 9px;
}
.allpedia-menu-tiles .allpedia-menu-tiles-footer {
    gap: clamp(12px, 2vw, 22px);
    margin-top: 0;
}
.allpedia-menu-tiles .allpedia-menu-tiles-footer > div {
    --menu-tint: #eaf2ff;
    padding: clamp(11px, 1.5vw, 18px);
    gap: 9px;
    border: 1px solid #dbdff1;
    border-radius: 16px;
    background: linear-gradient(150deg, var(--menu-tint), #fff);
}
.allpedia-menu-tiles .allpedia-menu-tiles-footer > div:nth-child(2) { --menu-tint: #fff1df; }
.allpedia-menu-tiles .allpedia-menu-tiles-footer > div:nth-child(3) { --menu-tint: #eee7ff; }
.allpedia-menu-tiles .allpedia-menu-tiles-footer h3 {
    padding-bottom: 7px;
    margin: 0 0 2px;
    border-bottom: 1px solid #b9c8e37d;
}
.allpedia-menu-tiles :is(a, button) {
    transition: translate .2s ease, background-color .2s ease, border-color .2s ease;
}
@media (hover: hover) {
    .allpedia-menu-tiles :is(a, button):hover { translate: 0 -2px; }
}

.apda-footer-cta {
    isolation: isolate;
    background: linear-gradient(122deg, #072656 14%, #124395 72%, #1857a8);
    color: #fff;
}
.apda-footer-cta .eyebrow,
.apda-footer-cta h2,
.apda-footer-cta p { color: #fff; }
.apda-footer-cta h2 em { color: #ffdf68; }
.apda-footer-cta .apda-footer-flower { color: #accaff33; }

.theme-fallback-footer.store-footer .footer-columns {
    gap: clamp(22px, 3vw, 46px);
}
.theme-fallback-footer.store-footer .footer-columns h3 {
    margin: 0 0 12px;
}
.theme-fallback-footer.store-footer .footer-columns > div > :is(a, button):not(.brand) {
    margin-block: 4px;
    transition: translate .18s ease;
}
@media (hover: hover) {
    .theme-fallback-footer.store-footer .footer-columns > div > :is(a, button):not(.brand):hover {
        translate: 3px 0;
        text-decoration: underline;
    }
}
.theme-fallback-footer.store-footer :is(a, button):focus-visible {
    outline: 2px solid #ffdf68;
    outline-offset: 3px;
}

.allpedia-motion-in {
    animation: allpedia-card-arrive .52s cubic-bezier(.2,.65,.35,1) both;
    animation-delay: var(--allpedia-delay, 0ms);
}
@keyframes allpedia-card-arrive {
    from { transform: translateY(10px) scale(.985); }
    to { transform: none; }
}
@keyframes allpedia-ambient {
    from { opacity: .35; transform: translateX(-5%); }
    to { opacity: .62; transform: none; }
}
@media (max-width: 620px) {
    .apd-home :is(.apd-home-tile, .allpedia-extra-card) { min-height: 80px; }
    .apd-home .apd-home-grid .apd-home-tile .apd-home-icon,
    .apd-home .allpedia-extra-card .allpedia-extra-icon { width: 28px; height: 28px; }
    .allpedia-menu-tiles .allpedia-menu-tiles-footer { gap: 17px; }
    .theme-fallback-footer.store-footer .footer-columns > div + div {
        padding-top: 12px;
        border-top: 1px solid #ffffff38;
    }
}
@media (prefers-reduced-motion: reduce), print {
    .allpedia-motion-in,
    .apd-home > .allpedia-hero:has(.allpedia-hero-copy.allpedia-motion-in)::after,
    .apda-footer-cta:has(.allpedia-motion-in)::after,
    .apd-home :is(.apd-home-tile, .allpedia-extra-card, .apd-home-poster-actions, .partner-card) {
        animation: none;
        transition: none;
        translate: none;
    }
}

.theme-fallback-footer.store-footer .footer-columns {
    grid-template-columns: minmax(0, 1fr);
}

.apd-home .apd-home-category-grid > .apd-home-tile {
    --tile-tint: #eaf2ff;
    --tile-ink: #1b4f9e;
}
.apd-home .apd-home-category-grid > .apd-home-tile::before {
    content: none;
}
