/* Global navigation bar: slim, translucent, site mark + page links + favourites + account. */
:root {
	--site-header-height: 48px;
	--gn-height: 48px;
	--gn-ink: rgba(17, 24, 39, 0.82);
	--gn-ink-strong: #111827;
	--gn-line: rgba(17, 24, 39, 0.08);
	--gn-hover: rgba(17, 24, 39, 0.05);
}

.site-header.gn,
body .site-header.gn {
	position: sticky;
	top: 0;
	z-index: 60;
	height: var(--gn-height);
	min-height: 0;
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom: 1px solid var(--gn-line);
	box-shadow: none;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile sheet inside it. */
.site-header.gn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
}
.site-header.gn.is-open::before { background: rgba(255, 255, 255, 0.98); }
.admin-bar .site-header.gn { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.gn { top: 0; } }

.gn-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1080px;
	height: var(--gn-height);
	margin: 0 auto;
	padding: 0 22px;
}

.gn-mark {
	flex: none;
	display: inline-flex;
	align-items: center;
	padding: 4px;
	margin-inline-start: -4px;
	border-radius: 9px;
}
.gn-mark img { width: 28px; height: 28px; border-radius: 7px; display: block; object-fit: contain; }

.gn-links {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 3vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.gn-links a {
	display: block;
	padding: 6px 2px;
	color: var(--gn-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.gn-links a:hover { color: var(--gn-ink-strong); }
.gn-links a[aria-current="page"] { color: var(--gn-ink-strong); font-weight: 700; }

.gn-tools { flex: none; display: flex; align-items: center; gap: 2px; margin-inline-end: -8px; }

.gn-icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--gn-ink);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.gn-icon:hover, .gn-icon[aria-expanded="true"] { background: var(--gn-hover); color: var(--gn-ink-strong); }
.gn-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.gn-count {
	position: absolute;
	top: 4px;
	inset-inline-end: 3px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--primary, #3563ae);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.gn-count.is-empty { display: none; }

.gn-avatar {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gn-ink-strong);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

/* Account menu */
.gn-account { position: relative; }
.gn-menu {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	width: 248px;
	padding: 8px;
	border: 1px solid var(--gn-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
	transform-origin: top left;
	animation: gn-pop 0.16s ease-out;
}
.gn-menu[hidden] { display: none; }
.gn-menu__who { margin: 0 0 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--gn-line); }
.gn-menu__who strong { display: block; color: var(--gn-ink-strong); font-size: 15px; }
.gn-menu__who span { display: block; color: var(--muted, #667085); font-size: 12px; }
.gn-menu ul { margin: 0; padding: 0; list-style: none; }
.gn-menu a {
	display: block;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--gn-ink-strong);
	font-size: 14px;
	text-decoration: none;
}
.gn-menu a:hover { background: var(--gn-hover); }
.gn-menu a.is-quiet { color: var(--muted, #667085); }
@keyframes gn-pop { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }

/* Burger (mobile) */
.gn-burger { display: none; }
.gn-burger span, .gn-burger span::before {
	content: "";
	display: block;
	width: 17px;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s ease;
}
.gn-burger span { position: relative; transform: translateY(-3px); }
.gn-burger span::before { position: absolute; top: 6px; }
.gn.is-open .gn-burger span { transform: translateY(0) rotate(45deg); }
.gn.is-open .gn-burger span::before { transform: translateY(-6px) rotate(-90deg); }

.gn :focus-visible { outline: 2px solid var(--primary, #3563ae); outline-offset: 2px; }

@media (max-width: 860px) {
	.gn-bar { padding: 0 16px; }
	.gn-burger { display: inline-grid; }
	.gn-links {
		position: fixed;
		inset: var(--gn-height) 0 0 0;
		z-index: 59;
		display: none;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 18px 28px calc(28px + env(safe-area-inset-bottom));
		background: #fff;
		overflow-y: auto;
	}
	.admin-bar .gn-links { inset-block-start: calc(var(--gn-height) + 46px); }
	.gn.is-open .gn-links { display: flex; animation: gn-sheet 0.22s ease-out; }
	.gn-links a { padding: 14px 0; font-size: 24px; font-weight: 700; color: var(--gn-ink-strong); border-bottom: 1px solid var(--gn-line); }
	.gn-links a[aria-current="page"] { color: var(--primary, #3563ae); }
	.gn-mark { margin-inline-end: auto; }
	@keyframes gn-sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}
body.gn-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.gn *, .gn-menu, .gn-links { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------
 * Global footer: light grey, small type, link directory + legal row.
 * ------------------------------------------------------------------ */
.site-footer.gf {
	margin: 0;
	padding: 0;
	background: #f5f5f7;
	color: #6e6e73;
	border-top: 1px solid rgba(17, 24, 39, 0.06);
	font-size: 12px;
	line-height: 1.6;
}
.gf-inner { max-width: 1080px; margin: 0 auto; padding: 22px 22px 26px; }
.gf a { color: inherit; text-decoration: none; }
.gf a:hover { color: #1d1d1f; text-decoration: underline; text-underline-offset: 2px; }
.gf h2 { margin: 0; color: #1d1d1f; font-size: 12px; font-weight: 700; line-height: 1.4; }

.gf-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-bottom: 16px; border-bottom: 1px solid #d2d2d7; }
.gf-brand { display: inline-flex; align-items: center; gap: 8px; }
.gf-brand:hover { text-decoration: none !important; }
.gf-brand img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; }
.gf-brand strong { color: #1d1d1f; font-size: 13px; }
.gf-intro p { margin: 0; }

.gf-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 28px; padding: 20px 0 6px; }
.gf-col { margin: 0 0 18px; }
.gf-col summary { list-style: none; cursor: default; margin-bottom: 8px; pointer-events: none; }
.gf-col summary::-webkit-details-marker { display: none; }
.gf-col ul { margin: 0; padding: 0; list-style: none; }
.gf-col li { margin: 0 0 7px; }
.gf-text { color: #6e6e73; }
.gf-dim { color: #86868b; }
.gf-more::after { content: " ‹"; }
.gf-phone { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.gf-phone__label { flex-basis: 100%; color: #86868b; line-height: 1.2; }
.gf-phone bdi { color: #1d1d1f; font-weight: 600; }
.gf-pill { padding: 1px 8px; border: 1px solid #d2d2d7; border-radius: 999px; font-size: 11px; line-height: 18px; }
.gf-pill:hover { border-color: #1d1d1f; text-decoration: none !important; }

.gf-social-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #d2d2d7; }
.gf-social { display: flex; gap: 6px; }
.gf-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e8e8ed; color: #1d1d1f; font-size: 13px; }
.gf-social a:hover { background: #1d1d1f; color: #fff; text-decoration: none; }
.gf-social svg { width: 15px; height: 15px; }

.gf-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 14px; border-top: 1px solid #d2d2d7; }
.gf-legal p { margin: 0; }
.gf-copyright { margin-inline-end: auto !important; }
.gf-legal-links { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.gf-legal-links li + li::before { content: "|"; margin: 0 8px; color: #d2d2d7; }
.gf-registration span + span::before { content: "·"; margin: 0 8px; color: #86868b; }
.gf-registration bdi { color: #1d1d1f; }
.gf-credit { flex-basis: 100%; color: #86868b; }

@media (max-width: 760px) {
	.gf-inner { padding: 18px 16px 22px; }
	.gf-directory { display: block; padding: 6px 0 10px; }
	.gf-col { margin: 0; border-bottom: 1px solid #d2d2d7; }
	.gf-col summary { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 0; pointer-events: auto; cursor: pointer; }
	.gf-col summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #86868b; border-bottom: 1.5px solid #86868b; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
	.gf-col[open] summary::after { transform: translateY(2px) rotate(-135deg); }
	.gf-col h2 { font-size: 14px; font-weight: 600; }
	.gf-col ul { padding: 0 12px 14px 0; }
	.gf-col li { margin-bottom: 10px; font-size: 14px; }
	.gf-social-row { border-top: 0; padding-top: 16px; }
	.gf-legal { flex-direction: column; gap: 8px; }
}
.gn-menu li.is-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--gn-line); }
