/* 2NDNATURE New Header. Ported from the Claude Design "Homepage" header. */
.n2h, .n2h *, .n2h-scrim { box-sizing: border-box; }
.n2h {
	--n2h-navy: #0B3F5E; --n2h-sky: #46A0D8; --n2h-blue: #217CB6; --n2h-gray: #F4F6F8; --n2h-mid: #8A9BAD; --n2h-dark: #2D3E4E; --n2h-tint: rgba(70,160,216,.15);
	position: fixed; top: 0; left: 0; width: 100%; z-index: 9990;
	background: #fff; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: var(--n2h-dark);
	transition: box-shadow .3s cubic-bezier(.4,0,.2,1);
	line-height: 1.4; font-size: 14px;
}
.n2h-curve { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: 22px; display: block; z-index: 1; pointer-events: none; transition: filter .3s; }
.n2h.is-scrolled .n2h-curve { filter: drop-shadow(0 3px 3px rgba(0,0,0,.07)); }
.n2h.is-scrolled { box-shadow: 0 -2px 8px rgba(0,0,0,.0); }
.n2h a { text-decoration: none; }
.n2h button { font-family: inherit; }
.n2h [hidden], .n2h-scrim[hidden] { display: none !important; }

/* Hide the old theme header (kept in the DOM so old scripts keep working) */
body.n2h-on #header { display: none !important; }

/* Icons: Material Symbols. Fixed box prevents the ligature text flashing before the font loads. */
.n2h-i { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; width: 1em; height: 1em; overflow: hidden; white-space: nowrap; letter-spacing: normal; text-transform: none; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; direction: ltr; vertical-align: middle; flex-shrink: 0; }

/* Utility bar */
.n2h-util { background: var(--n2h-navy); }
.n2h-util-in { max-width: 1320px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; justify-content: flex-end; gap: 22px; position: relative; }
.n2h-util-btn, .n2h-util-btn-text { background: none; border: 0; cursor: pointer; display: flex; align-items: center; color: #fff; padding: 0; }
.n2h-util-btn .n2h-i { font-size: 19px; }
.n2h-util-link, .n2h .n2h-util-link { font-size: 13px; color: rgba(255,255,255,.85); }
.n2h-util-link:hover { color: #fff; }
.n2h-util-btn-text { gap: 3px; }
.n2h-util-btn-text .n2h-i { font-size: 16px; }
.n2h-signin-menu { position: absolute; top: 100%; right: 24px; margin-top: 2px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(11,63,94,.14); padding: 8px; min-width: 170px; z-index: 5; }
.n2h-signin-menu a { display: block; padding: 10px 12px; font-size: 14px; color: var(--n2h-dark); border-radius: 4px; }
.n2h-signin-menu a:hover { background: var(--n2h-gray); color: var(--n2h-navy); }
.n2h-search { background: #fff; border-top: 1px solid rgba(11,63,94,.08); }
.n2h-search-in { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px; }
.n2h-search-ico { color: var(--n2h-mid); font-size: 22px; }
.n2h-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--n2h-navy); background: transparent; box-shadow: none; height: auto; padding: 4px 0; }
.n2h-search-close { background: none; border: 0; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--n2h-mid); }

/* Main bar */
.n2h-bar { max-width: 1320px; margin: 0 auto; padding: 19px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: padding .3s cubic-bezier(.4,0,.2,1); }
.n2h.is-scrolled .n2h-bar { padding-top: 14px; padding-bottom: 14px; }
.n2h-logo { display: block; flex-shrink: 0; width: 154px; height: 24px; background-color: #217cb6; -webkit-mask: var(--n2h-logo) left center/cover no-repeat; mask: var(--n2h-logo) left center/cover no-repeat; transition: background-color .1s; }
.n2h-logo:hover, .n2h-logo:focus-visible { background-color: var(--n2h-navy); }
.n2h-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.n2h-nav li { margin: 0; padding: 0; }
.n2h-trigger { background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--n2h-navy) !important; padding: 9px 14px; border-radius: 4px; display: flex; align-items: center; gap: 4px; white-space: nowrap; line-height: 1.4; }
.n2h-trigger:hover, .n2h-trigger[aria-expanded="true"] { background: var(--n2h-gray); }
.n2h-trigger .n2h-i { font-size: 18px; }
.n2h-trigger[aria-expanded="true"] .n2h-chev { transform: rotate(180deg); }
.n2h-demo { font-weight: 400; font-size: 16px; padding: 12px 20px; line-height: 24px; white-space: nowrap; display: inline-flex; align-items: center; }
.n2h-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.n2h-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; color: var(--n2h-navy); }
.n2h-burger .n2h-i { font-size: 26px; }

/* Panels */
.n2h-panel { position: absolute; top: 100%; left: 0; right: 0; display: flex; justify-content: center; padding: 0 24px; pointer-events: none; z-index: 3; }
.n2h-panel-card { pointer-events: auto; margin-top: -6px; width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 20px 48px rgba(11,63,94,.18); overflow: hidden; display: flex; transform-origin: top center; animation: n2h-in .25s cubic-bezier(.16,1,.3,1) both; }
.n2h-panel--wide .n2h-panel-card { max-width: 1100px; }
.n2h-panel--medium .n2h-panel-card { max-width: 720px; }
.n2h-panel--compact .n2h-panel-card { max-width: 560px; }
.n2h-panel--narrow .n2h-panel-card { max-width: 280px; }
.n2h-panel--narrow { justify-content: flex-start; }
.n2h-panel--narrow .n2h-panel-main { padding: 12px 12px; gap: 0; }
.n2h-panel--narrow .n2h-links a, .n2h-panel--narrow .n2h-link { padding-top: 12px; padding-bottom: 12px; }
@keyframes n2h-in { from { opacity: 0; transform: scale(.98) translateY(-4px); } to { opacity: 1; transform: none; } }
.n2h-panel-main { flex: 1; padding: 32px 36px 28px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.n2h-panel--compact .n2h-panel-main { padding: 24px 28px; }
.n2h-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.n2h-col { min-width: 180px; flex: 1; }
.n2h-col:has(.n2h-links--grid) { flex: 2 1 340px; }
.n2h-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; font-style: italic; letter-spacing: .06em; color: var(--n2h-navy); margin-bottom: 14px; }
.n2h-links--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.n2h-link { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 4px; font-size: 16px; color: var(--n2h-dark) !important; transition: background .15s; }
.n2h-link:hover { background: var(--n2h-gray); color: var(--n2h-navy) !important; }
.n2h-chip { width: 26px; height: 26px; border-radius: 7px; background: var(--n2h-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.n2h-chip .n2h-i { font-size: 16px; color: var(--n2h-navy); }
.n2h-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.n2h-card { flex: 1 1 200px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--n2h-gray); border-radius: 8px; padding: 14px 18px; background: var(--n2h-gray); color: var(--n2h-navy) !important; font-weight: 600; font-size: 16px; transition: background .15s, color .15s; }
.n2h-card:hover { background: var(--n2h-navy); color: #fff !important; }
.n2h-card .n2h-i { font-size: 16px; }
.n2h-promo { flex: 0 0 290px; background: var(--n2h-gray); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid rgba(11,63,94,.08); }
.n2h-promo img { height: 39px; width: auto; align-self: flex-start; }
.n2h-promo p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--n2h-dark); }
.n2h-btn { font-weight: 400; font-size: 16px; padding: 12px 20px; line-height: 24px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 4px; }
/* Site-matching buttons: 12px radius, 2px border, water-wave fill on hover (same image and timing as .btn-rounded) */
.n2h-demo, .n2h-btn { border: 2px solid var(--n2h-blue); border-radius: 12px; background-color: var(--n2h-blue); background-image: var(--n2h-water, none); background-repeat: repeat-x; background-position: 0 -80%; color: #fff !important; transition: background-position 2.5s, border-color 2.5s, color 1s; }
.n2h-demo:hover, .n2h-demo:focus, .n2h-btn:hover, .n2h-btn:focus { background-position: 500% 100%; border-color: var(--n2h-navy); color: #fff !important; }
.n2h-btn--navy { border-color: var(--n2h-blue); }
.n2h-btn--ghost { background-color: transparent; border-color: var(--n2h-blue); color: var(--n2h-blue) !important; }
.n2h-btn--ghost:hover, .n2h-btn--ghost:focus { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .n2h-demo, .n2h-btn { transition: color .2s, background-color .2s, border-color .2s; background-image: none; } }
.n2h-btn .n2h-i { font-size: 16px; }
.n2h-scrim { position: fixed; left: 0; right: 0; bottom: 0; top: var(--n2h-h, 130px); z-index: 9980; background: rgba(8,24,38,.5); backdrop-filter: blur(3px); animation: n2h-fade .2s ease; pointer-events: none; }
@keyframes n2h-fade { from { opacity: 0; } to { opacity: 1; } }

/* Mobile */
.n2h-mobile { position: fixed; inset: 0; background: #fff; z-index: 9999; overflow-y: auto; padding: 16px 20px 40px; }
.n2h-mobile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.n2h-mobile-top .n2h-logo { width: 102px; height: 16px; }
.n2h-m-item { border-bottom: 1px solid var(--n2h-gray); }
.n2h-m-head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; cursor: pointer; padding: 16px 12px; font-weight: 600; font-size: 16px; color: var(--n2h-navy) !important; min-height: 44px; text-align: left; }
.n2h-m-head .n2h-i { font-size: 20px; }
.n2h-m-body { padding: 0 12px 16px 24px; display: flex; flex-direction: column; gap: 2px; }
.n2h-m-body a { padding: 10px 6px; font-size: 15px; color: var(--n2h-dark) !important; min-height: 44px; display: flex; align-items: center; }
.n2h-m-util { display: flex; flex-direction: column; margin-top: 16px; }
.n2h-m-sub { padding: 14px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--n2h-mid); }
.n2h-m-util a { padding: 12px; font-size: 15px; color: var(--n2h-dark) !important; }
body.n2h-lock { overflow: hidden; }

@media (max-width: 1039px) {
	.n2h-util, .n2h-nav, .n2h-scrim { display: none !important; }
	.n2h-burger { display: flex; }
	.n2h-bar { padding: 12px 16px; }
	.n2h.is-scrolled .n2h-bar { padding-top: 12px; padding-bottom: 12px; }
	.n2h-logo { width: 102px; height: 16px; }
	.n2h-curve { height: 14px; }
	.n2h-demo { font-size: 16px; padding: 8px 16px; font-weight: 400; }
}
/* Page offset: the old header was about 64px tall; this one is taller, so push page content down by the difference. */
body.n2h-on { padding-top: 82px; }
@media (max-width: 1039px) { body.n2h-on { padding-top: 18px; } }

/* Logged-in admins: sit below the WordPress admin bar */
body.admin-bar .n2h { top: 32px; }
body.admin-bar .n2h-scrim { top: calc(var(--n2h-h, 130px) + 32px); }
body.admin-bar .n2h-mobile { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .n2h { top: 46px; }
	body.admin-bar .n2h-mobile { top: 46px; }
}

@media (prefers-reduced-motion: reduce) { .n2h-panel-card, .n2h-scrim { animation: none; } }

/* Large screens: match the old header's 1440px+ type sizes (menu and button text 16px) */
@media (min-width: 1440px) {
	.n2h-trigger, .n2h-plain { font-size: 16px; padding: 10px 16px; }
	.n2h-trigger .n2h-i { font-size: 20px; }
	.n2h-util-link, .n2h .n2h-util-link, .n2h-util-btn-text { font-size: 14px; }
	.n2h-bar { max-width: 1440px; }
	body.n2h-on { padding-top: 88px; }
	.n2h-util-in { max-width: 1440px; }
}
