/* World Meeting Planner — timeline (A) + Best Match summary (C) */

.wmp-page {
	margin: 0;
	font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	color: #334155;
	-webkit-font-smoothing: antialiased;
	background: #f8fafc;
}

.wmp-page main {
	padding: 5.5rem 1rem 3rem;
}

@media (min-width: 768px) {
	.wmp-page main {
		padding-top: 6rem;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

.wmp-container {
	max-width: 56rem;
	margin: 0 auto;
}

.wmp-header {
	margin-bottom: 1.5rem;
}

.wmp-header h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	font-weight: 800;
	line-height: 1.25;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.wmp-header p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #64748b;
}

.wmp-section-title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.15rem, 3vw, 1.35rem);
	font-weight: 800;
	line-height: 1.3;
	color: #0f172a;
	letter-spacing: -0.015em;
}

.wmp-best-pill {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 800;
	color: #15803d;
	background: #dcfce7;
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	vertical-align: baseline;
}

.wmp-panel {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.wmp-config {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding-bottom: 1.5rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
	.wmp-config {
		grid-template-columns: 1fr 1fr;
	}
}

.wmp-field label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
	margin-bottom: 0.5rem;
}

.wmp-select {
	width: 100%;
	appearance: none;
	background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") right 0.85rem center / 10px no-repeat;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.65rem 2.25rem 0.65rem 0.85rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}

.wmp-select--base {
	background-color: #eff6ff;
	border-color: #bfdbfe;
	color: #1e3a8a;
	font-weight: 700;
}

.wmp-select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wmp-select--native-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.wmp-combo {
	position: relative;
	width: 100%;
	min-width: 0;
}

.wmp-combo__input {
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") right 0.85rem center / 10px no-repeat;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.65rem 2.25rem 0.65rem 0.85rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
	font-family: inherit;
}

.wmp-combo--base .wmp-combo__input {
	background-color: #eff6ff;
	border-color: #bfdbfe;
	color: #1e3a8a;
	font-weight: 700;
}

.wmp-combo__input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wmp-combo__list {
	position: absolute;
	z-index: 50;
	top: calc(100% + 0.35rem);
	left: 0;
	right: 0;
	max-height: 16rem;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	padding: 0.35rem;
}

.wmp-combo__list[hidden] {
	display: none !important;
}

.wmp-combo__option {
	display: block;
	width: 100%;
	border: none;
	background: transparent;
	text-align: left;
	padding: 0.55rem 0.7rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.35;
}

.wmp-combo__option:hover,
.wmp-combo__option.is-active {
	background: #eff6ff;
	color: #1d4ed8;
}

.wmp-combo__option.is-selected {
	background: #dbeafe;
	color: #1e3a8a;
}

.wmp-combo__empty {
	padding: 0.75rem 0.7rem;
	font-size: 0.82rem;
	color: #94a3b8;
	font-weight: 600;
}

.wmp-add-row {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.wmp-add-row .wmp-select,
.wmp-add-row .wmp-combo {
	flex: 1;
	min-width: 0;
}

.wmp-btn {
	flex-shrink: 0;
	border: none;
	background: #2563eb;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	padding: 0 1.1rem;
	border-radius: 10px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease;
}

.wmp-btn:hover {
	background: #1d4ed8;
}

.wmp-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Office window toggle */
.wmp-officebar {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding-bottom: 1.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 640px) {
	.wmp-officebar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.wmp-officebar__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
}

.wmp-officebar__hint {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: #94a3b8;
	line-height: 1.4;
}

.wmp-office-toggle {
	display: inline-flex;
	flex-shrink: 0;
	background: #f1f5f9;
	border-radius: 10px;
	padding: 0.2rem;
	gap: 0.15rem;
}

.wmp-office-btn {
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.45rem 0.75rem;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.wmp-office-btn.is-active {
	background: #fff;
	color: #1e3a8a;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.wmp-scalebar {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

@media (min-width: 640px) {
	.wmp-scalebar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* Best Match summary */
.wmp-summary {
	margin-bottom: 1.25rem;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.wmp-summary__title {
	font-size: 0.85rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 0.65rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.wmp-summary__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.wmp-summary__list li {
	font-size: 0.875rem;
	line-height: 1.45;
	color: #334155;
}

.wmp-summary__list strong {
	color: #15803d;
	font-variant-numeric: tabular-nums;
}

.wmp-summary__cities {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.78rem;
	color: #64748b;
}

.wmp-summary__empty {
	margin: 0;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.5;
}

/* Timeline */
.wmp-timeline-scroll {
	overflow-x: visible;
}

.wmp-timeline {
	width: 100%;
	min-width: 0;
}

.wmp-timeline__scale {
	display: grid;
	grid-template-columns: 5.25rem minmax(0, 1fr);
	gap: 0.4rem;
	margin-bottom: 0.5rem;
	align-items: end;
}

.wmp-timeline__scale-track {
	position: relative;
	height: 1.75rem;
	border-bottom: 1px solid #e2e8f0;
	min-width: 0;
	overflow: visible;
}

.wmp-timeline__tick {
	position: absolute;
	bottom: 0;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	width: max-content;
	max-width: 3.5rem;
	pointer-events: none;
}

.wmp-timeline__tick:first-child {
	transform: translateX(0);
	align-items: flex-start;
}

.wmp-timeline__tick:last-child,
.wmp-timeline__tick[data-hour="24"] {
	transform: translateX(-100%);
	align-items: flex-end;
}

.wmp-timeline__tick-mark {
	display: block;
	width: 1px;
	height: 0.4rem;
	background: #cbd5e1;
}

.wmp-timeline__tick-label {
	font-size: 0.65rem;
	font-weight: 700;
	color: #94a3b8;
	margin-top: 0.15rem;
	font-variant-numeric: tabular-nums;
}

.wmp-timeline__rows {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.wmp-timeline__row {
	display: grid;
	grid-template-columns: 5.25rem minmax(0, 1fr);
	gap: 0.4rem;
	align-items: center;
}

.wmp-timeline__city {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	min-width: 0;
}

.wmp-timeline__city-name {
	font-size: 0.8rem;
	font-weight: 800;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.wmp-timeline__row--base .wmp-timeline__city-name {
	color: #1e3a8a;
}

.wmp-badge {
	display: inline-block;
	font-size: 0.55rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: #2563eb;
	color: #fff;
	padding: 0.12rem 0.35rem;
	border-radius: 4px;
	line-height: 1.2;
	text-transform: uppercase;
}

.wmp-remove-btn {
	border: none;
	background: transparent;
	color: #dc2626;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.wmp-remove-btn:hover {
	color: #991b1b;
}

.wmp-timeline__track {
	position: relative;
	height: 1.75rem;
	border-radius: 8px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	min-width: 0;
}

.wmp-timeline__office {
	position: absolute;
	top: 0;
	bottom: 0;
	background: #bfdbfe;
	opacity: 0.85;
}

.wmp-timeline__overlap {
	position: absolute;
	top: 0;
	bottom: 0;
	background: #4ade80;
	opacity: 0.9;
	box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.25);
}

.wmp-timeline__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #64748b;
}

.wmp-timeline__legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* Mobile: stack city above track — no horizontal scroll, tighter layout */
@media (max-width: 640px) {
	.wmp-timeline-scroll {
		overflow-x: hidden;
		overflow-y: visible;
		padding-bottom: 0.15rem;
	}

	.wmp-timeline__scale {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.wmp-timeline__scale-label {
		display: none;
	}

	.wmp-timeline__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3rem;
		align-items: stretch;
	}

	.wmp-timeline__city {
		flex-direction: row;
		align-items: center;
		gap: 0.35rem;
	}

	.wmp-timeline__city-name {
		font-size: 0.78rem;
	}

	.wmp-timeline__track {
		height: 1.5rem;
	}

	.wmp-timeline__tick-label {
		font-size: 0.58rem;
	}

	/* Keep major ticks only on narrow screens (0, 6, 12, 18, 24) */
	.wmp-timeline__tick[data-hour="3"] .wmp-timeline__tick-label,
	.wmp-timeline__tick[data-hour="9"] .wmp-timeline__tick-label,
	.wmp-timeline__tick[data-hour="15"] .wmp-timeline__tick-label,
	.wmp-timeline__tick[data-hour="21"] .wmp-timeline__tick-label {
		display: none;
	}
}

.wmp-swatch {
	display: inline-block;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 3px;
}

.wmp-swatch--office {
	background: #bfdbfe;
}

.wmp-swatch--overlap {
	background: #4ade80;
}

.wmp-export {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.25rem;
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 16px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.wmp-export {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.wmp-export__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
}

.wmp-export__copy p {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: #94a3b8;
	line-height: 1.5;
	max-width: 36rem;
}

.wmp-export__steps {
	margin: 0.55rem 0 0;
	padding-left: 1.15rem;
	font-size: 0.8rem;
	color: #cbd5e1;
	line-height: 1.55;
	max-width: 36rem;
}

.wmp-export__steps li + li {
	margin-top: 0.25rem;
}

.wmp-export__steps kbd {
	display: inline-block;
	padding: 0.05rem 0.35rem;
	border-radius: 4px;
	border: 1px solid #475569;
	background: #1e293b;
	font-size: 0.72rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #e2e8f0;
}

.wmp-export__actions-wrap {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	flex-shrink: 0;
}

.wmp-export__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

@media (min-width: 480px) {
	.wmp-export__actions {
		flex-direction: row;
		align-items: center;
	}
}

.wmp-export__status {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #86efac;
	line-height: 1.4;
}

.wmp-export__status.is-error {
	color: #fca5a5;
}

.wmp-export__btn {
	flex-shrink: 0;
	border: none;
	background: #2563eb;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	padding: 0.85rem 1.35rem;
	border-radius: 12px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
	white-space: nowrap;
}

.wmp-export__btn:hover {
	background: #1d4ed8;
}

.wmp-export__btn--ghost {
	background: transparent;
	color: #e2e8f0;
	border: 1px solid #475569;
	box-shadow: none;
}

.wmp-export__btn--ghost:hover {
	background: #1e293b;
	border-color: #64748b;
	color: #fff;
}

.wmp-export__btn.is-copied {
	background: #15803d;
	border-color: #15803d;
	color: #fff;
	box-shadow: none;
}

.wmp-faq {
	margin-top: 0.5rem;
	margin-bottom: 2rem;
}

.wmp-faq .us-faq-body {
	counter-reset: faq-section;
}

.wmp-faq .us-faq-body h3.us-faq-heading {
	counter-increment: faq-section;
}

.wmp-faq .us-faq-body h3.us-faq-heading::before {
	content: counter(faq-section) ". ";
	color: #0ea5e9;
	font-weight: 800;
}
