/* Know-It-Owls: header and footer (source: .nav and .site-footer in theme.css) */

/* ---------- Header ---------- */
#header-outer { border-bottom: 1px solid var(--kio-line); box-shadow: none; }

/* .no-image (text logo) out-ranks Salient's mobile #logo display rule */
body #header-outer header#top #logo.no-image {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}
/* Owl mark from the source nav SVG */
body #header-outer header#top #logo::before {
	display: block;
	content: "";
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	background: var(--kio-gold);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.3'><path d='M5 4l6 4h10l6-4v13c0 7-5 12-11 12S5 24 5 17z'/><circle cx='11' cy='14' r='5'/><circle cx='21' cy='14' r='5'/><circle cx='11' cy='14' r='1'/><circle cx='21' cy='14' r='1'/><path d='M14 19h4l-2 3z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.3'><path d='M5 4l6 4h10l6-4v13c0 7-5 12-11 12S5 24 5 17z'/><circle cx='11' cy='14' r='5'/><circle cx='21' cy='14' r='5'/><circle cx='11' cy='14' r='1'/><circle cx='21' cy='14' r='1'/><path d='M14 19h4l-2 3z'/></svg>") center / contain no-repeat;
}

/* Desktop nav: Salient's animated underline handles hover; the section in view
   (set by interactions.js) gets the source's gold active colour. */
#header-outer header#top nav > ul.sf-menu > li > a { white-space: nowrap; }
#header-outer header#top nav > ul.sf-menu > li.kio-active > a { color: var(--kio-gold); }

/* Reading progress bar */
.kio-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10000;
	width: 0;
	height: 2px;
	background: var(--kio-gold);
	pointer-events: none;
}

/* ---------- Gutters (source .wrap: min(1280px, 100% - 96px); ≤1150px: 100% - 64px; ≤620px: 100% - 40px) ---------- */
@media (max-width: 1150px) {
	.container-wrap .container.main-content,
	#header-outer header#top > .container,
	#footer-outer #copyright > .container {
		width: calc(100% - 64px);
		max-width: none;
		padding-left: 0;
		padding-right: 0;
		margin-left: auto;
		margin-right: auto;
	}
}
@media (max-width: 620px) {
	.container-wrap .container.main-content,
	#header-outer header#top > .container,
	#footer-outer #copyright > .container { width: calc(100% - 40px); }
}

/* Mobile header bar: source nav is 72px tall below 900px (Salient adds 12px top/bottom padding) */
@media (max-width: 999px) {
	#header-outer header#top > .container > .row { display: flex; align-items: center; min-height: 48px; }
}

/* ---------- Footer ---------- */
#footer-outer,
#footer-outer #copyright { background: var(--kio-paper); border-top: 0; }
#footer-outer #copyright { padding: 44px 0; }
#footer-outer #copyright .col.span_5 { width: 100%; margin-bottom: 0; }
#footer-outer #copyright .col.span_7 { display: none; }
#footer-outer #copyright p {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
	padding: 0;
}
#footer-outer #copyright a { text-decoration: none; }
#footer-outer #copyright .kio-footer-brand {
	font-family: var(--kio-font-display);
	font-size: 30px;
	line-height: 1.85;
	color: var(--kio-ink);
}
#footer-outer #copyright .kio-footer-index { font-size: 12px; color: var(--kio-muted); }
#footer-outer #copyright .kio-footer-index:hover { color: var(--kio-gold); }

@media (max-width: 620px) {
	#footer-outer #copyright .kio-footer-brand { font-size: 24px; line-height: 1.8; }
}

/* Source .nav-brand drops to 22px at ≤1150px */
@media (max-width: 1150px) {
	body #header-outer header#top #logo { font-size: 22px; }
}

/* Mobile off-canvas menu (Salient native) in the source nav's look: paper panel, DM Sans 600, gold hover */
body #slide-out-widget-area .inner .off-canvas-menu-container ul.menu > li > a,
body #slide-out-widget-area .inner .off-canvas-menu-container ul.menu li a {
	font-family: var(--kio-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
}
#slide-out-widget-area .off-canvas-menu-container li.kio-active > a,
#slide-out-widget-area .off-canvas-menu-container li a:hover { color: var(--kio-gold); }
