/**
 * Mobile-first responsive system
 * ≤640px phone | 641–1024px tablet | ≥1025px desktop
 */

.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-nav-panel__head,
.mobile-nav-close,
.submenu-toggle {
	display: none;
}

/* მობილური ლოგო — არ ვმალავთ გლობალურად, მხოლოდ დესკტოპზე */
@media (min-width: 1025px) {
	.mobile-header-brand {
		display: none !important;
	}
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	overflow-x: clip;
	max-width: 100vw;
	line-height: 1.6;
}

img, video, iframe { max-width: 100%; height: auto; }

.site-header .mobile-header-brand__img,
.site-header .mobile-header-brand img {
	max-width: none !important;
	width: 48px !important;
	height: 48px !important;
}

body, h1, h2, h3, p, a, li, td, th {
	overflow-wrap: break-word;
	word-break: normal;
}

/* ══════════════════════════════════════
   TABLET & MOBILE ≤1024px
══════════════════════════════════════ */
@media (max-width: 1024px) {
	:root {
		--ies-gutter: 16px;
		--ies-header-h: 56px;
		--ies-min-height: 0;
	}

	/* Layout */
	.content-width,
	div.content-width,
	div.container,
	div.container.content-width {
		width: 100% !important;
		max-width: 100% !important;
		min-height: var(--ies-min-height) !important;
		margin-bottom: 0 !important;
		padding-left: var(--ies-gutter) !important;
		padding-right: var(--ies-gutter) !important;
		box-sizing: border-box !important;
	}

	.layout-shell {
		padding: 8px 0 24px;
		gap: 1.5rem;
	}

	div.content,
	.home-content-shell,
	.page-content-shell {
		padding: 0 !important;
		background: transparent !important;
	}

	/* Header */
	body.admin-bar {
		padding-top: 46px;
	}

	@media screen and (min-width: 783px) {
		body.admin-bar {
			padding-top: 32px;
		}
	}

	.site-header {
		position: sticky;
		top: 0;
		z-index: 9000;
		background: linear-gradient(180deg, #5a0014 0%, #8d1533 26%, #7c001d 62%, #5a0014 100%);
		padding-top: 0;
		box-shadow: 0 4px 16px rgba(92, 6, 26, 0.18);
	}

	.top-nav {
		position: relative;
		z-index: 9001;
		background: transparent !important;
		border-bottom: 0;
	}

	.site-header::after {
		display: none;
	}

	.hero-header { display: none !important; }

	.top-nav-inner {
		display: grid !important;
		grid-template-columns: 48px 1fr auto;
		grid-template-areas: "menu brand lang";
		align-items: center;
		column-gap: 8px;
		position: relative;
		min-height: 60px;
		padding: 10px 0;
		overflow: visible;
	}

	.mobile-nav-toggle {
		display: inline-flex !important;
		grid-area: menu;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
		cursor: pointer;
		justify-self: start;
	}

	.mobile-nav-toggle__icon {
		display: flex;
		flex-direction: column;
		gap: 5px;
		width: 20px;
	}

	.mobile-nav-toggle__icon span {
		display: block;
		height: 2px;
		background: currentColor;
		border-radius: 1px;
		transition: transform .2s, opacity .2s;
	}

	body.mobile-nav-open .mobile-nav-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	body.mobile-nav-open .mobile-nav-toggle__icon span:nth-child(2) { opacity: 0; }
	body.mobile-nav-open .mobile-nav-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.site-header .top-nav .mobile-header-brand {
		display: flex !important;
		grid-area: brand;
		align-items: center;
		justify-content: center;
		justify-self: center;
		flex: 0 0 48px;
		width: 48px;
		min-width: 48px;
		height: 48px;
		padding: 0;
		text-decoration: none;
		z-index: 10;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.mobile-header-brand__img,
	.mobile-header-brand img {
		display: block !important;
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: contain;
		border-radius: 50%;
		border: 2px solid rgba(255, 255, 255, 0.42);
		box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
		flex-shrink: 0;
	}

	.language-bar ul {
		background-color: rgba(255, 255, 255, 0.96);
		border-color: rgba(255, 255, 255, 0.35);
	}

	.language-bar {
		grid-area: lang;
		justify-self: end;
		position: relative;
		z-index: 4;
	}

	.language-bar a {
		min-width: 36px;
		min-height: 36px;
		height: 36px;
	}

	/* Drawer */
	.mobile-nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		top: calc(var(--ies-header-h) + env(safe-area-inset-top, 0));
		z-index: 8998;
		background: rgba(0,0,0,.4);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .2s, visibility .2s;
	}

	body.mobile-nav-open .mobile-nav-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	body.mobile-nav-open { overflow: hidden; }

	.main-navigation {
		position: fixed !important;
		top: calc(var(--ies-header-h) + env(safe-area-inset-top, 0)) !important;
		left: 0 !important;
		bottom: 0 !important;
		z-index: 8999 !important;
		width: min(88vw, 300px) !important;
		flex: none !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateX(-110%);
		transition: transform .25s ease;
		display: flex !important;
		flex-direction: column;
		box-shadow: 4px 0 24px rgba(0,0,0,.12);
		opacity: 1;
		visibility: visible;
	}

	body.mobile-nav-open .main-navigation { transform: translateX(0); }

	.mobile-nav-panel__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 16px;
		border-bottom: 1px solid #eee;
		background: #fafafa;
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.mobile-nav-panel__title {
		margin: 0;
		font-size: .8rem;
		text-transform: uppercase;
		letter-spacing: .05em;
		color: #800020;
	}

	.mobile-nav-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 8px;
		background: #fff;
		font-size: 1.5rem;
		line-height: 1;
		color: #800020;
		cursor: pointer;
	}

	.main-menu {
		flex-direction: column !important;
		align-items: stretch !important;
		padding: 8px 0 24px !important;
		margin: 0 !important;
	}

	.main-menu > li {
		width: 100% !important;
		margin: 0 !important;
		border-bottom: 1px solid #f0f0f0;
	}

	.main-menu > li > a {
		display: flex !important;
		align-items: center;
		min-height: 50px !important;
		padding: 12px 18px !important;
		font-size: 15px !important;
		color: #222 !important;
	}

	.main-menu > li.menu-item-has-children:not(.menu-item-home-icon) > a::after {
		display: none !important;
	}

	.main-menu > li.menu-item-has-children { position: relative; }

	.submenu-toggle {
		display: inline-flex;
		position: absolute;
		top: 3px;
		right: 8px;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 8px;
		background: #f5f0f1;
		color: #800020;
		cursor: pointer;
	}

	.submenu-toggle::before {
		content: "";
		width: 7px;
		height: 7px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s;
	}

	.main-menu li.submenu-open > .submenu-toggle::before { transform: rotate(-135deg); }

	.main-menu .sub-menu {
		position: static !important;
		display: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		box-shadow: none !important;
		border: 0 !important;
		background: #f8f8f8 !important;
		padding: 0 0 8px !important;
		min-width: 100% !important;
	}

	.main-menu li.submenu-open > .sub-menu { display: block !important; }

	.main-menu .sub-menu li a {
		min-height: 46px !important;
		padding: 10px 18px 10px 32px !important;
		font-size: 14px !important;
		background: transparent !important;
	}

	/* Mega Menu leak fix */
	#mega-menu-wrap-main_menu,
	#mega-menu-wrap-main_menu .mega-menu-toggle,
	.mega-menu-toggle,
	.mega-toggle-block,
	.top-nav-inner > #mega-menu-wrap-main_menu { display: none !important; }

	.top-nav-inner > .main-navigation {
		position: fixed !important;
	}

	/* Inner pages */
	body.ies-inner-layout .content-article-card,
	body.ies-inner-layout .announcements-page,
	body.ies-inner-layout .project-list-card,
	body.ies-inner-layout .project-detail-card {
		padding: 18px 16px !important;
		border-radius: 8px !important;
	}

	body.ies-inner-layout .page-article-title {
		font-size: clamp(1.35rem, 5vw, 1.75rem);
		line-height: 1.25;
	}

	/* Tables */
	.page-article-body,
	body.ies-stations-layout .page-article-body,
	body.ies-earthquakes-layout .page-article-body {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ies-stations-layout table.eartquakes-table,
	body.ies-earthquakes-layout table.eartquakes-table {
		min-width: 480px;
		font-size: 13px;
	}

	/* Maps */
	.ies-contact-page__map,
	.ies-contact-page__map iframe,
	iframe[src*="google.com/maps"] {
		width: 100% !important;
		height: 280px !important;
		min-height: 260px;
		border-radius: 8px;
	}

	/* Footer */
	footer.site-footer.ies-footer { margin-top: 16px; }

	.ies-footer__main { padding: 32px 0 24px; }

	.ies-footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ies-footer__list a,
	.ies-footer__contact-value a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.ies-footer__bar { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0)); }
}

/* ══════════════════════════════════════
   PHONE ≤640px
══════════════════════════════════════ */
@media (max-width: 640px) {
	:root { --ies-header-h: 56px; }

	.mobile-header-brand__name { display: none !important; }

	body { font-size: 16px; }

	.layout-shell { padding: 4px 0 20px; gap: 1.25rem; }

	/* Homepage */
	body.ies-portal-home .container.content-width { background: #f7f7f8; }

	.ies-portal-stack { gap: 1.5rem; }

	.portal-hero {
		padding-top: 0;
	}

	.portal-hero__grid {
		display: flex !important;
		flex-direction: column !important;
		gap: .75rem;
	}

	.portal-hero__monitoring {
		order: 1 !important;
	}

	.portal-hero__identity {
		order: 2 !important;
		padding: 16px;
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 4px 12px rgba(0,0,0,.05);
	}

	.portal-hero__title {
		font-size: 1.15rem !important;
		line-height: 1.3 !important;
	}

	.portal-hero__lead {
		font-size: .92rem;
		line-height: 1.6;
	}

	.portal-hero__pillars { display: none; }

	.portal-hero__cta {
		flex-direction: column;
		gap: 8px;
	}

	.portal-cta {
		width: 100%;
		min-height: 48px;
		justify-content: center;
	}

	.portal-hero__monitoring {
		order: 1 !important;
		border-radius: 14px;
		min-height: 0;
		overflow: hidden;
		background: #fff;
		border: 1px solid rgba(141, 21, 51, 0.1);
		box-shadow: 0 8px 28px rgba(92, 6, 26, 0.08);
	}

	.portal-hero__monitoring .portal-monitor-head {
		padding: 14px 16px !important;
		background: linear-gradient(180deg, #fff 0%, #fefafb 100%) !important;
		border-bottom: 1px solid rgba(141, 21, 51, 0.1) !important;
	}

	.portal-hero__monitoring .home-feature-card__title {
		font-size: 0.95rem !important;
		font-weight: 700 !important;
		color: #5c061a !important;
		letter-spacing: -0.02em;
	}

	.portal-live-dot {
		width: 8px;
		height: 8px;
	}

	.home-seismic-widget-slot,
	.portal-hero__monitoring .home-seismic-widget-slot {
		padding: 0 !important;
		min-height: 200px !important;
		height: auto !important;
		max-height: none !important;
		flex: 1 1 auto;
		background: #f3eeeb;
	}

	.home-seismic-widget-slot:not(.home-seismic-widget-slot--ready) {
		background: linear-gradient(110deg, #f3eeeb 8%, #ebe4e0 18%, #f3eeeb 33%);
		background-size: 200% 100%;
		animation: ies-seismic-shimmer 1.2s ease-in-out infinite;
	}

	@keyframes ies-seismic-shimmer {
		0% { background-position: 100% 0; }
		100% { background-position: -100% 0; }
	}

	.home-seismic-widget-slot .widget-content {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0;
		overflow-x: visible;
	}

	.home-seismic-widget-slot .widget-content > .important-eq {
		margin: 12px 14px 0;
	}

	/* რუკის ზონა */
	.home-seismic-widget-slot #earthquakesmapwg,
	.home-seismic-widget-slot .ies-google-map-canvas,
	.portal-hero__monitoring .home-seismic-widget-slot #map,
	.portal-hero__monitoring .home-seismic-widget-slot #earthquakesmapwg,
	.portal-hero__monitoring .home-seismic-widget-slot .ies-google-map-canvas,
	.portal-hero__monitoring .home-seismic-widget-slot .ies-leaflet-map,
	.portal-hero__monitoring .home-seismic-widget-slot iframe {
		width: 100% !important;
		min-height: 200px !important;
		height: 48vw !important;
		max-height: 260px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background-color: #e8e2de !important;
		background-image: url('../images/map_georgia.png') !important;
		background-position: center center !important;
		background-size: cover !important;
	}

	/* ბოლო მიწისძვრების სია — ბარათები */
	.home-seismic-widget-slot table.last-earthquakes-table,
	.home-seismic-widget-slot table.iestable,
	.home-seismic-widget-slot table.eartquakes-table {
		width: 100% !important;
		margin: 0;
		padding: 14px 14px 6px;
		border: 0;
		border-radius: 0;
		background: #fff;
		display: block;
	}

	.home-seismic-widget-slot table.last-earthquakes-table thead,
	.home-seismic-widget-slot table.iestable thead,
	.home-seismic-widget-slot table.eartquakes-table thead {
		display: none;
	}

	.home-seismic-widget-slot table tbody {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.home-seismic-widget-slot table tbody tr {
		display: grid;
		grid-template-columns: 1fr auto auto;
		align-items: center;
		gap: 10px;
		padding: 12px 14px;
		background: #faf8f9;
		border: 1px solid rgba(141, 21, 51, 0.08);
		border-radius: 10px;
		transition: background 0.15s ease;
	}

	.home-seismic-widget-slot table tbody tr:active {
		background: #fff5f7;
	}

	.home-seismic-widget-slot table.last-earthquakes-table td,
	.home-seismic-widget-slot table.iestable td,
	.home-seismic-widget-slot table.eartquakes-table tbody td {
		padding: 0;
		border: 0 !important;
		background: transparent !important;
		font-size: 13px;
		vertical-align: middle;
	}

	.home-seismic-widget-slot table tbody td:first-child {
		grid-column: 1;
		min-width: 0;
	}

	.home-seismic-widget-slot table tbody td:first-child a {
		display: block;
		min-height: 0;
		padding: 0;
		color: #5c061a !important;
		font-weight: 600;
		font-size: 12px;
		line-height: 1.35;
		text-decoration: none;
	}

	.home-seismic-widget-slot table tbody td:nth-child(2) {
		font-size: 1.05rem;
		font-weight: 700;
		color: #8d1533;
		text-align: right;
		white-space: nowrap;
	}

	.home-seismic-widget-slot table tbody td:nth-child(3) {
		width: 40px;
		min-width: 40px;
		text-align: center;
	}

	.home-seismic-widget-slot table tbody td:nth-child(3) img {
		width: 30px;
		height: 30px;
		object-fit: contain;
	}

	/* ── Seismic dashboard (.seismic-activity-dashboard) ── */
	body.seismic-activity-dashboard .seismic-dashboard-enhanced,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-dash-frame,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .card,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .main-grid,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .right-grid,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .bottom-grid {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced {
		overflow-x: hidden !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-dash-frame__body {
		padding: 12px 14px 16px !important;
		box-sizing: border-box !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .main-grid,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .bottom-grid,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .seismic-kpi-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	/* Filter: stack, no fixed desktop widths */
	body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-dashboard-filter-form {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: wrap !important;
		align-items: stretch !important;
		gap: 12px !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form .filter-item,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .filter-item--date,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .filter-item--region,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .filter-item--magnitude,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .filter-item.ies-filter-actions {
		flex: 1 1 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form .filter-item input,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form .filter-item select,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .filter-item input,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .filter-item select {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 42px !important;
		box-sizing: border-box !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .date-range {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 8px !important;
		width: 100% !important;
		min-width: 0 !important;
		background: transparent !important;
		border: 0 !important;
		padding: 0 !important;
		box-shadow: none !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .date-range span {
		display: none !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .date-range input[type="date"] {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form .ies-filter-actions {
		display: flex !important;
		flex-direction: row !important;
		gap: 8px !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form .ies-filter-actions .apply-btn,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form .ies-filter-actions .ies-dashboard-reset-link {
		flex: 1 1 0 !important;
		min-height: 42px !important;
		min-width: 0 !important;
	}

	/* Charts: fit card; daily may scroll inside only */
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-chart-panel,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-chart {
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-chart-panel--daily {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		max-width: 100% !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-chart--daily {
		min-width: min(520px, 100%) !important;
		width: max-content;
		max-width: none;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-row {
		display: grid !important;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 40px !important;
		gap: 8px !important;
		width: 100% !important;
		min-width: 0 !important;
		align-items: center !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-row__label {
		min-width: 0 !important;
		overflow-wrap: anywhere;
		word-break: break-word;
		white-space: normal !important;
		font-size: 11px !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-row__track {
		min-width: 0 !important;
		width: 100% !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-heatmap {
		grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
		gap: 4px !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .seismic-map-panel table.eartquakes-legend {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 6px !important;
		width: 100% !important;
		border: 0 !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .seismic-map-panel table.eartquakes-legend tbody,
	body.seismic-activity-dashboard .seismic-dashboard-enhanced .seismic-map-panel table.eartquakes-legend tr {
		display: contents !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .seismic-map-panel table.eartquakes-legend td {
		display: flex !important;
		align-items: center !important;
		gap: 6px !important;
		padding: 6px 8px !important;
		font-size: 11px !important;
		border-radius: 10px !important;
		border: 1px solid #eee3e7 !important;
		background: #fff !important;
	}

	body.seismic-activity-dashboard .seismic-dashboard-enhanced .seismic-table-under-map {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		max-width: 100% !important;
	}

	@media (max-width: 390px) {
		body.seismic-activity-dashboard .seismic-dashboard-enhanced .date-range {
			grid-template-columns: 1fr !important;
		}

		body.seismic-activity-dashboard .seismic-dashboard-enhanced #ies-dashboard-filter-form .ies-filter-actions {
			flex-direction: column !important;
		}

		body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-row {
			grid-template-columns: 1fr !important;
			gap: 6px !important;
		}

		body.seismic-activity-dashboard .seismic-dashboard-enhanced .ies-php-row__value {
			text-align: left !important;
		}
	}

	.home-seismic-widget-slot .important-eq {
		font-size: 13px;
		line-height: 1.5;
		padding: 10px 12px;
		border-radius: 10px;
		background: #fff8f9;
		border: 1px solid rgba(141, 21, 51, 0.12);
	}

	.home-seismic-widget-slot .widget-content > a[style*="float"],
	.home-seismic-widget-slot .widget-content > a:last-of-type {
		float: none !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: calc(100% - 28px) !important;
		min-height: 46px;
		margin: 8px 14px 14px !important;
		padding: 12px 20px !important;
		border-radius: 10px !important;
		background: linear-gradient(135deg, #9b1438 0%, #7d0f2d 100%) !important;
		color: #fff !important;
		text-decoration: none !important;
		font-weight: 700;
		font-size: 13px;
		letter-spacing: 0.02em;
		box-shadow: 0 6px 18px rgba(125, 15, 45, 0.25) !important;
		text-transform: none;
	}

	.portal-dash {
		margin-top: 0.75rem !important;
	}

	.portal-hero__eyebrow {
		display: none;
	}

	@media (prefers-reduced-motion: reduce) {
		.home-seismic-widget-slot:not(.home-seismic-widget-slot--ready) {
			animation: none;
			background: #f5f0f1;
		}
	}

	/* KPI swipe */
	.portal-dash__row {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		border-radius: 8px;
	}

	.portal-dash__row::-webkit-scrollbar { display: none; }

	.portal-dash__metric {
		flex: 0 0 70%;
		min-width: 70%;
		scroll-snap-align: start;
		padding: 14px 12px;
		border-bottom: 0 !important;
		border-right: 1px solid rgba(0,0,0,.06);
	}

	.portal-dash__label { white-space: normal; font-size: .62rem; line-height: 1.3; }
	.portal-dash__meta { white-space: normal; font-size: .68rem; }

	.portal-section-intro--row {
		flex-wrap: wrap;
		gap: .5rem;
	}

	.portal-section-intro h2 { font-size: 1.1rem !important; }

	.portal-research-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px;
	}

	.portal-research-card { padding: 14px 12px; }

	.portal-research-card__title { font-size: .8rem; line-height: 1.35; }

	.portal-news-grid { grid-template-columns: 1fr !important; gap: 10px; }

	.portal-news-card {
		flex-direction: row;
		border-radius: 8px;
	}

	.portal-news-card__media {
		flex: 0 0 100px;
		width: 100px;
		aspect-ratio: auto;
	}

	.portal-news-card__media img {
		height: 100%;
		min-height: 100px;
		object-fit: contain;
		object-position: center;
		background: #f4eff1;
	}

	.portal-news-card__body { padding: 10px 12px; justify-content: center; }
	.portal-news-card__body h3 { font-size: .85rem; line-height: 1.35; }
	.portal-news-card__excerpt { display: none; }

	.portal-list__item {
		flex-direction: column;
		align-items: flex-start;
		gap: .2rem;
		padding: 12px 0;
	}

	.portal-list__item span { white-space: normal; }

	.safety-guide-cards { grid-template-columns: 1fr !important; gap: 10px; }

	/* Inner archives */
	body.ies-inner-layout .ies-archive-grid--news,
	body.ies-inner-layout .ies-archive-grid--records,
	body.ies-inner-layout .ies-archive-grid--profiles,
	body.ies-inner-layout .ies-link-grid,
	body.ies-inner-layout .ies-services-grid {
		grid-template-columns: 1fr !important;
		gap: 10px;
	}

	body.ies-inner-layout .news-archive-card {
		flex-direction: row;
	}

	body.ies-inner-layout .news-archive-card-image {
		flex: 0 0 96px;
		width: 96px;
		padding: 10px 0 10px 10px;
	}

	body.ies-inner-layout .news-archive-card-image img {
		height: 84px;
		border-radius: 8px;
		object-fit: contain;
		object-position: center;
		background: #f4eff1;
	}

	body.ies-inner-layout .news-archive-card-body { padding: 10px 12px; }
	body.ies-inner-layout .news-archive-card-excerpt { display: none; }
	body.ies-inner-layout .news-archive-card--featured { flex-direction: row; grid-column: span 1; }

	/* Contact */
	body.ies-contact-layout .content-article-card { padding: 16px !important; }

	.ies-contact-page__grid { grid-template-columns: 1fr; gap: 14px; }

	.ies-contact-card { padding: 14px; border-radius: 8px; }

	.ies-contact-page__form-card {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.ies-contact-page__form-btn {
		width: 100%;
		min-height: 48px;
		justify-content: center;
		text-align: center;
	}

	/* Buttons */
	.button,
	.modern-cta-btn,
	.portal-cta {
		min-height: 48px;
	}

	/* Seismic page shell */
	body.seismic-activity-dashboard div.widget-area {
		grid-template-columns: 1fr;
	}

	body.seismic-activity-dashboard div.content {
		padding: 0 var(--ies-gutter) 16px !important;
	}

	body.seismic-activity-dashboard div.container.content-width {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	/* Pagination */
	.pagination {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
		width: 100%;
		clear: both;
	}

	.pagination span,
	.pagination a {
		float: none;
		min-width: 40px;
		min-height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Overflow guard */
	.wrapper, .page-article-body, .content-stack, .su-row, .su-column {
		max-width: 100% !important;
	}

	@media (hover: none) {
		.portal-research-card:hover,
		.portal-news-card:hover,
		body.ies-inner-layout .news-archive-card:hover,
		body.ies-inner-layout .ies-record-card:hover {
			transform: none;
		}
	}
}

/* ══════════════════════════════════════
   TABLET 641–1024
══════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1024px) {
	.portal-hero__grid { grid-template-columns: 1fr; display: flex !important; flex-direction: column !important; }
	.portal-hero__monitoring { order: 1; }
	.portal-hero__identity { order: 2; }
	.portal-research-grid { grid-template-columns: repeat(2, 1fr); }
	.portal-news-grid { grid-template-columns: repeat(2, 1fr); }
	.portal-dash__row { display: grid; grid-template-columns: repeat(3, 1fr); }
	.ies-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.ies-footer__col--about { grid-column: 1 / -1; }
	body.ies-inner-layout .ies-archive-grid--news { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   DESKTOP ≥1025
══════════════════════════════════════ */
@media (min-width: 1025px) {
	.mobile-nav-toggle,
	.mobile-nav-backdrop,
	.mobile-header-brand,
	.mobile-nav-panel__head,
	.mobile-nav-close,
	.submenu-toggle { display: none !important; }

	.site-header::after { display: none; }

	.top-nav {
		position: relative;
		top: auto;
		box-shadow: none;
	}

	.top-nav-inner {
		display: flex;
		flex-wrap: nowrap;
		min-height: 78px;
		justify-content: space-between;
	}

	.mobile-header-brand {
		position: static;
		transform: none;
		width: auto;
		max-width: none;
	}

	.main-navigation {
		order: 1;
	}

	.language-bar {
		order: 2;
		margin-left: 0;
	}

	.main-navigation {
		position: static !important;
		transform: none !important;
		width: auto !important;
		flex: 1 !important;
		box-shadow: none !important;
		overflow: visible !important;
	}

	.main-menu { flex-direction: row !important; }
	.main-menu > li { width: auto !important; margin: 0 15px !important; border: 0 !important; }
}

@media (min-width: 1025px) and (max-width: 1230px) {
	.top-nav-inner { flex-wrap: nowrap; }
	.main-navigation { width: auto !important; }
	.main-menu > li { width: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
	.main-navigation,
	.mobile-nav-backdrop,
	.mobile-nav-toggle__icon span { transition: none !important; }
}
