/* =================================================================
   Engineer Resources — Page Template & Archive/Single styles
   ================================================================= */

/* ---------------------------------------------------------------
   1. PAGE TEMPLATE — HERO
   --------------------------------------------------------------- */

.enres-page {
	background: #f0f4fb;
	color: #172850;
}

.enres-hero {
	position: relative;
	min-height: 220px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: #0b2060;
}

/* Background image layer */
.enres-hero__bg {
	position: absolute;
	inset: 0;
	background-image: var(--enres-bg, none);
	background-size: cover;
	background-position: center right;
	z-index: 0;
}

/* Gradient overlay: fully dark on left → transparent on right */
.enres-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, #ffffff 30%, rgb(255 255 255 / 50%) 70%, transparent 100%);
	z-index: 1;
}

.enres-hero__inner {
	position: relative;
	z-index: 2;
	padding-block: 28px;
	width: 100%;
}

.enres-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	/* color: rgba(255, 255, 255, 0.72); */
	margin-bottom: 22px;
}

.enres-breadcrumb a {
	/* color: rgba(255, 255, 255, 0.72); */
	text-decoration: none;
	transition: color 0.2s;
    color: var(--at-accent)
}

.enres-breadcrumb a:hover {
	color: #102858;
}

.enres-breadcrumb strong {
	/* color: #fff; */
	font-weight: 600;
}

.enres-breadcrumb i {
	font-size: 10px;
	opacity: 0.6;
}

.enres-hero__content {
	max-width: 600px;
}

.enres-hero__title {
	margin: 0 0 16px;
	font-size: clamp(32px, 3vw, 40px);
	line-height: 1.12;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.enres-hero__subtitle {
	margin: 0 0 12px;
	font-size: clamp(16px, 1.3vw, 20px);
	font-weight: 600;
	font-style: italic;
	color: #4b9fff;
	line-height: 1.5;
}

.enres-hero__desc {
	font-size: clamp(14px, 1vw, 16px);
	line-height: 1.5;
	/* color: rgba(255, 255, 255, 0.88); */
}

.enres-hero__desc p {
	margin: 0 0 4px;
}

/* ---------------------------------------------------------------
   2. GRID SECTION — heading
   --------------------------------------------------------------- */

.enres-grid {
	padding-block: 36px 60px;
	background: #fff;
}

.enres-grid__head {
	text-align: center;
	margin-bottom: 24px;
}

.enres-grid__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 2.2vw, 34px);
	font-weight: 700;
	text-transform: uppercase;
	color: #102858;
	letter-spacing: 0.02em;
}

.enres-grid__subtitle {
	margin: 0;
	font-size: clamp(14px, 1vw, 17px);
	color: #5b6c8a;
	line-height: 1.6;
}

/* ---------------------------------------------------------------
   3. CARDS GRID
   --------------------------------------------------------------- */

.enres-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.enres-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 28px rgba(16, 40, 88, 0.09);
	text-decoration: none;
	color: inherit;
	border: 1px solid #e5ecf8;
	transition: box-shadow 0.25s, transform 0.25s;
	clip-path: none; /* allow bubble overflow */
	cursor: pointer;
}

.enres-card:hover {
	box-shadow: 0 12px 40px rgba(16, 40, 88, 0.18);
	transform: translateY(-4px);
	border-color: #c8d8f8;
}

/* Card media (top image area) */
.enres-card__media {
	position: relative;
	height: 200px;
	border-radius: 14px 14px 0 0;
	/* overflow: hidden; */
	background: #dce9ff;
}

.enres-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
    border-radius: 14px 14px 0 0;
	filter: grayscale(0.18) brightness(0.96);
	transition: transform 0.4s;
	pointer-events: none;
}

.enres-card:hover .enres-card__media img {
	transform: scale(1.04);
}

/* Placeholder when no image */
.enres-card__media-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a4fba 0%, #2f6ee8 100%);
	color: rgba(255, 255, 255, 0.25);
	font-size: 56px;
	pointer-events: none;
}

/* Bubble icon at bottom-center of image */
.enres-card__bubble {
	position: absolute;
	bottom: -24px;
	left: 50%;
	transform: translateX(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #1a4fba;
	border: 3px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	box-shadow: 0 6px 18px rgba(26, 79, 186, 0.45);
	z-index: 3;
	transition: background 0.2s, transform 0.2s;
	pointer-events: none;
}

.enres-card:hover .enres-card__bubble {
	background: #1240a3;
	transform: translateX(-50%) scale(1.08);
}

/* Card body (text area) */
.enres-card__body {
	padding: 42px 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	pointer-events: none;
}

.enres-card__icon {
	color: #1a4fba;
	font-size: 36px;
	line-height: 1;
	margin-bottom: 2px;
}

.enres-card__title {
	margin: 0;
	font-size: clamp(13px, 0.9vw, 16px);
	font-weight: 700;
	text-transform: uppercase;
	color: #1a4fba;
	letter-spacing: 0.04em;
	line-height: 1.3;
}

.enres-card__desc {
	margin: 4px 0 0;
	font-size: clamp(13px, 0.88vw, 15px);
	line-height: 1.75;
	color: #4a5778;
}

/* ---------------------------------------------------------------
   4. RESPONSIVE
   --------------------------------------------------------------- */

@media (max-width: 1100px) {
	.enres-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.enres-hero {
		min-height: 320px;
	}

	.enres-hero__overlay {
        background: linear-gradient(to right, #ffffff 30%, rgb(255 255 255 / 50%) 70%, transparent 100%);
	}

	.enres-hero__inner {
		padding-block: 48px;
	}

	.enres-grid {
		padding: 48px 0 56px;
	}
}

@media (max-width: 540px) {
	.enres-cards {
		grid-template-columns: 1fr;
	}

	.enres-card__media {
		height: 180px;
	}
}


/* =================================================================
   ARCHIVE — shared layout for all 4 engineer CPTs
   ================================================================= */

.at-enres-archive {
	background: #f0f4fb;
	min-height: 60vh;
}

/* Archive hero banner */
.at-enres-archive-banner {
	background: #0b2060;
	padding: 60px 0 52px;
	position: relative;
	overflow: hidden;
}

.at-enres-archive-banner__bg {
	position: absolute;
	inset: 0;
	background-image: var(--arc-bg, none);
	background-size: cover;
	background-position: center;
	opacity: 0.15;
	z-index: 0;
}

.at-enres-archive-banner > .container {
	position: relative;
	z-index: 1;
}

.at-enres-archive-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 16px;
}

.at-enres-archive-breadcrumb a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

.at-enres-archive-breadcrumb a:hover { color: #fff; }

.at-enres-archive-banner__icon {
	font-size: 36px;
	color: #4b9fff;
	margin-bottom: 12px;
	display: block;
}

.at-enres-archive-banner__title {
	margin: 0 0 10px;
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
}

.at-enres-archive-banner__subtitle {
	margin: 0;
	font-size: clamp(14px, 1vw, 17px);
	color: rgba(255, 255, 255, 0.82);
	max-width: 600px;
}

/* Archive content */
.at-enres-archive-content {
	padding: 48px 0 64px;
}

.at-enres-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.at-enres-post-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(16, 40, 88, 0.07);
	display: flex;
	flex-direction: column;
	border: 1px solid #e5ecf8;
	transition: box-shadow 0.25s, transform 0.25s;
}

.at-enres-post-card:hover {
	box-shadow: 0 10px 36px rgba(16, 40, 88, 0.15);
	transform: translateY(-3px);
}

.at-enres-post-card__thumb {
	height: 200px;
	overflow: hidden;
	background: #dce9ff;
}

.at-enres-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.at-enres-post-card__thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a4fba, #2f6ee8);
	color: rgba(255, 255, 255, 0.25);
	font-size: 48px;
}

.at-enres-post-card__body {
	padding: 20px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.at-enres-post-card__title {
	margin: 0;
	font-size: clamp(15px, 1.1vw, 19px);
	font-weight: 700;
	color: #102858;
	line-height: 1.35;
}

.at-enres-post-card__title a {
	text-decoration: none;
	color: inherit;
}

.at-enres-post-card__title a:hover {
	color: #1a4fba;
}

.at-enres-post-card__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #4a5778;
}

.at-enres-post-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #1a4fba;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.at-enres-post-card__link:hover {
	color: #0c3490;
}

.at-enres-empty {
	text-align: center;
	padding: 64px 0;
	color: #6b7fa0;
	font-size: 16px;
}

/* Archive pagination */
.at-enres-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.at-enres-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #dce3f5;
	font-size: 14px;
	font-weight: 600;
	color: #2d4270;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.at-enres-pagination .page-numbers.current,
.at-enres-pagination .page-numbers:hover {
	background: #1a4fba;
	color: #fff;
	border-color: #1a4fba;
}

@media (max-width: 900px) {
	.at-enres-posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 540px) {
	.at-enres-posts-grid {
		grid-template-columns: 1fr;
	}
}


/* =================================================================
   SINGLE — shared layout for all 4 engineer CPTs
   ================================================================= */

.at-enres-single {
	background: #f0f4fb;
}

.at-enres-single-banner {
	background: #0b2060;
	padding: 52px 0 48px;
}

.at-enres-single-banner__title {
	margin: 0;
	font-size: clamp(22px, 2.5vw, 36px);
	font-weight: 700;
	color: #fff;
}

.at-enres-single-content {
	padding: 48px 0 64px;
}

.at-enres-single-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 28px;
	align-items: start;
}

.at-enres-single-article {
	background: #fff;
	border-radius: 14px;
	padding: 32px 36px;
	box-shadow: 0 4px 20px rgba(16, 40, 88, 0.07);
	min-width: 0;
}

.at-enres-single-article img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.at-enres-single-article .entry-content p {
	margin: 0 0 18px;
	line-height: 1.8;
	color: #2d4270;
}

.at-enres-single-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.at-enres-single-sidebar__card {
	background: #fff;
	border-radius: 12px;
	padding: 22px 20px;
	box-shadow: 0 4px 18px rgba(16, 40, 88, 0.07);
}

.at-enres-single-sidebar__card h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	color: #1a4fba;
	letter-spacing: 0.04em;
}

.at-enres-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #1a4fba;
	text-decoration: none;
	margin-bottom: 20px;
}

.at-enres-back-link:hover { color: #0c3490; }

.at-enres-thumb {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 24px;
	display: block;
}

.at-enres-single-article h1,
.at-enres-single-article h2,
.at-enres-single-article h3 {
	color: #102858;
}

@media (max-width: 900px) {
	.at-enres-single-layout {
		grid-template-columns: 1fr;
	}
}

/* =================================================================
   SINGLE AT_DRAWING — dedicated detail layout
   ================================================================= */

.draw-single-page {
	background: radial-gradient(1200px 440px at 10% -10%, #e9f0ff 0%, #f2f6fd 45%, #f6f9ff 100%);
	color: #1a2c4d;
}

.draw-single-hero {
	padding: 54px 0 48px;
	background: linear-gradient(120deg, #0d2b67 0%, #1f4fa6 68%, #2f66cc 100%);
	background-image: var(--draw-single-hero-bg), linear-gradient(120deg, #0d2b67 0%, #1f4fa6 68%, #2f66cc 100%);
	background-size: cover, auto;
	background-position: center, auto;
	position: relative;
	overflow: hidden;
}

.draw-single-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(13, 43, 103, 0.55);
	pointer-events: none;
	z-index: 0;
}

.draw-single-hero > .container {
	position: relative;
	z-index: 1;
}

.draw-single-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 14px;
	color: rgb(255 255 255 / 82%);
	position: relative;
	z-index: 1;
}

.draw-single-breadcrumb a {
	color: rgb(255 255 255 / 82%);
	text-decoration: none;
}

.draw-single-breadcrumb a:hover {
	color: #fff;
}

.draw-single-breadcrumb strong {
	color: #fff;
	font-weight: 700;
}

.draw-single-breadcrumb i {
	font-size: 10px;
	opacity: 0.75;
}

.draw-single-title {
	margin: 0;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.14;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	max-width: 960px;
	position: relative;
	z-index: 1;
}

.draw-single-subtitle {
	margin: 12px 0 0;
	max-width: 780px;
	font-size: 16px;
	line-height: 1.6;
	color: rgb(237 244 255 / 96%);
	position: relative;
	z-index: 1;
}

.draw-single-hero-meta {
	margin-top: 18px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.draw-single-meta-chip {
	height: 36px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: #fff;
	color: var(--chip-color, #245ecf);
	border: 2px solid #d0def8;
}

.draw-single-meta-chip.is-soft {
	background: rgb(255 255 255 / 16%);
	border-color: rgb(255 255 255 / 32%);
	color: #fff;
}

.draw-single-download {
	height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	border: 2px solid #fff;
	background: #fff;
	color: #15449f;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.draw-single-download:hover {
	background: #eaf1ff;
}

.draw-single-main {
	padding: 30px 0 66px;
}

.draw-single-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #205ccf;
	text-decoration: none;
	margin-bottom: 18px;
}

.draw-single-back-link:hover {
	color: #1247b2;
}

.draw-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
}

.draw-single-article,
.draw-single-card {
	background: #fff;
	border: 1px solid #e1e9f8;
	border-radius: 14px;
	box-shadow: 0 5px 22px rgb(16 40 88 / 7%);
}

.draw-single-article {
	padding: 14px;
}

.draw-single-gallery {
	border-radius: 12px;
	border: 1px solid #e9eef9;
	background: #f7faff;
	padding: 10px;
	margin-bottom: 14px;
}

.draw-single-gallery__main {
	position: relative;
	height: min(560px, 66vh);
	border-radius: 10px;
	overflow: hidden;
	background: #eff4ff;
}

.draw-single-gallery__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.draw-single-gallery__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.draw-single-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 8px;
}

.draw-single-gallery__controls {
	margin-top: 10px;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 38px;
	gap: 8px;
	align-items: center;
}

.draw-gallery-nav {
	width: 38px;
	height: 38px;
	border: 1px solid #d4dff5;
	background: #fff;
	border-radius: 10px;
	color: #204b9d;
	cursor: pointer;
}

.draw-gallery-nav:hover {
	background: #f1f6ff;
}

.draw-single-gallery__thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 78px;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.draw-single-gallery__thumb {
	border: 2px solid #dce6fa;
	border-radius: 10px;
	padding: 0;
	height: 62px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
}

.draw-single-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.draw-single-gallery__thumb.is-active {
	border-color: #316ce0;
	box-shadow: 0 0 0 1px #316ce0;
}

.draw-single-content {
	padding: 8px 10px 12px;
}

.draw-single-content h2 {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.2;
	color: #0f2f66;
	text-transform: uppercase;
}

.draw-single-content p,
.draw-single-content li,
.draw-single-content td,
.draw-single-content blockquote {
	font-size: 16px;
	line-height: 1.75;
	color: #344f7a;
}

.draw-single-content ul,
.draw-single-content ol {
	padding-left: 22px;
	margin: 0 0 14px;
}

.draw-single-content h3,
.draw-single-content h4 {
	color: #143e82;
	margin: 20px 0 10px;
}

.draw-single-sidebar {
	display: grid;
	gap: 14px;
}

.draw-single-card {
	padding: 18px 16px;
}

.draw-single-card h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #1f55c0;
}

.draw-single-info-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.draw-single-info-list li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	padding-bottom: 8px;
	border-bottom: 1px dashed #d8e2f6;
}

.draw-single-info-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.draw-single-info-list span {
	color: #6c80a7;
}

.draw-single-info-list strong {
	color: #1a3568;
	text-align: right;
}

.draw-single-sidebar-download {
	height: 42px;
	border-radius: 10px;
	background: #1e58ce;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	padding: 0 12px
}

.draw-single-sidebar-download:hover {
	background: #1546b1;
}

.draw-single-related-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.draw-single-related-list a {
	display: block;
	padding: 8px 9px;
	border-radius: 8px;
	background: #f3f7ff;
	color: #1b53c3;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.draw-single-related-list a:hover {
	background: #eaf1ff;
	color: #123f9d;
}

.draw-single-empty {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #6a7f9f;
}

.draw-terms-modal {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.draw-terms-modal.is-open {
	display: flex;
}

.draw-terms-modal__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgb(9 22 47 / 45%);
	cursor: pointer;
}

.draw-terms-modal__backdrop:hover {
	background: rgb(9 22 47 / 45%);
}

.draw-terms-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(660px, calc(100vw - 36px));
	max-height: min(88vh, 700px);
	overflow: hidden;
	border-radius: 14px;
	padding: 20px 20px 16px;
	background: #fff;
	box-shadow: 0 30px 68px rgb(8 28 66 / 26%);
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.draw-terms-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #d7e1f3;
	background: #fff;
	color: #6a7f9f;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.draw-terms-modal__close:hover {
	background: #f2f6ff;
	color: #305fbf;
}

.draw-terms-modal__title {
	margin: 0;
	font-size: clamp(20px, 1.8vw, 28px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #112f66;
}

.draw-terms-modal__subtitle {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6f84ab;
	font-weight: 500;
}

.draw-terms-modal__content-box {
	border: 1px solid #dce5f6;
	border-radius: 10px;
	background: #fbfdff;
	padding: 20px 16px;
	max-height: min(42vh, 300px);
	overflow: auto;
}

.draw-terms-modal__content-box h3 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	color: #163f83;
}

.draw-terms-modal__content-box h3:not(:first-child) {
	margin-top: 10px;
}

.draw-terms-modal__content-box ul {
	margin: 0;
	padding-left: 16px;
	display: grid;
	gap: 4px;
}

.draw-terms-modal__content-box li {
	font-size: 14px;
	line-height: 1.55;
	color: #2d4a79;
}

.draw-terms-modal__agree {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	color: #213d70;
	cursor: pointer;
}

.draw-terms-modal__agree input {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: #346ad7;
	flex: 0 0 auto;
}

.draw-terms-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.draw-terms-modal__btn {
	min-width: 148px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
	padding: 0 14px;
}

.draw-terms-modal__btn.is-ghost {
	background: #fff;
	border-color: #dde5f4;
	color: #7588aa;
}

.draw-terms-modal__btn.is-ghost:hover {
	background: #f4f7ff;
	color: #284f9f;
	border-color: #cad8f2;
}

.draw-terms-modal__btn.is-primary {
	background: #284f9f;
	color: #fff;
	border-color: #284f9f;
}

.draw-terms-modal__btn.is-primary:hover {
	background: #284f9f;
	border-color: #284f9f;
}

.draw-terms-modal__btn.is-primary.is-disabled {
	opacity: 0.52;
	cursor: not-allowed;
	pointer-events: auto;
}

body.draw-terms-modal-open {
	overflow: hidden;
}

/* =================================================================
   ENGINEER COMMUNITY PAGE TEMPLATE
   ================================================================= */

.community-page {
	background: radial-gradient(1300px 580px at 12% -20%, #eff5ff 0%, #f8fbff 46%, #eef3fc 100%);
	color: #1a2c4d;
}

.community-hero {
	position: relative;
	overflow: hidden;
	padding: 58px 0 88px;
	background:
		linear-gradient(90deg, rgb(8 34 88 / 0.96) 0%, rgb(16 72 177 / 0.9) 46%, rgb(27 103 219 / 0.6) 72%, rgb(27 103 219 / 0.2) 100%),
		var(--community-hero-image, none),
		linear-gradient(116deg, #0d2b67 0%, #1f4fa6 52%, #3f78e3 100%);
	background-repeat: no-repeat;
	background-size: cover, min(48%, 680px) auto, cover;
	background-position: center, right center, center;
}

.community-hero__mesh {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px),
		linear-gradient(180deg, rgb(255 255 255 / 8%) 1px, transparent 1px);
	background-size: 44px 44px;
	opacity: 0.5;
	pointer-events: none;
}

.community-hero__image {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 82% 35%, rgb(255 255 255 / 24%) 0, rgb(255 255 255 / 0%) 24%),
		linear-gradient(90deg, rgb(255 255 255 / 0%) 44%, rgb(255 255 255 / 10%) 100%);
	pointer-events: none;
}

.community-hero__inner {
	position: relative;
	z-index: 1;
}

.community-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 14px;
	color: rgb(255 255 255 / 82%);
}

.community-breadcrumb a {
	text-decoration: none;
	color: rgb(255 255 255 / 84%);
}

.community-breadcrumb a:hover {
	color: #fff;
}

.community-breadcrumb strong {
	color: #fff;
	font-weight: 700;
}

.community-breadcrumb i {
	font-size: 10px;
	opacity: 0.75;
}

.community-hero h1 {
	margin: 0;
	max-width: 860px;
	font-size: clamp(30px, 3.2vw, 48px);
	line-height: 1.12;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
}

.community-hero p {
	margin: 14px 0 0;
	max-width: 820px;
	font-size: clamp(15px, 1.1vw, 18px);
	line-height: 1.72;
	color: rgb(236 243 255 / 96%);
}

.community-main {
	padding: 0 0 72px;
}

.community-overview {
	position: relative;
	z-index: 2;
	margin: -54px auto 18px;
	padding: 30px 18px;
	border-radius: 22px;
	background: rgb(255 255 255 / 94%);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 46px rgb(17 45 96 / 16%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px;
	align-items: center;
}

.community-overview__lead {
	display: flex;
	align-items: center;
	gap: 14px;
}

.community-overview__icon {
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
	box-shadow: 0 10px 24px rgb(30 72 155 / 14%);
	color: #1d58cd;
	font-size: 22px;
	border: 1px solid #d8e4fb;
}

.community-overview__copy h2 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	color: #1e58c8;
}

.community-overview__copy p {
	margin: 0;
	font-size: 13px;
	line-height: 1.75;
	color: #46608a;
}

.community-overview__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.community-feature {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding-left: 8px;
	border-left: 1px solid #e2eaf7;
}

.community-feature:first-child {
	border-left: 0;
	padding-left: 0;
}

.community-feature__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #cfe0ff;
	color: #2b67d5;
	font-size: 18px;
	box-shadow: 0 8px 20px rgb(30 72 155 / 12%);
}

.community-feature h3 {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 700;
	color: #2157c3;
}

.community-feature p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #5c739a;
}

.community-cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.community-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 18px 14px 14px;
	border-radius: 16px;
	border: 1px solid #dfe8fa;
	background: #fff;
	box-shadow: 0 12px 30px rgb(17 45 96 / 10%);
	overflow: hidden;
	min-height: 0;
}

.community-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgb(255 255 255 / 44%) 0%, rgb(255 255 255 / 0%) 38%);
}

.community-card--qa {
	background: linear-gradient(170deg, #ffffff 0%, #eef4ff 100%);
}

.community-card--learn {
	background: linear-gradient(170deg, #ffffff 0%, #edfbf6 100%);
}

.community-card--job {
	background: linear-gradient(170deg, #ffffff 0%, #fff2ec 100%);
}

.community-card--youtube {
	background: linear-gradient(170deg, #ffffff 0%, #fff0f0 100%);
}

.community-card--tiktok {
	background: linear-gradient(170deg, #ffffff 0%, #f3f5f8 100%);
}

.community-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	position: relative;
	z-index: 1;
}

.community-card__icon {
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: #1f58cd;
	color: #fff;
	font-size: 20px;
	box-shadow: 0 8px 20px rgb(27 73 168 / 28%);
}

.community-card--learn .community-card__icon {
	background: #108f77;
	box-shadow: 0 8px 20px rgb(16 143 119 / 28%);
}

.community-card--job .community-card__icon {
	background: #de5c20;
	box-shadow: 0 8px 20px rgb(222 92 32 / 28%);
}

.community-card--youtube .community-card__icon {
	background: #f12622;
	box-shadow: 0 8px 20px rgb(241 38 34 / 26%);
}

.community-card--tiktok .community-card__icon {
	background: #171b24;
	box-shadow: 0 8px 20px rgb(23 27 36 / 24%);
}

.community-card h2 {
	margin: 0;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #133a82;
}

.community-card__blurb {
	position: relative;
	z-index: 1;
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.68;
	color: #45608a;
	min-height: 60px;
}

.community-card__media-wrap {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	padding: 12px;
	min-height: 124px;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #e0e9fa;
	aspect-ratio: 1;
}

.community-card__media {
	display: block;
	width: 100%;
	max-width: 100%;
	object-fit: contain;
	padding: 0;

}

.community-card__media--qr {
	aspect-ratio: 1 / 1;
	padding: 8px;
}

.community-card__media--image {
	max-height: 104px;
}

.community-card__media--placeholder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 8px;
	color: #8ca2c5;
	font-weight: 700;
	font-size: 13px;
	aspect-ratio: auto;
	min-height: 100px;
}

.community-card__media--placeholder i {
	font-size: 42px;
	line-height: 1;
	opacity: 0.8;
}

.community-card__link {
	margin-top: 12px;
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	border-radius: 10px;
	background: #1d56cb;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	width: 100%;
}

.community-card--learn .community-card__link {
	background: #118f77;
}

.community-card--job .community-card__link {
	background: #d95c22;
}

.community-card--youtube .community-card__link {
	background: #eb221e;
}

.community-card--tiktok .community-card__link {
	background: #202734;
}

.community-card__link:hover {
	filter: brightness(0.94);
}

.community-cta-strip {
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	border: 1px solid #dbe7fb;
	box-shadow: 0 10px 24px rgb(17 45 96 / 8%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.community-cta-strip__note {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.community-cta-strip__note-icon {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #edf4ff;
	color: #2360d4;
	font-size: 36px;
}

.community-cta-strip__note p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	font-weight: 600;
	color: #46608a;
}

.community-cta-strip__button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 24px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid #98b7ef;
	color: #2360d4;
	background: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.community-cta-strip__button:hover {
	background: #2360d4;
	color: #fff;
	border-color: #2360d4;
}

@media (max-width: 1120px) {
	.community-overview {
		grid-template-columns: 1fr;
	}

	.community-overview__features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.community-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.community-card {
		min-height: 0;
	}
}

@media (max-width: 760px) {
	.community-main {
		padding-bottom: 48px;
	}

	.community-hero {
		padding: 36px 0 72px;
		background-size: cover, 0 0, cover;
	}

	.community-overview {
		margin-top: -34px;
		padding: 18px 16px;
		border-radius: 18px;
	}

	.community-overview__lead {
		align-items: flex-start;
	}

	.community-overview__features {
		grid-template-columns: 1fr;
	}

	.community-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.community-feature {
		padding-left: 0;
		border-left: 0;
	}

	.community-cta-strip {
		flex-direction: column;
		align-items: stretch;
	}

	.community-cta-strip__button {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.community-cards {
		grid-template-columns: 1fr;
	}

	.community-card h2 {
		font-size: 16px;
	}
}

@media (max-width: 1024px) {
	.draw-single-layout {
		grid-template-columns: 1fr;
	}

	.draw-single-subtitle {
		font-size: 16px;
	}
}

@media (max-width: 680px) {
	.draw-single-hero {
		padding: 36px 0;
	}

	.draw-single-title {
		font-size: clamp(20px, 6.4vw, 28px);
	}

	.draw-single-gallery__main {
		height: min(320px, 58vh);
	}

	.draw-single-gallery__controls {
		grid-template-columns: 1fr;
	}

	.draw-gallery-nav {
		display: none;
	}

	.draw-single-gallery__thumbs {
		grid-auto-columns: 70px;
	}

	.draw-single-content h2 {
		font-size: 20px;
	}

	.draw-terms-modal {
		padding: 10px;
	}

	.draw-terms-modal__dialog {
		width: min(100%, 100vw - 20px);
		padding: 14px 12px 12px;
		border-radius: 12px;
		gap: 9px;
	}

	.draw-terms-modal__title {
		font-size: clamp(18px, 6.4vw, 22px);
		padding-right: 34px;
	}

	.draw-terms-modal__content-box {
		padding: 10px;
		max-height: 36vh;
	}

	.draw-terms-modal__content-box h3 {
		font-size: 16px;
	}

	.draw-terms-modal__content-box li {
		font-size: 13px;
		line-height: 1.45;
	}

	.draw-terms-modal__agree {
		font-size: 13px;
	}

	.draw-terms-modal__actions {
		gap: 8px;
	}

	.draw-terms-modal__btn {
		min-width: 0;
		font-size: 12px;
		height: 38px;
		flex: 1 1 0;
	}
}


/* =================================================================
   AT_TOOL ARCHIVE — Formula explorer layout
   ================================================================= */

.formula-archive-page {
	background: #f5f8fe;
}

.formula-hero-desc {
	max-width: 740px;
	font-size: clamp(16px, 1.05vw, 20px);
	line-height: 1.65;
	color: #3a4b70;
}

.formula-main {
	padding: 26px 0 64px;
}

.formula-filter-bar {
	display: grid;
	grid-template-columns: 1fr 260px auto;
	gap: 14px;
	margin-bottom: 24px;
}

.formula-filter-input-wrap,
.formula-filter-select-wrap {
	position: relative;
	background: #fff;
	border: 1px solid #e5ecf8;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(16, 40, 88, 0.06);
}

.formula-filter-input-wrap input,
.formula-filter-select-wrap select {
	width: 100%;
	height: 40px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: #102858;
	font-size: 14px;
	outline: none;
}

.formula-filter-input-wrap input {
	padding-left: 42px;
}

.formula-filter-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #8ea0c3;
	font-size: 16px;
}

.formula-filter-submit {
	border: 0;
	border-radius: 10px;
	padding: 0 20px;
	background: var(--at-button-bg);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s;
}

.formula-filter-submit:hover {
	background: var(--at-button-bg-hover);
}

.formula-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 18px;
	align-items: start;
}

.formula-sidebar {
	background: #ffffff30;
	border: 1px solid #e5ecf8;
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 4px 16px rgba(16, 40, 88, 0.06);
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
	overflow: hidden;
}

.formula-tab {
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	font-size: 16px;
	font-weight: 600;
	color: #243457;
	text-decoration: none;
	transition: transform 0.24s ease, color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	backface-visibility: hidden;
	transform: translateZ(0);
	will-change: transform;
	border: 1px solid transparent;
	z-index: 0;
	padding-left: 18px;
	padding-right: 18px;
	
}

.formula-tab::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
	opacity: 0;
	transform: translateX(-24px);
	transition: opacity 0.24s ease, transform 0.24s ease;
	z-index: -1;
}

.formula-tab::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 10px;
	bottom: 10px;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, #8eb7ff, #fff);
	opacity: 0;
	transform: scaleY(0.4);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.formula-tab i {
	font-size: 16px;
	color: #9aabc8;
	width: 18px;
	text-align: center;
	transition: transform 0.22s ease, color 0.22s ease;
}

.formula-tab:hover {
	background: #eef3fd;
	color: #123267;
	transform: translateX(3px);
}

.formula-tab:hover::before {
	opacity: 1;
	transform: translateX(0);
}

.formula-tab.is-active {
	background: linear-gradient(100deg, #1b57d1, #2e75ff);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.16);
}

.formula-tab.is-active::before,
.formula-tab.is-active::after {
	opacity: 1;
	transform: translateX(0) scaleY(1);
}

.formula-tab.is-active i {
	color: #dbe8ff;
	transform: scale(1.08);
}

.formula-content {
	min-width: 0;
	position: relative;
	transform-origin: top center;
	will-change: opacity, transform, filter;
}

.formula-content::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(56, 113, 244, 0.08), rgba(255, 255, 255, 0));
	opacity: 0;
	pointer-events: none;
}

.formula-ajax-page.is-loading .formula-content,
.doclib-ajax-page.is-loading .doclib-content,
.drawlib-ajax-page.is-loading .drawlib-content {
	opacity: 0.9;
	pointer-events: none;
	transform: none;
	filter: none;
}

.formula-ajax-page.is-loading .formula-content::before,
.doclib-ajax-page.is-loading .doclib-content::before,
.drawlib-ajax-page.is-loading .drawlib-content::before {
	opacity: 1;
}

.formula-content.is-entering,
.doclib-content.is-entering,
.drawlib-content.is-entering {
	animation: formulaPanelReveal 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.formula-content.is-entering::before,
.doclib-content.is-entering::before,
.drawlib-content.is-entering::before {
	animation: formulaPanelGlow 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.formula-content.is-entering .formula-tax-card,
.formula-content.is-entering .formula-post-item,
.doclib-content.is-entering .doclib-card,
.drawlib-content.is-entering .draw-tax-card,
.drawlib-content.is-entering .formula-post-item,
.formula-content.is-entering .formula-empty {
	animation: formulaItemRise 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.formula-content.is-entering .formula-tax-card:nth-child(2),
.formula-content.is-entering .formula-post-item:nth-child(2),
.doclib-content.is-entering .doclib-card:nth-child(2),
.drawlib-content.is-entering .draw-tax-card:nth-child(2),
.drawlib-content.is-entering .formula-post-item:nth-child(2) {
	animation-delay: 0.03s;
}

.formula-content.is-entering .formula-tax-card:nth-child(3),
.formula-content.is-entering .formula-post-item:nth-child(3),
.doclib-content.is-entering .doclib-card:nth-child(3),
.drawlib-content.is-entering .draw-tax-card:nth-child(3),
.drawlib-content.is-entering .formula-post-item:nth-child(3) {
	animation-delay: 0.06s;
}

.formula-content.is-entering .formula-tax-card:nth-child(4),
.formula-content.is-entering .formula-post-item:nth-child(4),
.doclib-content.is-entering .doclib-card:nth-child(4),
.drawlib-content.is-entering .draw-tax-card:nth-child(4),
.drawlib-content.is-entering .formula-post-item:nth-child(4) {
	animation-delay: 0.09s;
}

.formula-content.is-entering .formula-tax-card:nth-child(5),
.formula-content.is-entering .formula-post-item:nth-child(5),
.doclib-content.is-entering .doclib-card:nth-child(5),
.drawlib-content.is-entering .draw-tax-card:nth-child(5),
.drawlib-content.is-entering .formula-post-item:nth-child(5) {
	animation-delay: 0.12s;
}

.formula-content.is-entering .formula-tax-card:nth-child(6),
.formula-content.is-entering .formula-post-item:nth-child(6),
.doclib-content.is-entering .doclib-card:nth-child(6),
.drawlib-content.is-entering .draw-tax-card:nth-child(6),
.drawlib-content.is-entering .formula-post-item:nth-child(6) {
	animation-delay: 0.15s;
}

.formula-content.is-entering .formula-tax-card,
.formula-content.is-entering .formula-post-item,
.doclib-content.is-entering .doclib-card,
.drawlib-content.is-entering .draw-tax-card,
.drawlib-content.is-entering .formula-post-item {
	animation-fill-mode: both;
}

.draw-taxonomy-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.draw-tax-card {
	background: #fff;
	border: 1px solid #e4ebf8;
	border-radius: 12px;
	padding: 16px 16px 14px;
	box-shadow: 0 4px 16px rgba(16, 40, 88, 0.06);
	display: flex;
	flex-direction: column;
	min-height: 330px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.draw-tax-card.is-clickable {
	cursor: pointer;
}

.draw-tax-card.is-clickable:hover,
.draw-tax-card.is-clickable:focus-visible {
	transform: translateY(-4px);
	border-color: #cbd8f2;
	box-shadow: 0 10px 26px rgba(16, 40, 88, 0.12);
	outline: none;
}

.draw-tax-card__media {
	height: 150px;
	border-radius: 10px;
	background: #f7f9ff;
	border: 1px solid #edf2fd;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.draw-tax-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 8px;
}

.draw-tax-card__icon {
	color: #1f56cf;
	font-size: 48px;
	line-height: 1;
}

.draw-tax-card h3 {
	margin: 0 0 8px;
	font-size: clamp(22px, 1.2vw, 28px);
	line-height: 1.16;
	color: #102858;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.draw-tax-card__count {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
	color: #2a66d8;
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 9px;
	border: 2px solid #9cc0ff;
	background: #f4f9ff;
	width: fit-content;
}

.draw-tax-card__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.56;
	color: #566b93;
	display: -webkit-box;
	line-clamp: 4;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.draw-tax-card a {
	margin-top: auto;
	padding-top: 12px;
	font-size: 16px;
	font-weight: 700;
	color: #2c67d8;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.draw-tax-card a:hover {
	color: #184db8;
}

.drawlib-sidebar {
	gap: 6px;
}

.drawlib-filter-box h3 {
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 18px;
	font-weight: 700;
}

.drawlib-check {
	font-size: 15px;
	font-weight: 700;
	color: #4b5d80;
	text-transform: uppercase;
}

.draw-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.draw-post-card {
	background: #fff;
	border: 1px solid #e5ecf8;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(16, 40, 88, 0.06);
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	min-height: 340px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.draw-post-card:hover,
.draw-post-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(16, 40, 88, 0.09);
	border-color: #d6e0f1;
	outline: none;
}

.draw-post-card__media {
	height: 170px;
	border-radius: 10px;
	background: #f7f9ff;
	border: 1px solid #edf2fd;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 10px;
}

.draw-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 6px;
}

.draw-post-card__placeholder {
	font-size: 44px;
	color: #275fce;
	line-height: 1;
}

.draw-post-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.28;
	color: #102858;
	font-weight: 700;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.draw-post-card__subtitle {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.45;
	color: #5b6c8d;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.draw-post-card__meta {
	display: grid;
	gap: 8px;
	margin-top: auto;
	margin-bottom: 12px;
}

.draw-post-card__meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	line-height: 1.3;
	color: #4c5f84;
	font-weight: 500;
}

.draw-post-card__meta-row strong {
	font-weight: 700;
	color: #425678;
	min-width: 86px;
}

.draw-post-card__fmt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fmt-color, #375fbb);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
}

.draw-post-card__fmt i {
	font-size: 16px;
	line-height: 1;
}

.draw-post-card__actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 2px;
}

.draw-post-card__btn {
	height: 38px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.draw-post-card__btn.is-outline {
	border: 2px solid #4a83ef;
	color: #1f5ad6;
	background: #fff;
	background-image: linear-gradient(90deg, #4a83ef 0%, #4a83ef 100%);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.draw-post-card__btn.is-outline:hover,
.draw-post-card__btn.is-outline:focus-visible {
	background-color: #4a83ef;
	background-size: 100% 100%;
	border-color: #4a83ef;
	color: #fff;
}

.draw-post-card__btn.is-solid {
	border: 2px solid #1f5ad6;
	background: #1f5ad6;
	color: #fff;
}

.draw-post-card__btn.is-solid:hover {
	background: #1549b5;
	border-color: #1549b5;
}

.draw-post-card__btn.is-disabled {
	border: 2px solid #d2dbee;
	background: #f4f7fc;
	color: #7c8ea9;
	pointer-events: none;
}

.formula-taxonomy-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.formula-tax-card {
	background: #fff;
	border: 1px solid #e5ecf8;
	border-radius: 12px;
	padding: 22px 22px 18px;
	box-shadow: 0 5px 18px rgba(16, 40, 88, 0.06);
	display: flex;
	flex-direction: column;
	min-height: 226px;
}

.formula-tax-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	border: 2px solid #d6e2fb;
	color: #1a55d0;
	font-size: 30px;
	margin-bottom: 14px;
}

.formula-tax-card h3 {
	margin: 0;
	font-size: clamp(18px, 1vw, 22px);
	line-height: 1.3;
	color: #102858;
	font-weight: 700;
}

.formula-tax-card__count {
	margin: 3px 0 10px;
	font-size: 22px;
	color: #7a8cad;
	line-height: 1.4;
}

.formula-tax-card__count strong {
	font-size: 36px;
	color: #1b57d1;
	font-weight: 700;
}

.formula-tax-card__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.68;
	color: #4a5a79;
}

.formula-tax-card a {
	margin-top: auto;
	padding-top: 10px;
	font-weight: 700;
	font-size: 16px;
	color: #1b57d1;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.formula-tax-card a:hover {
	color: #0f42af;
}

.formula-post-list {
	display: grid;
	gap: 12px;
}

.formula-post-item {
	background: #fff;
	border: 1px solid #e5ecf8;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 4px 16px rgba(16, 40, 88, 0.06);
	display: flex;
	gap: 20px;
	align-items: center;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.formula-post-item:hover,
.formula-post-item:focus-visible {
	transform: translateY(-5px);
	border-color: #cbdaf6;
	box-shadow: 0 12px 28px rgba(16, 40, 88, 0.12);
	outline: none;
}

.formula-post-item__content {
	flex: 1;
	min-width: 0;
}

.formula-post-item__content h3 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
}

.formula-post-item__content h3 a {
	color: #123267;
	text-decoration: none;
}

.formula-post-item__content h3 a:hover {
	color: #1b57d1;
}

.formula-post-item__content p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #4a5a79;
}

.formula-post-item__link {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #1b57d1;
	text-decoration: none;
}

.formula-post-item__thumb {
	flex-shrink: 0;
	width: 160px;
	border-radius: 8px;
	overflow: hidden;
}

.formula-post-item__thumb img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
}

.formula-empty {
	background: #fff;
	border: 1px solid #e5ecf8;
	border-radius: 12px;
	padding: 30px 24px;
	font-size: 16px;
	line-height: 1.6;
	color: #5a6e94;
}

@keyframes formulaPanelReveal {
	0% {
		opacity: 0;
		transform: translateY(16px) scale(0.985);
		filter: blur(2px);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes formulaPanelGlow {
	0% {
		opacity: 0.35;
	}
	100% {
		opacity: 0;
	}
}

@keyframes formulaItemRise {
	0% {
		opacity: 0;
		transform: translateY(18px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1280px) {
	.formula-taxonomy-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.draw-taxonomy-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.draw-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.formula-filter-bar {
		grid-template-columns: 1fr;
	}

	.formula-layout {
		grid-template-columns: 1fr;
	}

	.formula-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.draw-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.formula-taxonomy-grid,
	.formula-sidebar {
		grid-template-columns: 1fr;
	}

	.draw-taxonomy-grid {
		grid-template-columns: 1fr;
	}

	.draw-post-grid,
	.draw-post-card__actions {
		grid-template-columns: 1fr;
	}

	.draw-post-card {
		min-height: 0;
	}

	.formula-tab {
		font-size: 15px;
	}
}

/* =================================================================
   AT_DOCUMENT PAGE - DOCUMENT LIBRARY
   ================================================================= */

.doclib-main {
	padding-top: 22px;
}

.doclib-filter-bar {
	grid-template-columns: minmax(260px, 1fr) 250px;
}

.doclib-layout {
	grid-template-columns: 310px 1fr;
}

.doclib-sidebar {
	gap: 8px;
}

.doclib-format-box {
	margin-top: 10px;
	padding: 14px;
	border-radius: 10px;
	border: 1px solid #e2e9f8;
	background: #fbfdff;
	display: grid;
	gap: 9px;
}

.doclib-format-box h3 {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.2;
	color: #102858;
	font-weight: 700;
}

.doclib-format-check {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	line-height: 1.4;
	color: #2f4267;
	font-weight: 500;
	cursor: pointer;
}

.doclib-format-check input {
	width: 18px;
	height: 18px;
	accent-color: #1f5ad6;
}

.doclib-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.doclib-card {
	background: #fff;
	border: 1px solid #e5ecf8;
	border-radius: 12px;
	padding: 16px 16px 14px;
	box-shadow: 0 4px 16px rgba(16, 40, 88, 0.06);
	display: flex;
	flex-direction: column;
	min-height: 150px;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.doclib-card.is-clickable {
	cursor: pointer;
}

.doclib-card.is-clickable:hover,
.doclib-card.is-clickable:focus-visible {
	transform: translateY(-5px);
	border-color: #cbdaf6;
	box-shadow: 0 12px 28px rgba(16, 40, 88, 0.12);
	outline: none;
}

.doclib-card__head {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin-bottom: 10px;
}

.doclib-file-icon {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid #e6ebf6;
	border-radius: 10px;
	background: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	color: var(--doclib-file-color, #6f7f9b);
	gap: 2px;
	flex-shrink: 0;
}

.doclib-file-icon i {
	font-size: 20px;
	line-height: 1;
}

.doclib-file-icon em {
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
}

.doclib-card__title-wrap h3 {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.3;
	color: #102858;
	font-weight: 700;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.doclib-card__title-wrap p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #5b6c8d;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.doclib-card__meta-main {
	font-size: 12px;
	line-height: 1.35;
	color: #3f5279;
	font-weight: 700;
	margin-bottom: auto;
	padding-left: 68px;
	min-height: 22px;
}

.doclib-card__meta-foot {
	margin-top: 12px;
	padding-top: 11px;
	border-top: 1px solid #eaf0fb;
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 10px;
	align-items: center;
	color: #7c8ea9;
	font-size: 13px;
	font-weight: 700;
}

.doclib-card__meta-foot i {
	font-size: 13px;
	color: #9db0ce;
}

.doclib-card__download {
	justify-self: end;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #dbe6fb;
	background: #f5f9ff;
	color: #1f5ad6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.doclib-card.is-clickable:hover .doclib-card__download,
.doclib-card.is-clickable:focus-visible .doclib-card__download {
	background: #1f5ad6;
	border-color: #1f5ad6;
	color: #fff;
}

.doclib-card.is-clickable:hover .doclib-card__download i {
	color: #fff !important
}

.doclib-card__download.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.doclib-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.doclib-load-more {
	min-width: 260px;
	height: 46px;
	border-radius: 10px;
	border: 1px solid #cfdcf5;
	background: #fff;
	color: #1c57d0;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.doclib-load-more:hover {
	background: #f4f8ff;
	border-color: #1c57d0;
}

.doclib-modal {
	position: fixed;
	inset: 0;
	z-index: 6000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.doclib-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.doclib-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
}

.doclib-modal__dialog {
	position: relative;
	width: min(520px, 100%);
	max-height: min(90vh, 760px);
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 18px 52px rgba(15, 23, 42, 0.22);
	transform: translateY(12px);
	transition: transform 0.24s ease;
}

.doclib-modal.is-open .doclib-modal__dialog {
	transform: translateY(0);
}

.doclib-modal__close {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: #7185ac;
	font-size: 20px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.doclib-modal__title {
	margin: 0 0 18px;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
	color: #102858;
	font-weight: 700;
}

.doclib-modal__content {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	margin-bottom: 18px;
}

.doclib-modal__icon-box {
	display: flex;
	justify-content: center;
}

.doclib-file-icon--modal {
	width: 92px;
	height: 118px;
	border-radius: 10px;
	gap: 4px;
}

.doclib-file-icon--modal i {
	font-size: 42px;
}

.doclib-file-icon--modal em {
	font-size: 13px;
	letter-spacing: 0;
}

.doclib-modal__meta {
	display: grid;
	gap: 16px;
}

.doclib-modal__row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 12px;
	align-items: baseline;
	font-size: 16px;
	line-height: 1.35;
}

.doclib-modal__row span {
	color: #1f2b45;
	font-weight: 500;
}

.doclib-modal__row strong {
	color: #2c3f68;
	font-weight: 600;
}

.doclib-modal__view-btn {
	min-height: 46px;
	border-radius: 10px;
	background: #1f5ad6;
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	width: 100%;
}

.doclib-modal__view-btn:hover {
	background: #1a4ebd;
	color: #fff;
}

.doclib-modal__view-btn.is-disabled {
	opacity: 0.5;
	pointer-events: none;
}

body.doclib-modal-open {
	overflow: hidden;
}

@media (max-width: 1360px) {
	.doclib-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.doclib-filter-bar {
		grid-template-columns: 1fr;
	}

	.doclib-layout {
		grid-template-columns: 1fr;
	}

	.doclib-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.doclib-card-grid {
		grid-template-columns: 1fr;
	}

	.doclib-card__meta-main {
		padding-left: 0;
	}

	.doclib-card__meta-foot {
		grid-template-columns: auto auto auto;
	}

	.doclib-modal__dialog {
		padding: 16px;
	}

	.doclib-modal__title {
		font-size: 18px;
	}

	.doclib-modal__content {
		grid-template-columns: 1fr;
	}

	.doclib-modal__icon-box {
		justify-content: flex-start;
	}

	.doclib-modal__row {
		grid-template-columns: 112px minmax(0, 1fr);
		font-size: 14px;
	}

	.doclib-modal__view-btn {
		font-size: 14px;
	}
}

/* =============================================
   SINGLE AT_TOOL - FORMULA CALCULATOR
============================================= */

.formula-single-page {
	background: #f6f8fc;
	padding-bottom: 42px;
}

.formula-single-head {
	padding: 24px 0 18px;
	background: #f6f8fc;
	border-bottom: 1px solid #e6ecf8;
}

.formula-single-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #7585a1;
	margin-bottom: 14px;
}

.formula-single-breadcrumb a,
.formula-single-breadcrumb span {
	color: #7585a1;
	text-decoration: none;
}

.formula-single-breadcrumb i {
	font-size: 10px;
	opacity: 0.75;
}

.formula-single-head__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
}

.formula-single-title {
	margin: 0;
	font-size: clamp(30px, 2.15vw, 42px);
	line-height: 1.2;
	color: #0e2c62;
	font-weight: 700;
	text-transform: uppercase;
}

.formula-single-desc {
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: #485a7d;
}

.formula-single-pdf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #dbe4f7;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 700;
	color: #1a56d0;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 9px rgba(20, 54, 124, 0.07);
}

.formula-single-main {
	padding: 16px 0 0;
}

.formula-single-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 18px;
}

.formula-single-left {
	display: grid;
	gap: 18px;
}

.formula-box {
	background: #fff;
	border: 1px solid #e2e9f7;
	border-radius: 8px;
	padding: 18px;
	box-shadow: 0 6px 16px rgba(16, 42, 93, 0.04);
}

.formula-box-title {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.3;
	color: #123267;
	font-weight: 700;
	text-transform: uppercase;
}

.formula-principle-wrap {
	border-radius: 8px;
	overflow: hidden;
	min-height: 220px;
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.95fr);
	align-items: center;
}

.formula-principle-visual {
	padding: 0 16px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	min-width: 0;
}

.formula-principle-wrap img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.formula-principle-legend {
	padding: 12px;
	min-width: 0;
	display: flex;
	align-items: center;
	border: 1px solid #e6ecf7;
	border-radius: 6px;
}

.formula-principle-legend h3 {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.3;
	color: #123267;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.formula-principle-legend table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #dbe4f5;
	border-radius: 8px;
	overflow: hidden;
}

.formula-principle-legend tr + tr th,
.formula-principle-legend tr + tr td {
	border-top: 0px solid #e6ecf7;
}

.formula-principle-legend th,
.formula-principle-legend td {
	padding: 3px 6px;
	vertical-align: top;
	font-size: 13px;
	line-height: 1.5;
}

.formula-principle-legend th {
	width: 30px;
	white-space: nowrap;
	text-align: left;
	color: #123267;
	font-weight: 700;
	/* letter-spacing: 0.02em; */
}

.formula-principle-legend td {
	color: #415476;
	font-weight: 500;
}

.formula-empty-diagram {
	font-size: 15px;
	color: #7f8ea8;
	padding: 24px;
}

.formula-inputs-form {
	display: grid;
	gap: 9px;
}

.formula-input-row {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 14px;
	max-width: 520px;
	border-left: 2px solid #0051d5;
    padding-left: 12px;
    border-radius: 4px;
	box-sizing: border-box;
}

.formula-input-row label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: #234271;
	font-weight: 600;
}

.formula-input-row label .formula-input-unit {
	margin-left: auto;
	font-size: 14px;
	color: #234271;
	font-weight: 500;
}

.formula-input-row label i {
	font-size: 13px;
	color: #1f5ad6;
	width: 15px;
	text-align: center;
}

.formula-input-control {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.formula-input-control input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d8e1f2;
	border-radius: 6px;
	font-size: 15px;
	color: #1a2f57;
	background: #fff;
}

.formula-input-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 10px;
	width: 520px;
}

.formula-btn {
	border: 1px solid #d8e2f6;
	border-radius: 6px;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formula-btn-primary {
	background: #0051d5 !important;
	color: #fff !important;
	border-color: #0051d5 !important;
	box-shadow: 0 3px 12px rgba(0, 81, 213, 0.25) !important;
}

.formula-btn-primary:hover {
	background: #0041a8 !important;
	box-shadow: 0 5px 16px rgba(0, 81, 213, 0.35) !important;
}

.formula-btn-ghost {
	background: #fff !important;
	color: #1565c0 !important;
	border-color: #d8e2f6 !important;
}

.formula-btn-ghost:hover {
	background: #f5f8fd !important;
	border-color: #1565c0 !important;
}

.formula-btn:hover {
	transform: translateY(-1px);
}

.formula-btn-primary {
	background: linear-gradient(90deg, #1150cf, #2b74ff);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 18px rgba(16, 74, 192, 0.2);
}

.formula-btn-ghost {
	background: #fff;
	color: #1c4db7;
}

.formula-results-list {
	display: grid;
	gap: 16px;
}

.formula-result-item {
	border-radius: 8px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fbfbfb;
}

.formula-result-item p {
	margin: 0;
	font-size: 13px;
	color: #5f7295;
	line-height: 1.4;
}

.formula-result-item strong {
	margin-top: 4px;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 700;
	color: #1b57d1;
}

.formula-result-item strong em {
	font-style: normal;
	font-size: 26px;
	font-weight: 700;
}

.formula-result-item > i {
	font-size: 20px;
	color: #2a67de;
	opacity: 0.9;
}

.formula-note-box {
	margin-top: 32px;
	padding: 16px;
	border-radius: 8px;
	background: #cff3ff63;
}

.formula-note-box h3 {
	margin: 0 0 14px;
	font-size: 14px;
	text-transform: uppercase;
	color: #2456bf;
	font-weight: 700;
}

.formula-note-box ul {
	margin: 0;
	padding-left: 18px;
	color: #47608c;
	font-size: 13px;
	line-height: 1.55;
}

.formula-single-formulas {
	padding: 18px 0 0;
}

.formula-single-formulas__title {
	margin: 12px 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
	color: #123267;
}

.formula-doc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.formula-doc-card {
	background: #fff;
	border: 1px solid #e3e9f5;
	border-radius: 8px;
	padding: 16px;
	min-height: 180px;
}

.formula-doc-card--soft {
	background: linear-gradient(145deg, #fff9e7, #fff6df);
	border-color: #f1e0b1;
}

.formula-doc-card h3 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	color: #153463;
}

.formula-doc-card__eq {
	font-family: "Cambria Math", "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.45;
	color: #22395f;
	margin-bottom: 10px;
}

.formula-doc-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.62;
	color: #4c5f83;
	white-space: pre-line;
}

@media (max-width: 1080px) {
	.formula-single-grid {
		grid-template-columns: 1fr;
	}

	.formula-result-item strong {
		font-size: 30px;
	}
}

@media (max-width: 768px) {
	.formula-single-head__row {
		flex-direction: column;
	}

	.formula-principle-wrap {
		grid-template-columns: 1fr;
	}

	.formula-principle-legend {
		border-left: 0;
		border-top: 1px solid #e2eaf8;
	}

	.formula-input-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.formula-input-actions,
	.formula-doc-grid {
		grid-template-columns: 1fr;
	}
}
