/* =========================================================
   IPOGMPHUB — PREMIUM IPO DATA BOX v1.2.0
   Component-only CSS. No external assets.
   ========================================================= */

.ipogmphub-ipo-data-box {
	--ipo-blue: #0878f9;
	--ipo-blue-dark: #0b2a67;
	--ipo-green: #12a85a;
	--ipo-text: #12244a;
	--ipo-muted: #61728f;
	--ipo-border: #dce8f7;
	--ipo-soft: #f6faff;
	position: relative;
	width: 100%;
	margin: 24px 0;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
	background:
		radial-gradient(circle at 92% 0%, rgba(8,120,249,.08), transparent 25%),
		linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
	border: 1px solid #d7e5f5;
	border-radius: 20px;
	box-shadow: 0 14px 35px rgba(28, 72, 120, .08);
	color: var(--ipo-text);
}

.ipogmphub-ipo-data-box *,
.ipogmphub-ipo-data-box *::before,
.ipogmphub-ipo-data-box *::after {
	box-sizing: border-box;
}

.ipogmphub-ipo-data-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #0878f9 0%, #1686ff 55%, #11aa5b 100%);
	z-index: 3;
}

/* HEADER */

.ipogmphub-ipo-box-header {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 270px;
	align-items: center;
	gap: 28px;
	min-height: 174px;
	padding: 30px 30px 27px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,255,.94)),
		linear-gradient(90deg, transparent, rgba(8,120,249,.04));
}

.ipogmphub-ipo-brand {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.ipogmphub-ipo-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 126px;
	height: 94px;
	flex: 0 0 126px;
	padding: 10px;
	background: #fff;
	border: 1px solid #e1eaf5;
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(34,75,120,.055);
}

.ipogmphub-ipo-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ipogmphub-ipo-heading-copy {
	min-width: 0;
}

.ipogmphub-ipo-kicker {
	margin: 0 0 4px;
	color: var(--ipo-blue);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.ipogmphub-ipo-title-line {
	display: flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 10px;
}

.ipogmphub-ipo-data-box .ipogmphub-component-title {
	margin: 0;
	color: var(--ipo-blue-dark);
	font-size: clamp(25px, 3vw, 34px);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.ipogmphub-ipo-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 7px;
	color: #607392;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
}

.ipogmphub-ipo-meta-separator {
	color: #b2c0d2;
}

.ipogmphub-ipo-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
}

.ipogmphub-ipo-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding: 5px 11px;
	border: 1px solid #dce9f8;
	border-radius: 999px;
	background: #edf5ff;
	color: #1e4d91;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.ipogmphub-ipo-badge-status {
	border-color: #ccebd9;
	background: #eaf9f1;
	color: #0b8144;
}

.ipogmphub-ipo-badge-closed {
	border-color: #f0d4d4;
	background: #fff4f4;
	color: #b63b3b;
}

.ipogmphub-ipo-badge-upcoming {
	border-color: #d7e6fa;
	background: #eef6ff;
	color: #1264d8;
}

.ipogmphub-status-dot {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 3px rgba(18,168,90,.08);
}

.ipogmphub-ipo-date-card {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
	padding: 16px 17px;
	border: 1px solid #dce9f7;
	border-radius: 15px;
	background: linear-gradient(135deg, #fff 0%, #f3f9ff 100%);
	box-shadow: 0 6px 18px rgba(37,87,140,.045);
}

.ipogmphub-ipo-date-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 12px;
	background: #e9f3ff;
	color: var(--ipo-blue);
}

.ipogmphub-ipo-date-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ipogmphub-ipo-date-copy {
	min-width: 0;
}

.ipogmphub-ipo-date-copy > span {
	display: block;
	margin-bottom: 5px;
	color: #687b99;
	font-size: 10px;
	font-weight: 700;
}

.ipogmphub-ipo-date-copy strong {
	display: block;
	color: var(--ipo-blue-dark);
	font-size: 12px;
	font-weight: 850;
	line-height: 1.3;
}

.ipogmphub-ipo-date-copy em {
	display: block;
	margin-top: 4px;
	color: var(--ipo-green);
	font-size: 10px;
	font-style: normal;
	font-weight: 800;
}

/* Decorative header curves */

.ipogmphub-ipo-header-mark {
	position: absolute;
	top: -45px;
	right: -22px;
	width: 300px;
	height: 185px;
	opacity: .65;
	transform: rotate(-7deg);
	pointer-events: none;
}

.ipogmphub-ipo-header-mark span {
	position: absolute;
	right: 0;
	width: 275px;
	height: 70px;
	border: 1px solid #dce8f6;
	border-left: 0;
	border-bottom: 0;
	border-radius: 0 100% 0 0;
}

.ipogmphub-ipo-header-mark span:nth-child(1) { top: 18px; }
.ipogmphub-ipo-header-mark span:nth-child(2) { top: 54px; right: 25px; }
.ipogmphub-ipo-header-mark span:nth-child(3) { top: 90px; right: 50px; }

/* DETAILS GRID */

.ipogmphub-ipo-details {
	padding: 0 30px 30px;
	background: transparent;
}

.ipogmphub-ipo-data-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.ipogmphub-ipo-data-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 86px;
	padding: 12px 10px;
	background: rgba(255,255,255,.96);
	border: 1px solid #e0eaf5;
	border-radius: 12px;
	box-shadow: 0 4px 13px rgba(31,72,116,.025);
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ipogmphub-ipo-data-item:hover {
	transform: translateY(-1px);
	border-color: #cfe0f4;
	box-shadow: 0 7px 18px rgba(31,72,116,.06);
}

.ipogmphub-ipo-data-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border: 1px solid #d7e8fb;
	border-radius: 13px;
	background: #edf6ff;
	color: var(--ipo-blue);
}

.ipogmphub-ipo-data-icon svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ipogmphub-rupee-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: Arial, sans-serif;
	font-size: 21px;
	font-weight: 800;
	line-height: 1;
	color: currentColor;
}

.ipogmphub-ipo-data-copy {
	min-width: 0;
}

.ipogmphub-ipo-data-copy .ipogmphub-data-label {
	display: block;
	margin: 0 0 4px;
	color: #6a7d99;
	font-size: 9.5px;
	font-weight: 700;
	line-height: 1.15;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.ipogmphub-ipo-data-copy .ipogmphub-data-value {
	display: block;
	color: var(--ipo-blue-dark);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.18;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ipogmphub-data-note {
	display: block;
	margin-top: 3px;
	color: #7385a0;
	font-size: 8.5px;
	font-weight: 600;
	line-height: 1.2;
}


@media (min-width: 981px) {
	.ipogmphub-ipo-data-item {
		min-width: 0;
	}

	.ipogmphub-ipo-data-copy {
		min-width: 0;
		flex: 1 1 auto;
	}

	.ipogmphub-ipo-data-copy .ipogmphub-data-value {
		font-size: 12.5px;
		letter-spacing: -.015em;
	}

	.ipogmphub-ipo-data-copy .ipogmphub-data-label {
		font-size: 9px;
	}
}

/* TABLET */

@media (max-width: 980px) {
	.ipogmphub-ipo-box-header {
		grid-template-columns: minmax(0, 1fr) 235px;
		gap: 18px;
		padding: 26px 24px 23px;
	}

	.ipogmphub-ipo-logo {
		width: 104px;
		height: 82px;
		flex-basis: 104px;
	}

	.ipogmphub-ipo-details {
		padding: 0 24px 24px;
	}

	.ipogmphub-ipo-data-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* MOBILE */

@media (max-width: 680px) {
	.ipogmphub-ipo-data-box {
		margin: 18px 0;
		border-radius: 17px;
	}

	.ipogmphub-ipo-box-header {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 15px;
		min-height: 0;
		padding: 23px 17px 18px;
	}

	.ipogmphub-ipo-brand {
		gap: 12px;
	}

	.ipogmphub-ipo-logo {
		width: 70px;
		height: 62px;
		flex-basis: 70px;
		padding: 7px;
		border-radius: 12px;
	}

	.ipogmphub-ipo-kicker {
		font-size: 9px;
	}

	.ipogmphub-ipo-data-box .ipogmphub-component-title {
		font-size: 23px;
	}

	.ipogmphub-ipo-meta {
		font-size: 10px;
		margin-top: 6px;
	}

	.ipogmphub-ipo-badges {
		margin-top: 8px;
	}

	.ipogmphub-ipo-badge {
		min-height: 26px;
		padding: 5px 9px;
		font-size: 9px;
	}

	.ipogmphub-ipo-date-card {
		width: 100%;
		padding: 12px 13px;
	}

	.ipogmphub-ipo-date-icon {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}

	.ipogmphub-ipo-date-copy strong {
		font-size: 11px;
	}

	.ipogmphub-ipo-details {
		padding: 0 12px 12px;
	}

	.ipogmphub-ipo-data-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ipogmphub-ipo-data-item {
		gap: 9px;
		min-height: 78px;
		padding: 11px 10px;
		border-radius: 11px;
	}

	.ipogmphub-ipo-data-icon {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
		border-radius: 10px;
	}

	.ipogmphub-ipo-data-icon svg {
		width: 16px;
		height: 16px;
	}

	.ipogmphub-rupee-symbol {
		font-size: 17px;
	}

	.ipogmphub-ipo-data-copy .ipogmphub-data-label {
		font-size: 8.5px;
		margin-bottom: 4px;
	}

	.ipogmphub-ipo-data-copy .ipogmphub-data-value {
		font-size: 12px;
	}

	.ipogmphub-data-note {
		font-size: 8px;
		margin-top: 3px;
	}
}

@media (max-width: 390px) {
	.ipogmphub-ipo-data-grid {
		grid-template-columns: 1fr;
	}

	.ipogmphub-ipo-brand {
		align-items: flex-start;
	}

	.ipogmphub-ipo-logo {
		width: 62px;
		height: 56px;
		flex-basis: 62px;
	}

	.ipogmphub-ipo-data-item {
		min-height: 70px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ipogmphub-ipo-data-item {
		transition: none;
	}
}


/* v1.2.2 precision fixes */
@media (min-width: 981px) {
	.ipogmphub-ipo-data-copy {
		min-width: 0;
		flex: 1 1 auto;
	}

	.ipogmphub-ipo-data-copy .ipogmphub-data-label {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.ipogmphub-ipo-data-copy .ipogmphub-data-value {
		white-space: nowrap;
		overflow: visible;
		text-overflow: clip;
		font-size: 12.5px;
		letter-spacing: -.02em;
	}

	.ipogmphub-ipo-data-item-issue-size .ipogmphub-data-value {
		font-size: 12px;
		letter-spacing: -.025em;
	}
}

@media (max-width: 680px) {
	.ipogmphub-ipo-data-copy .ipogmphub-data-value {
		white-space: nowrap;
		overflow: visible;
		text-overflow: clip;
	}
}

/* v1.2.3 polish: long company names + countdown visibility */
.ipogmphub-ipo-data-box .ipogmphub-component-title.ipogmphub-ipo-title-long {
	font-size: clamp(22px, 2.55vw, 30px);
	line-height: 1.08;
	letter-spacing: -.03em;
}

.ipogmphub-ipo-date-copy em {
	white-space: nowrap;
}

@media (max-width: 980px) {
	.ipogmphub-ipo-data-box .ipogmphub-component-title.ipogmphub-ipo-title-long {
		font-size: clamp(22px, 4.5vw, 28px);
	}
}

@media (max-width: 680px) {
	.ipogmphub-ipo-date-copy em {
		white-space: normal;
	}
}


/* v1.2.4 component refinements */
.ipogmphub-ipo-date-copy .ipogmphub-ipo-countdown {
	display: block;
	margin-top: 5px;
	font-style: normal;
}

.ipogmphub-ipo-date-copy .ipogmphub-ipo-countdown-closed {
	color: #c62828;
}

.ipogmphub-ipo-date-copy .ipogmphub-ipo-countdown-upcoming,
.ipogmphub-ipo-date-copy .ipogmphub-ipo-countdown-open {
	color: #0b8144;
}

@media (max-width: 680px) {
	.ipogmphub-ipo-date-copy .ipogmphub-ipo-countdown {
		margin-top: 4px;
	}
}
