/*!
 * IDDS WOW — safe visual identity (no layout-breaking rules)
 * Distinct per frame / dinas without shattering Bootstrap grid.
 */

@keyframes hz-wow-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.skin-magz .home--horizon .home-zone,
body.skin-magz .home--horizon .home-sig {
    animation: hz-wow-rise .55s cubic-bezier(.22, 1, .36, 1) both;
}
body.skin-magz .home--horizon .home-zone--leaders,
body.skin-magz .home--horizon .home-sig--leaders { animation-delay: .06s; }
body.skin-magz .home--horizon .home-zone--news,
body.skin-magz .home--horizon .home-sig--news { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
    body.skin-magz .home--horizon .home-zone,
    body.skin-magz .home--horizon .home-sig { animation: none; }
}

/* ---- Containers: always centered full usable width ---- */
body.skin-magz .home--compose .container-md,
body.skin-magz .home--compose .container-md--wide,
body.skin-magz .firstbar .container-md,
body.skin-magz nav.menu .container,
body.skin-magz footer.footer .container,
body.skin-magz footer.footer .container-md {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--idds-container, 1200px);
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}
body.skin-magz .home--compose .container-md--wide {
    max-width: 1280px;
}
body.skin-magz .home--compose,
body.skin-magz .home-shell-surface,
body.skin-magz .home-compose__inner,
body.skin-magz footer.footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body.skin-magz,
body.skin-magz #wrapper,
body.skin-magz .wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

/* Featured news: never collapse into thin bands */
body.skin-magz .home--horizon #featured article.featured,
body.skin-magz .home--compose #featured article.featured {
    aspect-ratio: 16 / 9;
    min-height: 220px;
    width: 100%;
    max-width: 100%;
}
/* Headline strip must stay compact — never 200px empty owl items */
body.skin-magz .home--horizon .headline .owl-item,
body.skin-magz .home--compose .headline .owl-item,
body.skin-magz .home--nexus .headline .owl-item {
    min-height: 0;
    height: auto;
}

/* ---- Typography polish ---- */
body.skin-magz .home--horizon .home-zone-head__kicker,
body.skin-magz .home--horizon .home-sig__kicker {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--hz-accent, var(--idds-accent));
}
body.skin-magz .home--horizon .home-zone-head__title,
body.skin-magz .home--horizon .home-sig__title {
    font-size: clamp(1.25rem, 2.1vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: var(--hz-ink, #0f172a);
    margin: .2rem 0 0;
}

/* Hide duplicate cat under portal on flagship */
body.skin-magz.preset-tanggamus .home--horizon .cat-nav,
body.skin-magz .home-frame--signature .cat-nav {
    display: none !important;
}

/* ---- Portal services: aligned dense grid ---- */
body.skin-magz .home--horizon .portal-strip--flat .portal-services {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .65rem;
}
@media (max-width: 992px) {
    body.skin-magz .home--horizon .portal-strip--flat .portal-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    body.skin-magz .home--horizon .portal-strip--flat .portal-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
body.skin-magz .home--horizon .portal-strip--flat .portal-services__item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
    min-height: 104px;
    padding: .9rem .55rem !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid color-mix(in srgb, var(--hz-primary) 12%, #e2e8f0) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.skin-magz .home--horizon .portal-strip--flat .portal-services__item:hover {
    transform: translateY(-3px);
    border-color: var(--hz-primary) !important;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--hz-primary) 12%, transparent) !important;
}
body.skin-magz .home--horizon .portal-strip--flat .portal-services__ico {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--hz-primary);
}
body.skin-magz .home--horizon .portal-strip--flat .portal-services__label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--hz-ink, #0f172a);
}

/* ---- Signature frame (stable, contained) ---- */
body.skin-magz .home-frame-signature {
    display: block;
    width: 100%;
}
body.skin-magz .home-sig {
    width: 100%;
    margin-bottom: 1.75rem;
}
body.skin-magz .home-sig--services {
    display: grid;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--hz-primary) 10%, #e2e8f0);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
}
@media (max-width: 900px) {
    body.skin-magz .home-sig--services { grid-template-columns: 1fr; }
}
body.skin-magz .home-sig__desc {
    margin: .45rem 0 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.5;
}
body.skin-magz .home-sig__intro--inline { margin-bottom: .85rem; }
body.skin-magz .home-sig__rail { min-width: 0; width: 100%; }
body.skin-magz .home-sig--news .home-compose__news {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Leaders: keep cards sized & centered */
body.skin-magz .home--horizon .hz-leaders__regional--count-2 {
    grid-template-columns: repeat(2, minmax(240px, 320px));
    justify-content: center;
    gap: 1.25rem;
}
body.skin-magz .home--horizon .hz-leaders__regional--count-1 {
    grid-template-columns: minmax(240px, 320px);
    justify-content: center;
}

/* News: do NOT override #featured / Bootstrap cols — only soft chrome */
body.skin-magz .home--horizon .headline,
body.skin-magz .home--horizon #featured .featured {
    border-radius: 16px;
    overflow: hidden;
}
body.skin-magz .home--horizon .home-compose__aside .block,
body.skin-magz .home--horizon .home-compose__aside .widget {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--hz-primary) 10%, #e2e8f0);
    border-radius: 14px;
    padding: 1rem;
}

/* ---- Frame accents (visual only) ---- */
body.skin-magz .home-frame--terminal .home-zone-head__kicker {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body.skin-magz .home-frame--magazine .home-zone-head--magazine .home-zone-head__title {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.04em;
}
body.skin-magz .home-frame--split .home-rail-panel {
    border-left: 4px solid var(--hz-accent, var(--idds-accent));
}
body.skin-magz .home-frame--cascade .home-cascade__layer {
    margin-bottom: 1rem;
    padding: 1.15rem 1.1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--hz-primary) 10%, #e2e8f0);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    transform: none;
}
body.skin-magz .home-frame--cascade .home-cascade__layer + .home-cascade__layer {
    margin-top: 0;
}
body.skin-magz .home-frame--bento .home-bento__cell {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
body.skin-magz .home-frame--orbit .home-compose__access--orbit .portal-services {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: .65rem;
    padding-bottom: .5rem;
}
body.skin-magz .home-frame--orbit .home-compose__access--orbit .portal-services__item {
    flex: 0 0 148px !important;
}
body.skin-magz .home-frame--stack .home-zone-head--center { text-align: center; }
body.skin-magz .home-frame--grid .home-zone--access {
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--hz-primary) 10%, #e2e8f0);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

/* ---- Soft atmosphere (background only) ---- */
body.skin-magz.preset-tanggamus .home--horizon {
    background:
        radial-gradient(900px 400px at 10% -8%, color-mix(in srgb, var(--hz-primary) 10%, transparent), transparent 55%),
        radial-gradient(700px 320px at 100% 0%, color-mix(in srgb, var(--hz-accent) 8%, transparent), transparent 50%),
        linear-gradient(180deg, #f5f7fc, #eef2f7);
}
body.skin-magz.preset-diskominfo .home--horizon,
body.skin-magz .home--diskominfo,
body.skin-magz.preset-dlh .home--horizon,
body.skin-magz .home--dlh,
body.skin-magz.preset-disparekraf .home--horizon,
body.skin-magz .home--disparekraf,
body.skin-magz.preset-dinkes .home--horizon,
body.skin-magz .home--dinkes,
body.skin-magz .home--rsud-batin-mangunang,
body.skin-magz.preset-bpbd .home--horizon,
body.skin-magz .home--bpbd,
body.skin-magz .home--damkar,
body.skin-magz.preset-disdikbud .home--horizon,
body.skin-magz .home--disdikbud,
body.skin-magz.preset-dpupr .home--horizon,
body.skin-magz .home--dpupr,
body.skin-magz.preset-satpol-pp .home--horizon,
body.skin-magz .home--satpol-pp {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--idds-primary, #1a365d) 5%, #eef1f5),
        #eef1f5);
}
