/*
Theme Name:   Industrial Basics
Theme URI:    https://industrialbasics.com
Description:  Child theme of GeneratePress for industrialbasics.com: data-style homepage, topic grid, article layout with table of contents, author box and related posts.
Author:       Industrial Basics
Template:     generatepress
Version:      1.0.1
Requires PHP: 7.4
Text Domain:  ib
*/

:root {
	--ib-navy: #0c1a4b;
	--ib-navy-deep: #070f33;
	--ib-accent: #2fd6c1;
	--ib-accent-dark: #0f8f80;
	--ib-text: #1d2333;
	--ib-muted: #5b6478;
	--ib-soft: #f3f6fb;
	--ib-border: #e2e7f0;
	--ib-white: #fff;
	--ib-radius: 14px;
	--ib-radius-sm: 8px;
	--ib-shadow: 0 10px 30px rgba(12, 26, 75, .08);
	--ib-shadow-hover: 0 16px 40px rgba(12, 26, 75, .14);
	--ib-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
	font-family: var(--ib-font);
	color: var(--ib-text);
	background: var(--ib-white);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ib-font);
	color: var(--ib-navy);
	font-weight: 800;
	letter-spacing: -.01em;
}
a { color: var(--ib-accent-dark); }
a:hover { color: var(--ib-navy); }

/* Full-width layout for the child templates (GeneratePress boxes everything by default). */
.ib-layout .site.grid-container { max-width: none; padding: 0; }
.ib-layout .site-content { display: block; padding: 0; }

.ib-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ib-wrap--narrow { max-width: 820px; }
.ib-main { display: block; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--ib-border);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.inside-header { padding: 12px 20px; }
.main-title { margin: 0; font-size: 27px; line-height: 1; }
/* Wordmark: monogram + joined lowercase name, first word teal, second word navy (white in footer). */
.ib-logo {
	--ib-logo-teal: #1fb8a5;
	display: inline-flex;
	align-items: center;
	gap: .3em;
	color: var(--ib-navy);
	font-family: "Poppins", var(--ib-font);
	font-weight: 500;
	letter-spacing: -.03em;
	text-decoration: none;
	text-transform: lowercase;
	white-space: nowrap;
}
.ib-logo:hover { color: var(--ib-navy); }
.ib-logo__mark { width: auto; height: 1.45em; fill: var(--ib-logo-teal); color: var(--ib-logo-teal); flex: none; }
.ib-logo__text { color: var(--ib-logo-teal); }
.ib-logo__text span { color: var(--ib-navy); }
@media (max-width: 400px) { .main-title { font-size: 22px; } }
.site-description { color: var(--ib-muted); font-size: 13px; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav > ul { align-items: center; }
.main-navigation .main-nav ul li a {
	color: var(--ib-text);
	font-weight: 600;
	font-size: 15px;
	padding-left: 14px;
	padding-right: 14px;
	line-height: 56px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--ib-accent-dark); background: transparent; }
.main-navigation .main-nav ul li.ib-cta > a {
	background: var(--ib-navy);
	color: var(--ib-white);
	border-radius: 999px;
	line-height: 42px;
	padding: 0 22px;
	margin-left: 10px;
	transition: background .2s;
}
.main-navigation .main-nav ul li.ib-cta > a:hover { background: var(--ib-accent); color: var(--ib-navy); }
.main-navigation ul ul {
	background: var(--ib-white);
	border: 1px solid var(--ib-border);
	border-radius: var(--ib-radius-sm);
	box-shadow: var(--ib-shadow);
}
.main-navigation .main-nav ul ul li a { line-height: 1.4; padding: 10px 16px; font-size: 14px; }
.menu-toggle { color: var(--ib-navy); }
@media (max-width: 768px) {
	.main-navigation .main-nav ul li.ib-cta > a { margin: 10px 14px; text-align: center; }
	.main-navigation.toggled .main-nav > ul { align-items: stretch; }
}

/* ---------- Buttons, badges ---------- */
.ib-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.ib-btn:hover { transform: translateY(-2px); }
.ib-btn--accent { background: var(--ib-accent); color: var(--ib-navy-deep); }
.ib-btn--accent:hover { background: var(--ib-white); color: var(--ib-navy-deep); }
.ib-btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--ib-white); }
.ib-btn--ghost:hover { border-color: var(--ib-white); color: var(--ib-white); }

.ib-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(47, 214, 193, .14);
	color: var(--ib-accent-dark);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .02em;
}
.ib-badge:hover { background: var(--ib-accent); color: var(--ib-navy-deep); }

.ib-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--ib-accent-dark);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
}
.ib-link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.ib-link-arrow span { display: inline-block; transition: transform .2s; }
.ib-link-arrow:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.ib-hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 96px;
	color: #c9d2ee;
	background:
		radial-gradient(circle at 85% 20%, rgba(47, 214, 193, .22), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(70, 110, 255, .25), transparent 40%),
		linear-gradient(135deg, var(--ib-navy-deep), var(--ib-navy));
}
.ib-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(to bottom, #000, transparent);
	pointer-events: none;
}
.ib-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 56px;
	align-items: center;
}
.ib-hero__title {
	margin: 0 0 20px;
	color: var(--ib-white);
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.1;
}
.ib-hero__title span { display: block; color: var(--ib-accent); }
.ib-hero__text { max-width: 560px; margin: 0 0 32px; font-size: 18px; line-height: 1.7; }
.ib-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ib-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.ib-hero__chips a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	color: #c9d2ee;
	font-size: 13px;
	text-decoration: none;
}
.ib-hero__chips a:hover { border-color: var(--ib-accent); color: var(--ib-accent); }
.ib-hero__media img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

/* Built-in hero illustration */
.ib-art { position: relative; padding: 30px 20px; }
.ib-art__panel {
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 20px;
	background: rgba(255, 255, 255, .06);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
	backdrop-filter: blur(6px);
}
.ib-art__top { display: flex; gap: 6px; margin-bottom: 18px; }
.ib-art__top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.ib-art__top i:first-child { background: var(--ib-accent); }
.ib-art__wave svg { width: 100%; height: 90px; display: block; }
.ib-art__wave path { fill: none; stroke: var(--ib-accent); stroke-width: 3; stroke-linecap: round; }
.ib-art__wave .ib-art__wave2 { stroke: #7f9bff; opacity: .7; }
.ib-art__bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 18px; }
.ib-art__bars i {
	flex: 1;
	height: var(--h);
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(to top, rgba(47, 214, 193, .35), var(--ib-accent));
	animation: ib-grow 1.2s ease-out both;
	transform-origin: bottom;
}
.ib-art__bars i:nth-child(even) { background: linear-gradient(to top, rgba(127, 155, 255, .3), #7f9bff); }
@keyframes ib-grow { from { transform: scaleY(0); } }
.ib-art__badge {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--ib-white);
	color: var(--ib-navy);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
	animation: ib-float 5s ease-in-out infinite;
}
.ib-art__badge svg { width: 22px; height: 22px; color: var(--ib-accent-dark); }
.ib-art__badge--a { top: 0; left: -10px; }
.ib-art__badge--b { top: 42%; right: -14px; animation-delay: -1.5s; }
.ib-art__badge--c { bottom: 0; left: 18%; animation-delay: -3s; }
@keyframes ib-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
	.ib-art__bars i, .ib-art__badge { animation: none; }
}

/* ---------- Sections ---------- */
.ib-section { padding: 80px 0; }
.ib-section--soft { background: var(--ib-soft); }
.ib-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}
.ib-section__title { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; }
.ib-section__text { max-width: 620px; margin: 10px 0 0; color: var(--ib-muted); font-size: 17px; }
.ib-empty {
	padding: 40px;
	border: 2px dashed var(--ib-border);
	border-radius: var(--ib-radius);
	color: var(--ib-muted);
	text-align: center;
}

/* ---------- Cards ---------- */
.ib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ib-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ib-border);
	border-radius: var(--ib-radius);
	background: var(--ib-white);
	transition: transform .2s, box-shadow .2s;
}
.ib-card:hover { transform: translateY(-4px); box-shadow: var(--ib-shadow-hover); }
.ib-card__thumb { display: block; aspect-ratio: 1.9 / 1; overflow: hidden; background: var(--ib-soft); }
.ib-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ib-card:hover .ib-card__thumb img { transform: scale(1.04); }
.ib-card__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	color: var(--ib-accent);
	font-size: 14px;
	font-weight: 700;
	background:
		radial-gradient(circle at 80% 20%, rgba(47, 214, 193, .25), transparent 50%),
		linear-gradient(135deg, var(--ib-navy-deep), var(--ib-navy));
}
.ib-card__placeholder svg { width: 40px; height: 40px; }
.ib-card__placeholder span { color: #c9d2ee; }
.ib-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; }
.ib-card__title { margin: 0; font-size: 19px; line-height: 1.35; }
.ib-card__title a { color: var(--ib-navy); text-decoration: none; }
.ib-card__title a:hover { color: var(--ib-accent-dark); }
.ib-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; color: var(--ib-muted); font-size: 13px; }

/* ---------- Topics ---------- */
.ib-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ib-topic {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	border: 1px solid var(--ib-border);
	border-radius: var(--ib-radius);
	background: var(--ib-white);
	color: var(--ib-text);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ib-topic:hover { transform: translateY(-4px); border-color: var(--ib-accent); box-shadow: var(--ib-shadow-hover); color: var(--ib-text); }
.ib-topic__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: var(--ib-navy);
	color: var(--ib-accent);
	transition: background .2s, color .2s;
}
.ib-topic:hover .ib-topic__icon { background: var(--ib-accent); color: var(--ib-navy); }
.ib-topic__name { color: var(--ib-navy); font-size: 19px; font-weight: 800; }
.ib-topic__desc { color: var(--ib-muted); font-size: 15px; line-height: 1.6; }
.ib-topic__count { margin-top: auto; color: var(--ib-accent-dark); font-size: 13px; font-weight: 700; }

/* ---------- How we work ---------- */
.ib-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.ib-step {
	position: relative;
	padding: 28px 24px;
	border-radius: var(--ib-radius);
	background: var(--ib-soft);
}
.ib-step__num {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--ib-navy);
	color: var(--ib-accent);
	font-weight: 800;
}
.ib-step h3 { margin: 0 0 8px; font-size: 19px; }
.ib-step p { margin: 0; color: var(--ib-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Stats band ---------- */
.ib-stats { padding: 56px 0; background: linear-gradient(135deg, var(--ib-navy-deep), var(--ib-navy)); }
.ib-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.ib-stat { padding: 10px; }
.ib-stat + .ib-stat { border-left: 1px solid rgba(255, 255, 255, .1); }
.ib-stat__num { display: block; color: var(--ib-accent); font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.1; }
.ib-stat__label { display: block; margin-top: 6px; color: #c9d2ee; font-size: 15px; }

/* ---------- Listing pages ---------- */
.ib-page-head { padding: 48px 0 40px; background: var(--ib-soft); border-bottom: 1px solid var(--ib-border); }
.ib-page-head__title { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.ib-page-head__desc { max-width: 720px; margin-top: 12px; color: var(--ib-muted); font-size: 17px; }
.ib-page-head__desc p:last-child { margin-bottom: 0; }
.ib-page-head__search { max-width: 520px; margin-top: 20px; }
.ib-listing .ib-section { padding-top: 48px; }
.ib-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.ib-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ib-border);
	border-radius: 10px;
	color: var(--ib-navy);
	font-weight: 700;
	text-decoration: none;
}
.ib-pagination .page-numbers.current,
.ib-pagination a.page-numbers:hover { border-color: var(--ib-navy); background: var(--ib-navy); color: var(--ib-white); }

/* ---------- Breadcrumb ---------- */
.ib-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--ib-muted); }
.ib-breadcrumb li + li::before { content: "\203A"; margin-right: 6px; color: #9aa3b5; }
.ib-breadcrumb a { color: var(--ib-muted); text-decoration: none; }
.ib-breadcrumb a:hover { color: var(--ib-accent-dark); }
.ib-breadcrumb [aria-current] { color: var(--ib-text); }
.ib-single .ib-breadcrumb [aria-current] { display: none; }
.ib-single .ib-breadcrumb li:nth-last-child(2)::after { content: none; }

/* ---------- Article ---------- */
.ib-article__header {
	padding: 48px 0 36px;
	background: linear-gradient(180deg, var(--ib-soft), var(--ib-white));
}
.ib-article__title { margin: 0 0 20px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.18; }
.ib-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--ib-muted); font-size: 14px; }
.ib-meta__author { display: flex; align-items: center; gap: 10px; color: var(--ib-muted); text-decoration: none; }
.ib-meta__author img { border-radius: 50%; }
.ib-meta__author strong { color: var(--ib-navy); }
.ib-meta__item { position: relative; padding-left: 18px; }
.ib-meta__item::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #b5bccb; transform: translateY(-50%); }
.ib-meta__updated { color: var(--ib-accent-dark); font-weight: 600; }
.ib-article__image { margin: 0 0 32px; }
.ib-article__image img { width: 100%; height: auto; border-radius: var(--ib-radius); }

.ib-content { font-size: 18px; line-height: 1.8; }
.ib-content > * { margin-bottom: 1.4em; }
.ib-content h2 { margin: 2em 0 .6em; font-size: 30px; line-height: 1.25; scroll-margin-top: 90px; }
.ib-content h3 { margin: 1.6em 0 .5em; font-size: 23px; line-height: 1.3; scroll-margin-top: 90px; }
.ib-content h4 { margin: 1.4em 0 .4em; font-size: 19px; }
.ib-content ul, .ib-content ol { margin-left: 1.4em; }
.ib-content li { margin-bottom: .45em; }
.ib-content li::marker { color: var(--ib-accent-dark); font-weight: 700; }
.ib-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ib-content img { border-radius: var(--ib-radius-sm); }
.ib-content figcaption { color: var(--ib-muted); font-size: 14px; text-align: center; }
.ib-content blockquote {
	margin-left: 0;
	padding: 20px 24px;
	border-left: 4px solid var(--ib-accent);
	border-radius: 0 var(--ib-radius-sm) var(--ib-radius-sm) 0;
	background: var(--ib-soft);
	font-style: normal;
}
.ib-content blockquote p:last-child { margin-bottom: 0; }

/* Tables */
.ib-content .wp-block-table { overflow-x: auto; }
.ib-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ib-border); border-radius: var(--ib-radius-sm); overflow: hidden; font-size: 16px; line-height: 1.5; }
.ib-content th, .ib-content td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ib-border); text-align: left; vertical-align: top; }
.ib-content thead th, .ib-content table tr:first-child th { background: var(--ib-navy); color: var(--ib-white); font-weight: 700; }
.ib-content tbody tr:nth-child(even) { background: var(--ib-soft); }
.ib-content tr:last-child td { border-bottom: 0; }

/* Table of contents */
.ib-toc {
	margin: 0 0 2em;
	padding: 20px 24px;
	border: 1px solid var(--ib-border);
	border-radius: var(--ib-radius);
	background: var(--ib-soft);
}
.ib-toc summary { color: var(--ib-navy); font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ib-toc summary::-webkit-details-marker { display: none; }
.ib-toc summary::after { content: "\2212"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ib-white); color: var(--ib-navy); font-size: 18px; }
.ib-toc:not([open]) summary::after { content: "+"; }
.ib-toc ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: ib-toc; font-size: 16px; line-height: 1.5; }
.ib-toc li { margin: 0; padding: 6px 0; }
.ib-toc__l2 { counter-increment: ib-toc; }
.ib-toc__l2::before { content: counter(ib-toc) "."; display: inline-block; min-width: 26px; color: var(--ib-accent-dark); font-weight: 700; }
.ib-toc__l3 { padding-left: 26px !important; font-size: 15px; }
.ib-toc a { color: var(--ib-text); text-decoration: none; }
.ib-toc a:hover, .ib-toc a.is-active { color: var(--ib-accent-dark); }

/* Tags, author */
.ib-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.ib-tags a { padding: 6px 14px; border-radius: 999px; background: var(--ib-soft); color: var(--ib-text); font-size: 14px; text-decoration: none; }
.ib-tags a:hover { background: var(--ib-navy); color: var(--ib-white); }
.ib-author {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin: 40px 0 64px;
	padding: 28px;
	border: 1px solid var(--ib-border);
	border-radius: var(--ib-radius);
	background: var(--ib-white);
	box-shadow: var(--ib-shadow);
}
.ib-author img { flex: none; border-radius: 50%; }
.ib-author__label { color: var(--ib-accent-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ib-author__name { margin: 4px 0 8px; font-size: 21px; }
.ib-author__name a { color: var(--ib-navy); text-decoration: none; }
.ib-author p { margin: 0; color: var(--ib-muted); font-size: 15px; line-height: 1.7; }

/* Comments */
.ib-comments { padding: 56px 20px; }
.ib-comments .comments-area { padding: 0; background: transparent; }
.ib-comments input[type="text"], .ib-comments input[type="email"], .ib-comments input[type="url"], .ib-comments textarea {
	width: 100%;
	border: 1px solid var(--ib-border);
	border-radius: var(--ib-radius-sm);
	background: var(--ib-white);
}
.ib-comments input[type="submit"], .search-form .search-submit, button.search-submit {
	border-radius: 999px;
	background: var(--ib-navy);
	color: var(--ib-white);
	font-weight: 700;
}
.ib-comments input[type="submit"]:hover { background: var(--ib-accent); color: var(--ib-navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ib-navy-deep); }
.ib-footer { padding: 64px 0 40px; color: #aab4d4; }
.ib-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ib-footer a.ib-footer__logo { --ib-logo-teal: var(--ib-accent); margin-bottom: 14px; font-size: 26px; }
.ib-footer__logo .ib-logo__text { color: var(--ib-accent); }
.ib-footer__logo .ib-logo__text span { color: var(--ib-white); }
.ib-footer p { font-size: 15px; line-height: 1.7; }
.ib-footer h4 { margin: 0 0 16px; color: var(--ib-white); font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
.ib-footer ul { margin: 0; padding: 0; list-style: none; }
.ib-footer li { margin-bottom: 10px; }
.ib-footer a:not(.ib-btn) { color: #aab4d4; text-decoration: none; }
.ib-footer a:not(.ib-btn):hover { color: var(--ib-accent); }
.site-info { background: var(--ib-navy-deep); color: #7d88ab; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.site-info a { color: #aab4d4; }

/* Back to top */
.ib-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ib-accent);
	color: var(--ib-navy-deep);
	box-shadow: var(--ib-shadow-hover);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.ib-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ib-top:hover { background: var(--ib-navy); color: var(--ib-white); }

/* ---------- Regular pages (About, Contact, Privacy) ---------- */
body.page:not(.ib-layout) { background: var(--ib-soft); }
.separate-containers .inside-article { border-radius: var(--ib-radius); box-shadow: var(--ib-shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ib-grid, .ib-topics { grid-template-columns: repeat(2, 1fr); }
	.ib-steps { grid-template-columns: repeat(2, 1fr); }
	.ib-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.ib-hero { padding: 56px 0 64px; }
	.ib-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.ib-art { max-width: 460px; margin: 0 auto; }
	.ib-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.ib-stat + .ib-stat { border-left: 0; }
}
@media (max-width: 640px) {
	.ib-wrap { padding: 0 16px; }
	.ib-section { padding: 56px 0; }
	.ib-section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
	.ib-grid, .ib-topics, .ib-steps, .ib-footer__grid { grid-template-columns: 1fr; }
	.ib-hero__text { font-size: 16px; }
	.ib-content { font-size: 17px; }
	.ib-content h2 { font-size: 25px; }
	.ib-content h3 { font-size: 20px; }
	.ib-author { flex-direction: column; }
	.ib-art__badge--b { right: 0; }
	.ib-art__badge--a { left: 0; }
}
