/* Plugin site header. Self-contained (does not need ui.css). */
.opin-site-header, .opin-site-header *, .opin-site-header *::before, .opin-site-header *::after { box-sizing: border-box; }
.opin-site-header ul, .opin-site-header li { margin: 0; padding: 0; list-style: none; }
.opin-site-header {
    position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 900;
    display: block; width: 100%; margin: 0;
    font-family: var(--opin-font, "Figtree", Arial, sans-serif); font-size: 15px; line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}
.opin-site-header + * { margin-block-start: 0; }
.opin-header-bar {
    background: #fff; border-bottom: 1px solid #E6E4E0; height: 64px;
    transition: box-shadow .2s ease;
}
.opin-site-header.is-scrolled .opin-header-bar { box-shadow: 0 2px 12px rgba(30, 30, 30, .08); }
.opin-header-inner {
    max-width: 1248px; height: 100%; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.opin-site-header a { text-decoration: none; }
.opin-site-header a:focus-visible, .opin-site-header button:focus-visible { outline: 3px solid #354D73; outline-offset: 3px; border-radius: 4px; }

.opin-skip-link {
    position: absolute; left: 16px; top: 0; transform: translateY(-120%);
    background: #354D73; color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; font-weight: 600; z-index: 2;
}
.opin-skip-link:focus { transform: translateY(0); color: #fff; }

.opin-header-brand { display: flex; align-items: center; gap: 14px; color: #1E1E1E; min-width: 0; }
.opin-header-logo { display: block; height: 32px; width: auto; }
.opin-header-divider { display: block; width: 1px; height: 28px; background: #E6E4E0; flex: none; }
.opin-header-wordmark { font-weight: 600; font-size: 17px; line-height: 1.2; color: #1E1E1E; white-space: nowrap; }

.opin-header-toggle {
    display: none; width: 44px; height: 44px; padding: 0; margin: 0 -8px 0 0; border: 0; background: transparent; cursor: pointer; border-radius: 8px;
    align-items: center; justify-content: center; color: #1E1E1E;
}
.opin-header-toggle-bars, .opin-header-toggle-bars::before, .opin-header-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s ease, background .2s ease;
}
.opin-header-toggle-bars { position: relative; }
.opin-header-toggle-bars::before { position: absolute; top: -7px; left: 0; }
.opin-header-toggle-bars::after { position: absolute; top: 7px; left: 0; }
.opin-header-toggle[aria-expanded="true"] .opin-header-toggle-bars { background: transparent; }
.opin-header-toggle[aria-expanded="true"] .opin-header-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.opin-header-toggle[aria-expanded="true"] .opin-header-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.opin-header-nav { display: flex; align-items: center; gap: 28px; }
.opin-header-list { display: flex; align-items: center; gap: 28px; }
.opin-header-link {
    position: relative; display: inline-block; padding: 8px 0; font-weight: 500; font-size: 15px; color: #2D2D2D; transition: color .15s ease;
}
.opin-header-link:hover { color: #C2410C; }
.opin-header-link.is-current { color: #1E1E1E; }
.opin-header-link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #F26C3F; }
.opin-header-cta {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
    border: 1.5px solid #354D73; border-radius: 999px; color: #354D73; background: transparent; font-weight: 600; font-size: 15px;
    transition: background .15s ease, color .15s ease;
}
.opin-header-cta:hover, .opin-header-cta:focus-visible { background: #354D73; color: #fff; }

@media (min-width: 900px) {
    .opin-header-bar { height: 72px; }
}
@media (max-width: 899px) {
    .opin-site-header.is-js .opin-header-toggle { display: inline-flex; }
    .opin-site-header.is-js .opin-header-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 20px; padding: 12px 24px 28px;
        background: #fff; border-bottom: 1px solid #E6E4E0; box-shadow: 0 12px 24px rgba(30, 30, 30, .08);
        max-height: calc(100vh - 64px - var(--wp-admin--admin-bar--height, 0px)); overflow-y: auto;
    }
    .opin-site-header.is-js.is-open .opin-header-nav { display: flex; }
    .opin-site-header.is-js .opin-header-list { flex-direction: column; align-items: stretch; gap: 0; }
    .opin-site-header.is-js .opin-header-list li { border-bottom: 1px solid #F0EEEA; }
    .opin-site-header.is-js .opin-header-link { display: block; padding: 16px 0; font-size: 20px; }
    .opin-site-header.is-js .opin-header-link.is-current::after { left: 0; right: auto; width: 32px; bottom: 10px; }
    .opin-site-header.is-js .opin-header-cta { min-height: 52px; font-size: 17px; }
    /* Without JS the menu stays visible under the bar. */
    .opin-site-header:not(.is-js) .opin-header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
    .opin-site-header:not(.is-js) .opin-header-bar { height: auto; }
    .opin-site-header:not(.is-js) .opin-header-nav, .opin-site-header:not(.is-js) .opin-header-list { flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 380px) {
    .opin-header-wordmark { font-size: 16px; }
    .opin-header-brand { gap: 10px; }
}
html.opin-nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .opin-header-bar, .opin-header-toggle-bars, .opin-header-toggle-bars::before, .opin-header-toggle-bars::after { transition: none; } }
