/* Digital library brand/hub pages — layout-only custom rules.
 * Prefer Bootstrap + theme utilities (bg-white, bg-light-gray, text-green, text-muted, etc.).
 */

/* Clear sticky header + anchor bar when jumping to in-page links. */
.nk-dl-brand-page [id^='nk-dl-'] {
	scroll-margin-top: 10rem;
}

.nk-dl-brand-page .fs-6b p,
.nk-dl-brand-page p.fs-6b {
	font-size: 1.15rem !important;
}

.nk-dl-brand-page .fs-7b p,
.nk-dl-brand-page p.fs-7b {
	font-size: 0.95rem !important;
}

.nk-dl-brand-page .fs-7 p,
.nk-dl-brand-page p.fs-7 {
	font-size: 0.9rem !important;
}

.nk-dl-brand-page .fw-light,
.nk-dl-brand-page .fw-light p {
	font-weight: 300;
}

/* Theme sets p { margin-bottom: 0 !important }; restore spacing in multi-paragraph blocks. */
.nk-dl-brand-page .fs-6b > p + p,
.nk-dl-brand-page .fs-7b > p + p {
	margin-top: 1rem !important;
}

.nk-dl-brand-page {
	position: relative;
}

/* Theme header-nav.css sets all <header> to position:fixed — reset inside this page. */
.nk-dl-brand-page header {
	position: static;
	width: auto;
	z-index: auto;
	background: transparent;
}

.nk-dl-brand-page .nk-dl-image-placeholder {
	background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
	background-size: 200% 100%;
	animation: nk-dl-brand-shimmer 1.5s linear infinite;
}

@keyframes nk-dl-brand-shimmer {
	to {
		background-position-x: -200%;
	}
}

.nk-dl-brand-models {
	background: #fff;
}

.nk-dl-brand-models__tagline {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: #b5b5b5;
	font-weight: 600;
}

.nk-dl-hub-subtitle {
	letter-spacing: 0.16em;
}

.nk-dl-brand-models__card {
	display: block;
	color: #6c6c6c;
	border-radius: 1rem;
	padding: 0.75rem;
}

.nk-dl-brand-models__card:hover,
.nk-dl-brand-models__card:focus,
.nk-dl-brand-models__card:hover p,
.nk-dl-brand-models__card:focus p {
	color: #6c6c6c;
}

.nk-dl-brand-models__card p {
	font-weight: normal;
	color: inherit;
	transition: transform 0.35s ease;
}

.nk-dl-brand-models__image,
.nk-dl-featured-brands__logo-wrap {
	aspect-ratio: 4 / 3;
	border-radius: 0.5rem;
	margin-bottom: 0.85rem;
	overflow: hidden;
	position: relative;
	transition: transform 0.35s ease;
}

.nk-dl-brand-models__image--photo {
	background: transparent;
}

.nk-dl-brand-models__card:hover .nk-dl-brand-models__image,
.nk-dl-brand-models__card:hover .nk-dl-featured-brands__logo-wrap {
	transform: translateY(-6px);
}

.nk-dl-brand-models__card:hover p {
	transform: translateY(-2px);
}

.nk-dl-brand-models__image-el {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.nk-dl-brand-models__name {
	text-align: center;
	font-size: 1.3rem;
	font-weight: normal;
	color: #6c6c6c;
}

.nk-dl-featured-brands__logo-wrap {
	background: transparent;
}

.nk-dl-featured-brands__logo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.nk-dl-other-brands > .container > h4 {
	margin-bottom: 1.75rem;
}

.nk-dl-brand-intro,
.nk-dl-brand-history {
	background: #f4f4f4;
}

.nk-dl-brand-offers {
	background: #fff;
}

.nk-dl-brand-offers__subtitle {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: #b5b5b5;
	font-weight: 600;
}

/* CTA hover: green ↔ dark green. */
.nk-dl-brand-offers .btn-primary.bg-green:hover,
.nk-dl-brand-offers .btn-primary.bg-green:active,
.nk-dl-brand-offers .btn-primary.bg-green.active,
.nk-dl-brand-offers .btn-primary.bg-green:focus {
	background-color: #006B3F !important;
	border-color: #006B3F !important;
	color: #fff !important;
}

.nk-dl-brand-offers .btn-primary.bg-dark-green:hover,
.nk-dl-brand-offers .btn-primary.bg-dark-green:active,
.nk-dl-brand-offers .btn-primary.bg-dark-green.active,
.nk-dl-brand-offers .btn-primary.bg-dark-green:focus {
	background-color: #4DBC4D !important;
	border-color: #4DBC4D !important;
	color: #fff !important;
}

.nk-dl-brand-intro__grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.nk-dl-brand-intro__name {
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: #333;
}

.nk-dl-brand-intro__fact-label {
	font-size: 0.68rem;
	letter-spacing: 0.05em;
	color: #b5b5b5;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.nk-dl-brand-intro__fact-value {
	font-size: 0.95rem;
	color: #444;
	font-weight: 500;
}

.nk-dl-brand-intro__flag {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}

.nk-dl-brand-intro__logo-wrap {
	max-width: min(280px, 100%);
	width: 100%;
	aspect-ratio: 1;
	border-radius: 0.75rem;
	overflow: hidden;
	position: relative;
	background: transparent;
}

.nk-dl-brand-intro__logo {
	position: absolute;
	inset: 0;
	border-radius: 0.75rem;
}

.nk-dl-brand-intro__logo-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.nk-dl-brand-intro__summary {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #444;
}

.nk-dl-brand-intro__summary p:last-child {
	margin-bottom: 0;
}

@media (min-width: 992px) {
	.nk-dl-brand-intro__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		column-gap: 3rem;
		row-gap: 1.5rem;
		grid-template-areas:
			'name .'
			'facts summary'
			'logo summary';
		align-items: start;
	}

	.nk-dl-brand-intro__name {
		grid-area: name;
	}

	.nk-dl-brand-intro__facts {
		grid-area: facts;
	}

	.nk-dl-brand-intro__logo-wrap {
		grid-area: logo;
	}

	.nk-dl-brand-intro__summary-col {
		grid-area: summary;
	}

	.nk-dl-brand-intro__grid--no-facts {
		grid-template-areas:
			'name summary'
			'logo summary';
	}
}

.nk-dl-brand-history__highlights {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.nk-dl-brand-history__highlight-year {
	font-size: 1rem;
	letter-spacing: 0.05em;
	color: #b5b5b5;
	font-weight: 500;
	text-transform: uppercase;
}

.nk-dl-brand-history__label {
	font-size: 1rem;
	letter-spacing: 0.05em;
	font-weight: 500;
}

.nk-dl-brand-history__quote,
.nk-dl-brand-history__quote p {
	font-size: 1.3rem !important;
	line-height: 1.7;
	font-style: italic;
	font-weight: 300;
	color: #969696;
	border: 0;
	padding: 0;
}

.nk-dl-brand-history__highlight .nk-dl-brand-history__text {
	font-style: italic;
	font-weight: 300;
	color: #969696;
	line-height: 1.7;
}

.nk-dl-brand-history__title {
	font-size: 1.75rem;
	font-weight: normal;
	color: #333;
}

.nk-dl-brand-history__body,
.nk-dl-brand-history__body p {
	font-size: 1.15rem !important;
	line-height: 1.7;
	font-weight: 300;
}

.nk-dl-brand-history__body p:last-child {
	margin-bottom: 0;
}

.nk-dl-brand-history__entries {
	display: flex;
	flex-direction: column;
	gap: 2.75rem;
	font-size: 1.15rem;
	line-height: 1.7;
	font-weight: 300;
}

.nk-dl-brand-history__entries p,
.nk-dl-brand-history__content p,
.nk-dl-brand-history__text {
	font-size: 1.15rem !important;
	line-height: 1.7;
	font-weight: 300;
}

.nk-dl-brand-history__content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.nk-dl-brand-history__content + .nk-dl-brand-history__content {
	margin-top: 1rem;
}

.nk-dl-brand-history__period-title {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	font-weight: 500;
	color: #444;
}

.nk-dl-brand-history__content > .nk-dl-brand-history__period-title:not(:first-child) {
	margin-top: 1.5rem;
}

.nk-dl-brand-history__text {
	margin: 0;
}

.nk-dl-brand-history__figure {
	margin: 0.5rem 0 0;
	width: 100%;
}

.nk-dl-brand-history__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

@media (min-width: 992px) {
	.nk-dl-brand-history__layout {
		align-items: stretch;
		--bs-gutter-x: 4.5rem;
	}

	.nk-dl-brand-history__layout > .col-lg-5 {
		display: flex;
	}

	.nk-dl-brand-history__highlights {
		flex: 1;
		justify-content: space-between;
		width: 100%;
		padding-top: 1.25rem;
	}

	.nk-dl-brand-history__highlight:first-child {
		padding-top: 0.5rem;
	}
}

@media (max-width: 991.98px) {
	.nk-dl-brand-intro__logo-wrap {
		margin-bottom: 0.5rem;
	}
}

.nk-dl-brand-gallery {
	background: #fff;
}

.nk-dl-brand-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.nk-dl-brand-gallery__item {
	margin: 0;
}

.nk-dl-brand-gallery__media {
	overflow: hidden;
	border-radius: 0.5rem;
	background: #ececec;
}

.nk-dl-brand-gallery__item--wide .nk-dl-brand-gallery__media {
	aspect-ratio: 2.35 / 1;
}

.nk-dl-brand-gallery__item--half .nk-dl-brand-gallery__media {
	aspect-ratio: 4 / 3;
}

.nk-dl-brand-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0.5rem;
}

.nk-dl-brand-gallery__caption {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #b5b5b5;
	font-style: italic;
}

.nk-dl-brand-gallery__item:nth-child(3n + 1) {
	grid-column: 1 / -1;
}

.nk-dl-brand-gallery__item:first-child {
	padding-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
	.nk-dl-brand-gallery__grid {
		grid-template-columns: 1fr;
	}

	.nk-dl-brand-gallery__item:nth-child(3n + 1) {
		grid-column: auto;
	}
}
