/* Custom select: structure, dropdown list and motion. Each place it is used styles its own button. */
.ph-sel { position: relative; display: inline-block; }
.ph-sel__native { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* chevron follows the button's text colour */
.ph-sel__btn::after {
	content: ""; flex: none; margin-left: auto; width: 11px; height: 8px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1);
}
.ph-sel.is-open .ph-sel__btn::after { transform: rotate(180deg); }

.ph-sel__list {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 100%; max-height: 280px; overflow-y: auto;
	margin: 0; padding: 6px; list-style: none; background: #fff; color: #002638;
	border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.96); transform-origin: top left;
	transition: opacity .16s cubic-bezier(0.23, 1, 0.32, 1), transform .16s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear .16s;
}
.ph-sel.is-open .ph-sel__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* no room below the button (set by ph-select.js when it opens): open upwards instead */
.ph-sel--up .ph-sel__list { top: auto; bottom: calc(100% + 6px); transform: translateY(4px) scale(0.96); transform-origin: bottom left; }
.ph-sel__opt {
	margin: 0; padding: 8px 12px 8px 30px; border-radius: 8px; position: relative;
	font-size: 13px; line-height: 1.3; white-space: nowrap; cursor: pointer; color: #002638;
}
.ph-sel__opt[aria-selected="true"] { font-weight: 600; }
.ph-sel__opt[aria-selected="true"]::before {
	content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.8 3.8 7.2-8.3' fill='none' stroke='%23b3a280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph-sel__opt.is-active { background: #f1ece2; }
@media (hover: hover) and (pointer: fine) {
	.ph-sel__opt:hover { background: #f1ece2; }
}
@media (prefers-reduced-motion: reduce) {
	.ph-sel__list { transform: none; transition: opacity .16s ease, visibility 0s linear .16s; }
	.ph-sel.is-open .ph-sel__list { transition-delay: 0s; }
	.ph-sel__btn::after { transition: none; }
}
