/* ═══════════════════════════════════════════════════════════
   HEADER V3 — Section Icon Navigation
   Single primary bar + section sub-nav
   ═══════════════════════════════════════════════════════════ */

/* ─── Primary Bar ─────────────────────────────────────────── */
.pb-header--v3 {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.pb-header-v3__primary {
	background: #2c3e5a;
	overflow-x: clip;
	max-width: var(--pb-site-container-width, 1400px);
	margin-left: auto;
	margin-right: auto;
}

.pb-header-v3__inner {
	max-width: var(--pb-site-container-width, 1400px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	padding: 0 var(--pb-site-container-padding, 2rem);
	height: 82px;
}

/* ─── Logo ─────────────────────────────────────────────────── */
.pb-header-v3__logo {
	flex-shrink: 0;
	margin-right: 2.5rem;
}

.pb-header-v3__logo .pb-logo {
	display: block;
	text-decoration: none;
	line-height: 0;
}

.pb-header-v3__logo .pb-logo__img {
	display: block;
	height: 82px;
	width: auto;
}

/* Inline SVG hex-mark variant (.pb-logo--default) */
.pb-header-v3__logo .pb-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pb-header-v3__logo .pb-logo__hex {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.pb-header-v3__logo .pb-logo__hex svg {
	width: 38px;
	height: 32px;
	display: block;
}

.pb-header-v3__logo .pb-logo__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.pb-header-v3__logo .pb-logo__name {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.08em;
	white-space: nowrap;
	line-height: 1.1;
}

.pb-header-v3__logo .pb-logo__perfect { color: #F6A722; }
.pb-header-v3__logo .pb-logo__bee     { color: #fff; }

.pb-header-v3__logo .pb-logo__subtitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 7.5px;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1;
}

/* ─── Section Icons (desktop — natural width, does not flex-grow) ── */
.pb-header-v3__sections {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

/* Section icon buttons — inherit base styling from section-nav.css
   but here they sit in the primary bar context */
.pb-header-v3__sections .pb-section-nav__item {
	/* Uses styles from section-nav.css */
}

/* ─── Right-side Utilities ─────────────────────────────────── */
.pb-header-v3__right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
	justify-content: flex-end;
}

/* About · Contact (subtle, de-emphasized) */
.pb-header-v3__utility-links {
	display: flex;
	align-items: center;
	gap: 0;
	margin-right: 0.5rem;
}

.pb-header-v3__utility-link {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	padding: 4px 8px;
	transition: color 0.2s;
}

.pb-header-v3__utility-link:hover {
	color: rgba(255,255,255,0.85);
}

.pb-header-v3__utility-sep {
	color: rgba(255,255,255,0.2);
	font-size: 11px;
	user-select: none;
}

/* Utility link highlight styles */
.pb-header-v3__utility-link--bold {
	color: rgba(255,255,255,0.85);
	font-weight: 700;
}
.pb-header-v3__utility-link--gold {
	color: #d4a017;
}
.pb-header-v3__utility-link--gold:hover {
	color: #e8b820;
}
.pb-header-v3__utility-link--pill {
	background: #e53e3e;
	color: #fff;
	font-weight: 600;
	border-radius: 6px;
	padding: 4px 10px;
}
.pb-header-v3__utility-link--pill:hover {
	background: #c53030;
	color: #fff;
}
.pb-header-v3__utility-link--underline {
	color: rgba(255,255,255,0.7);
	border-bottom: 2px solid #d4a017;
}

/* About / Contact icon links */
.pb-header-v3__icon-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: rgba(255,255,255,0.7);
	transition: color 0.2s;
	text-decoration: none;
}
.pb-header-v3__icon-link:hover { color: #fff; }
.pb-header-v3__icon-link svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Search button */
.pb-header-v3__search {
	background: none;
	border: none;
	color: rgba(255,255,255,0.7);
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}

.pb-header-v3__search:hover {
	color: #fff;
}

.pb-header-v3__search .pb-icon {
	color: rgba(255,255,255,0.7);
	stroke: rgba(255,255,255,0.7);
	width: 18px;
	height: 18px;
}

.pb-header-v3__search:hover .pb-icon {
	color: #fff;
	stroke: #fff;
}

/* Cart */
.pb-header-v3__cart {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 4px;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.2s;
}

.pb-header-v3__cart:hover {
	color: #fff;
}

/* Extra breathing room between contact icon and cart */
.pb-header-v3__icon-link + .pb-header-v3__cart {
	margin-left: 0.5rem;
}

.pb-header-v3__cart .pb-icon {
	color: rgba(255,255,255,0.7);
	stroke: rgba(255,255,255,0.7);
	width: 18px;
	height: 18px;
}

.pb-header-v3__cart:hover .pb-icon {
	color: #fff;
	stroke: #fff;
}

/* Prevent Bricks/WooCommerce global price styles from bleeding into the header cart total */
.pb-header-v3__cart .woocommerce-Price-amount.amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

/* Sign In button */
.pb-header-v3__signin {
	flex-shrink: 0;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 14px;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 6px;
	transition: all 0.2s;
}

.pb-header-v3__signin:hover {
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.5);
}

/* User menu (reuses V2 dropdown styles from header.css) */
.pb-header--v3 .pb-user-menu__toggle {
	background: none;
	border: none;
	color: rgba(255,255,255,0.85);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
}

.pb-header--v3 .pb-user-menu__toggle:hover {
	color: #fff;
}

.pb-header--v3 .pb-user-menu__toggle .pb-icon {
	color: rgba(255,255,255,0.85);
	stroke: rgba(255,255,255,0.85);
	width: 22px;
	height: 22px;
}

/* Hamburger (mobile only) */
.pb-header-v3__hamburger {
	display: none;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 6px;
	margin-right: 8px;
}

.pb-header-v3__hamburger svg {
	width: 24px;
	height: 24px;
}


/* ═══════════════════════════════════════════════════════════
   SEARCH — text input + popup
   ═══════════════════════════════════════════════════════════ */

/* Variables used by the popup (not defined globally outside bb-internal) */
#pbSearchPop {
	--color-border:         #e5e7eb;
	--color-text-secondary: #4b5563;
	--color-text-tertiary:  #9ca3af;
	--color-bg-secondary:   #f3f4f6;
	--pbh-navy:             #152f5e;
	--sb:                   #F6A722;
}

/* Search input wrapper */
.pb-search-wrap {
	position: relative;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
	padding: 0 1.5rem;
}

.pb-search-wrap .pb-headsearch {
	max-width: 360px;
	width: 100%;
}

.pb-headsearch {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	padding: 0 14px;
	height: 36px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	transition: background .15s, border-color .15s;
}

.pb-headsearch:focus-within {
	background: #fff;
	border-color: #fff;
}

.pb-headsearch svg {
	width: 15px;
	height: 15px;
	color: rgba(255, 255, 255, .65);
	flex-shrink: 0;
	margin-right: 9px;
}

.pb-headsearch:focus-within svg {
	color: #152f5e;
}

.pb-headsearch input {
	flex: 1;
	border: none;
	background: none;
	outline: none;
	color: #fff;
	font-size: 13px;
	font-family: inherit;
	min-width: 0;
}

.pb-headsearch:focus-within input {
	color: #152f5e;
}

.pb-headsearch input::placeholder {
	color: rgba(255, 255, 255, .5);
}

.pb-headsearch:focus-within input::placeholder {
	color: #9ca3af;
}

/* Popup */
.pb-searchpop[hidden] { display: none !important; }
.pb-searchpop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 820px;
	max-width: calc(100vw - 40px);
	max-height: 640px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 12px 36px rgba(10, 26, 58, .25), 0 4px 10px rgba(10, 26, 58, .08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1100;
}

/* Tabs */
.pb-searchpop__tabs {
	display: flex;
	gap: 2px;
	padding: 10px 14px 0;
	border-bottom: 1px solid var(--color-border);
}

.pb-searchpop__tab {
	position: relative;
	background: none;
	border: none;
	padding: 8px 14px 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-text-secondary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.pb-searchpop__tab:hover { color: var(--pbh-navy); }

.pb-searchpop__tab.is-active {
	color: var(--sb);
	font-weight: 700;
}

.pb-searchpop__tab.is-active::after {
	content: "";
	position: absolute;
	left: 8px; right: 8px;
	bottom: -1px;
	height: 2px;
	background: var(--sb);
	border-radius: 1px;
}

.pb-searchpop__tab__count {
	font-size: 10px;
	font-weight: 600;
	background: var(--color-bg-secondary, #f3f4f6);
	color: var(--color-text-tertiary);
	padding: 1px 6px;
	border-radius: 999px;
}

.pb-searchpop__tab.is-active .pb-searchpop__tab__count {
	background: rgba(246, 167, 34, .14);
	color: var(--sb);
}

/* Scroll area — two-column grid on desktop */
.pb-searchpop__scroll {
	overflow-y: auto;
	flex: 1;
	padding: 8px 12px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 8px;
	align-content: start;
}

@media (max-width: 600px) {
	.pb-searchpop__scroll { grid-template-columns: 1fr; }
}

.pb-searchpop__group {
	padding: 4px 0;
	/* span both columns so the group label + its items stay together */
	grid-column: 1 / -1;
}

.pb-searchpop__group + .pb-searchpop__group {
	border-top: 1px solid var(--color-border);
	margin-top: 4px;
}

/* Items inside a group: re-enter a 2-col sub-grid */
.pb-searchpop__group .pb-searchpop__label {
	grid-column: 1 / -1;
}

.pb-searchpop__group-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

@media (max-width: 600px) {
	.pb-searchpop__group-items { grid-template-columns: 1fr; }
}

.pb-searchpop__label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--color-text-tertiary);
	padding: 10px 16px 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pb-searchpop__label__count {
	font-weight: 600;
	color: var(--color-text-tertiary);
	opacity: .8;
}

/* Result items */
.pb-searchpop__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: background .1s;
}

.pb-searchpop__item:hover,
.pb-searchpop__item.is-highlight {
	background: rgba(246, 167, 34, .08);
}

.pb-searchpop__icon {
	width: 44px; height: 44px;
	flex-shrink: 0;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	overflow: hidden;
}

.pb-searchpop__body { flex: 1; min-width: 0; }

.pb-searchpop__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--pbh-navy);
	line-height: 1.3;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pb-searchpop__meta {
	font-size: 11px;
	color: var(--color-text-tertiary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Footer */
.pb-searchpop__foot {
	padding: 8px 14px;
	border-top: 1px solid var(--color-border);
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	color: var(--color-text-tertiary);
	gap: 10px;
}

.pb-searchpop__hints {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pb-searchpop__hint {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pb-searchpop__kbd {
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 10px;
	font-weight: 600;
	background: #e5e7eb;
	color: #374151;
	padding: 2px 5px;
	border-radius: 4px;
}

.pb-searchpop__all {
	font-size: 12px;
	font-weight: 600;
	color: var(--pbh-navy);
	text-decoration: none;
	white-space: nowrap;
}

.pb-searchpop__all:hover {
	color: var(--sb);
}

/* Hide at ≤1024px (drawer takes over nav, search input hidden) */
@media (max-width: 1024px) {
	.pb-search-wrap {
		display: none;
	}
}

/* ═══════════════════════════════════════════════════════════
   MOBILE DRAWER — Section-based Accordion
   ═══════════════════════════════════════════════════════════ */

.pb-v3-drawer__backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	z-index: 1099;
}

.pb-v3-drawer__backdrop.is-visible {
	display: block;
}

.pb-v3-drawer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 340px;
	max-width: 85vw;
	height: 100vh;
	background: #fff;
	z-index: 1100;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.pb-v3-drawer.is-open {
	transform: translateX(0);
}

/* Drawer Header */
.pb-v3-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: #2c3e5a;
}

.pb-v3-drawer__logo .pb-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	line-height: 1;
}

.pb-v3-drawer__logo .pb-logo__hex {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.pb-v3-drawer__logo .pb-logo__hex svg {
	width: 28px;
	height: 32px;
	display: block;
}

.pb-v3-drawer__logo .pb-logo__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.pb-v3-drawer__logo .pb-logo__name {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.pb-v3-drawer__logo .pb-logo__perfect {
	color: #f5a623;
}

.pb-v3-drawer__logo .pb-logo__bee {
	color: #fff;
}

.pb-v3-drawer__logo .pb-logo__subtitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 7px;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1;
}

.pb-v3-drawer__close {
	background: none;
	border: none;
	color: rgba(255,255,255,0.7);
	cursor: pointer;
	padding: 4px;
}

.pb-v3-drawer__close svg {
	width: 24px;
	height: 24px;
}

/* ─── Section Accordion ───────────────────────────────────── */
.pb-v3-drawer__section {
	border-bottom: 1px solid #eee;
}

.pb-v3-drawer__trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 14px 1.25rem;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s;
}

.pb-v3-drawer__trigger:hover {
	background: #f8f8f8;
}

.pb-v3-drawer__trigger-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	flex-shrink: 0;
}

.pb-v3-drawer__trigger-icon svg {
	width: 20px;
	height: 20px;
}

/* Per-section icon colors */
.pb-v3-drawer__section[data-section="learn"] .pb-v3-drawer__trigger-icon {
	color: #5ba8d4;
	background: #eef7fc;
}

.pb-v3-drawer__section[data-section="store"] .pb-v3-drawer__trigger-icon {
	color: #5fb35d;
	background: #eef8ee;
}

.pb-v3-drawer__section[data-section="academy"] .pb-v3-drawer__trigger-icon {
	color: #d48e1e;
	background: #fdf5e8;
}

.pb-v3-drawer__section[data-section="colony"] .pb-v3-drawer__trigger-icon {
	color: #a96ec0;
	background: #f5eef8;
}

/* Active section indicator */
.pb-v3-drawer__section.is-active .pb-v3-drawer__trigger {
	position: relative;
}

.pb-v3-drawer__section.is-active .pb-v3-drawer__trigger::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 3px;
	border-radius: 0 3px 3px 0;
}

.pb-v3-drawer__section[data-section="learn"].is-active .pb-v3-drawer__trigger::before {
	background: #5ba8d4;
}

.pb-v3-drawer__section[data-section="store"].is-active .pb-v3-drawer__trigger::before {
	background: #5fb35d;
}

.pb-v3-drawer__section[data-section="academy"].is-active .pb-v3-drawer__trigger::before {
	background: #d48e1e;
}

.pb-v3-drawer__section[data-section="colony"].is-active .pb-v3-drawer__trigger::before {
	background: #a96ec0;
}

/* Chevron */
.pb-v3-drawer__chevron {
	width: 16px;
	height: 16px;
	margin-left: auto;
	color: #aaa;
	transition: transform 0.2s;
}

.pb-v3-drawer__section.is-expanded .pb-v3-drawer__chevron {
	transform: rotate(180deg);
}

/* Content (collapsed by default) */
.pb-v3-drawer__content {
	display: none;
	padding: 0 1.25rem 1rem 1.25rem;
}

.pb-v3-drawer__section.is-expanded .pb-v3-drawer__content {
	display: block;
}

/* Sub-section accordion (children with grandchildren) */
.pb-v3-drawer__sub-section {
	border-top: 1px solid #f0f0f0;
	margin-top: 2px;
}

.pb-v3-drawer__sub-section:first-child {
	border-top: none;
	margin-top: 0;
}

.pb-v3-drawer__sub-trigger {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 8px 10px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	cursor: pointer;
	text-align: left;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}

.pb-v3-drawer__sub-trigger:hover {
	background: #f5f5f5;
	color: #555;
}

.pb-v3-drawer__sub-chevron {
	width: 14px;
	height: 14px;
	margin-left: auto;
	flex-shrink: 0;
	transition: transform 0.2s;
}

.pb-v3-drawer__sub-section.is-expanded .pb-v3-drawer__sub-chevron {
	transform: rotate(180deg);
}

.pb-v3-drawer__sub-content {
	display: none;
	padding-bottom: 4px;
}

.pb-v3-drawer__sub-section.is-expanded .pb-v3-drawer__sub-content {
	display: block;
}

/* Group titles */
.pb-v3-drawer__group-title {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
	margin: 0.75rem 0 0.4rem 0;
	text-decoration: none;
}

a.pb-v3-drawer__group-title:hover {
	color: #555;
}

.pb-v3-drawer__group-title:first-child {
	margin-top: 0;
}

/* Links */
.pb-v3-drawer__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	color: #555;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	border-radius: 6px;
	transition: background 0.15s;
}

.pb-v3-drawer__link:hover {
	background: #f5f5f5;
	color: #111;
}

/* Drawer link highlight styles */
.pb-v3-drawer__link--bold { font-weight: 700; }
.pb-v3-drawer__link--gold { color: #b8860b; }
.pb-v3-drawer__link--pill {
	background: #e53e3e;
	color: #fff;
	font-weight: 600;
	border-radius: 6px;
}
.pb-v3-drawer__link--pill:hover { background: #c53030; color: #fff; }
.pb-v3-drawer__link--underline { border-bottom: 2px solid #d4a017; }

/* Footer */
.pb-v3-drawer__footer {
	padding: 1rem 1.25rem;
	border-top: 1px solid #eee;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.pb-v3-drawer__footer a {
	color: #888;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.pb-v3-drawer__footer a:hover {
	color: #333;
}


/* ═══════════════════════════════════════════════════════════
   HEADER V4 NAV — sub-brand lockup + silo text links
   ═══════════════════════════════════════════════════════════ */

/* Brightened silo colors for use on the navy header — same hue as the
   silo identity but lighter so they read against #2c3e5a */
:root {
	--hdr-store:    #FCD34D;
	--hdr-learn:    #34D399;
	--hdr-academy:  #A78BFA;
	--hdr-colony:   #E879F9;
	--hdr-tools:    #94A3B8;
	--hdr-briefing: #60A5FA;
}

/* Logo area: flex so sub-brand sits inline */
.pb-header-v3__logo {
	display: flex;
	align-items: center;
}

/* Active silo sub-brand lockup: same size as PerfectBee wordmark, top-aligned */
.pb-header-v3__sub-brand {
	display: inline;
	align-self: flex-start;
	margin-left: 6px;
	margin-top: 22px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #F6A722; /* fallback — overridden per silo below */
}

/* Per-silo brightened colors */
.pb-header-v3__sub-brand[data-silo="store"]    { color: var(--hdr-store); }
.pb-header-v3__sub-brand[data-silo="learn"]    { color: var(--hdr-learn); }
.pb-header-v3__sub-brand[data-silo="academy"]  { color: var(--hdr-academy); }
.pb-header-v3__sub-brand[data-silo="colony"]   { color: var(--hdr-colony); }
.pb-header-v3__sub-brand[data-silo="briefing"] { color: var(--hdr-briefing); }
.pb-header-v3__sub-brand[data-silo="tools"]    { color: var(--hdr-tools); }

/* Non-active silo text+icon links — matches .pb-primary a from the mockup */
.pb-silo-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: 8px;
	gap: 10px;
	padding: 0 16px 8px;
	border-radius: 6px;
	text-decoration: none;
	font-family: 'Inter', 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	color: #fff;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.pb-silo-link:hover {
	background: rgba(255, 255, 255, 0.06);
}

.pb-silo-link__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.pb-silo-link__icon svg {
	width: 19px;
	height: 19px;
	stroke-width: 2;
}

/* ── Account states ─────────────────────────────────────────── */

/* Join Colony pill (logged-out) */
.pb-header-v3__join {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--pb-gold, #F6A722);
	color: #152f5e;
	font-family: 'Inter', 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease;
}
.pb-header-v3__join:hover {
	background: #e8960f;
}

/* Avatar circle — initials */
.pb-user-avatar {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	cursor: pointer;
}
.pb-user-avatar__initials {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
}
.pb-user-avatar--colony .pb-user-avatar__initials {
	border-color: var(--pb-gold, #F6A722);
	background: rgba(246, 167, 34, 0.15);
}

/* Colony badge under avatar */
.pb-user-avatar__badge {
	font-family: 'Inter', 'Montserrat', sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pb-gold, #F6A722);
	white-space: nowrap;
}

/* Per-silo icon tinting — brightened hue on navy */
.pb-silo-link[data-silo="store"]    .pb-silo-link__icon { color: var(--hdr-store); }
.pb-silo-link[data-silo="learn"]    .pb-silo-link__icon { color: var(--hdr-learn); }
.pb-silo-link[data-silo="academy"]  .pb-silo-link__icon { color: var(--hdr-academy); }
.pb-silo-link[data-silo="colony"]   .pb-silo-link__icon { color: var(--hdr-colony); }
.pb-silo-link[data-silo="briefing"] .pb-silo-link__icon { color: var(--hdr-briefing); }
.pb-silo-link[data-silo="tools"]    .pb-silo-link__icon { color: var(--hdr-tools); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.pb-header-v3__sections {
		display: none;
	}

	.pb-header-v3__sub-brand {
		font-size: 14px;
		margin-top: 14px;
		margin-left: 4px;
	}

	.pb-header-v3__join {
		display: none;
	}

	/* Hide sub-navs on mobile — drawer takes over */
	.pb-header--v3 .pb-subnav {
		display: none !important;
	}

	.pb-header-v3__hamburger {
		display: flex;
	}

	.pb-v3-drawer {
		display: block;
	}

	.pb-header-v3__inner {
		padding: 0 1rem;
		height: 66px;
	}

	.pb-header-v3__logo {
		margin-right: auto;
		gap: 0;
	}

	.pb-header-v3__logo .pb-logo__img {
		height: 50px;
	}

	.pb-header-v3__logo .pb-logo__hex svg {
		width: 28px;
		height: 24px;
	}

	.pb-header-v3__logo .pb-logo__name {
		font-size: 16px;
	}

	.pb-header-v3__logo .pb-logo__subtitle {
		display: none;
	}


	.pb-header-v3__utility-links {
		display: none;
	}

	.pb-header-v3__cart-total {
		display: none;
	}

	.pb-header-v3__signin {
		padding: 5px 10px;
		font-size: 12px;
	}
}

/* ─── Mobile search icon button ─────────────────────────────────── */
/* The button sits in .pb-header-v3__right and uses the same icon-link
   appearance. Hidden on desktop (the inline search input handles it). */
.pb-header-v3__mobile-search {
	display: none; /* hidden on desktop */
	background: none;
	border: none;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.pb-header-v3__mobile-search {
		display: flex;
	}

	/* When mobile search is open: slide a search bar below the primary bar */
	.pb-header--v3.pb-search-mobile-open .pb-search-wrap {
		display: flex;
		position: absolute;
		top: 66px;
		left: 0;
		right: 0;
		padding: 10px 1rem;
		background: #2c3e5a;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		box-shadow: 0 4px 12px rgba(10, 26, 58, 0.25);
		z-index: 10;
		justify-content: stretch;
		align-items: center;
	}

	.pb-header--v3.pb-search-mobile-open .pb-search-wrap .pb-headsearch {
		max-width: 100%;
		flex: 1;
	}

	/* Popup: full-width, anchored to the left edge of the search bar */
	.pb-header--v3.pb-search-mobile-open .pb-searchpop {
		right: auto;
		left: 0;
		width: 100%;
		max-width: 100%;
		border-radius: 0 0 12px 12px;
	}
}
