/* Shared public navigation and base styles. */
:root {
    --hip-ink: #123c48;
    --hip-teal: #006c6b;
    --hip-muted: #42616a;
    --hip-line: #c7dbd9;
    --hip-width: 1200px;
    --hip-gutter: clamp(20px, 4.8vw, 72px);
}
html { -webkit-text-size-adjust: 100%; }
body, body.page-uniform { background: white; color: var(--hip-ink); font: 1rem/1.55 var(--hip-font); }
body .site_container { max-width: none; padding: 0; }
body.page-home .site_container { background: white; }
body.page-home h1, body.page-home h2, body.page-home h3 { margin: 0; }
body h1, body h2, body h3, body h4, body h5,
body input, body textarea, body select, body button { font-family: var(--hip-font); }
body input, body select, body textarea { font-size: 1rem; }
body .page_layout p { font-size: 1rem; }
body :focus-visible { outline: 3px solid #b85009; outline-offset: 3px; }
body main:focus { outline: none; }
.hip-skip {
    position: absolute; top: 4px; left: 8px; z-index: 20; transform: translateY(-160%);
    padding: 10px 16px; border: 0; background: white; color: var(--hip-ink);
}
.hip-skip:focus { transform: none; }
.hip-header { position: relative; z-index: 5; background: white; border-bottom: 1px solid var(--hip-line); }
.hip-header-inner {
    width: min(var(--hip-width), calc(100% - 2 * var(--hip-gutter)));
    margin-inline: auto; box-sizing: border-box;
}
.hip-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; gap: 24px; }
.hip-brand, .hip-header nav a, .hip-header summary { border: 0; text-decoration: none; }
.hip-brand { display: inline-flex; align-items: center; }
.hip-brand img { display: block; width: clamp(145px, 15vw, 194px); height: auto; }
.hip-header nav a, .hip-header summary { font: 600 1rem/1.35 var(--hip-font); color: var(--hip-ink); }
.hip-desktop-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); }
.hip-desktop-nav > a, .hip-header summary { padding: 12px 3px; }
.hip-header nav a:hover, .hip-header summary:hover, .hip-header nav a[aria-current] { color: var(--hip-teal); text-decoration: underline; text-underline-offset: 4px; }
.hip-nav-group:has([aria-current]) > summary { color: var(--hip-teal); text-decoration: underline; text-underline-offset: 4px; }
.hip-header summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.hip-header summary::-webkit-details-marker { display: none; }
.hip-nav-group { position: relative; }
.hip-nav-group > summary::after {
    content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
}
.hip-nav-group[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.hip-nav-flyout, .hip-mobile-nav > nav {
    background: white; border: 1px solid var(--hip-line); border-radius: 8px; box-shadow: 0 10px 26px #0d333517;
}
.hip-nav-flyout { position: absolute; top: 100%; right: 0; min-width: 190px; padding: 6px; }
.hip-nav-flyout a, .hip-mobile-nav nav a { display: block; padding: 10px 14px; }
.hip-header a.hip-portal-link { padding: 10px 19px; border: 1px solid #0f6467; color: #0b5c62; border-radius: 6px; }
.hip-mobile-nav { display: none; }
@media (max-width: 880px) {
    .hip-header-inner { min-height: 70px; }
    .hip-desktop-nav { display: none; }
    .hip-mobile-nav { display: block; }
    .hip-mobile-nav > summary { min-height: 44px; padding: 0 12px; border: 1px solid var(--hip-line); border-radius: 6px; }
    .hip-menu-icon { width: 16px; height: 10px; border-block: 2px solid currentColor; position: relative; }
    .hip-menu-icon::after { content: ""; position: absolute; inset: 4px 0 auto; height: 2px; background: currentColor; }
    .hip-mobile-nav > nav {
        position: absolute; inset: 100% var(--hip-gutter) auto; padding: 6px;
        max-height: 74vh; overflow-y: auto; overscroll-behavior: contain;
    }
    .hip-mobile-nav > nav a { min-height: 44px; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
