/* All Rainham navigation presentation lives here. */
.rnv,.rnv *{box-sizing:border-box!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
.rnv{position:relative;z-index:30;width:100%;max-width:1240px;margin:0 auto!important;padding:24px 40px 0!important;color:#263e50;font-size:12px;line-height:1.5;text-transform:uppercase}
.rnv .rnv-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;width:100%;padding:15px 26px;border:1px solid #ffffff99;border-radius:22px;background:rgba(250,252,255,.8);box-shadow:0 8px 40px #0f1d2b1a,inset 0 1px 0 #ffffffa0;backdrop-filter:blur(30px) saturate(150%);-webkit-backdrop-filter:blur(30px) saturate(150%)}
.rnv a{text-decoration:none!important;color:#263e50}
.rnv .rnv-brand{display:flex;align-items:center;font-size:15.2px!important;font-weight:600!important;letter-spacing:.015em;line-height:1.2}
.rnv .rnv-logo{display:block;width:auto;max-width:200px;height:46px;object-fit:contain;border-radius:12px}
.rnv .rnv-links{display:flex;align-items:center;gap:30px;margin:0!important;padding:0!important;list-style:none!important}
.rnv .rnv-links li{margin:0!important;padding:0!important;list-style:none!important}
.rnv .rnv-links li>a{display:block;font-size:11px!important;font-weight:500!important;line-height:1.5!important;letter-spacing:.08em!important;text-transform:uppercase;-webkit-font-smoothing:antialiased}
.rnv .rnv-links li.rainham-nav-safeguarding>a,.rnv .rnv-links li.rainham-nav-highlight>a{color:#be703e!important;font-weight:800!important}
.rnv .rnv-links li.rainham-nav-plain>a{color:#263e50!important;font-weight:500!important}
.rnv .rnv-toggle{display:none;appearance:none;border:0!important;background:transparent!important;color:#263e50!important;box-shadow:none!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;letter-spacing:.08em!important;text-transform:uppercase;padding:10px!important;min-height:44px;cursor:pointer;border-radius:0}
.rnv :focus-visible{outline:3px solid #be703e;outline-offset:4px}
@media(max-width:800px){.rnv{padding:16px 20px 0!important}}
@media(max-width:1024px){.rnv .rnv-bar{padding:13px 16px;gap:0;border-radius:18px}.rnv .rnv-brand{font-size:12.8px!important}.rnv .rnv-logo{height:38px;max-width:170px}.rnv .rnv-toggle{display:block}.rnv .rnv-nav{display:none;width:100%}.rnv .rnv-nav.is-open{display:block}.rnv .rnv-links{flex-direction:column;align-items:flex-start;gap:10px;padding:16px 0!important;width:100%}.rnv .rnv-links li>a{padding:8px 0;min-height:32px}}
@media(prefers-reduced-transparency:reduce){.rnv .rnv-bar{background:#f6f3ec;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* One container scale for navigation and safeguarding banners. */
:root{--rainham-container-width:1240px;--rainham-container-gutter:40px}
.rnv{max-width:var(--rainham-container-width)!important;padding-left:var(--rainham-container-gutter)!important;padding-right:var(--rainham-container-gutter)!important}
body.rsg-page .rsg-shell{width:100%;max-width:var(--rainham-container-width)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--rainham-container-gutter)!important;padding-right:var(--rainham-container-gutter)!important;box-sizing:border-box}
@media(max-width:800px){:root{--rainham-container-gutter:20px}}

.rnv .rnv-brand{flex-shrink:0;white-space:nowrap}.rnv .rnv-bar{flex-wrap:nowrap}@media(max-width:1024px){.rnv .rnv-bar{flex-wrap:wrap}.rnv .rnv-toggle{margin-left:auto}}

@media(min-width:1025px) and (max-width:1100px){.rnv .rnv-bar{gap:14px;padding:15px 18px}.rnv .rnv-links{gap:14px}.rnv .rnv-links li>a{font-size:9px!important;letter-spacing:.025em!important}.rnv .rnv-brand{font-size:13px!important}.rnv .rnv-logo{max-width:130px;height:38px}}

.rnv .rnv-links li.current-menu-item>a,.rnv .rnv-links li.current_page_item>a{color:#be703e!important;font-weight:800!important}
/* Shared hover and active states across every Rainham page. */
.rnv .rnv-links li>a:hover,.rnv .rnv-links li>a:focus-visible{font-weight:800!important}
.rnv .rnv-links li>a[aria-current="page"],.rnv .rnv-links li.current-menu-item>a,.rnv .rnv-links li.current_page_item>a{font-weight:800!important;color:#be703e!important}
/* Faith content uses the same outer width and gutters as the shared navigation. */
body.rfa-page main{width:100%!important;max-width:var(--rainham-container-width)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--rainham-container-gutter)!important;padding-right:var(--rainham-container-gutter)!important;box-sizing:border-box}

/* The static homepage menu overlays its content rather than increasing page height. */
@media(max-width:1024px){body.rh-page .rnv .rnv-nav.is-open{position:absolute;top:calc(100% + 8px);left:20px;right:20px;width:auto;max-height:calc(100dvh - 130px);overflow-y:auto;padding:18px 20px;border-radius:18px;background:#f8fbfff5;box-shadow:0 15px 40px #14223040}}

/* Every phone orientation uses one shared dropdown mode. */
@media(max-width:1024px),(pointer:coarse),(hover:none){
.rnv .rnv-bar{flex-wrap:wrap!important;gap:0!important;padding:13px 16px!important;border-radius:18px!important}
.rnv .rnv-brand{font-size:12.8px!important;flex:0 1 auto;min-width:0}
.rnv .rnv-logo{height:38px!important;max-width:170px!important}
.rnv .rnv-toggle{display:block!important;visibility:visible!important;opacity:1!important;flex:0 0 auto;margin-left:auto!important;position:relative!important;width:auto!important;min-width:54px;min-height:44px!important}
.rnv .rnv-nav{display:none!important;width:100%!important}
.rnv .rnv-nav.is-open{display:block!important}
.rnv .rnv-links{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;padding:16px 0!important;width:100%!important}
.rnv .rnv-nav .rnv-links li>a{font-size:11px!important;letter-spacing:.08em!important;padding:8px 0;min-height:32px}
}


.rnv.rnv-mobile .rnv-bar{flex-wrap:wrap!important;gap:0!important;padding:13px 16px!important;border-radius:18px!important}
.rnv.rnv-mobile .rnv-brand{font-size:12.8px!important;flex:0 1 auto;min-width:0}
.rnv.rnv-mobile .rnv-logo{height:38px!important;max-width:170px!important}
.rnv.rnv-mobile .rnv-toggle{display:block!important;visibility:visible!important;opacity:1!important;flex:0 0 auto;margin-left:auto!important;position:relative!important;width:auto!important;min-width:54px;min-height:44px!important}
.rnv.rnv-mobile .rnv-nav{display:none!important;width:100%!important}
.rnv.rnv-mobile .rnv-nav.is-open{display:block!important}
.rnv.rnv-mobile .rnv-links{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;padding:16px 0!important;width:100%!important}
.rnv.rnv-mobile .rnv-nav .rnv-links li>a{font-size:11px!important;letter-spacing:.08em!important;padding:8px 0;min-height:32px}


body.rh-page .rnv.rnv-mobile .rnv-nav.is-open{position:absolute;top:calc(100% + 8px);left:20px;right:20px;width:auto!important;max-height:calc(100dvh - 130px);overflow-y:auto;padding:18px 20px;border-radius:18px;background:#f8fbfff5;box-shadow:0 15px 40px #14223040}

/* Every mobile page gets the same available menu space, overriding page-local caps. */
.rnv.rnv-mobile .rnv-nav.is-open{position:absolute!important;top:calc(100% + 8px)!important;left:var(--rainham-container-gutter,20px)!important;right:var(--rainham-container-gutter,20px)!important;width:auto!important;max-height:var(--rnv-menu-room,calc(100dvh - 110px))!important;overflow-y:auto!important;overscroll-behavior:contain;padding:12px 18px!important;border-radius:18px;background:#f8fbfff5;box-shadow:0 15px 40px #14223040}
.rnv.rnv-mobile .rnv-nav .rnv-links{gap:4px!important;padding:0!important}
.rnv.rnv-mobile .rnv-nav .rnv-links li{width:100%}
.rnv.rnv-mobile .rnv-nav .rnv-links li>a{min-height:44px;display:flex;align-items:center}
/* Shared dropdowns for grouped WordPress navigation. */
.rnv .rnv-links li.rnv-has-submenu{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:0}
.rnv .rnv-group-heading{cursor:pointer;display:flex!important;align-items:center;gap:7px}
.rnv .rnv-chevron{font-size:15px;line-height:1;letter-spacing:0}
.rnv .rnv-submenu-toggle{appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;min-height:36px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#365e84!important;font:16px var(--rainham-font)!important;cursor:pointer}
.rnv .rnv-submenu-open>.rnv-group-heading .rnv-chevron,.rnv .rnv-submenu-open>.rnv-submenu-toggle>span{transform:rotate(180deg)}
.rnv .sub-menu{position:absolute;top:100%;left:0;z-index:35;min-width:230px;width:max-content;max-width:min(330px,calc(100vw - 40px));margin:0!important;padding:10px!important;list-style:none!important;border:1px solid #d3e0e9;border-radius:16px;background:#f8fbfffa;box-shadow:0 14px 30px #263e5026;backdrop-filter:blur(18px)}
.rnv .sub-menu[hidden]{display:none!important}
.rnv .sub-menu:not([hidden]){display:flex!important;flex-direction:column!important;align-items:stretch;gap:3px}
.rnv .sub-menu li{width:100%}
.rnv .sub-menu li>a{flex:1;min-width:0;padding:11px 12px!important;min-height:42px;border-radius:10px;white-space:normal;overflow-wrap:break-word}
.rnv .sub-menu li>a:hover{background:#e8f0f7}
.rnv .sub-menu .sub-menu{top:0;left:100%}
.rnv .sub-menu.rnv-align-right{left:auto;right:0}
.rnv .sub-menu .sub-menu.rnv-align-right{right:100%;left:auto}
.rnv .rnv-links li:is(.current-menu-ancestor,.current-menu-parent,.current_page_ancestor)>a,.rnv .rnv-links li:is(.current-menu-ancestor,.current-menu-parent)>.rnv-submenu-toggle{color:#be703e!important;font-weight:800!important}
.rnv.rnv-mobile .rnv-nav .rnv-links li.rnv-has-submenu{display:flex;align-items:center;flex-wrap:wrap}
.rnv.rnv-mobile .rnv-nav .rnv-links li.rnv-has-submenu>a{flex:1}
.rnv.rnv-mobile .rnv-submenu-toggle{min-width:44px;min-height:44px;flex-basis:44px}
.rnv.rnv-mobile .rnv-nav .sub-menu{position:static!important;flex:0 0 100%;min-width:0!important;width:100%!important;max-width:100%!important;margin:3px 0 8px!important;padding:6px 8px!important;background:#eaf1f7;border:1px solid #d4e0e9;border-radius:12px;box-shadow:none;backdrop-filter:none}
.rnv.rnv-mobile .rnv-nav .sub-menu .sub-menu{background:#f8fbff}
.rnv.rnv-mobile .rnv-nav .sub-menu li>a{padding:10px 12px!important;min-height:44px}
.rnv .sub-menu:not([hidden]){visibility:visible!important;opacity:1!important;transform:none!important}
.rnv:not(.rnv-mobile) .rnv-bar,.rnv:not(.rnv-mobile) .rnv-nav{overflow:visible!important}

/* Active page and every parent heading share the same bold orange state. */
.rnv .rnv-nav .rnv-links li.rnv-active-ancestor>a,.rnv .rnv-nav .rnv-links li.rnv-current-item>a{font-weight:800!important;color:#be703e!important}
.rnv .rnv-chevron,.rnv .rnv-submenu-toggle{display:none!important}
