.fv-otd-calendar {
	position: relative;
}

.fv-otd-calendar__toggle {
	cursor: pointer;
	padding: 0.35em 0.75em;
	border: 1px solid currentColor;
	border-radius: 4px;
	display: none;
}

.fv-otd-calendar__panel {
	position: absolute;
	z-index: 100;
	padding: 0.75em;
	min-width: 18rem;
	max-width: 24rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	min-height: 13em;
}

.fv-otd-calendar__panel[hidden] {
	display: none;
}

.fv-otd-calendar__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	margin-bottom: 0.5em;
}

.fv-otd-calendar__nav-btn {
	cursor: pointer;
	padding: 0.25em 0.5em;
	border-radius: 4px;
	line-height: 1.2;
	background: transparent;
	border: 0;
	color: var( --archive-title-bg, #ccc );
}

.fv-otd-calendar__grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.875rem;
}

.fv-otd-calendar__grid,
.fv-otd-calendar__grid tbody tr:nth-child(odd),
.fv-otd-calendar__grid tbody tr:nth-child(even) {
	background: transparent;
}

.fv-otd-calendar__grid th {
	padding: 0.25em;
	font-weight: 600;
	text-align: center;
}

.fv-otd-calendar__grid td {
	padding: 2px;
	text-align: center;
	vertical-align: middle;
}

.fv-otd-calendar__day,
.fv-otd-calendar__pad {
	border: inherit;
	color: #333;
	font-size: 15px;
	font-weight: 300;
	padding: 0;
	width: 2em;
	height: 2em;
	line-height: 2em;
	border-radius: 1em;
	background: transparent;
	transition: none;
}

.fv-otd-calendar__day.is-selected {
	font-weight: 700;
	background: var(--primary-color, #c03);
	color: #fff;
}

.fv-otd-calendar__day--feb29-extra {
	font-style: italic;
}

.fv-otd-calendar__day:hover {
	background-color: var(--top-recent-bg);
}

.fv-otd-calendar__pad {
	visibility: hidden;
	pointer-events: none;
}

.dropdown-container {
  display: inline-block;
}

.dropdown-trigger {
  background: transparent;
  border: none;
  padding: 8px 0; /* Removed side padding to align exactly with text */
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  transition: color 0.2s;
	width: 8rem;
}

.dropdown-trigger:hover,
.dropdown-trigger:focus {
  color: #000; /* Subtle text darkening on hover instead of a background color */
	background-color: transparent;
}

.dropdown-menu {
	position: absolute;
	top: 3em;
	left: 0;
	right: 0;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	background: white;
	border-radius: 6px;
	width: 100%;
	height: calc( 100% - 3em );
	z-index: 100;
	display: grid;
	align-content: center;
	justify-items: center;
	grid-template-columns: 1fr 1fr 1fr;
}

/*.dropdown-container:hover .dropdown-menu*/
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); 
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 3em;
  transform: rotate(45deg); /* Removed the X translation */
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid #f0f0f0;
  border-top: 1px solid #f0f0f0;
  border-radius: 2px 0 0 0;
}

.dropdown-item {
  display: block; /* Switched from flexbox since there are no longer side-by-side icons */
  padding: 3px 14px;
  color: inherit;
  text-decoration: none;
	font-family: var(--display-font, Helvetica);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s;
	margin: 8px 0;
}

.dropdown-item:hover {
  background: #f4f4f5;
}

.dropdown-item.selected {
	background: var(--primary-color, #c03);
	color: #fff;
}