/* Its.That. faceted blog — listing grid, filter chips, single article.
   Palette pulled from the live theme: navy #172640, mint #cfebe9 / #b1e6df,
   ink #626262, hairline #e3e3e3. Fonts inherit BeTheme globals. */

.it-blog,
.it-article,
.it-related {
	--it-navy: #172640;
	--it-mint: #cfebe9;
	--it-mint-strong: #b1e6df;
	--it-ink: #626262;
	--it-line: #e3e3e3;
	--it-bg-soft: #f7f9f9;
}

/* ---- Listing header ---- */
.it-blog__head {
	margin: 0 0 28px;
}
.it-blog__title {
	color: var(--it-navy);
	letter-spacing: -1px;
	margin: 0 0 8px;
}
.it-blog__desc {
	color: var(--it-ink);
	max-width: 60ch;
}

/* ---- Filter chips ---- */
.it-facets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 34px;
}
.it-facets__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--it-line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--it-navy);
	background: #fff;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.it-facets__chip:hover {
	background: var(--it-mint);
	border-color: var(--it-mint);
	color: var(--it-navy);
}
.it-facets__chip.is-active {
	background: var(--it-navy);
	border-color: var(--it-navy);
	color: #fff;
}
.it-facets__count {
	font-size: 11px;
	font-weight: 700;
	opacity: .55;
}
.it-facets__chip.is-active .it-facets__count {
	opacity: .7;
}

/* ---- Card grid ---- */
.it-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
@media (max-width: 959px) {
	.it-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
	.it-grid { grid-template-columns: 1fr; }
}

.it-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--it-line);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.it-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(23, 38, 64, .12);
}
.it-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--it-bg-soft);
}
.it-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.it-card:hover .it-card__img {
	transform: scale(1.04);
}
.it-card__img--empty {
	background: linear-gradient(135deg, var(--it-mint) 0%, var(--it-mint-strong) 100%);
}
.it-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	flex: 1;
}
.it-card__cat {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--it-navy);
	background: var(--it-mint);
	padding: 4px 10px;
	border-radius: 999px;
}
.it-card__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: -.5px;
}
.it-card__title a {
	color: var(--it-navy);
}
.it-card__title a:hover {
	color: var(--it-ink);
}
.it-card__excerpt {
	margin: 0;
	color: var(--it-ink);
	font-size: 14px;
	line-height: 1.6;
}
.it-card__date {
	margin-top: auto;
	font-size: 12px;
	color: var(--it-ink);
	opacity: .8;
}

/* ---- Pagination + empty ---- */
.it-pager {
	margin: 44px 0 0;
	display: flex;
	justify-content: center;
}
.it-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid var(--it-line);
	border-radius: 8px;
	color: var(--it-navy);
	font-weight: 600;
}
.it-pager .page-numbers.current,
.it-pager .page-numbers:hover {
	background: var(--it-navy);
	border-color: var(--it-navy);
	color: #fff;
}
.it-empty {
	color: var(--it-ink);
	padding: 40px 0;
}

/* ---- Single article ---- */
.it-article {
	max-width: 760px;
	margin: 0 auto;
}
.it-article__head {
	text-align: center;
	margin: 0 0 28px;
}
.it-article__cat {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--it-navy);
	background: var(--it-mint);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.it-article__title {
	color: var(--it-navy);
	letter-spacing: -1px;
	line-height: 1.15;
	margin: 0 0 14px;
}
.it-article__meta {
	display: flex;
	gap: 14px;
	justify-content: center;
	font-size: 13px;
	color: var(--it-ink);
}
.it-article__by::before {
	content: "·";
	margin-right: 14px;
}
.it-article__hero {
	margin: 0 0 32px;
	border-radius: 16px;
	overflow: hidden;
}
.it-article__hero img {
	width: 100%;
	height: auto;
	display: block;
}
.it-article__body {
	color: #2b2b2b;
	font-size: 17px;
	line-height: 1.75;
}
.it-article__body h2,
.it-article__body h3 {
	color: var(--it-navy);
	letter-spacing: -.5px;
}
.it-article__foot {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--it-line);
}
.it-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.it-tags li a {
	display: inline-block;
	font-size: 12px;
	color: var(--it-ink);
	border: 1px solid var(--it-line);
	border-radius: 999px;
	padding: 5px 12px;
}
.it-tags li a:hover {
	border-color: var(--it-navy);
	color: var(--it-navy);
}

/* ---- Related ---- */
.it-related {
	max-width: 1100px;
	margin: 64px auto 0;
	padding-top: 40px;
	border-top: 1px solid var(--it-line);
}
.it-related__title {
	color: var(--it-navy);
	letter-spacing: -.5px;
	margin: 0 0 24px;
}

/* ---- Topic hero ---- */
.it-topic {
	--it-navy: #172640;
	--it-mint: #cfebe9;
	--it-mint-strong: #b1e6df;
	--it-ink: #626262;
	margin: 0 0 30px;
}
.it-topic__media {
	border-radius: 18px;
	overflow: hidden;
	margin: 0 0 24px;
	aspect-ratio: 16 / 6;
	background: linear-gradient(135deg, var(--it-mint) 0%, var(--it-mint-strong) 100%);
}
.it-topic__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.it-topic__inner {
	max-width: 70ch;
}
.it-topic__eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--it-navy);
	background: var(--it-mint);
	padding: 4px 12px;
	border-radius: 999px;
	margin: 0 0 12px;
}
.it-topic__title {
	color: var(--it-navy);
	letter-spacing: -1px;
	line-height: 1.1;
	margin: 0 0 12px;
}
.it-topic__intro {
	color: var(--it-ink);
	font-size: 17px;
	line-height: 1.7;
}

/* ---- Listing + sidebar layout ---- */
.it-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	align-items: start;
}
.it-grid--side {
	grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1100px) {
	.it-layout { grid-template-columns: 1fr; gap: 40px; }
	.it-grid--side { grid-template-columns: repeat(3, 1fr); }
	.it-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
	.it-sidebar { grid-template-columns: 1fr; }
}

/* ---- Sidebar modules ---- */
.it-sidebar {
	--it-navy: #172640;
	--it-mint: #cfebe9;
	--it-mint-strong: #b1e6df;
	--it-ink: #626262;
	--it-line: #e3e3e3;
	--it-bg-soft: #f7f9f9;
	position: sticky;
	top: 24px;
}
.it-side {
	border: 1px solid var(--it-line);
	border-radius: 14px;
	padding: 18px;
	margin: 0 0 24px;
	background: #fff;
}
.it-sidebar .it-side:last-child { margin-bottom: 0; }
.it-side__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--it-navy);
	margin: 0 0 14px;
}

/* Surprise me */
.it-side__read {
	display: block;
}
.it-side__readmedia {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 10px;
	overflow: hidden;
	background: var(--it-bg-soft);
	margin: 0 0 10px;
}
.it-side__readimg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.it-side__readimg--empty {
	background: linear-gradient(135deg, var(--it-mint) 0%, var(--it-mint-strong) 100%);
}
.it-side__readtitle {
	display: block;
	color: var(--it-navy);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: -.3px;
}
.it-side__read:hover .it-side__readtitle {
	color: var(--it-ink);
}
.it-side__shuffle {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--it-navy);
}
.it-side__shuffle:hover { color: var(--it-ink); }

/* From the shop */
.it-prod { display: block; }
.it-prod__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--it-bg-soft);
	margin: 0 0 12px;
}
.it-prod__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.it-prod__img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .3s ease;
}
.it-prod:hover .it-prod__img--hover { opacity: 1; }
.it-prod__img--base {
	transition: transform .4s ease;
}
.it-prod:hover .it-prod__img--base { transform: scale(1.04); }
.it-prod__cta {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translate(-50%, 8px);
	opacity: 0;
	background: var(--it-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: 999px;
	transition: opacity .25s ease, transform .25s ease;
	white-space: nowrap;
}
.it-prod:hover .it-prod__cta {
	opacity: 1;
	transform: translate(-50%, 0);
}
.it-prod__name {
	display: block;
	color: var(--it-navy);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 4px;
}
.it-prod__price {
	display: block;
	color: var(--it-ink);
	font-size: 14px;
}
.it-prod__price del { opacity: .6; margin-right: 6px; }
.it-prod__price ins { text-decoration: none; font-weight: 700; }

/* ---- Topic FAQ ---- */
.it-faq {
	--it-navy: #172640;
	--it-ink: #626262;
	--it-line: #e3e3e3;
	max-width: 860px;
	margin: 64px auto 0;
	padding-top: 40px;
	border-top: 1px solid var(--it-line);
}
.it-faq__title {
	color: var(--it-navy);
	letter-spacing: -.5px;
	margin: 0 0 20px;
}
.it-faq__item {
	border-bottom: 1px solid var(--it-line);
}
.it-faq__q {
	cursor: pointer;
	list-style: none;
	padding: 18px 36px 18px 0;
	position: relative;
	color: var(--it-navy);
	font-weight: 600;
	font-size: 17px;
}
.it-faq__q::-webkit-details-marker { display: none; }
.it-faq__q::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	color: var(--it-navy);
	transition: transform .2s ease;
}
.it-faq__item[open] .it-faq__q::after {
	content: "–";
}
.it-faq__a {
	padding: 0 0 20px;
	color: var(--it-ink);
	font-size: 16px;
	line-height: 1.7;
}
