/* Our Documents for Elementor */
.ode-wrap {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: #0f172a;
	width: 100%;
	box-sizing: border-box;
}
.ode-wrap *,
.ode-wrap *::before,
.ode-wrap *::after { box-sizing: border-box; }

/* ---------- Tabs ---------- */
.ode-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}
.ode-tab {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	border: 1px solid #e6ebf1;
	background: #f1f5f9;
	color: #0f172a;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	padding: 14px 22px;
	border-radius: 10px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ode-tab:hover { background: #e7edf4; color: #0f172a; }
.ode-tab:focus-visible { outline: 2px solid #e0291b; outline-offset: 2px; }
.ode-tab.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #fff;
}
.ode-tab.is-active::after {
	content: '';
	position: absolute;
	left: 22px;
	bottom: 0;
	width: 32px;
	height: 2px;
	border-radius: 2px;
	background: #e0291b;
}

/* ---------- Search + count ---------- */
.ode-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.ode-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 440px;
	max-width: 100%;
	height: 38px;
	padding: 0 14px;
	background: #f1f5f9;
	border-radius: 8px;
	margin: 0;
	cursor: text;
}
.ode-search svg { flex: 0 0 auto; color: #0f172a; }
.ode-search-input,
.ode-search-input:focus {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	color: #0f172a;
	-webkit-appearance: none;
	appearance: none;
}
.ode-search-input::placeholder { color: #94a3b8; opacity: 1; }
.ode-search-input::-webkit-search-cancel-button { cursor: pointer; }
.ode-search:focus-within { box-shadow: 0 0 0 2px rgba(224, 41, 27, .25); }
.ode-count {
	font-size: 11px;
	color: #94a3b8;
	white-space: nowrap;
	margin-left: auto;
}

/* ---------- Cards ---------- */
.ode-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ode-card {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.ode-card[hidden] { display: none !important; }

.ode-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 62px;
	background: #f3f5f8;
	border-radius: 8px;
}
.ode-icon svg { display: block; width: 26px; height: auto; }

.ode-content { flex: 1 1 auto; min-width: 0; }
.ode-badge {
	display: inline-block;
	font-size: 8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
}
.ode-title {
	margin: 0 0 4px;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: #0f172a;
}
.ode-desc {
	margin: 0;
	max-width: 420px;
	font-size: 11px;
	line-height: 1.55;
	color: #64748b;
}

.ode-meta {
	flex: 0 0 190px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ode-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	line-height: 1.3;
	color: #475569;
}
.ode-meta-item svg { flex: 0 0 auto; color: #0f172a; }
.ode-meta-date { color: #0f172a; font-weight: 500; }

.ode-action { flex: 0 0 auto; display: flex; justify-content: flex-end; }
.ode-btn,
.ode-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 118px;
	padding: 11px 24px;
	background: #e0291b;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border-radius: 999px;
	border: 0;
	box-shadow: none;
	white-space: nowrap;
	transition: background-color .2s ease, transform .2s ease;
}
.ode-btn:hover { background: #bf1f13; color: #fff; text-decoration: none; }
.ode-btn:active { transform: translateY(1px); }
.ode-btn:focus-visible { outline: 2px solid #0f172a; outline-offset: 2px; }

.ode-empty {
	text-align: center;
	color: #64748b;
	font-size: 14px;
	padding: 36px 0;
	margin: 0;
}
.ode-empty[hidden] { display: none; }

/* ---------- Pagination ---------- */
.ode-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}
.ode-pagination:empty { display: none; }
.ode-page,
.ode-more {
	appearance: none;
	-webkit-appearance: none;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #e6ebf1;
	background: #f1f5f9;
	color: #0f172a;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ode-page:hover,
.ode-more:hover,
.ode-page.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #fff;
}
.ode-page:disabled { opacity: .4; cursor: default; pointer-events: none; }
.ode-more { padding: 0 28px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.ode-card { gap: 18px; }
	.ode-meta { flex-basis: 160px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	/* Tabs scroll sideways instead of wrapping into many rows */
	.ode-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 8px;
		margin-left: -2px;
		padding: 2px 2px 4px;
	}
	.ode-tabs::-webkit-scrollbar { display: none; }
	.ode-tab { flex: 0 0 auto; padding: 13px 18px; }
	.ode-tab.is-active::after { left: 18px; }

	.ode-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
	.ode-search { width: 100%; height: 42px; }
	.ode-search-input { font-size: 14px; } /* avoids iOS zoom on focus */
	.ode-count { margin-left: 0; text-align: right; }

	.ode-card {
		display: grid;
		grid-template-columns: 64px 1fr;
		grid-template-areas:
			"icon content"
			"meta meta"
			"action action";
		column-gap: 14px;
		row-gap: 12px;
		align-items: start;
		padding: 14px;
	}
	.ode-icon { grid-area: icon; width: 64px; height: 64px; }
	.ode-content { grid-area: content; }
	.ode-desc { max-width: none; }
	.ode-meta {
		grid-area: meta;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px 18px;
		padding-top: 12px;
		border-top: 1px solid #eef2f6;
	}
	.ode-action { grid-area: action; }
	.ode-btn { width: 100%; padding: 13px 20px; }

	/* If the icon is hidden, content takes the full width */
	.ode-card > .ode-content:first-child { grid-column: 1 / -1; }
}
