/* Shared navigation and contact spacing for the restored family pages. */
.sgf-navigation{position:relative;margin-inline:auto;color:#07142c}
.sgf-nav-menu>summary,.sgf-nav-topic>summary{display:flex;align-items:center;gap:9px;min-height:44px;box-sizing:border-box;cursor:pointer;list-style:none}
.sgf-navigation summary::-webkit-details-marker{display:none}
.sgf-nav-menu>summary{padding:0 10px;font-weight:650;white-space:nowrap}
.sgf-navigation summary::after{content:"";display:block;width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px}
.sgf-navigation details[open]>summary::after{transform:rotate(225deg);margin-top:5px}
.sgf-nav-panel{position:absolute;z-index:8;top:calc(100% + 6px);left:50%;transform:translateX(-50%);width:min(400px,72vw);max-height:65vh;max-height:min(65dvh,470px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:10px 14px;background:#fff;border:1px solid #e3e1db;border-radius:14px;box-shadow:0 12px 28px #07142c25;font-size:15px;line-height:1.35}
.sgf-nav-topic>summary{justify-content:space-between;padding:0 10px;font-weight:650}
.sgf-nav-topic+.sgf-nav-topic{border-top:1px solid #ece9e2}
.sgf-nav-topic[open]>summary{background:#f6f3ed;border-radius:8px}
.sgf-nav-panel ul{list-style:none;margin:0;padding:4px 0 8px 12px}
.sgf-nav-panel a{display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:6px 10px;border-radius:7px;color:#07142c;text-decoration:none}
.sgf-nav-panel a[aria-current]{background:#f6f3ed;text-decoration:underline;text-underline-offset:3px}
.sgf-nav-overview{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-top:1px solid #e3e1db;margin-top:3px;padding-top:3px;font-size:14px}
.sgf-navigation :is(summary,a):focus-visible{outline:2px solid #765e33;outline-offset:-2px;border-radius:7px}
@media(hover:hover){.sgf-navigation :is(summary,a):hover{background:#f6f3ed;border-radius:7px}}
.sgf-restored #sg-site-contacts .contacts__info .sg-contact-book{margin-top:18px;max-width:100%;box-sizing:border-box;text-align:center}
.sgf-status{padding:.4rem 0;margin:0;color:#07142c;font-size:.88rem}
@media(min-width:601px){
    .sgf-nav-panel{width:min(448px,72vw)}
    .sgf-nav-topic[open]>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px;padding-left:2px}
}
.sgf-restored #sg-family-landing-v2 .hero .sgf-divorce-heading>span{display:block;white-space:nowrap}
.sgf-restored #sg-family-landing-v2 .hero .sgf-divorce-heading>span:not(:last-child){color:inherit}
@media(max-width:600px){
    .sgf-restored #sg-family-landing-v2 .hero .sgf-divorce-heading{font-size:clamp(23px,7.3vw,39px)}
}
/* Keep the original logo, phone and messenger in view beside the shorter menu. */
@media(max-width:600px){
    .sgf-restored header.header .header__wrap{gap:6px;width:calc(100% - 24px);padding-inline:0}
    .sgf-restored header.header .header__right{gap:6px}
    .sgf-restored header.header .header__right .social{margin:0}
    .sgf-restored header.header .header__right .social img{width:24px;height:24px;min-width:24px}
    .sgf-restored header.header .header__contact .tel{font-size:clamp(12px,3.5vw,14px);white-space:nowrap}
    .sgf-restored header.header .header__wrap{position:relative}
    .sgf-navigation{position:static}
    .sgf-nav-menu>summary{padding-inline:3px;font-size:14px}
    .sgf-nav-panel{top:calc(100% + 6px);left:0;right:0;transform:none;width:auto;max-height:65vh;max-height:min(65dvh,460px)}
    .sgf-nav-overview{grid-template-columns:1fr;gap:0}
}
