/* UkrRIS Normative Base — Project Standard geometry
 * Layout intentionally follows the approved "Про нас" / "Оперативна інформація" pattern.
 * The theme owns the top bar. This plugin owns only Hero + page content.
 */
html body.ris-route-normative #content,
html body.ris-route-normative #content > .ukrris-page-inner,
html body.ris-route-normative #content > .ukrris-page-inner > h1{
    background:transparent!important;
}
html body.ris-route-normative #content > .ukrris-page-inner > h1{
    display:none!important;
}


/* v1.2.5 — inherit the proven About route canvas rules.
   The generic theme shell has a legacy top padding; the approved About page
   explicitly opts out of it. Do the same here so this route has identical
   canvas geometry instead of accumulating page-specific offsets. */
html body.ris-route-normative #wrap{
    width:100vw!important;
    max-width:none!important;
    margin:0!important;
    padding-top:0!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow:visible!important;
}
html body.ris-route-normative #content,
html body.ris-route-normative #content > .col_9,
html body.ris-route-normative #content > .ukrris-page-inner{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
}

/* HERO — exact approved inner-page geometry, based on "Про нас" */
html body.ris-route-normative #content,
html body.ris-route-normative #content > .ukrris-page-inner{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
}
html body.ris-route-normative #content > .ukrris-page-inner > h1{
    display:none!important;
    margin:0!important;
    padding:0!important;
}
html body.ris-route-normative .ukrris-nb-hero{
    position:relative!important;
    z-index:5!important;
    display:block!important;
    width:100vw!important;
    max-width:none!important;
    min-height:690px!important;
    height:690px!important;
    margin:0 0 0 calc(50% - 50vw)!important;
    padding:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    isolation:isolate!important;
    background-image:var(--ukrris-nb-hero-bg)!important;
    background-position:center!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
    background-color:#073b53!important;
    box-shadow:none!important;
}
html body.ris-route-normative .ukrris-nb-hero-content{
    position:relative!important;
    z-index:2!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
    width:calc(100% - clamp(40px,6vw,84px))!important;
    max-width:none!important;
    min-height:690px!important;
    margin:0 auto!important;
    padding:0 0 38px!important;
    box-sizing:border-box!important;
}
html body.ris-route-normative .ukrris-nb-hero-eyebrow{
    margin:0 0 9px!important;
    color:#fff!important;
    font-size:clamp(14px,1.3vw,19px)!important;
    line-height:1.2!important;
    font-weight:800!important;
    text-shadow:0 2px 10px rgba(0,0,0,.30)!important;
}
html body.ris-route-normative .ukrris-nb-hero h1{
    margin:0!important;
    color:#fff!important;
    font-size:clamp(40px,5vw,72px)!important;
    line-height:.98!important;
    font-weight:850!important;
    letter-spacing:-.045em!important;
    text-shadow:0 3px 16px rgba(0,0,0,.35)!important;
}
html body.ris-route-normative .ukrris-nb-hero-line{display:none!important;}

/* ONE backplate — starts only after the Hero, like the approved "Про нас" page */
html body.ris-route-normative .ukrris-nb-public{
    position:relative!important;
    z-index:0!important;
    width:min(1440px,100%)!important;
    max-width:1440px!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:24px clamp(16px,3vw,42px) 70px!important;
    box-sizing:border-box!important;
    isolation:isolate!important;
    font-family:Arial,sans-serif!important;
    color:#15344a!important;
}
html body.ris-route-normative .ukrris-nb-public::before{
    content:""!important;
    position:absolute!important;
    z-index:0!important;
    top:0!important;
    bottom:0!important;
    left:50%!important;
    right:auto!important;
    width:100vw!important;
    transform:translateX(-50%)!important;
    background:rgba(255,255,255,.78)!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    pointer-events:none!important;
}
html body.ris-route-normative .ukrris-nb-public > *{position:relative!important;z-index:1!important;}
html body.ris-route-normative .ukrris-nb-search,
html body.ris-route-normative #ukrris-nb-list{
    width:100%!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
html body.ris-route-normative .ukrris-nb-search{padding-top:0!important;margin-bottom:15px!important;}
html body.ris-route-normative .ukrris-nb-search input{
    width:100%!important;height:58px!important;border:1px solid #a9c5d6!important;border-radius:10px!important;
    padding:0 16px!important;box-sizing:border-box!important;font-size:18px!important;background:rgba(255,255,255,.92)!important;
}
html body.ris-route-normative .ukrris-nb-group{
    border:1px solid #c8dce7!important;border-radius:14px!important;overflow:hidden!important;margin:0 0 15px!important;
    background:rgba(255,255,255,.94)!important;box-shadow:0 1px 2px rgba(0,0,0,.04)!important;
}
html body.ris-route-normative .ukrris-nb-group-title{background:#08758a!important;color:#fff!important;font-weight:700!important;font-size:22px!important;padding:18px 24px!important;}
html body.ris-route-normative .ukrris-nb-row{display:flex!important;align-items:center!important;min-height:62px!important;border-top:1px solid #dce7ee!important;padding:0 24px!important;box-sizing:border-box!important;font-size:17px!important;}
html body.ris-route-normative .ukrris-nb-doc-title{flex:1!important;padding-right:15px!important;}
html body.ris-route-normative .ukrris-nb-action{width:150px!important;text-align:right!important;}
html body.ris-route-normative .ukrris-nb-view{display:inline-block!important;background:#07859a!important;color:#fff!important;text-decoration:none!important;border-radius:7px!important;padding:12px 14px!important;font-weight:700!important;font-size:15px!important;white-space:nowrap!important;}
html body.ris-route-normative .ukrris-nb-view:hover{filter:brightness(.92)!important;transform:translateY(-1px)!important;}
html body.ris-route-normative .ukrris-nb-empty{text-align:center!important;background:rgba(255,255,255,.94)!important;border:1px solid #ccdfe8!important;border-radius:10px!important;padding:40px!important;color:#607889!important;}

/* DESKTOP: full viewport Hero, no horizontal or vertical gap before content */
@media(min-width:901px){
 html body.ris-route-normative #content,
 html body.ris-route-normative #content > .ukrris-page-inner{margin:0!important;padding:0!important;}
 html body.ris-route-normative .ukrris-nb-hero{width:100vw!important;max-width:none!important;margin:0 0 0 calc(50% - 50vw)!important;height:690px!important;min-height:690px!important;border-radius:0!important;}
 html body.ris-route-normative .ukrris-nb-hero-content{height:690px!important;min-height:690px!important;width:min(calc(100vw - 96px),1440px)!important;padding-bottom:38px!important;}
 html body.ris-route-normative .ukrris-nb-public{width:100%!important;max-width:none!important;margin:0!important;padding:24px 0 70px!important;}
 html body.ris-route-normative .ukrris-nb-public::before{border-radius:0!important;}
 html body.ris-route-normative .ukrris-nb-search,
 html body.ris-route-normative #ukrris-nb-list{width:min(1260px,calc(100% - 72px))!important;}
}

@media(max-width:900px){
 html body.ris-route-normative .ukrris-nb-hero{width:100vw!important;min-height:clamp(420px,52vw,520px)!important;height:clamp(420px,52vw,520px)!important;margin:0!important;border-radius:0!important;}
 html body.ris-route-normative .ukrris-nb-hero-content{width:calc(100% - 36px)!important;min-height:clamp(420px,52vw,520px)!important;height:clamp(420px,52vw,520px)!important;padding:0 0 30px!important;}
 html body.ris-route-normative .ukrris-nb-hero h1{font-size:clamp(40px,5vw,58px)!important;}
 html body.ris-route-normative .ukrris-nb-public{width:100%!important;max-width:none!important;min-height:0!important;padding:18px 18px 52px!important;}
 html body.ris-route-normative .ukrris-nb-public::before{border-radius:0!important;}
 html body.ris-route-normative .ukrris-nb-group-title{font-size:17px!important;line-height:1.3!important;}
 html body.ris-route-normative .ukrris-nb-row{align-items:flex-start!important;padding:12px!important;font-size:14px!important;}
 html body.ris-route-normative .ukrris-nb-action{width:110px!important;}
 html body.ris-route-normative .ukrris-nb-view{padding:9px 8px!important;font-size:12px!important;}
}
@media(max-width:620px){
 html body.ris-route-normative .ukrris-nb-hero{width:100vw!important;min-height:360px!important;height:360px!important;border-radius:0!important;}
 html body.ris-route-normative .ukrris-nb-hero-content{width:calc(100% - 28px)!important;min-height:360px!important;height:360px!important;padding:0 0 24px!important;}
 html body.ris-route-normative .ukrris-nb-hero h1{font-size:38px!important;}
 html body.ris-route-normative .ukrris-nb-public{padding:16px 10px 44px!important;}
 html body.ris-route-normative .ukrris-nb-public::before{border-radius:0!important;}
 html body.ris-route-normative .ukrris-nb-row{display:block!important;}
 html body.ris-route-normative .ukrris-nb-action{width:auto!important;margin-top:10px!important;text-align:left!important;}
}
