/* Uniabex Investor Relations — front-end
   Palette lifted from the legacy site: #0f5eaa / #2d77b9 gradient, #f7be3d accent. */

.uir-wrap,
.uir-overview {
	--uir-blue-dark: #0f5eaa;
	--uir-blue: #2d77b9;
	--uir-accent: #f7be3d;
	--uir-border: #ddd;
	--uir-cols: 3;
	font-size: 15px;
	color: #333;
}

/* ---------- Section heads ---------- */
.uir-head {
	background: linear-gradient(to right, var(--uir-blue), var(--uir-blue-dark));
	padding: 15px 17px;
}
.uir-head h3 {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}
.uir-head .uir-year { font-weight: 400; }

/* ---------- Tables ---------- */
.uir-table-wrap { border: 1px solid var(--uir-border); border-top: 0; overflow-x: auto; }
.uir-table { width: 100%; border-collapse: collapse; margin: 0; }
.uir-table th,
.uir-table td { padding: 10px 16px; text-align: left; vertical-align: middle; }
.uir-table thead th { background: var(--uir-border); border-bottom: 1px solid #ccc; font-weight: 600; }
.uir-table tbody tr + tr td { border-top: 1px solid #eee; }
.uir-table tbody tr:hover { background: #f6f9fc; }
.uir-table a { color: var(--uir-blue-dark); text-decoration: none; }
.uir-table a:hover { text-decoration: underline; }
.uir-center { text-align: center !important; }
.uir-col-q, .uir-col-sr { width: 90px; }
.uir-col-date { width: 140px; white-space: nowrap; }
.uir-empty { color: #777; font-style: italic; }
.uir-missing { color: #b32d2e; }

/* PDF icon — inline SVG so there is no icon-font dependency */
.uir-icon-pdf {
	display: inline-block;
	width: 22px; height: 22px;
	background: no-repeat center/contain
		url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f5eaa'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm0 2 4.5 4.5H14V4zM8 13h8v1.5H8V13zm0 3h8v1.5H8V16z'/%3E%3C/svg%3E");
	vertical-align: middle;
}
.uir-pdf-icon:hover .uir-icon-pdf { opacity: .7; }

/* ---------- Quarterly: year tabs ---------- */
.uir-tabs-layout { display: flex; gap: 24px; align-items: flex-start; }
.uir-tabs-side { flex: 0 0 200px; }
.uir-tabs-main { flex: 1 1 auto; min-width: 0; }
.uir-tabs { list-style: none; margin: 0; padding: 0; }
.uir-tabs li { margin: 0 0 6px; }
.uir-tab {
	display: block; width: 100%;
	padding: 12px 18px;
	background: #f2f2f2;
	border: 1px solid #e0e0e0;
	color: #333;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}
.uir-tab:hover { background: #e8eef5; }
.uir-tab.is-active {
	background: linear-gradient(to right, var(--uir-blue), var(--uir-blue-dark));
	border-color: var(--uir-blue-dark);
	color: #fff;
	font-weight: 600;
}
.uir-panel { display: none; }
.uir-panel.is-active { display: block; }
.uir-burger { display: none; }

/* ---------- Annual report cards ---------- */
.uir-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 18px;
}
.uir-card { border: 1px solid var(--uir-border); }
.uir-card-head {
	background: linear-gradient(to right, #006eb0, #3992c2);
	color: #fff; font-weight: 700; padding: 10px 14px;
}
.uir-card-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.uir-card-body a { color: var(--uir-blue-dark); text-decoration: none; }

/* ---------- Overview grid ---------- */
.uir-overview-title {
	font-size: 24px;
	color: var(--uir-blue-dark);
	margin: 0 0 26px;
}
.uir-overview-grid { display: flex; gap: 26px; align-items: flex-start; }
.uir-overview-main {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(var(--uir-cols), minmax(0, 1fr));
	gap: 20px;
	min-width: 0;
}
.uir-overview-side { flex: 0 0 290px; }

.uir-tile-head {
	display: block;
	background: linear-gradient(to right, var(--uir-blue), var(--uir-blue-dark));
	color: #fff;
	padding: 8px 15px;
	text-decoration: none;
}
.uir-tile-head h4 {
	margin: 0;
	font-size: 15px;
	color: #fff;
	border-bottom: 2px solid var(--uir-accent);
	padding-bottom: 4px;
}
.uir-tile-head:hover h4 { border-bottom-color: #fff; }
.uir-tile-body {
	border: 2px solid #0068ae;
	border-top: 0;
	padding: 16px 18px;
	min-height: 200px;
}
.uir-tile-body ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.uir-tile-body li { line-height: 2.1; border-bottom: 1px dotted #e3e3e3; }
.uir-tile-body li:last-child { border-bottom: 0; }
.uir-tile-body a { color: var(--uir-blue-dark); text-decoration: none; }
.uir-tile-body a:hover { text-decoration: underline; }
.uir-more { margin: 10px 0 0; font-size: 13px; }
.uir-tile-side .uir-tile-body { min-height: 375px; }

.uir-side-cta {
	background: linear-gradient(to right, var(--uir-blue), var(--uir-blue-dark));
	padding: 18px 15px;
	margin-bottom: 26px;
}
.uir-side-cta a { color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; text-decoration: none; }

/* ---------- Contacts ---------- */
.uir-contacts { display: flex; flex-wrap: wrap; align-items: stretch; margin-top: 40px; }
.uir-contacts-banner {
	flex: 0 0 30%;
	background: linear-gradient(to right, var(--uir-blue), var(--uir-blue-dark));
	display: flex; align-items: center; padding: 40px 50px;
}
.uir-contacts-banner h3 { margin: 0; color: #fff; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.uir-contact-box { flex: 1 1 300px; border: 1px solid #cfcfcf; padding: 16px 30px; }
.uir-contact-box h5 { font-weight: 700; font-size: 16px; color: #005aaa; margin: 0 0 10px; }
.uir-contact-box p { margin: 0 0 8px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.uir-overview-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.uir-overview-grid { flex-direction: column; }
	.uir-overview-side { flex: 1 1 auto; width: 100%; }
	.uir-tile-side .uir-tile-body { min-height: 0; }
	.uir-contacts-banner { flex: 1 1 100%; padding: 24px 30px; }
}
@media (max-width: 749px) {
	.uir-overview-main { grid-template-columns: 1fr; }
	.uir-tabs-layout { flex-direction: column; }
	.uir-tabs-side { flex: 1 1 auto; width: 100%; }
	.uir-burger {
		display: block; width: 100%;
		padding: 14px 18px;
		background: var(--uir-blue-dark); color: #fff;
		border: 0; font-size: 16px; text-align: left; cursor: pointer;
	}
	.uir-tabs { display: none; }
	.uir-tabs.is-open { display: block; }
	.uir-table th, .uir-table td { padding: 8px 10px; }
	.uir-head h3 { font-size: 17px; }
}

/* ================================================================
   Archive pages (category + all documents)
   These render through the plugin's own templates, so they need
   their own page chrome — the theme provides only header/footer.
   ================================================================ */

.uir-page-banner {
	background: linear-gradient(120deg, #0b4e8f 0%, #0f5eaa 45%, #2d77b9 100%);
	color: #fff;
	padding-bottom: 42px;
	/* Sits behind the transparent header. The header keeps its own stacking
	   context, so its links stay clickable above this. */
	position: relative;
	z-index: 0;
}
/* Keep the theme header above the banner and let the blue show through it. */
.uir-archive-page header,
.uir-archive-page .elementor-location-header,
.uir-archive-page .ehf-header,
.uir-archive-page #masthead {
	position: relative;
	z-index: 5;
	background-color: transparent !important;
}
.uir-page-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 34px 24px 0;
}
.uir-page-banner h1 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 38px;
	line-height: 1.2;
	font-weight: 700;
}
.uir-page-banner p { margin: 0; color: rgba(255,255,255,.85); font-size: 16px; }
.uir-crumbs { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.8); }
.uir-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.uir-crumbs a:hover { border-bottom-color: #fff; }
.uir-crumbs span { margin: 0 6px; }
.uir-crumbs span + span { margin-left: 0; }

.uir-archive-wrap { background: #fff; padding: 44px 0 64px; }
.uir-archive-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* The theme's h1/h2 sizing was leaking into our tables — scope ours. */
.uir-archive-inner .uir-table td,
.uir-archive-inner .uir-table th {
	font-size: 15px;
	line-height: 1.5;
	font-weight: 400;
}
.uir-archive-inner .uir-table thead th { font-weight: 600; }
.uir-archive-inner .uir-head h3 { font-size: 20px; color: #fff; }
.uir-archive-inner .uir-card-head { font-size: 16px; }

.uir-other-cats {
	margin-top: 46px;
	padding-top: 26px;
	border-top: 1px solid #e3e3e3;
}
.uir-other-cats h4 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: #0f5eaa;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.uir-other-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.uir-other-cats li { margin: 0; }
.uir-other-cats a {
	display: inline-block;
	padding: 8px 16px;
	background: #f2f6fa;
	border: 1px solid #d8e4ef;
	border-radius: 3px;
	color: #0f5eaa;
	font-size: 14px;
	text-decoration: none;
}
.uir-other-cats a:hover { background: #0f5eaa; border-color: #0f5eaa; color: #fff; }

@media (max-width: 749px) {
	.uir-page-banner h1 { font-size: 26px; }
	.uir-page-banner-inner { padding: 24px 18px 0; }
	.uir-archive-inner { padding: 0 18px; }
	.uir-archive-wrap { padding: 28px 0 44px; }
}
