/* ScholarshipDen App Banner — slim sticky bar at the extreme top.
   Colours match ScholarshipDen HD 3D: navy #0A2A5E, green #2E8B2E, gold #E9A820.
   --sd-banner-h is set pre-paint by the inline head script and kept in sync by
   banner.js (measured banner height only — header height is never assumed). */

:root { --sd-banner-h: 56px; }
html.sd-banner-hidden { --sd-banner-h: 0px; }
html.sd-banner-hidden #sd-app-banner { display: none !important; }

/* Push the theme's sticky header below the banner (works at any header height). */
body.sd-has-app-banner .site-header { top: var(--sd-banner-h, 0px); }
body.sd-has-app-banner .sd-sidebar { top: calc(var(--sd-header-h, 80px) + var(--sd-banner-h, 0px) + 18px); }
body.sd-has-app-banner .sd-progress { top: var(--sd-banner-h, 0px); }

/* The [hidden] attribute must win over .sdab-btn's inline-flex display. */
.sdab-banner [hidden] { display: none !important; }

.sdab-banner {
	position: sticky;
	top: 0;
	z-index: 1000; /* above .site-header (100), below cookie/privacy dialogs */
	width: 100%;
	background: linear-gradient(90deg, #08224d 0%, #0a2a5e 55%, #0d3575 100%);
	color: #fff;
	box-shadow: 0 2px 10px rgba(10, 42, 94, .35);
	font-family: inherit;
}

.sdab-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 14px;
	min-height: 56px;
	box-sizing: border-box;
	text-align: center;
}

.sdab-crest { width: 30px; height: 34px; flex: 0 0 auto; }

.sdab-text {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: .1px;
}

.sdab-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.sdab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .35);
	background: #fff;
	color: #0a2a5e;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.15;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sdab-btn:hover, .sdab-btn:focus-visible {
	background: #fdf6e3;
	color: #0a2a5e;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.sdab-btn:focus-visible, .sdab-dismiss:focus-visible, .sdab-popover-close:focus-visible {
	outline: 3px solid #e9a820;
	outline-offset: 2px;
}

/* Primary store button for the visitor's device (set by banner.js). */
.sdab-btn.sdab-primary {
	background: #2e8b2e;
	border-color: #2e8b2e;
	color: #fff;
}
.sdab-btn.sdab-primary:hover, .sdab-btn.sdab-primary:focus-visible { background: #257324; color: #fff; }

.sdab-glyph { width: 20px; height: 20px; flex: 0 0 auto; }
.sdab-btn-lines { display: inline-flex; flex-direction: column; align-items: flex-start; }
.sdab-btn-lines small { font-size: 8.5px; letter-spacing: .6px; opacity: .85; }
.sdab-btn-lines strong { font-size: 14px; font-weight: 700; }

.sdab-btn-install { font-weight: 700; }

.sdab-dismiss {
	appearance: none;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	opacity: .9;
}
.sdab-dismiss:hover { background: rgba(255, 255, 255, .15); opacity: 1; }

.sdab-popover {
	max-width: 520px;
	margin: 0 auto 10px;
	padding: 10px 14px;
	background: #fff;
	color: #0a2a5e;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
	font-size: 13.5px;
	text-align: center;
}
.sdab-popover-text { margin: 0 0 8px; }
.sdab-popover-close {
	border: 0;
	border-radius: 999px;
	padding: 5px 16px;
	background: #0a2a5e;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}

@media (max-width: 767px) {
	.sdab-inner { padding: 8px 10px; gap: 8px; }
	.sdab-text { font-size: 13px; flex: 1 1 180px; text-align: left; }
	.sdab-crest { width: 24px; height: 27px; }
	.sdab-btn { padding: 5px 10px; }
	.sdab-btn-lines strong { font-size: 12.5px; }
	.sdab-btn-lines small { font-size: 7.5px; }
	.sdab-glyph { width: 17px; height: 17px; }
}

@media print { .sdab-banner { display: none !important; } }
