/* Theme palette + modal sizing tokens, scoped to our elements */
.nau-wayfinder__trigger-wrapper,
.nau-wayfinder__modal-root {
	--true-blue: #003466;
	--true-blue-dark: #0D1134;
	--true-blue-65: #3A5781;
	--gold: #F1b300;
	--gold-75: #FFCB5B;
	--gold-dark: #FFA719;
	--monsoon: #C3B8B2;
	--ui-offwhite: #F0F0F0;
	--ui-font-family: acumin-pro, sans-serif;

	--dialog-max-width: 1400px;
	--dialog-max-height: 2000px;
	--dialog-width: 90vw;
	--dialog-height: 85vh;
	--dialog-border-radius: 4px;
	--dialog-background: #FFFFFF;
	--dialog-header-height: 6rem;
	--backdrop-color: rgba(0, 0, 0, 0.65);
}


/* ================= TRIGGER BUTTON ================= */

.nau-wayfinder__webchat blockquote {
    font-size: 1.5rem;
}

.nau-wayfinder__trigger-wrapper {
	text-align: center;
	margin: 1.5rem 0;
}

.nau-wayfinder__trigger {
	color: var(--true-blue);
	background: var(--gold-75);
	border: 3px solid var(--gold-75);
	border-radius: 0;
	box-sizing: border-box;
	display: inline-block;
	font-family: "acumin-pro-condensed";
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 110%;
	padding: 10px 30px 15px 30px;
	margin-right: 10px;
	margin-bottom: 10px;
	text-decoration: none;
	width: auto;
	cursor: pointer;
	transition: background-color 0.15s ease-out, transform 0.05s ease-out, box-shadow 0.15s ease-out;
}

.nau-wayfinder__trigger:hover,
.nau-wayfinder__trigger:focus {
	color: var(--true-blue);
	background: var(--gold-dark);
}

.nau-wayfinder__trigger:focus-visible {
	outline: 3px solid var(--true-blue);
	outline-offset: 2px;
}

.nau-wayfinder__trigger:active {
	transform: translateY(1px);
	box-shadow: none;
}


/* ================= MODAL ROOT (BACKDROP) ================= */

.nau-wayfinder__modal-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--backdrop-color);
	font-family: var(--ui-font-family);
	padding: 1rem;
	box-sizing: border-box;
}

.nau-wayfinder__modal-root[hidden] {
	display: none;
}


/* ================= DIALOG ================= */

.nau-wayfinder__dialog {
	background: var(--dialog-background);
	border-radius: var(--dialog-border-radius);
	width: min(var(--dialog-max-width), var(--dialog-width));
	height: min(var(--dialog-max-height), var(--dialog-height));
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
    border: 3px solid var(--gold);
	overflow: hidden;
	outline: none;
}

.nau-wayfinder__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--dialog-header-height);
	padding: 0 1.25rem;
	background: var(--true-blue);
	color: #FFFFFF;
	flex-shrink: 0;
}

.nau-wayfinder__title {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 600;
	color: #FFFFFF;
	line-height: 1.2;
}

.nau-wayfinder__close {
	background: transparent;
	border: 2px solid transparent;
	color: #FFFFFF;
	padding: 0.35em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.nau-wayfinder__close:hover,
.nau-wayfinder__close:focus {
	background: rgba(255, 255, 255, 0.15);
}

.nau-wayfinder__close:focus-visible {
	outline: none;
	border-color: var(--gold-75);
}

.nau-wayfinder__close svg {
	display: block;
	width: 20px;
	height: 20px;
}

.nau-wayfinder__body {
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
	background: var(--dialog-background);
}

.nau-wayfinder__webchat {
	position: absolute;
	inset: 0;
	background: var(--ui-offwhite);
	overflow: hidden;
    font-size: 1.5rem;
}


/* Chat content overrides — reset theme cascading into bot messages.
   Web Chat renders markdown from the bot into the parent DOM, so the host
   theme's heading styles otherwise apply. */
.nau-wayfinder__webchat h1,
.nau-wayfinder__webchat h2,
.nau-wayfinder__webchat h3,
.nau-wayfinder__webchat h4,
.nau-wayfinder__webchat h5,
.nau-wayfinder__webchat h6 {
	line-height: 1.3;
	margin: 0.5em 0;
	font-weight: 700;
}
.nau-wayfinder__webchat h1 { font-size: 3.5rem; }
.nau-wayfinder__webchat h2 { font-size: 3rem; }
.nau-wayfinder__webchat h3 { font-size: 2.5rem; }
.nau-wayfinder__webchat h4 { font-size: 2rem; }
.nau-wayfinder__webchat h5 { font-size: 1.75rem; }
.nau-wayfinder__webchat h6 { font-size: 1.5rem; }

.nau-wayfinder__webchat p {
	margin: 1.5rem 0;
}

/* Adaptive Card text — Fix for Copilot Studio bots delivering the greeting/topic
   opener as an Adaptive Card, which hardcodes small text sizes. */
.nau-wayfinder__webchat .ac-textBlock,
.nau-wayfinder__webchat .ac-textBlock p {
	font-size: 1.5rem;
    margin: 0px;
}

.nau-wayfinder__disclaimer {
    background: var(--ui-offwhite);
    padding: 6px 12px;
    margin-bottom: 0px;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--ui-font-family);
    color: #505050;
    line-height: 1.5;
    border-top: 1px solid var(--monsoon);
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= MOBILE / SMALL VIEWPORT ================= */

@media (max-width: 640px), (max-height: 640px) {
	.nau-wayfinder__modal-root {
		padding: 0;
	}

	.nau-wayfinder__dialog {
		width: 100vw;
		height: 100dvh;
		max-width: 100vw;
		max-height: 100dvh;
		border-radius: 0;
	}
}


/* ================= PRINT ================= */

@media print {
	.nau-wayfinder__trigger-wrapper,
	.nau-wayfinder__modal-root {
		display: none !important;
	}
}
