/*!
 * صفحهٔ جزئیات فراخوان — پتروشیمی بندرامام
 * Javad Vahidi | 09121832452 | https://javadvahidi.ir
 * همهٔ انتخابگرها زیر .bipc-tender-single محدود شده‌اند تا با هدر و فوتر قالب سایت تداخل نکنند.
 */

@font-face {
	font-family: BipcAbarLocal;
	src: local("Abar Mid FaNum"), local("Abar Mid"), local("Abar");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Vazirmatn BIPC';
	src: url('../fonts/Vazirmatn.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

.bipc-tender-single {
	--abk-font: "Abar Mid FaNum", "Abar Mid", "Abar", BipcAbarLocal, 'Vazirmatn BIPC', Tahoma, sans-serif;
	--abk-blue: #2e3191;
	--abk-red: #ed1d24;
	--abk-ink: #34384d;
	--abk-line: #e6e7f0;

	direction: rtl;
	text-align: right;
	background: #fafbfe;
	color: var(--abk-ink);
	font: 15px/2 var(--abk-font);
}

.bipc-tender-single *,
.bipc-tender-single *::before,
.bipc-tender-single *::after { box-sizing: border-box; }

.bipc-tender-single a { color: inherit; text-decoration: none; }
.bipc-tender-single button { font: inherit; cursor: pointer; }
.bipc-tender-single a:focus-visible,
.bipc-tender-single button:focus-visible { outline: 3px solid var(--abk-red); outline-offset: 4px; }

.bipc-tender-single .abk-wrap { max-width: 1200px; margin: auto; padding: 26px 24px 28px; }

/* وقتی بلوک عنوان خود قالب نمایش داده می‌شود، مشخصات فراخوان به‌صورت یک ردیف چیپ بالای محتوا می‌آید */
.bipc-tender-single .abk-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.bipc-tender-single .abk-meta-chip {
	font-size: 12.5px;
	color: var(--abk-blue);
	background: #fff;
	border: 1px solid var(--abk-line);
	border-radius: 8px;
	padding: 5px 14px;
}
.bipc-tender-single .abk-meta-chip.abk-meta-type { background: var(--abk-blue); border-color: var(--abk-blue); color: #fff; }
.bipc-tender-single.abk-has-theme-title .abk-wrap { padding-top: 22px; }

/*
 * بعضی قالب‌ها (از جمله وودمارت با گزینهٔ «هدر همپوشان») هدر را روی محتوای صفحه می‌اندازند.
 * مقدار --abk-header-offset را اسکریپت افزونه هنگام نیاز محاسبه می‌کند؛
 * برای تنظیم دستی کافی است همین متغیر را در CSS اضافی قالب مقداردهی کنید.
 */
/* بنر جایگزین (فقط وقتی قالب بلوک عنوان صفحه ندارد): تمام‌عرض و زیر هدر شیشه‌ای */
.bipc-tender-single .abk-banner {
	position: relative;
	width: calc(100vw - var(--abk-scrollbar, 0px));
	max-width: calc(100vw - var(--abk-scrollbar, 0px));
	margin-inline: calc(50% - (100vw - var(--abk-scrollbar, 0px)) / 2);
	background-color: var(--abk-blue);
	background-image: linear-gradient(270deg, rgba(46, 49, 145, .97) 6%, rgba(46, 49, 145, .9) 42%, rgba(46, 49, 145, .45)), var(--abk-banner-image, none);
	background-position: center 45%;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	/* فاصلهٔ بالا به اندازهٔ ارتفاع هدر شیشه‌ای تا عنوان زیر منو نیفتد */
	padding-top: calc(var(--abk-header-offset, 0px) + 34px);
	padding-bottom: 52px;
}

.bipc-tender-single .abk-banner-inner { max-width: 1200px; margin-inline: auto; padding: 0 24px; }
.bipc-tender-single .abk-banner .abk-crumb { color: rgba(255, 255, 255, .82); margin-bottom: 18px; }
.bipc-tender-single .abk-banner .abk-crumb a:hover { color: #fff; }
.bipc-tender-single .abk-banner h1 { font-size: 32px; line-height: 1.8; max-width: 800px; margin: 10px 0 18px; color: #fff; }

.bipc-tender-single .abk-crumb { font-size: 12px; color: #777c94; margin-bottom: 22px; }
.bipc-tender-single .abk-crumb span { margin: 0 10px; }

.bipc-tender-single .abk-eyebrow { font-size: 12px; letter-spacing: 1px; opacity: .78; }
.bipc-tender-single .abk-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.bipc-tender-single .abk-chip { font-size: 12px; border: 1px solid rgba(255,255,255,.31); border-radius: 7px; padding: 3px 12px; }

.bipc-tender-single .abk-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 26px; margin-top: 28px; }

.bipc-tender-single .abk-panel {
	background: #fff;
	border: 1px solid var(--abk-line);
	border-radius: 18px;
	padding: 28px;
	margin-bottom: 22px;
}
.bipc-tender-single .abk-panel h2 { font-size: 21px; color: var(--abk-blue); margin: 0 0 20px; }
.bipc-tender-single .abk-sticky { position: sticky; top: 20px; padding: 24px; }

.bipc-tender-single .abk-intro { font-size: 18px; color: var(--abk-blue); line-height: 2; margin: 0 0 14px; }
.bipc-tender-single .abk-content p { margin: 0 0 14px; }
.bipc-tender-single .abk-content ul,
.bipc-tender-single .abk-content ol { padding-inline-start: 22px; margin: 0 0 14px; }
.bipc-tender-single .abk-content img { max-width: 100%; height: auto; border-radius: 12px; }
.bipc-tender-single .abk-content table { width: 100%; border-collapse: collapse; }
.bipc-tender-single .abk-content th,
.bipc-tender-single .abk-content td { border: 1px solid var(--abk-line); padding: 8px 12px; }

.bipc-tender-single .abk-muted { color: #7d8195; font-size: 13px; }
.bipc-tender-single .abk-note {
	background: #f5f6fb;
	border-inline-start: 3px solid #adb1cd;
	padding: 15px 18px;
	border-radius: 8px;
	font-size: 13px;
	margin: 0 0 14px;
}
.bipc-tender-single .abk-link { color: var(--abk-blue); font-size: 13px; }

.bipc-tender-single .abk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; margin-top: 24px; }
.bipc-tender-single .abk-facts > div { border-bottom: 1px solid #eceef4; padding: 15px 0; }
.bipc-tender-single .abk-facts dt { font-size: 12px; color: #85899b; }
.bipc-tender-single .abk-facts dd { margin: 5px 0; font-size: 14px; }

.bipc-tender-single .abk-btn {
	display: block;
	text-align: center;
	background: var(--abk-red);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 11px 15px;
	font-size: 13px;
}

.bipc-tender-single .abk-steps { list-style: none; padding: 0; margin: 0 0 18px; }
.bipc-tender-single .abk-steps li {
	padding: 0 30px 24px 0;
	border-inline-end: 1px solid #e3e5ef;
	position: relative;
	font-size: 13px;
}
.bipc-tender-single .abk-steps li::before {
	content: '';
	position: absolute;
	inset-inline-end: -5px;
	top: 9px;
	width: 9px;
	height: 9px;
	background: var(--abk-blue);
	border-radius: 50%;
}
.bipc-tender-single .abk-steps small { display: block; color: #9296a6; }

.bipc-tender-single .abk-actions { display: flex; gap: 10px; margin-top: 18px; }
.bipc-tender-single .abk-actions button {
	flex: 1;
	padding: 8px;
	background: #f4f5fa;
	color: var(--abk-blue);
	border: 0;
	border-radius: 8px;
	font-size: 12px;
}
.bipc-tender-single .abk-status { font-size: 12px; color: var(--abk-blue); min-height: 18px; margin: 10px 0 0; }

.bipc-tender-single .abk-notice-open {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
	text-align: right;
	background: #f7f8fc;
	border: 1px solid #e3e5ef;
	border-radius: 12px;
	padding: 16px;
	color: var(--abk-blue);
}
.bipc-tender-single .abk-notice-open img { width: 90px; height: auto; border-radius: 6px; }
.bipc-tender-single .abk-notice-open strong,
.bipc-tender-single .abk-notice-open small { display: block; }
.bipc-tender-single .abk-notice-open small { font-size: 12px; color: #757b91; }

.bipc-tender-single .abk-related-title { font-size: 21px; color: var(--abk-blue); margin: 4px 0 18px; }
.bipc-tender-single .abk-related { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bipc-tender-single .abk-related a { padding: 22px; background: #fff; border: 1px solid var(--abk-line); border-radius: 14px; display: block; }
.bipc-tender-single .abk-related b { display: block; color: var(--abk-blue); font-size: 14px; margin: 6px 0; }

.bipc-tender-single .abk-foot {
	border-top: 1px solid #e5e7f0;
	margin-top: 25px;
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #818597;
}

/* پنجرهٔ تصویر آگهی */
.abk-notice-dialog {
	border: 0;
	border-radius: 16px;
	padding: 20px;
	width: min(650px, 94vw);
	max-height: 92vh;
	overflow: auto;
	color: #34384d;
	font: 14px/1.8 "Abar Mid FaNum", "Abar Mid", "Abar", BipcAbarLocal, 'Vazirmatn BIPC', Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
}
.abk-notice-dialog::backdrop { background: rgba(17,21,43,.8); }
.abk-notice-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.abk-notice-dialog img { display: block; width: min(100%, 460px); max-height: 70vh; object-fit: contain; margin: 15px auto; }
.abk-notice-dialog button { border: 1px solid #ddd; border-radius: 7px; background: #fff; padding: 6px 14px; cursor: pointer; font: inherit; }
.abk-notice-dialog p { font-size: 12px; color: #74798d; margin: 0; }
body.abk-dialog-open { overflow: hidden; }

@media (max-width: 860px) {
	.bipc-tender-single .abk-layout { grid-template-columns: 1fr; }
	.bipc-tender-single .abk-banner { padding-top: calc(var(--abk-header-offset, 0px) + 22px); padding-bottom: 34px; }
	.bipc-tender-single .abk-banner-inner { padding: 0 16px; }
	.bipc-tender-single .abk-wrap { padding: 16px; }
	.bipc-tender-single .abk-banner h1 { font-size: 23px; margin: 8px 0 14px; }
	.bipc-tender-single .abk-panel { padding: 22px; }
	.bipc-tender-single .abk-related { grid-template-columns: 1fr; }
	.bipc-tender-single .abk-sticky { position: static; }
	.bipc-tender-single .abk-facts { grid-template-columns: 1fr; }
	.bipc-tender-single .abk-foot { display: block; }
}

/* چاپ: فقط تصویر آگهی */
@media print {
	.bipc-tender-single .abk-wrap { display: none !important; }
	.abk-notice-dialog {
		display: block !important;
		position: static !important;
		inset: auto !important;
		width: 100% !important;
		max-width: none !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		overflow: visible !important;
		background: #fff !important;
	}
	.abk-notice-dialog header,
	.abk-notice-dialog p { display: none !important; }
	.abk-notice-dialog img { width: auto !important; max-width: 100% !important; max-height: 95vh !important; margin: 0 auto !important; }
	.abk-notice-dialog::backdrop { display: none !important; }
	body.abk-dialog-open { overflow: visible !important; }
}
