/* Our House Editorial Assistant — public translation UI. Uses the theme's own tokens. */

.oh-ea-mt-banner {
	margin: 0 0 1.5em;
	padding: 11px 14px;
	border-left: 3px solid var(--site-brand, #168f72);
	border-radius: 0;
	background: var(--site-surface-soft, #f8fbfa);
	color: var(--site-ink, #24302f);
	font-family: var(--site-font-ui, "Source Sans 3", system-ui, sans-serif);
	font-size: 0.9rem;
	line-height: 1.5;
}

.oh-ea-mt-banner a {
	color: var(--site-brand-dark, #087a52);
	font-weight: 700;
	text-decoration: underline;
}

.oh-ea-mt-banner__hint {
	color: var(--site-ink-muted, #465251);
}

@media (hover: none) {
	.oh-ea-mt-banner__hint {
		display: none;
	}
}

/* Language switcher: a menu item like the theme's own submenus. */

.oh-ea-lang {
	position: relative;
}

.oh-ea-lang__toggle {
	display: inline-flex !important; /* the theme forces display:block on menu item links */
	align-items: center;
	gap: 4px;
	padding: 4px 6px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.oh-ea-lang__toggle:hover,
.oh-ea-lang__toggle[aria-expanded="true"] {
	background: rgba(15, 63, 56, 0.08);
}

.oh-ea-lang__toggle:focus-visible {
	outline: 2px solid var(--site-brand, #168f72);
	outline-offset: 2px;
}

.oh-ea-lang__globe {
	color: var(--site-brand, #168f72);
}

.oh-ea-lang__caret::after {
	content: "";
	display: inline-block;
	margin-left: 2px;
	border: 4px solid transparent;
	border-top-color: currentColor;
	opacity: 0.55;
	transform: translateY(2px);
}

.oh-ea-lang__menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 100;
	min-width: 200px;
	margin: 6px 0 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(15, 63, 56, 0.18);
	box-shadow: 0 8px 24px rgba(15, 63, 56, 0.12);
	font-family: var(--site-font-ui, "Source Sans 3", system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 400;
	text-align: left;
}

.oh-ea-lang__menu[hidden] {
	display: none;
}

.oh-ea-lang__item > a,
.oh-ea-lang__item > span {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 14px;
	color: var(--site-ink, #24302f);
	text-decoration: none;
	white-space: nowrap;
}

.oh-ea-lang__item > a:hover,
.oh-ea-lang__item > a:focus-visible {
	background: var(--oh-pale, #e3f0ed);
	outline: none;
}

.oh-ea-lang__item.is-current > span {
	background: var(--site-surface, #e3f0ed);
	color: var(--site-brand-dark, #087a52);
	font-weight: 700;
}

.oh-ea-lang__item.is-current > span::after {
	content: "✓";
}

.oh-ea-lang__item.is-missing > span {
	color: #9aa3a2;
}

.oh-ea-lang__note {
	color: var(--site-ink-muted, #465251);
	font-size: 0.8em;
	font-weight: 400;
}

.oh-ea-lang__item.is-missing .oh-ea-lang__note {
	color: inherit;
}

/* Inside the mobile overlay menu the list opens in place. */
.wp-block-navigation__responsive-container.is-menu-open .oh-ea-lang__menu {
	position: static;
	margin: 4px 0 0;
	box-shadow: none;
}

/* Report an inaccuracy */

.oh-ea-report-tip {
	position: absolute;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border: 0;
	border-radius: 6px;
	background: var(--site-ink, #24302f);
	color: #fff;
	font: 600 13px/1.2 var(--site-font-ui, "Source Sans 3", system-ui, sans-serif);
	cursor: pointer;
}

.oh-ea-report-dialog {
	width: min(520px, calc(100vw - 32px));
	padding: 20px;
	border: 1px solid rgba(15, 63, 56, 0.18);
	border-radius: 6px;
	color: var(--site-ink, #24302f);
	font-family: var(--site-font-ui, "Source Sans 3", system-ui, sans-serif);
}

.oh-ea-report-dialog::backdrop {
	background: rgba(15, 63, 56, 0.35);
}

.oh-ea-report-dialog h2 {
	margin: 0 0 12px;
	font-family: var(--site-font-heading, Montserrat, sans-serif);
	font-size: 1.2rem;
}

.oh-ea-report-dialog blockquote {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-left: 3px solid var(--site-brand, #168f72);
	background: var(--site-surface-soft, #f8fbfa);
	font-family: var(--site-font-body, "Source Serif 4", Georgia, serif);
	font-size: 0.95rem;
}

.oh-ea-report-dialog label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.oh-ea-report-dialog textarea {
	width: 100%;
	min-height: 90px;
	padding: 8px;
	border: 1px solid rgba(15, 63, 56, 0.3);
	border-radius: 4px;
	font: inherit;
}

.oh-ea-report-dialog .oh-ea-hp {
	position: absolute;
	left: -9999px;
}

.oh-ea-report-dialog__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.oh-ea-report-dialog button {
	padding: 8px 16px;
	border: 1px solid var(--site-brand, #168f72);
	border-radius: 4px;
	background: #fff;
	color: var(--site-brand-dark, #087a52);
	font: 700 14px var(--site-font-ui, "Source Sans 3", system-ui, sans-serif);
	cursor: pointer;
}

.oh-ea-report-dialog button[type="submit"] {
	background: var(--site-brand, #168f72);
	color: #fff;
}

.oh-ea-report-dialog__status {
	margin: 10px 0 0;
}
