/* ==========================================================================
   IBH CHILD — COMPONENTS.CSS
   Every component below is built from the Design Token Sheet derived from
   the live Hero & Footer CSS. Hero/Footer markup itself is never touched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BUTTONS
   Primary = pill, action gradient, white text (clone of hero form button).
   Inverse = white bg / brand-2 text (clone of footer subscribe button) —
   use this variant on any element that sits on a dark/blue background.
   -------------------------------------------------------------------------- */
.ibh-btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: var(--ibh-font);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: opacity var(--ibh-transition), transform var(--ibh-transition), box-shadow var(--ibh-transition);
}

.ibh-btn-primary{
	padding: 12px 26px;
	border-radius: var(--ibh-radius-pill);
	background: var(--ibh-action-gradient);
	color: #fff;
	box-shadow: var(--ibh-shadow-btn);
}
.ibh-btn-primary:hover{
	opacity: .92;
	transform: scale(1.03);
	box-shadow: var(--ibh-shadow-btn-hover);
	color: #fff;
}

.ibh-btn-inverse{
	padding: 12px 22px;
	border-radius: var(--ibh-radius-sm);
	background: #fff;
	color: var(--ibh-brand-2);
	box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.ibh-btn-inverse:hover{ background: #dbeafe; transform: translateY(-1px); color: var(--ibh-brand-2); }

.ibh-btn-outline{
	padding: 10px 20px;
	border-radius: var(--ibh-radius-pill);
	background: transparent;
	border: 1.5px solid var(--ibh-brand-2);
	color: var(--ibh-brand-2);
}
.ibh-btn-outline:hover{ background: var(--ibh-bg-panel); color: var(--ibh-brand-2); }

/* --------------------------------------------------------------------------
   2. CATEGORY BADGE — pill, light-blue surface, extends hero badge pattern.
   -------------------------------------------------------------------------- */
.ibh-badge{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ibh-bg-panel);
	color: var(--ibh-brand-2);
	border: 1px solid var(--ibh-border);
	border-radius: var(--ibh-radius-pill);
	padding: 4px 14px;
	font-size: var(--ibh-fs-label);
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.6;
	transition: background var(--ibh-transition), color var(--ibh-transition);
}
.ibh-badge:hover{ background: var(--ibh-brand-2); color: #fff; }
.ibh-badge-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--ibh-accent); flex-shrink: 0; }

/* On the dark gradient (e.g. inside a CTA banner) — glass variant clone */
.ibh-badge-glass{
	background: rgba(255,255,255,.10);
	border-color: rgba(255,255,255,.20);
	color: rgba(255,255,255,.92);
}

/* Tag variant — outline pill, same family as category badge but visually
   distinct (categories = solid light-blue fill, tags = outline) */
.ibh-badge-tag{
	background: transparent;
	border: 1px solid var(--ibh-border);
	color: var(--ibh-text-muted);
}
.ibh-badge-tag:hover{ background: var(--ibh-brand-2); border-color: var(--ibh-brand-2); color: #fff; }
.ibh-badge-tag::before{ content: '#'; color: var(--ibh-accent); font-weight: 700; }

/* --------------------------------------------------------------------------
   3. CARD — used for post cards, related posts, search result cards.
   White surface, 16px radius (hero stats box radius), soft blue border,
   shadow-sm → shadow-md + lift on hover (footer social-icon hover language).
   -------------------------------------------------------------------------- */
.ibh-card{
	background: var(--ibh-bg-card);
	border: 1px solid var(--ibh-border-soft);
	border-radius: var(--ibh-radius-lg);
	box-shadow: var(--ibh-shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
/* Glow-top accent — appears on hover, matches footer divider language */
.ibh-card::before{
	content: '';
	position: absolute;
	top: 0; left: 14px; right: 14px; height: 2px;
	border-radius: 0 0 2px 2px;
	background: linear-gradient(to right, transparent, var(--ibh-accent) 25%, var(--ibh-accent-light) 50%, var(--ibh-accent) 75%, transparent);
	opacity: 0;
	transition: opacity .22s ease;
	z-index: 1;
}
.ibh-card:hover{
	box-shadow: 0 12px 32px rgba(10,79,168,.18);
	transform: translateY(-4px);
	border-color: rgba(59,130,246,.25);
}
.ibh-card:hover::before{ opacity: 1; }

.ibh-card-thumb{
	position: relative;
	display: block;
	aspect-ratio: 16/10;
	min-height: 130px;
	overflow: hidden;
	margin: 6px 6px 0 6px;
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(10,79,168,.20);
	background: var(--ibh-bg-panel);
}
.ibh-card-thumb img{
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	margin: 0 !important;
	border-radius: 0 !important;
	transition: transform .45s ease;
}
.ibh-card:hover .ibh-card-thumb img{ transform: scale(1.07); }
/* Thumbnail placeholder for posts without featured image */
.ibh-card-thumb--placeholder{
	background: linear-gradient(135deg, #1e6fd9 0%, #083d8a 100%);
}

/* Category badge — inside card body, normal flow */
.ibh-card-body{
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	background: var(--ibh-bg-card);
}
.ibh-card-body .ibh-badge{
	align-self: flex-start;
	margin-bottom: 2px;
}
.ibh-card-title{
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.42;
	color: var(--ibh-text-dark);
	margin: 0;
}
.ibh-card-title a{
	color: inherit; text-decoration: none;
	transition: color var(--ibh-transition);
}
.ibh-card-title a:hover{ color: var(--ibh-brand-2); }
.ibh-card-excerpt{ font-size: 13px; color: var(--ibh-text-muted); line-height: 1.65; margin: 0; }
.ibh-card-meta{
	display: flex; align-items: center; gap: 8px;
	font-size: 11px;
	color: var(--ibh-text-placeholder);
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--ibh-border-soft);
}
.ibh-card-meta .ibh-dot-sep{ width: 3px; height: 3px; border-radius: 50%; background: var(--ibh-text-placeholder); }

/* Card grid containers — gap: 6px global rule */
.ibh-card-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ibh-gap);
}
.ibh-related-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ibh-gap);
}
.ibh-search-grid{ display: flex; flex-direction: column; gap: var(--ibh-gap); }

@media (max-width: 960px){
	.ibh-card-grid, .ibh-related-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
	.ibh-card-grid, .ibh-related-grid{ grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   GLOW-TOP UTILITY — recreates the Hero/Footer glow-divider line (the same
   blue gradient used in .ft-divline / .ft-hdivider) as a 1px top accent.
   Used wherever a section needs a clear top boundary that still feels like
   it belongs to the same design system as the Hero/Footer.
   -------------------------------------------------------------------------- */
.ibh-glow-top{
	position: relative;
}
.ibh-glow-top::before{
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--ibh-accent) 25%, var(--ibh-accent-light) 50%, var(--ibh-accent) 75%, transparent);
}

/* --------------------------------------------------------------------------
   4. SIDEBAR WIDGETS
   -------------------------------------------------------------------------- */
.ibh-widget{
	background: var(--ibh-bg-card);
	border: 1px solid var(--ibh-border-soft);
	border-radius: var(--ibh-radius-lg);
	box-shadow: var(--ibh-shadow-sm);
	padding: var(--ibh-space-4);
	position: relative;
}
.ibh-widget::before{
	content: '';
	position: absolute;
	top: 0; left: 14px; right: 14px;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--ibh-accent) 25%, var(--ibh-accent-light) 50%, var(--ibh-accent) 75%, transparent);
}
.ibh-widget-title{
	display: block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .10em;
	color: var(--ibh-brand-2);
	margin: 0 0 var(--ibh-space-3) 0;
	padding-bottom: var(--ibh-space-2);
	position: relative;
}
.ibh-widget-title::after{
	content: '';
	display: block;
	position: absolute;
	left: 0; bottom: 0;
	width: 38px; height: 3px;
	border-radius: var(--ibh-radius-hairline);
	background: linear-gradient(90deg, var(--ibh-accent), var(--ibh-accent-light));
}

/* Generic search form (searchform.php) — pill style */
.ibh-search-form{
	display: flex;
	align-items: center;
	gap: 0;
	background: #fff;
	border: 1.5px solid var(--ibh-border);
	border-radius: var(--ibh-radius-pill);
	padding: 4px 4px 4px 16px;
	box-shadow: var(--ibh-shadow-sm);
	overflow: hidden;
}
.ibh-search-form .search-field{
	flex: 1;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	font-size: 13.5px;
	font-family: var(--ibh-font);
	color: var(--ibh-text-dark);
	background: transparent !important;
	min-width: 0;
	padding: 0 !important;
}
.ibh-search-form .search-field::placeholder{ color: var(--ibh-text-placeholder); }
.ibh-search-form .search-submit,
.ibh-search-form button[type="submit"]{
	flex-shrink: 0;
	border: none !important;
	border-radius: var(--ibh-radius-pill) !important;
	padding: 9px 18px !important;
	background: var(--ibh-action-gradient) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	font-family: var(--ibh-font) !important;
	cursor: pointer !important;
	transition: opacity var(--ibh-transition), transform var(--ibh-transition) !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: var(--ibh-shadow-btn) !important;
}
.ibh-search-form .search-submit:hover{ opacity: .9; transform: scale(1.03); }

/* Native WP search widget (#searchform, .wp-block-search) — same pill style */
#searchform,
.widget_search form,
.wp-block-search form {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1.5px solid var(--ibh-border);
	border-radius: var(--ibh-radius-pill);
	padding: 4px 4px 4px 14px;
	box-shadow: var(--ibh-shadow-sm);
	overflow: hidden;
	gap: 0;
}
#searchform input[type="search"],
#searchform input[type="text"],
.widget_search input[type="search"],
.widget_search input[type="text"],
.wp-block-search input[type="search"]{
	flex: 1;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 13.5px !important;
	font-family: var(--ibh-font) !important;
	padding: 8px 4px !important;
	min-width: 0;
	color: var(--ibh-text-dark);
}
#searchform input[type="submit"],
.widget_search input[type="submit"],
.wp-block-search button,
.wp-block-search input[type="submit"]{
	flex-shrink: 0;
	border: none !important;
	border-radius: var(--ibh-radius-pill) !important;
	padding: 9px 16px !important;
	background: var(--ibh-action-gradient) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	font-family: var(--ibh-font) !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: var(--ibh-shadow-btn) !important;
}

/* Search widget */
.ibh-search-widget form{ display: flex; gap: 6px; }
.ibh-search-widget input[type="search"],
.ibh-search-widget input[type="text"]{
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--ibh-border);
	border-radius: var(--ibh-radius-sm);
	background: var(--ibh-bg-panel);
	font-size: 13.5px;
	color: var(--ibh-text-dark);
	font-family: var(--ibh-font);
}
.ibh-search-widget input::placeholder{ color: var(--ibh-text-placeholder); }
.ibh-search-widget button{
	padding: 10px 16px;
	border: none;
	border-radius: var(--ibh-radius-sm);
	background: var(--ibh-action-gradient);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--ibh-shadow-btn);
}

/* Category / link list widgets — reuses footer ">" arrow bullet language */
.ibh-widget ul{ list-style: none; margin: 0; padding: 0; }
.ibh-widget ul li{ margin: 0 0 var(--ibh-gap) 0; }
.ibh-widget ul li:last-child{ margin-bottom: 0; }
.ibh-widget ul li a{
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	color: var(--ibh-text-body);
	text-decoration: none;
	padding: 8px 4px;
	border-bottom: 1px solid var(--ibh-border-soft);
	transition: color var(--ibh-transition), padding-left var(--ibh-transition);
}
.ibh-widget ul li:last-child a{ border-bottom: none; }
.ibh-widget ul li a::before{ content: '›'; color: var(--ibh-accent); font-size: 16px; line-height: 1; }
.ibh-widget ul li a:hover{ color: var(--ibh-brand-2); padding-left: 8px; }
.ibh-widget ul li .ibh-count{
	margin-left: auto;
	background: var(--ibh-bg-panel);
	color: var(--ibh-brand-2);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: var(--ibh-radius-pill);
}

/* Popular posts widget (thumbnail + title) */
.ibh-popular-post{ display: flex; gap: 10px; align-items: flex-start; margin: 0 0 var(--ibh-gap) 0; }
.ibh-popular-post:last-child{ margin-bottom: 0; }
.ibh-popular-post img{
	width: 56px; height: 56px; border-radius: var(--ibh-radius-md);
	object-fit: cover; flex-shrink: 0; margin: 0 !important;
}
.ibh-popular-post-title{ font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ibh-text-dark); }
.ibh-popular-post-title a{ color: inherit; text-decoration: none; }
.ibh-popular-post-title a:hover{ color: var(--ibh-brand-2); }

/* Ad area widget — neutral framed slot, not pretending to be a card */
.ibh-ad-slot{
	background: var(--ibh-bg-panel);
	border: 1px dashed var(--ibh-border);
	border-radius: var(--ibh-radius-lg);
	display: flex; align-items: center; justify-content: center;
	min-height: 100px;
	color: var(--ibh-text-placeholder);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   5. SINGLE POST — GP native class hooks + IBH premium enhancements.
   All design tokens trace back to Hero or Footer CSS.
   -------------------------------------------------------------------------- */

/* Breadcrumb */
.ibh-breadcrumb{ font-size: 12.5px; color: var(--ibh-text-muted); margin-bottom: var(--ibh-space-2); }
.ibh-breadcrumb a{ color: var(--ibh-text-muted); text-decoration: none; }
.ibh-breadcrumb a:hover{ color: var(--ibh-brand-2); }

/* Category badge in post header */
/* (.ibh-post-cat-badge removed — category badge above single-post title
   was removed per explicit instruction; breadcrumb already shows this) */

/* ── Entry title — clean, no decorative left border ── */
.single-post .entry-title,
.ibh-post-title {
	font-size: clamp(22px, 4vw, 32px) !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.015em !important;
	color: var(--ibh-text-dark) !important;
	margin: var(--ibh-space-3) 0 var(--ibh-space-2) 0 !important;
	padding-left: 0 !important;
	border-left: none !important;
	border-image: none !important;
}

/* Post meta row — kept deliberately slim/compact so it doesn't create a
   large gap between the title and the content below it. No avatar here
   (the Author Box further down already shows the photo) — just plain text. */
.ibh-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--ibh-text-muted);
	margin-bottom: var(--ibh-space-3);
	padding: 6px 12px;
	background: var(--ibh-bg-panel);
	border-radius: var(--ibh-radius-sm);
}
.ibh-meta-author{ font-weight: 700; color: var(--ibh-brand-2); }
.ibh-meta-sep{ width: 3px; height: 3px; border-radius: 50%; background: var(--ibh-text-placeholder); display: inline-block; }

/* GP's featured image hook outputs .post-image or wp-post-image wrapper */
.post-image, .featured-image, .ibh-post-featured {
	border-radius: var(--ibh-radius-lg) !important;
	overflow: hidden !important;
	box-shadow: 0 8px 24px rgba(10,79,168,.15) !important;
	margin: var(--ibh-space-4) 0 !important;
}
.post-image img, .featured-image img, .ibh-post-featured img {
	width: 100% !important; display: block !important;
	margin: 0 !important; border-radius: 0 !important;
}

/* ── Entry content — full brand language ── */
.entry-content { font-size: var(--ibh-fs-body); line-height: 1.9; color: var(--ibh-text-body); }

/* H2 inside content — brand blue left-bar, uppercase eyebrow feel */
.entry-content h2 {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: var(--ibh-text-dark) !important;
	margin: var(--ibh-space-7) 0 var(--ibh-space-3) 0 !important;
	padding: 10px 16px !important;
	background: var(--ibh-bg-panel) !important;
	border-left: 4px solid var(--ibh-brand-2) !important;
	border-radius: 0 var(--ibh-radius-md) var(--ibh-radius-md) 0 !important;
}
/* H3 inside content — lighter accent */
.entry-content h3 {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: var(--ibh-brand-2) !important;
	margin: var(--ibh-space-6) 0 var(--ibh-space-2) 0 !important;
	padding-left: 12px !important;
	border-left: 3px solid var(--ibh-accent-light) !important;
}
.entry-content h4 {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--ibh-text-dark) !important;
	margin: var(--ibh-space-5) 0 var(--ibh-space-2) 0 !important;
}
.entry-content p { margin: 0 0 var(--ibh-space-4) 0; }
.entry-content ul, .entry-content ol { margin: 0 0 var(--ibh-space-4) 0; padding-left: 22px; }
.entry-content li { margin-bottom: var(--ibh-space-2); }

/* Links inside content — brand blue, clear underline */
.entry-content a {
	color: var(--ibh-brand-2) !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(10,79,168,.3) !important;
	text-underline-offset: 2px !important;
	transition: color var(--ibh-transition), text-decoration-color var(--ibh-transition) !important;
}
.entry-content a:hover {
	color: var(--ibh-action-1) !important;
	text-decoration-color: var(--ibh-action-1) !important;
}

/* Images inside content — same elevated-chip style as cards */
.entry-content img {
	border-radius: var(--ibh-radius-lg) !important;
	box-shadow: 0 6px 20px rgba(10,79,168,.14) !important;
	max-width: 100% !important;
	height: auto !important;
	display: block !important;
	margin: var(--ibh-space-5) auto !important;
}

/* Blockquote — brand left border, panel bg, italic */
.entry-content blockquote {
	background: var(--ibh-bg-panel) !important;
	border-left: 4px solid var(--ibh-brand-2) !important;
	border-radius: 0 var(--ibh-radius-md) var(--ibh-radius-md) 0 !important;
	padding: var(--ibh-space-4) var(--ibh-space-5) !important;
	margin: var(--ibh-space-5) 0 !important;
	font-style: italic !important;
	color: var(--ibh-text-dark) !important;
	position: relative !important;
}
.entry-content blockquote::before {
	content: '"';
	position: absolute;
	top: -8px; left: 16px;
	font-size: 48px;
	color: var(--ibh-accent);
	opacity: .3;
	font-style: normal;
	line-height: 1;
	font-family: Georgia, serif;
}

/* Tags row */
.ibh-tags-row {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin: var(--ibh-space-5) 0 var(--ibh-space-3);
}

/* 404 + empty state extras */
.ibh-404-search{ max-width: 480px; margin: var(--ibh-space-5) auto; }
.ibh-empty-cats{ display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: var(--ibh-space-4); }



/* Table of Contents */
.ibh-toc{
	background: var(--ibh-bg-panel);
	border: 1px solid var(--ibh-border);
	border-radius: var(--ibh-radius-lg);
	padding: var(--ibh-space-4);
	margin: var(--ibh-space-5) 0;
}
.ibh-toc summary{
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	color: var(--ibh-brand-2);
	display: flex; align-items: center; gap: 8px;
	list-style: none;
}
.ibh-toc summary::-webkit-details-marker{ display:none; }
.ibh-toc summary::before{ content: '📑'; font-size: 13px; }
.ibh-toc ol{ margin: var(--ibh-space-3) 0 0 0; padding-left: 18px; counter-reset: toc; }
.ibh-toc ol li{ margin-bottom: var(--ibh-gap); font-size: 13.5px; }
.ibh-toc a{ color: var(--ibh-text-body); text-decoration: none; }
.ibh-toc a:hover{ color: var(--ibh-brand-2); }

/* Content typography */
.entry-content{ font-size: var(--ibh-fs-body); line-height: 1.85; color: var(--ibh-text-body); }
.entry-content h2{ margin-top: var(--ibh-space-6); padding-left: 12px; border-left: 4px solid var(--ibh-accent); }
.entry-content h3{ margin-top: var(--ibh-space-5); }
.entry-content p{ margin: 0 0 var(--ibh-space-4) 0; }
.entry-content ul, .entry-content ol{ margin: 0 0 var(--ibh-space-4) 0; padding-left: 22px; }
.entry-content li{ margin-bottom: var(--ibh-space-2); }
.entry-content a{ font-weight: 600; text-decoration-color: var(--ibh-border); }

.entry-content blockquote{
	background: var(--ibh-bg-panel);
	border-left: 4px solid var(--ibh-brand-2);
	border-radius: var(--ibh-radius-md);
	padding: var(--ibh-space-4) var(--ibh-space-5);
	margin: var(--ibh-space-5) 0;
	font-style: italic;
	color: var(--ibh-text-dark);
}

/* Table — wrapped in .ibh-table-scroll by ibh_wrap_tables() filter in functions.php
   so wide tables scroll internally, never causing page-level horizontal overflow */
.ibh-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	margin: var(--ibh-space-5) 0;
	border-radius: var(--ibh-radius-md);
	box-shadow: var(--ibh-shadow-sm);
	border: 1px solid var(--ibh-border-soft);
}
.ibh-table-scroll table { margin: 0 !important; box-shadow: none !important; border: none !important; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	border-radius: var(--ibh-radius-md);
	overflow: hidden;
	box-shadow: var(--ibh-shadow-sm);
	margin: var(--ibh-space-5) 0;
}
.entry-content table th {
	background: linear-gradient(135deg, #1e6fd9 0%, #0a4fa8 60%, #083d8a 100%);
	color: #fff;
	font-weight: 700;
	text-align: left;
	padding: 12px 16px;
	font-size: 13px;
	letter-spacing: .02em;
	white-space: nowrap;
}
.entry-content table td {
	padding: 11px 16px;
	border-bottom: 1px solid var(--ibh-border-soft);
	background: #fff;
	vertical-align: top;
	line-height: 1.6;
}
.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:hover td { background: var(--ibh-bg-panel); transition: background .15s; }
.entry-content table tr:nth-child(even) td { background: #f8fbff; }


/* FAQ accordion */
.ibh-faq{ margin: var(--ibh-space-5) 0; display: flex; flex-direction: column; gap: var(--ibh-gap); }
.ibh-faq-item{
	border: 1px solid var(--ibh-border);
	border-radius: var(--ibh-radius-md);
	overflow: hidden;
	background: #fff;
}
.ibh-faq-item summary{
	cursor: pointer;
	padding: 14px 16px;
	font-weight: 700;
	font-size: 14px;
	color: var(--ibh-text-dark);
	display: flex; justify-content: space-between; align-items: center;
	list-style: none;
}
.ibh-faq-item summary::-webkit-details-marker{ display:none; }
.ibh-faq-item summary::after{ content: '+'; color: var(--ibh-accent); font-size: 18px; font-weight: 700; }
.ibh-faq-item[open] summary::after{ content: '−'; }
.ibh-faq-item-body{ padding: 0 16px 16px; font-size: 13.5px; color: var(--ibh-text-muted); line-height: 1.7; }

/* Social share row — solid, high-contrast by default (not just on hover),
   44px touch target per accessibility guidance, visible shadow + lift. */
.ibh-share{
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: var(--ibh-space-6) 0;
	padding-top: var(--ibh-space-5);
	border-top: 1px solid var(--ibh-border-soft);
}
.ibh-share-label{ font-size: 14px; font-weight: 700; color: var(--ibh-text-dark); margin-right: 4px; }
.ibh-share a{
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: var(--ibh-radius-md);
	background: var(--ibh-action-gradient);
	color: #fff;
	box-shadow: var(--ibh-shadow-btn);
	transition: transform var(--ibh-transition), box-shadow var(--ibh-transition), opacity var(--ibh-transition);
}
.ibh-share a svg{ width: 19px; height: 19px; fill: currentColor; }
.ibh-share a:hover{
	transform: translateY(-3px) scale(1.05);
	box-shadow: var(--ibh-shadow-btn-hover);
	opacity: .94;
	color: #fff;
}

/* --------------------------------------------------------------------------
   5b. PREVIOUS / NEXT POST NAVIGATION.
   Two-column card grid; thumb + direction label + title. Right card's
   internal order is mirrored (thumb on the right) so both cards read
   toward the center, matching the reference design's flow.
   -------------------------------------------------------------------------- */
.ibh-pnav-grid{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--ibh-gap);
	margin: var(--ibh-space-5) 0;
}
.ibh-pnav-card{
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--ibh-bg-panel);
	border: 1px solid var(--ibh-border-soft);
	border-radius: var(--ibh-radius-lg);
	text-decoration: none;
	color: var(--ibh-text-dark);
	box-shadow: var(--ibh-shadow-sm);
	transition: transform var(--ibh-transition), box-shadow var(--ibh-transition), border-color var(--ibh-transition);
}
.ibh-pnav-card:hover{
	transform: translateY(-3px);
	box-shadow: var(--ibh-shadow-md);
	border-color: rgba(59,130,246,.30);
	color: var(--ibh-text-dark);
}
.ibh-pnav-card--right{ flex-direction: row-reverse; }
.ibh-pnav-thumb{
	width: 48px; height: 48px;
	border-radius: var(--ibh-radius-sm);
	overflow: hidden;
	flex-shrink: 0;
	display: block;
}
.ibh-pnav-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.ibh-pnav-thumb--icon{
	background: var(--ibh-brand-gradient);
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 16px; font-weight: 700;
}
.ibh-pnav-body{ display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ibh-pnav-body--right{ text-align: right; align-items: flex-end; }
.ibh-pnav-dir{
	font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--ibh-brand-2);
}
.ibh-pnav-title{
	font-size: 13px; font-weight: 600; color: var(--ibh-text-dark);
	line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px){
	.ibh-pnav-grid{ grid-template-columns: 1fr; }
	.ibh-pnav-card--right{ flex-direction: row; }
	.ibh-pnav-body--right{ text-align: left; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   6. AUTHOR BOX
   -------------------------------------------------------------------------- */
.ibh-author-box{
	display: flex;
	gap: var(--ibh-space-5);
	background: var(--ibh-bg-panel);
	border: 1px solid var(--ibh-border);
	border-radius: var(--ibh-radius-lg);
	padding: var(--ibh-space-6) var(--ibh-space-5);
	margin: var(--ibh-space-7) 0;
	align-items: center;
	position: relative;
}
.ibh-author-box::before{
	content: '';
	position: absolute;
	top: 0; left: 14px; right: 14px;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--ibh-accent) 25%, var(--ibh-accent-light) 50%, var(--ibh-accent) 75%, transparent);
}
.ibh-author-eyebrow{
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .10em;
	color: var(--ibh-text-placeholder);
	margin: 0 0 4px 0;
}
/* Plain circular avatar — no ring, no border, no background box.
   Previously wrapped in a .ibh-author-photo-ring gradient div which,
   combined with a conflicting global img rule, made the avatar look
   like it had a square frame around it. Now it's just a clean circle. */
.ibh-author-photo{
	width: 80px; height: 80px;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	background: none !important;
	margin: 0 !important;
}
.ibh-author-name{ font-size: 15px; font-weight: 700; color: var(--ibh-text-dark); margin: 0 0 4px 0; display:flex; align-items:center; gap:6px; }
.ibh-author-name .verified{
	display:inline-flex; align-items:center; justify-content:center;
	width:16px; height:16px; border-radius:50%;
	background: linear-gradient(135deg, var(--ibh-action-1), var(--ibh-action-2));
	color:#fff; font-size:9px;
}
.ibh-author-bio{ font-size: 13.5px; color: var(--ibh-text-muted); line-height: 1.7; margin: 0 0 var(--ibh-space-3) 0; }
.ibh-author-socials{ display: flex; gap: 8px; }
.ibh-author-socials a{
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px;
	border-radius: var(--ibh-radius-md);
	background: #fff;
	border: 1px solid var(--ibh-border);
	color: var(--ibh-brand-2);
	transition: background var(--ibh-transition), color var(--ibh-transition), transform var(--ibh-transition);
}
.ibh-author-socials a:hover{ background: var(--ibh-brand-2); color: #fff; transform: translateY(-2px); }
.ibh-author-socials svg{ width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 560px){
	.ibh-author-box{ flex-direction: column; text-align: center; align-items: center; }
	.ibh-author-socials{ justify-content: center; }
}

/* --------------------------------------------------------------------------
   7. COMMENTS
   -------------------------------------------------------------------------- */
.comments-area{ margin-top: var(--ibh-space-7); padding-top: var(--ibh-space-6); }
.comments-title{ font-size: var(--ibh-fs-h2); font-weight: 800; color: var(--ibh-text-dark); margin-bottom: var(--ibh-space-4); }
.comment-list{ list-style: none; margin: 0; padding: 0; }
.comment-list .comment{
	background: #fff;
	border: 1px solid var(--ibh-border-soft);
	border-radius: var(--ibh-radius-md);
	padding: var(--ibh-space-4);
	margin-bottom: var(--ibh-gap);
}
.comment-list .children{ list-style:none; margin: var(--ibh-gap) 0 0 0; padding-left: var(--ibh-space-5); border-left: 2px solid var(--ibh-border); }
.comment-author .avatar{ width: 38px; height: 38px; border-radius: 50%; margin: 0 0 6px 0 !important; }
.comment-author .fn{ font-weight: 700; font-size: 13.5px; color: var(--ibh-text-dark); }
.comment-metadata{ font-size: 11.5px; color: var(--ibh-text-placeholder); }
.comment-content p{ font-size: 13.5px; color: var(--ibh-text-body); margin: 6px 0 0 0; }
.reply a{
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ibh-brand-2);
	background: var(--ibh-bg-panel);
	padding: 5px 14px;
	border-radius: var(--ibh-radius-pill);
	text-decoration: none;
}
.reply a:hover{ background: var(--ibh-brand-2); color: #fff; }

.comment-respond{
	background: var(--ibh-bg-panel);
	border: 1px solid var(--ibh-border);
	border-radius: var(--ibh-radius-lg);
	padding: var(--ibh-space-5);
	margin-top: var(--ibh-space-5);
}
.comment-form p{ margin: 0 0 var(--ibh-space-3) 0; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--ibh-border);
	border-radius: var(--ibh-radius-sm);
	background: #fff;
	font-size: 13.5px;
	font-family: var(--ibh-font);
	color: var(--ibh-text-dark);
	box-sizing: border-box;
	transition: border-color var(--ibh-transition);
}
.comment-form input:focus, .comment-form textarea:focus{ border-color: var(--ibh-brand-2); outline: none; }
.comment-form .form-submit input{
	width: auto;
	background: var(--ibh-action-gradient);
	color: #fff;
	font-weight: 700;
	border: none;
	cursor: pointer;
	box-shadow: var(--ibh-shadow-btn);
	border-radius: var(--ibh-radius-pill);
	padding: 12px 28px;
}
.comment-form .form-submit input:hover{ box-shadow: var(--ibh-shadow-btn-hover); transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   8. PAGINATION
   -------------------------------------------------------------------------- */
.ibh-pagination{ display: flex; align-items: center; justify-content: center; gap: var(--ibh-gap); flex-wrap: wrap; margin: var(--ibh-space-6) 0; }
.ibh-pagination ul{ display: flex; align-items: center; gap: var(--ibh-gap); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ibh-pagination li{ list-style: none; margin: 0; }
.ibh-pagination a, .ibh-pagination span{
	min-width: 38px; height: 38px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 12px;
	border-radius: var(--ibh-radius-md);
	background: #fff;
	border: 1px solid var(--ibh-border);
	color: var(--ibh-text-body);
	font-size: 13.5px; font-weight: 600;
	text-decoration: none;
	transition: background var(--ibh-transition), color var(--ibh-transition);
}
.ibh-pagination .current{ background: var(--ibh-brand-gradient); color: #fff; border-color: transparent; }
.ibh-pagination a:hover{ background: var(--ibh-bg-panel); color: var(--ibh-brand-2); }

/* --------------------------------------------------------------------------
   9. SEARCH RESULTS PAGE + EMPTY STATE
   -------------------------------------------------------------------------- */
.ibh-search-header{ text-align: center; padding: var(--ibh-space-6) 0; }
.ibh-search-header h1{ font-size: 24px; font-weight: 800; color: var(--ibh-text-dark); }
.ibh-search-header .query{ color: var(--ibh-brand-2); }
.ibh-search-form-wrap{ max-width: 480px; margin: var(--ibh-space-4) auto 0; }
.ibh-search-form-wrap form{ display: flex; background:#fff; border:1px solid var(--ibh-border); border-radius: var(--ibh-radius-pill); padding: 5px 5px 5px 18px; box-shadow: var(--ibh-shadow-sm); }
.ibh-search-form-wrap input[type="search"]{ flex:1; border:none; outline:none; font-size:13.5px; font-family: var(--ibh-font); }
.ibh-search-form-wrap button{ border:none; border-radius: var(--ibh-radius-pill); padding: 10px 22px; background: var(--ibh-action-gradient); color:#fff; font-weight:700; cursor:pointer; }

.ibh-empty-state{
	text-align: center;
	padding: var(--ibh-space-7) var(--ibh-space-4);
	background: var(--ibh-bg-panel);
	border-radius: var(--ibh-radius-lg);
	border: 1px solid var(--ibh-border);
}
.ibh-empty-state .icon{ font-size: 40px; margin-bottom: var(--ibh-space-3); }
.ibh-empty-state h2{ font-size: 18px; margin-bottom: 6px; }
.ibh-empty-state p{ font-size: 13.5px; color: var(--ibh-text-muted); margin-bottom: var(--ibh-space-4); }

/* --------------------------------------------------------------------------
   10. 404 PAGE
   -------------------------------------------------------------------------- */
.ibh-404{ text-align: center; padding: var(--ibh-space-7) var(--ibh-space-4); }
.ibh-404-illustration{
	width: 140px; height: 140px;
	margin: 0 auto var(--ibh-space-5);
	border-radius: 50%;
	background: var(--ibh-brand-gradient);
	display: flex; align-items: center; justify-content: center;
	font-size: 52px; color: #fff;
	box-shadow: var(--ibh-shadow-lg);
}
.ibh-404 h1{ font-size: 26px; font-weight: 800; color: var(--ibh-text-dark); margin-bottom: 8px; }
.ibh-404 p{ font-size: 14px; color: var(--ibh-text-muted); margin-bottom: var(--ibh-space-5); }
.ibh-404-categories{ display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: var(--ibh-space-5); }

/* --------------------------------------------------------------------------
   12. SIDEBAR LAYOUT + NATIVE WIDGET WRAPPING
   Wraps every native WP widget in the same card language, since plugin /
   Customizer widgets won't carry the .ibh-widget class automatically.
   -------------------------------------------------------------------------- */
/* GP real sidebar ids/classes confirmed from generatepress/sidebar.php
   and class-html-attributes.php: id="right-sidebar" + class="sidebar widget-area".
   The .inside-right-sidebar div is the inner flex-wrapper. */
#right-sidebar .widget,
.sidebar .widget{
	background: var(--ibh-bg-card);
	border: 1px solid var(--ibh-border-soft);
	border-radius: var(--ibh-radius-lg);
	box-shadow: var(--ibh-shadow-sm);
	padding: var(--ibh-space-4);
	margin: 0 0 var(--ibh-gap) 0;
	position: relative;
}
#right-sidebar .widget::before,
.sidebar .widget::before{
	content: '';
	position: absolute;
	top: 0; left: 14px; right: 14px;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--ibh-accent) 25%, var(--ibh-accent-light) 50%, var(--ibh-accent) 75%, transparent);
}
#right-sidebar .widget:last-child,
.sidebar .widget:last-child{ margin-bottom: 0; }
#right-sidebar .widget-title,
.sidebar .widget-title{
	font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em;
	color: var(--ibh-brand-2); margin: 0 0 var(--ibh-space-3) 0; padding-bottom: var(--ibh-space-2);
	border-bottom: 2px solid var(--ibh-border);
}
/* Responsive: stack sidebar below content on tablet/mobile */
@media (max-width: 880px){
	.ibh-layout{ flex-direction: column !important; }
	#right-sidebar,
	.sidebar{ width: 100% !important; }
}
/* --------------------------------------------------------------------------
   11. SECTION TITLES used to introduce widget groups / archive headers
   -------------------------------------------------------------------------- */
.ibh-section-title{
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 var(--ibh-space-4) 0;
}
.ibh-section-title .bar{ width: 4px; height: 20px; border-radius: var(--ibh-radius-hairline); background: var(--ibh-brand-gradient); }
.ibh-section-title span{ font-size: 18px; font-weight: 800; color: var(--ibh-text-dark); }
