/* Orientation layer (assets/js/onboarding.js): welcome/About card, anchored
   callouts, one-shot mode captions, (i) popovers and the "?" button.
   Sits above the modals (z-index 4000) and below the toasts (10000). */

/* ---- welcome / About card ---- */

#ob-overlay {
	position: fixed;
	inset: 0;
	z-index: 5000;
	background: rgba(15, 20, 26, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'PT Sans', sans-serif;
}

#ob-card {
	position: relative;
	max-width: 560px;
	margin: 16px;
	padding: 26px 30px 22px 30px;
	border-radius: 10px;
	background: aliceblue;
	color: #1a232c;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

#ob-close {
	position: absolute;
	top: 10px;
	right: 14px;
	font-size: 22px;
	line-height: 1;
	color: #667788;
	text-decoration: none;
}
#ob-close:hover { color: #223344; }

#ob-title {
	font-family: 'Fjord One', serif;
	font-size: 21px;
	line-height: 1.3;
	margin-bottom: 8px;
}

#ob-sub {
	font-size: 15px;
	margin-bottom: 10px;
}

#ob-scope {
	font-size: 13px;
	color: #44586c;
	border-left: 3px solid #9db8d2;
	padding-left: 10px;
	margin-bottom: 14px;
}

#ob-hints {
	list-style: none;
	margin: 0 0 16px 0;
	padding: 0;
	font-size: 13.5px;
}
#ob-hints li {
	margin-bottom: 8px;
	padding-left: 14px;
	position: relative;
}
#ob-hints li::before {
	content: "\25B8";
	position: absolute;
	left: 0;
	color: #4d7196;
}

#ob-foot {
	display: flex;
	align-items: center;
	gap: 16px;
}

#ob-go {
	padding: 7px 18px;
	border: 1px solid #4d7196;
	border-radius: 5px;
	background: #4d7196;
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
}
#ob-go:hover { background: #3c5a78; }

#ob-point {
	font-size: 13px;
	color: #4d7196;
}

/* ---- anchored callouts ---- */

.ob-callout {
	position: fixed;
	z-index: 5000;
	max-width: 230px;
	padding: 9px 13px;
	border-radius: 7px;
	background: rgba(20, 22, 28, 0.88);
	color: #f3f2ef;
	font-family: 'PT Sans', sans-serif;
	font-size: 13px;
	line-height: 1.35;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	pointer-events: none;
	opacity: 0;
	animation: ob-fade 7.5s ease both;
}

.ob-callout::before {
	content: "";
	position: absolute;
	border: 7px solid transparent;
}
.ob-left::before {                      /* arrow to the timeline, on the card's left */
	left: -13px;
	top: 14px;
	border-right-color: rgba(20, 22, 28, 0.88);
}
.ob-up::before {                        /* arrow up to the view-mode box */
	top: -13px;
	right: 22px;
	border-bottom-color: rgba(20, 22, 28, 0.88);
}
.ob-right::before {                     /* arrow to the results panel, on the card's right */
	right: -13px;
	top: 16px;
	border-left-color: rgba(20, 22, 28, 0.88);
}

@keyframes ob-fade {
	0%   { opacity: 0; transform: translateY(4px); }
	6%   { opacity: 1; transform: translateY(0); }
	88%  { opacity: 1; }
	100% { opacity: 0; }
}

/* ---- "?" button (bottom-right of the map column) ---- */

#ob-help-button {
	position: absolute;
	right: 12px;
	bottom: 14px;
	z-index: 30;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid #9db8d2;
	border-radius: 50%;
	background: rgba(240, 248, 255, 0.85);
	color: #4d7196;
	font-family: 'PT Sans', sans-serif;
	font-size: 15px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
}
#ob-help-button:hover { background: #dcebf7; }

/* ---- hover popover on the mode labels ---- */

#ob-popover {
	position: fixed;
	pointer-events: none;      /* informational: never traps the mouse */
	z-index: 5000;
	max-width: 260px;
	padding: 9px 12px;
	border: 1px solid #9db8d2;
	border-radius: 6px;
	background: aliceblue;
	color: #1a232c;
	font-family: 'PT Sans', sans-serif;
	font-size: 12.5px;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ---- one-shot mode caption (under the view-mode box) ---- */

#ob-caption {
	display: block;
	max-width: 300px;
	margin: 4px 0 0 auto;
	padding: 7px 10px;
	border-radius: 4px;
	background: rgba(20, 22, 28, 0.85);
	color: #f3f2ef;
	font-family: 'PT Sans', sans-serif;
	font-size: 12px;
	line-height: 1.4;
	text-align: left;
}
#ob-caption-x {
	color: #f3f2ef;
	font-weight: bold;
	margin-left: 6px;
	text-decoration: none;
	opacity: 0.75;
}
#ob-caption-x:hover { opacity: 1; }

/* ---- mobile shell: the card adapts; the desktop-anchored pieces hide ---- */

body.mb-on #ob-help-button,
body.mb-on .ob-callout { display: none; }

@media (max-width: 820px) {
	#ob-card { max-width: none; margin: 12px; padding: 20px 18px 16px 18px; }
	#ob-title { font-size: 18px; }
}
