html,
body {
	padding: 0;
	margin: 0;
	height: 100%;
	width: 100%;
	font-family: "Avenir Next W00", Arial, sans-serif;
	color: #1f2933;
	background: #f4f6f8;
}

body {
	display: flex;
	flex-direction: column;
}

#introTab {
	overflow-y: auto;
}

.intro-page {
	max-width: 1160px;
	padding-top: 32px;
}

.intro-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 40px;
	margin-bottom: 32px;
	border: 1px solid #cbdfe5;
	border-radius: 16px;
	background: linear-gradient(115deg, #edf5fa 15%, #e5f1ee 100%);
}

.intro-contours {
	position: absolute;
	z-index: -1;
	right: -65px;
	top: -20px;
	width: 58%;
	height: calc(100% + 40px);
	color: #2e777c;
	opacity: 0.2;
	mask-image: linear-gradient(to right, transparent, black 65%);
	pointer-events: none;
}

.intro-hero-content {
	max-width: 690px;
}

.intro-page .intro-eyebrow {
	margin-bottom: 16px;
	color: #28616e;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.intro-page .intro-hero h1 {
	font-size: clamp(2rem, 3.5vw, 2.9rem);
	line-height: 1.15;
	letter-spacing: -0.035em;
	color: #153f57;
	margin-bottom: 18px;
}

.intro-page .intro-lead {
	max-width: 570px;
	color: #405d6c;
	font-size: 1.08rem;
	margin-bottom: 24px;
}

.intro-cta {
	display: inline-flex;
	align-items: center;
	gap: 26px;
	border: 1px solid #0f4c81;
	border-radius: 7px;
	padding: 12px 18px;
	background: #0f4c81;
	color: white;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease;
}

.intro-cta:hover {
	background: #123d61;
	transform: translateY(-2px);
}

.intro-scope {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 30px;
	padding-top: 16px;
	border-top: 1px solid #c9dfe2;
	color: #405d6c;
	font-size: 0.8rem;
}

.intro-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 16px 0 22px;
}

.intro-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border: 1px solid #d7e1e8;
	border-radius: 10px;
	background: #fff;
	color: #4b5e6c;
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.intro-card-index {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #397582;
}

.intro-card strong {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 1rem;
	color: #163f58;
}

.intro-card:hover {
	transform: translateY(-3px);
	border-color: #77a8b7;
	box-shadow: 0 8px 22px rgba(20, 63, 87, 0.08);
}

.intro-card:focus-visible,
.intro-cta:focus-visible {
	outline: 3px solid #287b9b;
	outline-offset: 4px;
}

.intro-enter {
	animation: intro-arrive 550ms ease-out;
}

@keyframes intro-arrive {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
	.intro-hero { padding: 26px 22px; }
	.intro-cards { grid-template-columns: 1fr; }
	.intro-card { padding: 20px; }
	.intro-contours { width: 85%; opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
	.intro-enter { animation: none; }
	.intro-card, .intro-cta { transition: none; }
	.intro-card:hover, .intro-cta:hover { transform: none; }
}

#publicationsTab { overflow-y: auto; }

.publications-page { padding-top: 36px; }
.publications-eyebrow {
	color: #397582;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.publications-intro { color: #526572; }
.publication-list { margin-top: 28px; }
.publication-card {
	margin-bottom: 22px;
	padding: 30px;
	border: 1px solid #d7e1e8;
	border-top: 3px solid #397582;
	border-radius: 10px;
	background: #fff;
}
.publication-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: #526572;
	font-size: 0.83rem;
}
.publication-access {
	padding: 4px 10px;
	border-radius: 20px;
	background: #e9f3ed;
	color: #286044;
	font-weight: 700;
}
.publication-card h2 { margin: 20px 0 14px; font-size: 1.35rem; line-height: 1.4; }
.publication-card h2 a { color: #163f58; text-decoration: none; }
.publication-card h2 a:hover { text-decoration: underline; }
.publication-authors { color: #354b59; }
.publication-journal { color: #58656b; font-size: 0.9rem; }
.publication-card .publication-summary { margin-top: 22px; }
.publication-card .publication-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 20px 0;
	padding: 0;
}
.publication-topics li {
	padding: 4px 10px;
	border: 1px solid #e1e8ed;
	border-radius: 5px;
	color: #526572;
	font-size: 0.76rem;
}
.publication-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding-top: 20px;
	border-top: 1px solid #e1e8ed;
}
.publication-read { color: #0f4c81; font-weight: 700; }
.publication-doi { color: #526572; font-size: 0.8rem; overflow-wrap: anywhere; }
.publication-link-note { font-size: 0.75rem; font-weight: 400; }
.publications-shortcut {
	padding: 0;
	margin-bottom: 4px;
	border: 0;
	background: transparent;
	color: #0f4c81;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}
.publications-shortcut:hover { text-decoration: underline; }
.publications-shortcut:focus-visible, .publication-card a:focus-visible {
	outline: 3px solid #287b9b;
	outline-offset: 4px;
}
@media (max-width: 760px) {
	.publication-card { padding: 22px 18px; }
	.tab-button { flex-shrink: 0; }
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 28px 18px;
	background:
		linear-gradient(90deg, rgba(15, 76, 129, 0.96), rgba(21, 94, 117, 0.92)),
		linear-gradient(135deg, #0f4c81, #155e75);
	border-bottom: 1px solid #0b3b5f;
	color: #ffffff;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

#titleText {
	font-family: "Times New Roman", Times, serif;
	font-size: 28pt;
	font-weight: bold;
	line-height: 1.05;
	letter-spacing: 0;
	max-width: 1180px;
}

.tagline {
	margin-top: 8px;
	color: #eaf4fb;
	font-size: 1.18rem;
	font-weight: 500;
	line-height: 1.25;
}

.tab-bar {
	position: relative;
	display: flex;
	gap: 4px;
	padding: 0 22px;
	background: #ffffff;
	border-bottom: 1px solid #d9dee5;
}

.tab-button {
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	padding: 12px 14px 9px;
	color: #374151;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.tab-button:hover {
	background: #f3f4f6;
}

.tab-button.active {
	color: #0f4c81;
	border-bottom-color: #0f4c81;
}

.tab-bar.has-tab-indicator .tab-button.active {
	border-bottom-color: transparent;
}

.tab-indicator {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	background: #0f4c81;
	pointer-events: none;
}

.tab-indicator.is-ready {
	transition: transform 220ms ease, width 220ms ease;
}

.tab-layout {
	position: relative;
	flex: 1;
	min-height: 0;
}

.tab-panel {
	display: none;
	height: 100%;
	min-height: 0;
}

.tab-panel.active {
	display: block;
	animation: tab-appear 200ms ease-out;
}

@keyframes tab-appear {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.tab-panel.active { animation: none; }
	.tab-indicator.is-ready { transition: none; }
}

.content-page {
	box-sizing: border-box;
	max-width: 1040px;
	margin: 0 auto;
	padding: 28px 28px 44px;
	line-height: 1.55;
}

.content-page h1 {
	margin: 0 0 16px;
	font-size: 1.8rem;
}

.content-page h2 {
	margin: 24px 0 8px;
	font-size: 1.18rem;
}

.content-page p {
	margin: 0 0 12px;
}

.content-page ul {
	margin: 8px 0 0 20px;
	padding: 0;
}

.content-page li {
	margin-bottom: 6px;
}

.acknowledgement-section {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	align-items: center;
	gap: 32px;
	margin-top: 40px;
	padding: 30px;
	border: 1px solid #dedfd8;
	border-top: 3px solid #b6a575;
	border-radius: 12px;
	background: #f5f3ed;
}

.intro-page .acknowledgement-eyebrow {
	margin: 0 0 8px;
	color: #71613b;
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.intro-page .acknowledgement-copy h2 {
	margin: 0 0 14px;
	color: #263f4a;
	font-size: 1.45rem;
}

.acknowledgement-copy > p:last-child {
	margin-bottom: 0;
	color: #4c585e;
	font-size: 0.92rem;
}

.acknowledgement-institutions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.institution-card {
	padding: 20px 14px;
	border: 1px solid #e3e4de;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.institution-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	margin-bottom: 18px;
}

.institution-logo img {
	max-width: 100%;
	max-height: 90px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.institution-name {
	color: #263f4a;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.4;
}

.intro-page .institution-detail {
	margin: 8px 0 0;
	color: #58656b;
	font-size: 0.77rem;
	line-height: 1.5;
}

@media (max-width: 960px) {
	.acknowledgement-section { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
	.acknowledgement-section { padding: 24px 18px; }
	.acknowledgement-institutions { grid-template-columns: 1fr; }
}

.logo-row {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid #d9dee5;
}

.logo-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 210px;
	height: 95px;
	padding: 8px;
	border: 1px solid #d9dee5;
	background: #ffffff;
}

.logo-card img {
	position: relative;
	z-index: 1;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	background: #ffffff;
}

.logo-card img:not([src]),
.logo-card img[src=""] {
	display: none;
}

.logo-fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 10px;
	color: #4b5563;
	font-weight: 700;
	text-align: center;
}

.logo-card img[src]:not([src=""]) + .logo-fallback {
	display: none;
}

.disclaimer-block {
	max-width: 980px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #d9dee5;
	color: #4b5563;
	font-size: 0.78rem;
	line-height: 1.38;
}

.disclaimer-block p {
	margin: 0 0 7px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section-heading label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #4b5563;
}

.section-heading select {
	width: 220px;
}

.pest-selector {
	padding: 10px 12px;
	border-left: 4px solid #0f4c81;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.pest-selector label {
	margin-bottom: 7px;
	color: #0f4c81;
	font-size: 0.98rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pest-selector select {
	min-width: 240px;
	font-size: 1rem;
	font-weight: 600;
}

.pest-profile {
	display: grid;
	grid-template-columns: minmax(260px, 380px) 1fr;
	gap: 24px;
	align-items: start;
}

.pest-image-gallery {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
}

.pest-image-card {
	position: relative;
	overflow: hidden;
	min-height: 160px;
	margin: 0;
	border: 1px solid #d9dee5;
	background: #ffffff;
}

.pest-image-card:first-child {
	grid-row: span 2;
	min-height: 330px;
}

.pest-image-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #ffffff;
}

.pest-image-card figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 6px 8px;
	background: rgba(17, 24, 39, 0.72);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 700;
}

#pestTab { overflow-y: auto; }
.pest-page { max-width: 1160px; }
.pest-page .section-heading {
	padding-bottom: 22px;
	border-bottom: 1px solid #d7e1e8;
	margin-bottom: 28px;
}
.pest-page .pest-selector { border-radius: 8px; }
.pest-page .pest-profile { grid-template-columns: minmax(280px, 1fr) 1.1fr; gap: 30px; }
.pest-profile-details {
	padding: 26px;
	border: 1px solid #d7e1e8;
	border-radius: 12px;
	background: #fff;
}
.pest-profile-details .pest-kicker {
	color: #397582;
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.pest-profile-details h2 { margin: 0 0 4px; font-size: 1.9rem; color: #163f58; }
.pest-profile-details .pest-scientific-name { font-style: italic; color: #58656b; margin-bottom: 20px; }
.pest-fact { border-top: 1px solid #e1e8ed; padding-top: 16px; margin-top: 20px; }
.pest-fact h3 { margin: 0 0 8px; font-size: 0.95rem; color: #28616e; }
.pest-fact p { font-size: 0.93rem; }
.pest-profile-details .intro-cta { margin-top: 14px; text-align: left; }
.pest-page .pest-image-card { border-radius: 10px; }
.pest-photo-button {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	padding: 0 0 34px;
	border: 0;
	background: white;
	cursor: zoom-in;
}
.pest-photo-button img { transition: transform 200ms ease; }
.pest-photo-button:hover img { transform: scale(1.025); }
.pest-image-card figcaption { pointer-events: none; }
.pest-photo-button:focus-visible { outline: 3px solid #287b9b; outline-offset: -4px; }
.pest-gallery-hint { margin-top: 10px; font-size: 0.8rem; color: #58656b; }
.pest-photo-dialog {
	box-sizing: border-box;
	width: min(900px, 94vw);
	max-height: 92vh;
	padding: 22px;
	border: 1px solid #d7e1e8;
	border-radius: 12px;
	color: #263f4a;
	background: white;
}
.pest-photo-dialog::backdrop { background: rgba(15, 30, 43, 0.76); }
.pest-photo-dialog form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.pest-photo-close { padding: 8px 14px; border: 1px solid #cbd9e2; border-radius: 5px; background: #edf5fa; color: #163f58; font: inherit; cursor: pointer; }
.pest-photo-close:focus-visible { outline: 3px solid #287b9b; outline-offset: 3px; }
.pest-photo-dialog > img { display: block; width: 100%; height: min(60vh, 620px); object-fit: contain; }
.pest-photo-dialog h2 { font-size: 1.1rem; margin: 16px 0 6px; }
.pest-photo-dialog p { font-size: 0.85rem; margin: 0; color: #58656b; }
@media (max-width: 760px) {
	.pest-profile-details { padding: 22px 18px; }
	.pest-page .pest-selector { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.pest-photo-button img { transition: none; }
	.pest-photo-button:hover img { transform: none; }
}

.image-credit {
	margin-top: 7px;
	color: #4b5563;
	font-size: 0.82rem;
}

.image-placeholder {
	display: grid;
	place-items: center;
	min-height: 260px;
	border: 1px solid #d9dee5;
	padding: 20px;
	color: #6b7280;
	text-align: center;
	background: repeating-linear-gradient(
		-45deg,
		#f8fafc,
		#f8fafc 10px,
		#eef2f7 10px,
		#eef2f7 20px
	);
}

.infoTable {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	background: #ffffff;
}

.infoTable th,
.infoTable td {
	border-bottom: 1px solid #d9dee5;
	padding: 9px 8px;
	text-align: left;
	vertical-align: top;
}

.infoTable th {
	width: 34%;
	background: #f8fafc;
}

.map-panel {
	overflow: hidden;
}

.webgis-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	height: 100%;
	min-height: 0;
}

.selection-sidebar {
	box-sizing: border-box;
	padding: 12px;
	border-right: 1px solid #d9dee5;
	background: #ffffff;
	overflow-y: auto;
	z-index: 2;
}

.sidebar-title {
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #d9dee5;
	color: #0f4c81;
	font-size: 1.05rem;
	font-weight: 800;
}

.map-window {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

#viewDiv,
#animationViewDiv {
	position: absolute;
	inset: 0;
	padding: 0;
	margin: 0;
	height: 100%;
	width: 100%;
}

.animation-title-panel {
	position: absolute;
	top: 16px;
	left: 58px;
	z-index: 20;
	line-height: 1.35;
}

.animation-legend-panel {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 165px;
	max-height: 42vh;
	overflow-y: auto;
	z-index: 18;
}

.legend-unit {
	margin-top: -4px;
	margin-bottom: 7px;
	color: #4b5563;
	font-size: 0.8rem;
	font-weight: 700;
}

.manual-legend-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 5px 0;
	font-size: 0.88rem;
}

.manual-legend-row img {
	width: 20px;
	height: 20px;
	image-rendering: auto;
}

.action-button {
	margin-top: 8px;
	border: 0;
	background: #0f4c81;
	color: #ffffff;
	padding: 9px 12px;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.action-button:hover {
	background: #0b3b5f;
}

.app-panel {
	box-sizing: border-box;
	padding: 10px;
	width: 340px;
}

.control-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
}

.control-panel label {
	font-size: 0.78rem;
	font-weight: 700;
	color: #333;
	margin-top: 2px;
	margin-bottom: 1px;
}

.control-panel select {
	width: 100%;
	font-family: "Avenir Next W00", Arial, sans-serif;
	font-size: 0.9rem;
	min-height: 30px;
}

.slider-row {
	display: grid;
	grid-template-columns: 1fr 44px;
	align-items: center;
	gap: 6px;
}

.slider-row input[type="range"] {
	width: 100%;
}

.slider-row span {
	font-size: 0.8rem;
	font-weight: 700;
	color: #374151;
	text-align: right;
}

.sidebar-note {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px solid #d9dee5;
	color: #4b5563;
	font-size: 0.78rem;
	line-height: 1.32;
}

.sidebar-note div {
	margin-bottom: 4px;
}

.multi-select {
	border: 1px solid #d9dee5;
	background: #ffffff;
}

.multi-select summary {
	padding: 8px 9px;
	color: #1f2933;
	font-size: 0.94rem;
	font-weight: 700;
	cursor: pointer;
	list-style-position: inside;
}

.multi-select[open] summary {
	border-bottom: 1px solid #d9dee5;
}

.animation-state-select {
	margin-bottom: 8px;
}

.playback-panel {
	display: block;
}

.playback-panel label {
	display: block;
	margin: 11px 0 5px;
}

.playback-panel .sidebar-title + label {
	margin-top: 0;
}

.playback-panel select,
.playback-panel .multi-select,
.playback-panel .slider-row {
	margin-top: 0;
	margin-bottom: 10px;
}

.playback-panel .animation-state-select {
	margin-bottom: 14px;
}

#animationViewDiv .esri-ui-top-left {
	top: 82px;
}

.checkbox-group {
	display: grid;
	gap: 6px;
	max-height: 150px;
	overflow-y: auto;
	padding: 7px;
	border: 0;
	background: #f8fafc;
}

.checkbox-option {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: #1f2933;
	cursor: pointer;
}

.checkbox-option input {
	margin: 0;
}

.summary-panel {
	width: 380px;
	max-height: 48vh;
	overflow-y: auto;
	line-height: 1.35;
	z-index: 20;
}

.legend-panel {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 300px;
	max-height: 42vh;
	overflow-y: auto;
	z-index: 18;
}

.layer-list-panel {
	width: 310px;
	max-height: 36vh;
	overflow-y: auto;
}

.layer-list-title {
	padding: 7px 10px 5px;
	border-bottom: 1px solid #d9dee5;
	color: #0f4c81;
	font-size: 0.86rem;
	font-weight: 800;
}

.layer-list-panel .esri-layer-list {
	max-width: 310px;
	max-height: 32vh;
	overflow-y: auto;
	font-size: 0.86rem;
}

.layer-list-panel .esri-layer-list__item-container {
	padding-top: 4px;
	padding-bottom: 4px;
}

.layer-list-panel .esri-layer-list__item-title {
	line-height: 1.2;
}

.basemap-switcher {
	display: grid;
	gap: 6px;
	width: 160px;
	padding: 8px;
}

.basemap-switcher-title {
	color: #0f4c81;
	font-size: 0.86rem;
	font-weight: 800;
}

.basemap-switcher-button {
	border: 1px solid #d9dee5;
	background: #ffffff;
	padding: 7px 9px;
	color: #1f2933;
	font: inherit;
	font-size: 0.9rem;
	text-align: left;
	cursor: pointer;
}

.basemap-switcher-button:hover {
	background: #eef6fc;
	border-color: #0f4c81;
}

.panelTitle {
	font-weight: 700;
	margin-bottom: 8px;
}

.summaryContent {
	font-size: 0.92rem;
}

.metricGrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 8px 0 10px;
}

.metricBox {
	border: 1px solid #d7d7d7;
	border-radius: 4px;
	padding: 8px;
	background: #fbfbfb;
}

.metricLabel {
	font-size: 0.78rem;
	color: #555;
	margin-bottom: 2px;
}

.metricValue {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1f1f1f;
}

.summaryTable {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
	font-size: 0.86rem;
}

.summaryTable th,
.summaryTable td {
	border-bottom: 1px solid #ddd;
	padding: 5px 4px;
	text-align: left;
	vertical-align: top;
}

.summaryTable th {
	background: #f4f4f4;
	font-weight: 700;
}

.chartWrap {
	margin-top: 12px;
}

.metricChart {
	height: 210px;
	margin-top: 12px;
}

.metricChart:first-child {
	margin-top: 0;
}

.hidden {
	display: none;
}

.statusText {
	color: #555;
	font-size: 0.9rem;
}

.warningText {
	color: #9a3412;
	font-size: 0.9rem;
}

@media (max-width: 760px) {
	.site-header {
		padding: 16px 14px;
	}

	#titleText {
		font-size: 28pt;
	}

	.tagline {
		font-size: 1rem;
	}

	.tab-bar {
		overflow-x: auto;
		padding: 0 10px;
	}

	.content-page {
		padding: 22px 16px 34px;
	}

	.logo-row {
		flex-direction: column;
		align-items: stretch;
	}

	.section-heading,
	.pest-profile {
		display: block;
	}

	.section-heading select {
		width: 100%;
	}

	.pest-image-gallery {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		margin-bottom: 18px;
	}

	.pest-image-card:first-child {
		grid-row: auto;
		min-height: 220px;
	}

	.pest-image-card {
		min-height: 190px;
	}

	.webgis-layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}

	.selection-sidebar {
		max-height: 240px;
		border-right: 0;
		border-bottom: 1px solid #d9dee5;
	}
}

/* WebGIS workspace: scoped to preserve the separate playback layout. */
#mapTab.active { display: flex; flex-direction: column; }
#mapTab > .webgis-layout { flex: 1; min-height: 0; height: auto; }
.map-selection-heading {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 padding: 14px 24px;
 border-bottom: 1px solid #d7e1e8;
 background: #f8fbfc;
}
.map-heading-label { color: #397582; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.map-selection-heading h1 { margin: 4px 0 0; color: #163f58; font-size: 1.15rem; line-height: 1.35; }
.map-selection-heading p { margin: 0; max-width: 260px; color: #58656b; font-size: 0.8rem; }
#mapTab .selection-sidebar { display: block; padding: 18px 16px; background: #f8fafc; }
#mapTab .sidebar-title { margin-bottom: 20px; padding-bottom: 12px; font-size: 1rem; }
.map-control-group {
 display: grid;
 gap: 7px;
 min-width: 0;
 margin: 0 0 20px;
 padding: 14px;
 border: 1px solid #d7e1e8;
 border-radius: 8px;
 background: white;
}
.map-control-group legend { padding: 0 5px; color: #28616e; font-size: 0.8rem; font-weight: 700; }
#mapTab .map-control-group label { margin-top: 5px; color: #405565; font-size: 0.78rem; }
#mapTab .map-control-group select { min-height: 36px; border: 1px solid #cbd9e2; border-radius: 5px; }
#mapTab input[type='range'] { accent-color: #0f4c81; }
#mapTab select:focus-visible, #mapTab input:focus-visible, .map-field-guide summary:focus-visible { outline: 2px solid #287b9b; outline-offset: 3px; }
.map-field-guide summary { color: #28616e; font-weight: 700; cursor: pointer; padding: 5px 0 10px; }
.map-field-guide div { line-height: 1.5; margin-bottom: 8px; }
#mapTab .summary-panel { width: min(400px, calc(100vw - 64px)); padding: 18px; border: 1px solid #d7e1e8; border-radius: 10px; box-shadow: 0 4px 18px rgba(20, 63, 87, 0.12); }
#mapTab .summary-panel > .panelTitle { color: #28616e; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid #e1e8ed; }
#mapTab .summaryContent > .panelTitle { color: #163f58; font-size: 1.1rem; }
#mapTab .metricGrid { gap: 10px; margin: 16px 0; }
#mapTab .metricBox { padding: 12px; border: 1px solid #dce7eb; border-radius: 7px; background: #f0f6f8; }
#mapTab .metricBox:first-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; background: #fafbfc; }
#mapTab .metricLabel { color: #526572; font-size: 0.75rem; line-height: 1.5; }
#mapTab .metricValue { color: #163f58; font-size: 1.4rem; margin-top: 5px; font-variant-numeric: tabular-nums; }
#mapTab .summaryTable { font-size: 0.78rem; font-variant-numeric: tabular-nums; }
#mapTab .summaryTable th { color: #405565; background: #edf4f7; }
#mapTab .summaryTable th, #mapTab .summaryTable td { padding: 8px 4px; border-bottom-color: #e1e8ed; }
#mapTab .summaryTable tbody tr:nth-child(even) { background: #f8fafc; }
#mapTab .metricChart { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e1e8ed; }
#mapTab .legend-panel { border: 1px solid #d7e1e8; border-radius: 8px; }
@media (max-width: 760px) {
 .map-selection-heading { padding: 10px 14px; }
 .map-selection-heading h1 { font-size: 0.95rem; }
 .map-selection-heading p { display: none; }
 #mapTab .selection-sidebar { padding: 12px; }
 #mapTab .summary-panel { padding: 12px; max-height: 38vh; }
}

/* Pest Dynamics shares the WebGIS visual language without changing playback timing. */
#animationTab.active { display: flex; flex-direction: column; }
#animationTab > .webgis-layout { flex: 1; min-height: 0; height: auto; }
#animationTab .selection-sidebar { padding: 18px 16px; background: #f8fafc; }
#animationTab .sidebar-title { margin-bottom: 20px; padding-bottom: 12px; font-size: 1rem; }
#animationTab .map-control-group label { margin: 5px 0 0; color: #405565; font-size: 0.78rem; }
#animationTab .map-control-group select { min-height: 36px; border: 1px solid #cbd9e2; border-radius: 5px; }
#animationTab .multi-select { border-radius: 5px; }
#animationTab .animation-state-select { margin-bottom: 0; }
#animationTab input[type='range'] { accent-color: #0f4c81; cursor: pointer; }
#animationTab .dynamics-timeline .slider-row { grid-template-columns: 1fr 60px; gap: 10px; }
#animationTab #animationYearLabel { font-size: 1.4rem; font-variant-numeric: tabular-nums; color: #163f58; }
.dynamics-range { display: flex; justify-content: space-between; margin-right: 70px; color: #58656b; font-size: 0.72rem; }
#animationTab .action-button {
 width: 100%;
 min-height: 44px;
 margin-top: 12px;
 border-radius: 7px;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
 transition: background 180ms ease;
}
#animationPlayButton::before { content: ''; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
#animationPlayButton.is-playing::before { width: 5px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.dynamics-help { margin: 6px 0 0; color: #58656b; font-size: 0.78rem; line-height: 1.5; }
#animationTab .animation-title-panel { width: 150px; padding: 14px 18px; border: 1px solid #d7e1e8; border-radius: 10px; box-shadow: 0 4px 18px rgba(20, 63, 87, 0.12); }
#animationTab .animation-title-panel .panelTitle { color: #397582; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }
.dynamics-map-year { color: #163f58; font-size: 2.3rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dynamics-playback-state { margin-top: 8px; color: #526572; font-size: 0.78rem; }
#animationTab .animation-legend-panel { border: 1px solid #d7e1e8; border-radius: 8px; }
#animationTab select:focus-visible, #animationTab input:focus-visible, #animationTab summary:focus-visible, #animationPlayButton:focus-visible { outline: 2px solid #287b9b; outline-offset: 3px; }
@media (max-width: 760px) {
 #animationTab .selection-sidebar { padding: 12px; }
 #animationTab .animation-title-panel { width: 120px; padding: 10px 12px; }
 .dynamics-map-year { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { #animationTab .action-button { transition: none; } }

/* Phone workspace; desktop controls keep their existing placement. */
.mobile-map-toolbar, .mobile-control, .mobile-summary-preview,
.mobile-playback-dock, .mobile-speed-group { display: none; }
@media (max-width: 760px), (max-height: 500px) and (max-width: 960px) {
 body { height: 100vh; height: 100dvh; }
 .site-header, .tab-bar { flex-shrink: 0; }
 .site-header { padding: 10px 14px; }
 #titleText { font-size: 1.35rem; line-height: 1.2; }
 .tagline { font-size: 0.85rem; }
 .mobile-map-active .tagline { display: none; }
 .tab-bar { overflow-x: auto; padding: 0 8px; }
 .tab-button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 10px; font-size: 0.85rem; }
 .map-selection-heading { padding: 6px 10px; gap: 8px; }
 .map-selection-heading > div:first-child { min-width: 0; }
 .map-heading-label, .map-selection-heading p { display: none; }
 .map-selection-heading h1 { font-size: 0.85rem; margin: 0; }
 .mobile-map-toolbar { display: flex; gap: 6px; flex-shrink: 0; }
 .mobile-control { display: block; min-height: 44px; padding: 8px 12px; border: 1px solid #b9cdd9; border-radius: 6px; background: white; color: #163f58; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
 .mobile-control[aria-expanded='true'] { background: #e4f0f5; }
 .mobile-control:focus-visible { outline: 2px solid #287b9b; outline-offset: 2px; }
 .map-panel .webgis-layout { position: relative; display: block; }
 .map-panel .map-window { height: 100%; }
 #mapTab .selection-sidebar, #animationTab .selection-sidebar { display: none; position: absolute; inset: 0 0 auto; max-height: 100%; width: 100%; border-bottom: 1px solid #b9cdd9; z-index: 40; overscroll-behavior: contain; box-shadow: 0 6px 18px #163f5826; }
 #mapTab.mobile-filters-open .selection-sidebar, #animationTab.mobile-filters-open .selection-sidebar { display: block; }
 .mobile-filter-done { position: sticky; bottom: 0; width: 100%; background: #0f4c81; color: white; }
 .map-panel .sidebar-title { display: none; }
 #mapTab .map-control-group select, #animationTab .map-control-group select,
 .pest-selector select { min-height: 44px; font-size: 16px; }
 .map-panel input[type='range'] { min-height: 44px; margin: 0; }
 .map-panel .multi-select summary, .map-panel .checkbox-option, .basemap-switcher-button { box-sizing: border-box; min-height: 44px; }
 .map-panel .checkbox-option { display: flex; }
 .map-panel .checkbox-option input { width: 20px; height: 20px; }
 .map-panel .legend-panel, .map-panel .animation-legend-panel { display: none; }
 .map-panel.mobile-legend-open .legend-panel, .map-panel.mobile-legend-open .animation-legend-panel { display: block; top: 8px; right: 8px; bottom: auto; width: min(280px, calc(100% - 72px)); max-height: calc(100% - 16px); }
 #mapTab .summary-panel { width: calc(100vw - 32px); padding: 8px; max-height: min(55dvh, 100%); }
 #mapTab .summary-panel > .panelTitle { display: none; }
 .summary-toggle { width: 100%; text-align: left; }
 .summary-toggle::after { content: '+'; float: right; }
 .summary-toggle[aria-expanded='true']::after { content: '-'; }
 .mobile-summary-preview { display: block; font-size: 0.78rem; line-height: 1.4; padding: 6px 4px 0; max-height: 2.8em; overflow: hidden; }
 #mobileSummaryBody { display: none; }
 .mobile-expanded #mobileSummaryBody { display: block; }
 .mobile-expanded .mobile-summary-preview { display: none; }
 #mapTab .esri-ui-bottom-left { max-height: calc(100% - 12px); }
 .map-panel .esri-widget--button { width: 44px; height: 44px; }
 .map-panel .layer-list-panel { width: min(280px, calc(100vw - 90px)); }
 #animationTab .animation-title-panel { display: none; }
 #animationViewDiv .esri-ui-top-left { top: 0; }
 .mobile-playback-dock { display: block; flex-shrink: 0; background: #f8fafc; padding: 4px 10px max(4px, env(safe-area-inset-bottom)); border-top: 1px solid #d7e1e8; }
 #animationTab .mobile-playback-dock .dynamics-timeline { display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; }
 .mobile-playback-dock legend, .mobile-playback-dock label, .mobile-playback-dock .dynamics-range, .mobile-playback-dock .dynamics-help { display: none; }
 #animationTab .mobile-playback-dock .slider-row { margin: 0; }
 #animationTab .mobile-playback-dock .action-button { margin: 0; }
 #animationTab #animationYearLabel { font-size: 1.1rem; }
 .mobile-speed-group { display: grid; }
}
@media (max-height: 500px) and (max-width: 960px) {
 .mobile-map-active .site-header { display: none; }
 .mobile-map-active .map-selection-heading { padding-top: 2px; padding-bottom: 2px; }
}
.density-map-hint { margin: 6px 0 0; color: #58656b; font-size: 0.78rem; line-height: 1.5; }
#showPestDensity { min-height: 44px; border-radius: 6px; }
