/* OD Errata - note box on Reference Hub entries. Uses the hub's own colors. */
.ode-hubnote {
	margin: -4px 0 18px;
	padding: 10px 14px 10px 14px;
	background: #fbf3e3;
	border: 1px solid #e6cfa3;
	border-left: 4px solid #a85e15;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
}
.ode-hubnote-head {
	color: #a85e15;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.ode-hubnote ul { list-style: none; margin: 0; padding: 0; }
.ode-hubnote li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	padding: 3px 0;
}
.ode-hubnote li + li { border-top: 1px dashed #ead9b8; }
.ode-hubnote a {
	color: #261307;
	text-decoration: none;
	font-weight: 600;
}
.ode-hubnote a:hover, .ode-hubnote a:focus { color: #a85e15; text-decoration: underline; }
.ode-hubnote-num { color: #a85e15; font-weight: 700; font-variant-numeric: tabular-nums; }
.ode-hubnote-tag { color: #6b5d44; font-size: 12px; font-style: italic; }
@media print { .ode-hubnote { break-inside: avoid; } }

/* ---------- popup ---------- */
html.ode-pop-on, html.ode-pop-on body { overflow: hidden; }
.ode-pop[hidden], .ode-pop [hidden] { display: none !important; }
.ode-pop {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.ode-pop-backdrop { position: absolute; inset: 0; background: rgba(26, 14, 5, .6); }
.ode-pop-panel {
	position: relative; display: flex; flex-direction: column;
	width: 100%; max-width: 640px; max-height: calc(100vh - 32px);
	background: #fbf6ea; border: 1px solid #e0d6bf; border-top: 5px solid #a85e15;
	border-radius: 12px; box-shadow: 0 12px 40px rgba(26, 14, 5, .35);
	color: #261307; font-size: 16px; line-height: 1.55;
}
.ode-pop-head { position: relative; padding: 16px 56px 10px 22px; border-bottom: 1px solid #e0d6bf; }
.ode-pop-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ode-pop-num { color: #a85e15; font-weight: 700; }
.ode-pop-tag { color: #6b5d44; font-weight: 600; }
.ode-pop-title { margin: 4px 0 0; color: #a85e15; font-size: 22px; line-height: 1.25; font-weight: 700; font-family: inherit; }
.ode-pop-x {
	position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
	border: 1px solid #e0d6bf; border-radius: 50%; background: #fff; color: #261307;
	font-size: 24px; line-height: 1; cursor: pointer;
}
.ode-pop-x:hover, .ode-pop-x:focus-visible { border-color: #cc7622; color: #a85e15; }
.ode-pop-body { padding: 14px 22px 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ode-pop-body p { margin: 0 0 .8em; }
.ode-pop-body ul, .ode-pop-body ol { margin: 0 0 .8em; padding-left: 1.4em; }
.ode-pop-body li { margin-bottom: .35em; }
.ode-pop-body li::marker { color: #a85e15; font-weight: 700; }
.ode-pop-body .ode-change { color: #6b5d44; font-size: 15px; border-left: 3px solid #e6cfa3; padding-left: 10px; }
.ode-pop-body .ode-change strong { font-style: normal; }
.ode-pop-body a.ode-xref { color: #a85e15; }
.ode-pop-body .ode-table-wrap { overflow-x: auto; margin: 6px 0 10px; }
.ode-pop-body .ode-table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
.ode-pop-body .ode-table th, .ode-pop-body .ode-table td { border: 1px solid #e0d6bf; padding: 5px 10px; text-align: center; }
.ode-pop-body .ode-table th { background: #a85e15; color: #fff; font-weight: 700; }
.ode-pop-body .ode-table tr:nth-child(odd) td { background: #f7efdc; }
.ode-pop-foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 22px 14px; border-top: 1px solid #e0d6bf;
}
.ode-pop-open {
	display: inline-flex; align-items: center; border: 1px solid #e0d6bf; background: #fff; color: #261307;
	border-radius: 8px; padding: 7px 12px; font-size: 13px; text-decoration: none;
}
.ode-pop-open:hover, .ode-pop-open:focus-visible { border-color: #cc7622; color: #a85e15; }
.ode-pop-nav { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #6b5d44; }
.ode-pop-nav button {
	width: 36px; height: 36px; border: 1px solid #e0d6bf; border-radius: 8px; background: #fff; color: #261307;
	font-size: 22px; line-height: 1; cursor: pointer;
}
.ode-pop-nav button:hover:not(:disabled) { border-color: #cc7622; color: #a85e15; }
.ode-pop-nav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 600px) {
	.ode-pop { padding: 8px; align-items: flex-end; }
	.ode-pop-panel { max-height: calc(100vh - 16px); border-radius: 12px 12px 8px 8px; }
	.ode-pop-head { padding: 14px 52px 8px 16px; }
	.ode-pop-title { font-size: 19px; }
	.ode-pop-body { padding: 12px 16px 4px; }
	.ode-pop-foot { padding: 10px 16px 12px; }
}
