/* ==========================================================================
   IT Bangla — main stylesheet
   ========================================================================== */

:root {
	--itb-brand: #0e7f3f;       /* logo green */
	--itb-red: #ed2527;         /* logo red */
	--itb-brand-dark: #0a6331;
	--itb-brand-soft: #e7f5ed;
	--itb-brand-light: #c7e9d4;
	--itb-header-bg: #ffffff;
	--itb-header-fg: #1f2933;
	--itb-ink: #35414f;       /* headings, footer bg */
	--itb-text: #495a6e;      /* excerpts */
	--itb-body: #5e738c;      /* article body */
	--itb-muted: #97a7b9;     /* dates */
	--itb-line: #b5c1ce;
	--itb-bg: #ffffff;
	--itb-surface: #ffffff;
	--itb-accent: #0e7f3f;
	--itb-border: #e5e7eb;
	--itb-tag: #e3e7ec;
	--itb-share: #9da4ae;
	--itb-footer: #0c2b1a;
	--itb-footer-text: #bfe6cd;
	--itb-radius: 16px;
	--itb-radius-sm: 12px;
	--itb-gap: 32px;
	--itb-container: 1176px;
	--itb-font: "Montserrat", "SolaimanLipi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Dark mode: follows the OS unless the visitor picked a theme with the header toggle. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--itb-brand-soft: #123524;
		--itb-brand-light: #1a4a31;
		--itb-ink: #e6edf5;
		--itb-text: #b4c2d2;
		--itb-body: #a9b8c9;
		--itb-muted: #7d8da0;
		--itb-line: #3a4757;
		--itb-bg: #111820;
		--itb-surface: #18212b;
		--itb-border: #263240;
		--itb-tag: #243040;
		--itb-share: #3a4757;
		--itb-footer: #08150e;
		--itb-accent: #5fd391;
		--itb-header-bg: #18212b;
		--itb-header-fg: #e6edf5;
	}
}
:root[data-theme="dark"] {
	--itb-brand-soft: #123524;
	--itb-brand-light: #1a4a31;
	--itb-ink: #e6edf5;
	--itb-text: #b4c2d2;
	--itb-body: #a9b8c9;
	--itb-muted: #7d8da0;
	--itb-line: #3a4757;
	--itb-bg: #111820;
	--itb-surface: #18212b;
	--itb-border: #263240;
	--itb-tag: #243040;
	--itb-share: #3a4757;
	--itb-footer: #08150e;
	--itb-accent: #5fd391;
	--itb-header-bg: #18212b;
	--itb-header-fg: #e6edf5;
}

*, *::before, *::after { box-sizing: border-box; }

/* Bangla pages: SolaimanLipi first and a little more line height for conjuncts.
   SolaimanLipi ships 400 and 700 only, so 500/600 render as regular/bold. */
:lang(bn) {
	--itb-font: "SolaimanLipi", "Montserrat", system-ui, sans-serif;
}
:lang(bn) body { line-height: 1.6; }
:lang(bn) .itb-pill,
:lang(bn) .itb-feed__tab,
:lang(bn) .itb-section__name { letter-spacing: 0; }
:lang(bn) .itb-card__title,
:lang(bn) .itb-feed__title,
:lang(bn) .itb-section__title { line-height: 1.45; }
:lang(bn) .itb-article__title,
:lang(bn) .itb-archive-title { line-height: 1.35; }
.itb-lang[lang="bn"] { font-family: "SolaimanLipi", sans-serif; font-size: 15px; }

/* SolaimanLipi draws smaller than Montserrat at the same size; scale Bangla text up
   so it matches the visual size of the Latin layout (~1.15–1.2x). */
:lang(bn) body { font-size: 18px; }
:lang(bn) .itb-nav__list a { font-size: 16px; }
:lang(bn) .itb-pill,
:lang(bn) .itb-feed__tab,
:lang(bn) .itb-section__name,
:lang(bn) .itb-tags a { font-size: 14px; }
:lang(bn) .itb-card--large .itb-card__title { font-size: 28px; }
:lang(bn) .itb-card--medium .itb-card__title,
:lang(bn) .itb-card--medium-plus .itb-card__title,
:lang(bn) .itb-section__title { font-size: 19px; }
:lang(bn) .itb-card__text,
:lang(bn) .itb-feed__title { font-size: 16px; }
:lang(bn) .itb-slider__title { font-size: 28px; }
:lang(bn) .itb-archive-title,
:lang(bn) .itb-article__title { font-size: 40px; }
:lang(bn) .itb-content,
:lang(bn) .itb-article__lead { font-size: 19px; }
:lang(bn) .itb-content h2 { font-size: 28px; }
:lang(bn) .itb-content h3 { font-size: 23px; }
:lang(bn) .itb-share__label { font-size: 18px; }
:lang(bn) .itb-banner__title { font-size: 26px; }
:lang(bn) .itb-banner--tall .itb-banner__title { font-size: 34px; }
:lang(bn) .itb-banner__eyebrow,
:lang(bn) .itb-banner__cta { font-size: 14px; }
:lang(bn) .itb-footer__nav a { font-size: 16px; }
:lang(bn) .itb-footer__bottom { font-size: 14px; }
@media (max-width: 720px) {
	:lang(bn) .itb-card--large .itb-card__title { font-size: 23px; }
	:lang(bn) .itb-archive-title,
	:lang(bn) .itb-article__title { font-size: 30px; }
}

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--itb-bg);
	color: var(--itb-ink);
	font-family: var(--itb-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--itb-brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }

:focus-visible { outline: 2px solid var(--itb-brand); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	padding: 8px 16px;
	background: var(--itb-surface);
	z-index: 1000;
}

.itb-container {
	width: 100%;
	max-width: calc(var(--itb-container) + 80px);
	margin: 0 auto;
	padding: 0 40px;
}

.itb-main { padding: 27px 0 64px; }
.itb-main > .itb-container > * + * { margin-top: 64px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.itb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--itb-surface);
}
.admin-bar .itb-header { top: 32px; }

.itb-header__main {
	position: relative;
	background: var(--itb-header-bg);
	color: var(--itb-header-fg);
	overflow: hidden;
	border-top: 4px solid var(--itb-red);
}
.itb-header__side {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 360px;
	pointer-events: none;
}
.itb-header__side img { height: 100%; width: 100%; object-fit: cover; }

.itb-header__content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
}

.itb-logo img { max-height: 60px; width: auto; }
/* Two logos are printed when a dark-mode logo is set; show the one that fits the theme. */
.itb-logo-dark { display: none; }
:root[data-theme="dark"] .itb-logo:has(.itb-logo-dark) .custom-logo-link:not(.itb-logo-dark) { display: none; }
:root[data-theme="dark"] .itb-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .itb-logo:has(.itb-logo-dark) .custom-logo-link:not(.itb-logo-dark) { display: none; }
	:root:not([data-theme="light"]) .itb-logo-dark { display: block; }
}
.itb-logo__text { display: flex; align-items: center; gap: 10px; color: var(--itb-brand); }
.itb-logo__text:hover { color: var(--itb-brand); }
.itb-logo__mark {
	display: grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 6px;
	background: var(--itb-red);
	color: #fff;
	font-weight: 700;
	font-size: 22px;
	border-radius: 8px 8px 8px 0;
	text-transform: uppercase;
}
.itb-logo__words { display: flex; flex-direction: column; line-height: 1.1; }
.itb-logo__words strong { font-size: 26px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.itb-logo__words small { font-size: 10px; font-weight: 500; opacity: .85; text-transform: uppercase; max-width: 180px; margin-top: 4px; }

.itb-header__controls {
	position: absolute;
	right: 40px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.itb-search-toggle,
.itb-theme-toggle {
	background: none; border: 0; color: var(--itb-header-fg); padding: 0; display: flex;
}
.itb-search-toggle:hover,
.itb-theme-toggle:hover { color: var(--itb-brand); }
.itb-icon-moon { display: none; }
:root[data-theme="dark"] .itb-icon-sun { display: none; }
:root[data-theme="dark"] .itb-icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .itb-icon-sun { display: none; }
	:root:not([data-theme="light"]) .itb-icon-moon { display: block; }
}
.itb-lang {
	padding-right: 8px;
	color: var(--itb-accent);
	font-size: 12px;
	line-height: 1.33;
	font-weight: 500;
	text-transform: uppercase;
}
.itb-lang:hover { color: var(--itb-red); }

.itb-burger {
	display: none;
	position: absolute;
	left: 16px;
	width: 40px; height: 40px;
	background: none; border: 0;
	padding: 10px 8px;
	flex-direction: column;
	justify-content: space-between;
}
.itb-burger span { display: block; height: 2px; background: var(--itb-header-fg); border-radius: 2px; }

.itb-search { background: var(--itb-brand-soft); padding: 12px 0; }

/* Category nav */
.itb-nav { background: var(--itb-brand); }
.itb-nav__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	justify-content: center;
	gap: 40px;
	height: 40px;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
}
.itb-nav__list::-webkit-scrollbar { display: none; }
.itb-nav__list li { height: 100%; }
.itb-nav__list a {
	display: flex;
	align-items: center;
	height: 100%;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	padding-top: 3px;
}
.itb-nav__list .current-menu-item > a,
.itb-nav__list .current-category-ancestor > a,
.itb-nav__list a:hover { color: #fff; border-bottom-color: var(--itb-red); }

/* Page-load progress bar */
.itb-loader { height: 2px; background: transparent; }
.itb-loader__bar { height: 100%; width: 0; background: var(--itb-red); transition: width .3s ease; }
.is-loading .itb-loader__bar { width: 70%; transition: width 2s ease; }

/* Mobile drawer */
.itb-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .43); }
.itb-drawer__panel {
	position: absolute; left: 0; top: 0; bottom: 0;
	width: min(340px, 86vw);
	background: var(--itb-surface);
	padding: 64px 24px 24px;
	overflow-y: auto;
}
.itb-drawer__close {
	position: absolute; top: 12px; right: 12px;
	width: 40px; height: 40px;
	background: none; border: 0;
	font-size: 32px; line-height: 1; color: var(--itb-ink);
}
.itb-drawer__cats, .itb-drawer__links { list-style: none; margin: 0; padding: 0; }
.itb-drawer__cats a { display: block; padding: 10px 0; font-weight: 600; font-size: 16px; }
.itb-drawer__links { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--itb-border); }
.itb-drawer__links a { display: block; padding: 8px 0; font-size: 14px; color: var(--itb-text); }

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.itb-pill {
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--itb-brand-soft);
	color: var(--itb-accent);
	font-size: 12px;
	line-height: 1.33;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.itb-pill:hover { background: var(--itb-brand-light); }

.itb-date {
	display: block;
	font-size: 12px;
	line-height: 1.33;
	color: var(--itb-muted);
}

.itb-thumb-placeholder {
	display: block;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--itb-brand-soft), var(--itb-brand-light));
}

.itb-empty { color: var(--itb-muted); }

.itb-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	background: var(--itb-brand);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
}
.itb-btn:hover { color: #fff; opacity: .9; }

.itb-banner { display: block; border-radius: var(--itb-radius-sm); overflow: hidden; }
.itb-banner--placeholder {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	aspect-ratio: 325 / 183;
	padding: 20px;
	background:
		radial-gradient(circle at 85% 20%, rgba(237, 37, 39, .55) 0, rgba(237, 37, 39, 0) 45%),
		linear-gradient(135deg, var(--itb-brand) 0%, var(--itb-brand-dark) 100%);
	color: #fff;
}
.itb-banner--placeholder:hover { color: #fff; filter: brightness(1.05); }
.itb-banner--placeholder.itb-banner--tall { aspect-ratio: 384 / 506; padding: 28px; }
.itb-banner__eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.itb-banner__title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.itb-banner--tall .itb-banner__title { font-size: 30px; }
.itb-banner__cta {
	align-self: flex-start;
	margin-top: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--itb-red);
	font-size: 12px;
	font-weight: 600;
}
.itb-banner img { width: 100%; }
.itb-widget + .itb-widget { margin-top: 18px; }
.itb-widget img { border-radius: var(--itb-radius-sm); }
.itb-widget__title { font-size: 14px; margin-bottom: 10px; }

.itb-sticky { position: sticky; top: 160px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.itb-card { display: flex; flex-direction: column; }
.itb-card__image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--itb-radius);
	overflow: hidden;
	background: var(--itb-brand-soft);
}
.itb-card__image img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.itb-card:hover .itb-card__image img { transform: scale(1.04); }

.itb-card__body { display: flex; flex-direction: column; }
.itb-card__body .itb-pill { margin-bottom: 6px; }
.itb-card__body .itb-date { margin-top: 4px; }
.itb-card__title { color: var(--itb-ink); font-weight: 600; }
.itb-card__title a:hover { color: var(--itb-brand); }
.itb-card__text {
	color: var(--itb-text);
	font-size: 14px;
	line-height: 1.43;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Large: text above image */
.itb-card--large { gap: 20px; }
.itb-card--large .itb-card__title { font-size: 24px; line-height: 1.33; }
.itb-card--large .itb-card__text { margin-top: 8px; }

/* Medium: small grid card, title only */
.itb-card--medium { gap: 12px; }
.itb-card--medium .itb-card__body .itb-pill { display: none; }
.itb-card--medium .itb-card__title {
	font-size: 16px;
	line-height: 1.33;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Medium plus: image, pill, title, excerpt, date */
.itb-card--medium-plus { gap: 12px; }
.itb-card--medium-plus .itb-card__title { font-size: 16px; line-height: 1.33; }
.itb-card--medium-plus .itb-card__text { margin-top: 4px; }
.itb-card--medium-plus .itb-card__text { -webkit-line-clamp: 2; }

/* --------------------------------------------------------------------------
   News feed (tabs)
   -------------------------------------------------------------------------- */

.itb-feed__tabs { display: flex; gap: 11px; margin-bottom: 12px; }
.itb-feed__tab {
	background: none; border: 0;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.33;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--itb-body);
}
.itb-feed__tab:hover { color: var(--itb-accent); }
.itb-feed__tab.is-active { background: var(--itb-brand-soft); color: var(--itb-accent); }

.itb-feed__list[hidden] { display: none; }
.itb-feed__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 535px;
	overflow-y: auto;
	scrollbar-width: none;
}
.itb-feed__list::-webkit-scrollbar { display: none; }
.itb-feed__item {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--itb-border);
}
.itb-card--small { display: flex; gap: 10px; }
.itb-card--small__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.itb-card--small__body .itb-date { margin-top: 4px; }
.itb-card--small__image {
	position: relative;
	flex: 0 0 87px;
	width: 87px; height: 87px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--itb-brand-soft);
}
.itb-card--small__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.itb-feed__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.43;
	color: var(--itb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.itb-intro {
	display: grid;
	grid-template-columns: 467fr 320fr 325fr;
	gap: var(--itb-gap);
}
.itb-intro__lead,
.itb-intro__feed { border-bottom: 1px solid var(--itb-text); }
.itb-intro__lead { padding-bottom: 20px; }
.itb-intro__banners { display: flex; flex-direction: column; gap: 18px; }
.itb-intro__banners img { border-radius: var(--itb-radius-sm); width: 100%; }

/* Slider */
.itb-slider__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.itb-slider__title { font-size: 24px; font-weight: 600; color: var(--itb-ink); }
.itb-slider__controls { display: flex; gap: 12px; }
.itb-slider__btn {
	width: 32px; height: 32px;
	display: grid; place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--itb-text);
	transition: color .2s;
}
.itb-slider__btn:hover:not(:disabled) { color: var(--itb-red); }
.itb-slider__btn:disabled { opacity: .35; cursor: default; }

.itb-slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 24px) / 4);
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.itb-slider__track::-webkit-scrollbar { display: none; }
.itb-slider__slide { scroll-snap-align: start; }

/* 2-col grid + sticky column */
.itb-split {
	display: grid;
	grid-template-columns: 760fr 384fr;
	gap: var(--itb-gap);
	align-items: start;
}
.itb-split--reverse { grid-template-columns: 384fr 760fr; }
.itb-split--reverse .itb-sticky-col { order: -1; }
.itb-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--itb-gap);
}
.itb-sticky-col { align-self: stretch; }
.itb-banner--tall img { width: 100%; }

/* Category columns */
.itb-sections {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px var(--itb-gap);
}
.itb-section__name {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-bottom: 8px;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--itb-brand-soft);
	color: var(--itb-accent);
	font-size: 12px;
	line-height: 1.33;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.itb-section__name svg { transition: transform .2s; }
.itb-section__name:hover svg { transform: translateX(3px); }
.itb-section__list { display: flex; flex-direction: column; gap: 12px; }
.itb-section__item {
	display: flex;
	flex-direction: column;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--itb-border);
}
.itb-section__image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--itb-radius-sm);
	overflow: hidden;
	margin-bottom: 12px;
	background: var(--itb-brand-soft);
}
.itb-section__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.itb-section__title { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--itb-ink); }
.itb-section__item:hover .itb-section__title { color: var(--itb-brand); }

/* Opinions */
.itb-opinions__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--itb-gap);
	margin-top: 16px;
}
.itb-opinion {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border-radius: var(--itb-radius);
	background: var(--itb-brand-soft);
}
/* Columnist (opinion author) */
.itb-columnist { display: flex; align-items: center; gap: 10px; }
.itb-columnist .itb-avatar {
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	background: var(--itb-brand-soft);
	box-shadow: 0 0 0 2px var(--itb-surface), 0 0 0 3px var(--itb-brand-light);
}
.itb-columnist--card .itb-avatar { width: 40px; height: 40px; }
.itb-columnist--opinion .itb-avatar { width: 56px; height: 56px; }
.itb-columnist--single .itb-avatar { width: 64px; height: 64px; }
.itb-columnist--opinion { gap: 12px; }
.itb-columnist__text { display: flex; flex-direction: column; min-width: 0; }
.itb-columnist__name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--itb-ink); }
.itb-columnist__role { font-size: 12px; line-height: 1.33; color: var(--itb-muted); }
.itb-columnist--single { margin-bottom: 20px; }
.itb-columnist--single .itb-columnist__name { font-size: 18px; }
.itb-columnist--single .itb-columnist__role { font-size: 14px; }
.itb-card__body .itb-columnist { margin: 2px 0 8px; }
.itb-opinion .itb-columnist { margin-bottom: 4px; }
:lang(bn) .itb-columnist__name { font-size: 16px; }
:lang(bn) .itb-columnist__role { font-size: 14px; }
:lang(bn) .itb-columnist--single .itb-columnist__name { font-size: 21px; }
:lang(bn) .itb-columnist--single .itb-columnist__role { font-size: 16px; }
.itb-opinion .itb-card__title { font-size: 18px; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.itb-archive-title { font-size: 36px; font-weight: 600; line-height: 1.22; color: var(--itb-ink); }
.itb-archive-desc { margin-top: 8px; color: var(--itb-text); }
.itb-archive-head { text-align: center; padding-top: 12px; }
.itb-archive-head .itb-search-page .itb-searchform { margin: 0 auto; }
.itb-main > .itb-container > .itb-archive-head + * { margin-top: 40px; }

.itb-archive-main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--itb-gap);
	padding-bottom: 32px;
	border-bottom: 1px solid var(--itb-border);
}
.itb-archive-main__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--itb-gap);
	align-content: start;
}

.itb-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.itb-pagination .page-numbers {
	min-width: 40px; height: 40px;
	display: grid; place-items: center;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--itb-brand-soft);
	color: var(--itb-brand);
	font-size: 14px;
	font-weight: 600;
}
.itb-pagination .page-numbers.current,
.itb-pagination a.page-numbers:hover { background: var(--itb-brand); color: #fff; }
.itb-pagination .dots { background: none; }

/* --------------------------------------------------------------------------
   Single
   -------------------------------------------------------------------------- */

.itb-single {
	display: grid;
	grid-template-columns: 120px minmax(0, 700px) 292px;
	gap: var(--itb-gap);
	justify-content: space-between;
	align-items: start;
}
.itb-single__share, .itb-single__feed { align-self: stretch; }

.itb-share__label { font-size: 16px; font-weight: 500; color: var(--itb-text); margin-bottom: 8px; }
.itb-share { display: flex; flex-wrap: wrap; gap: 8px; }
.itb-share__btn {
	position: relative;
	width: 24px; height: 24px;
	display: grid; place-items: center;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: var(--itb-share);
	color: #fff;
	transition: background .2s;
}
.itb-share__btn:hover { background: var(--itb-red); color: #fff; }
.itb-share__tip {
	position: absolute;
	top: 30px;
	left: 0;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 500;
	color: var(--itb-brand);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.itb-share__btn.is-copied .itb-share__tip { opacity: 1; }

.itb-article__meta {
	display: flex;
	align-items: center;
	gap: 15px;
	padding-bottom: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--itb-border);
}
.itb-article__meta .itb-date { font-size: 14px; line-height: 1.43; font-weight: 500; }
.itb-article__title { font-size: 36px; font-weight: 600; line-height: 1.22; color: var(--itb-ink); margin-bottom: 20px; }
.itb-article__lead { margin: 0 0 20px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--itb-text); }
.itb-article__figure { margin: 0 0 20px; }
.itb-article__figure img { width: 100%; border-radius: var(--itb-radius); }
.itb-article__figure figcaption, .itb-content figcaption {
	margin-top: 8px;
	font-size: 12px;
	color: var(--itb-muted);
}

.itb-content { color: var(--itb-body); font-size: 16px; line-height: 1.5; font-weight: 500; }
.itb-content strong, .itb-content b { font-weight: 700; }
.itb-content > * { margin: 0 0 20px; }
.itb-content h2, .itb-content h3, .itb-content h4 { color: var(--itb-ink); font-weight: 600; margin-top: 32px; }
.itb-content h2 { font-size: 24px; line-height: 1.33; }
.itb-content h3 { font-size: 20px; line-height: 1.4; }
.itb-content a { color: var(--itb-brand); text-decoration: underline; text-underline-offset: 2px; }
.itb-content strong { color: var(--itb-ink); }
.itb-content img { border-radius: var(--itb-radius); }
.itb-content figure { margin-left: 0; margin-right: 0; }
.itb-content blockquote {
	margin-left: 0; margin-right: 0;
	padding: 20px 24px;
	border-left: 4px solid var(--itb-red);
	border-radius: 0 var(--itb-radius-sm) var(--itb-radius-sm) 0;
	background: var(--itb-brand-soft);
	color: var(--itb-ink);
	font-weight: 500;
}
.itb-content blockquote p:last-child { margin-bottom: 0; }
.itb-content ul, .itb-content ol { padding-left: 24px; }
.itb-content li + li { margin-top: 6px; }
.itb-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.itb-content th, .itb-content td { padding: 10px; border: 1px solid var(--itb-border); text-align: left; }
.itb-content iframe { max-width: 100%; }

.itb-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--itb-border); }
.itb-tags a {
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--itb-tag);
	color: var(--itb-body);
	font-size: 12px;
	line-height: 1.33;
	font-weight: 500;
	text-transform: uppercase;
}
.itb-tags a:hover { background: var(--itb-brand-soft); color: var(--itb-accent); }

/* Reactions */
.itb-reactions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; padding: 20px 0; }
.itb-reactions__item {
	width: 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
}
.itb-reactions__icon {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	transition: transform .15s;
}
.itb-reactions__item:hover .itb-reactions__icon { transform: scale(1.15); }
.itb-reactions__item.is-active .itb-reactions__icon { background: var(--itb-brand-soft); box-shadow: 0 0 0 2px var(--itb-accent); }
.itb-reactions__count { font-size: 12px; line-height: 1.33; font-weight: 500; color: var(--itb-ink); }

/* Comments */
.itb-comments { margin-top: 40px; }
.itb-fb-comments .fb-comments,
.itb-fb-comments .fb-comments span,
.itb-fb-comments .fb-comments iframe { width: 100% !important; }
.itb-fb-comments .fb-comments { min-height: 120px; display: block; }
/* Facebook's comment box has no dark theme any more: give it a light panel in dark mode. */
:root[data-theme="dark"] .itb-fb-comments .fb-comments { background: #fff; border-radius: var(--itb-radius-sm); padding: 8px 12px; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .itb-fb-comments .fb-comments { background: #fff; border-radius: var(--itb-radius-sm); padding: 8px 12px; }
}
.itb-comments h2 { font-size: 20px; margin-bottom: 16px; }
.itb-comments ol { list-style: none; padding: 0; }
.itb-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--itb-border); font-size: 14px; color: var(--itb-body); }
.itb-comments .comment-author { font-weight: 600; color: var(--itb-ink); }
.itb-comments textarea, .itb-comments input[type="text"], .itb-comments input[type="email"], .itb-comments input[type="url"] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--itb-line); border-radius: 8px; font: inherit;
}
.itb-comments .submit { padding: 10px 20px; border: 0; border-radius: 8px; background: var(--itb-brand); color: #fff; font-weight: 600; }

/* Page, search, 404 */
.itb-page { max-width: 800px; }
.itb-page .itb-content { margin-top: 24px; }

.itb-searchform { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.itb-searchform input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--itb-line);
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
}
.itb-searchform button {
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--itb-ink);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
}
.itb-search .itb-searchform input { border-color: transparent; }
.itb-search-page { margin-top: 16px; }
.itb-search-page .itb-searchform { margin: 0; }

.itb-404 { text-align: center; padding: 40px 0; }
.itb-404__code { font-size: 96px; font-weight: 700; color: var(--itb-red); margin: 0; line-height: 1; }
.itb-404 .itb-searchform { margin: 0 auto; }
.itb-404 > * + * { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.itb-footer { background: var(--itb-footer); color: #fff; padding: 40px 0 20px; }
.itb-footer__top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.itb-footer__logo { font-weight: 700; font-size: 20px; }
.itb-footer__logo img { max-height: 40px; width: auto; }
.itb-footer__nav { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.itb-footer__nav a { font-size: 14px; line-height: 1.43; font-weight: 400; color: #fff; }
.itb-footer__nav a:hover, .itb-footer__logo:hover { color: var(--itb-footer-text); }
.itb-footer__socials { display: flex; gap: 8px; }
.itb-footer__socials a {
	width: 32px; height: 32px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	font-size: 12px; font-weight: 700;
}
.itb-footer__socials a:hover { background: var(--itb-red); color: #fff; }
.itb-footer__bottom {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 12px;
	line-height: 1.6;
	font-weight: 500;
	color: var(--itb-footer-text);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
	.itb-intro { grid-template-columns: 1.4fr 1fr; }
	.itb-intro__banners { grid-column: 1 / -1; flex-direction: row; }
	.itb-intro__banners > * { flex: 1; }
	.itb-single { grid-template-columns: minmax(0, 1fr) 292px; }
	.itb-single__share { grid-column: 1 / -1; order: 1; }
	.itb-single__share .itb-sticky { position: static; display: flex; align-items: center; gap: 12px; }
	.itb-single__share .itb-share__label { margin: 0; }
	.itb-article { order: 0; }
	.itb-single__feed { order: 0; }
	.itb-slider__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
}

@media (max-width: 1024px) {
	.itb-container { padding: 0 24px; }
	.itb-burger { display: flex; }
	.itb-header__controls { right: 16px; }
	.itb-nav { display: none; }
	.itb-header__side { display: none; }
	.itb-sticky { top: 120px; }
	.itb-split, .itb-split--reverse { grid-template-columns: 1fr; }
	.itb-split--reverse .itb-sticky-col { order: 0; }
	.itb-sticky-col .itb-sticky { position: static; }
	.itb-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.itb-archive-main { grid-template-columns: 1fr; }
	.itb-single { grid-template-columns: 1fr; }
	.itb-single__feed .itb-sticky { position: static; }
}

@media (max-width: 782px) {
	.admin-bar .itb-header { top: 0; position: relative; }
}

@media (max-width: 720px) {
	:root { --itb-gap: 20px; }
	.itb-container { padding: 0 16px; }
	.itb-main { padding-top: 16px; }
	.itb-main > .itb-container > * + * { margin-top: 40px; }
	.itb-header__content { min-height: 64px; }
	.itb-logo img { max-height: 40px; }
	.itb-logo__mark { min-width: 34px; height: 34px; font-size: 16px; }
	.itb-logo__words strong { font-size: 18px; }
	.itb-logo__words small { display: none; }
	.itb-lang { display: none; }
	.itb-intro { grid-template-columns: 1fr; }
	.itb-intro__banners { flex-direction: column; }
	.itb-card--large .itb-card__title { font-size: 20px; }
	.itb-grid-2, .itb-archive-main__grid { grid-template-columns: 1fr; }
	.itb-archive-main__grid .itb-card--medium { flex-direction: row; gap: 12px; }
	.itb-archive-main__grid .itb-card--medium .itb-card__image { flex: 0 0 120px; }
	.itb-sections, .itb-opinions__list { grid-template-columns: 1fr; }
	.itb-slider__track { grid-auto-columns: 78%; gap: 16px; }
	.itb-archive-title, .itb-article__title { font-size: 26px; }
	.itb-footer__nav { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
