/*
 * iPistis blog design system for Enfold
 * ------------------------------------------------------------------------------------------
 * Loaded after Enfold's dynamic and custom CSS (see includes/config-enfold/functions-ipistis.php).
 * Every rule is scoped to  #top.ipistis-ui  (the <body>) so it cannot leak into other themes or plugins,
 * and so it out-ranks the stylesheet Enfold generates from the theme options.
 *
 * 1  Tokens            6  Hero + chips          11 Article body
 * 2  Base              7  Cards + grid          12 Share, tags, author, post nav
 * 3  Buttons + forms   8  Featured article      13 Comments
 * 4  Header            9  Pagination            14 Sidebar, 404, empty state
 * 5  Layout helpers   10  Article header        15 CTA band + footer
 *
 * Brand tokens live in section 1. Change them there and the whole blog follows.
 */

/* 1 ─ Tokens ─────────────────────────────────────────────────────────────────────────── */
:root {
	--ip-ink: #0d1b3e;			/* headings, footer */
	--ip-text: #2b3652;			/* body copy on UI surfaces */
	--ip-muted: #66708a;
	--ip-brand: #2457f5;		/* links, primary buttons, focus */
	--ip-brand-dark: #1a3fc4;
	--ip-brand-tint: #eaf0ff;
	--ip-surface: #f5f7fb;
	--ip-line: #e2e7f0;
	--ip-white: #fff;
	--ip-accent: #ffb020;		/* used sparingly: active marker only */

	--ip-font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ip-font-read: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

	--ip-max: 1200px;
	--ip-read: 700px;
	--ip-head: 880px;
	--ip-wide: 1040px;
	--ip-radius: 12px;
	--ip-radius-sm: 8px;
	--ip-shadow: 0 1px 2px rgba(13, 27, 62, .06), 0 12px 32px -12px rgba(13, 27, 62, .18);
	--ip-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ─ Base ───────────────────────────────────────────────────────────────────────────── */
#top.ipistis-ui {
	font-family: var(--ip-font-ui);
	color: var(--ip-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

#top.ipistis-ui #wrap_all,
#top.ipistis-ui .container_wrap.main_color,
#top.ipistis-ui #main {
	background: var(--ip-white);
}

#top.ipistis-ui .container_wrap.main_color {
	border-color: transparent;
}

#top.ipistis-ui h1,
#top.ipistis-ui h2,
#top.ipistis-ui h3,
#top.ipistis-ui h4,
#top.ipistis-ui h5,
#top.ipistis-ui h6 {
	font-family: var(--ip-font-ui);
	color: var(--ip-ink);
	letter-spacing: -.015em;
}

#top.ipistis-ui a { color: var(--ip-brand); }
#top.ipistis-ui a:hover { color: var(--ip-brand-dark); }

#top.ipistis-ui :focus-visible {
	outline: 2px solid var(--ip-brand);
	outline-offset: 3px;
	border-radius: 4px;
}

#top.ipistis-ui ::selection { background: var(--ip-brand-tint); color: var(--ip-ink); }

/* 3 ─ Buttons + forms ────────────────────────────────────────────────────────────────── */
#top.ipistis-ui .ip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--ip-radius-sm);
	font: 700 15px/1 var(--ip-font-ui);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s var(--ip-ease), border-color .18s var(--ip-ease), color .18s var(--ip-ease), box-shadow .18s var(--ip-ease);
}

#top.ipistis-ui .ip-btn--primary { background: var(--ip-brand); color: #fff; }
#top.ipistis-ui .ip-btn--primary:hover { background: var(--ip-brand-dark); color: #fff; box-shadow: 0 8px 20px -8px rgba(36, 87, 245, .6); }
#top.ipistis-ui .ip-btn--ghost { background: transparent; color: var(--ip-ink); border-color: var(--ip-ink); }
#top.ipistis-ui .ip-btn--ghost:hover { background: var(--ip-ink); color: #fff; }

#top.ipistis-ui .ip-search { max-width: 560px; margin-top: 28px; }
#top.ipistis-ui .ip-search search,
#top.ipistis-ui .ip-search form { margin: 0; }
#top.ipistis-ui .ip-search #searchform > div { position: relative; }

#top.ipistis-ui .ip-search #searchform input#s {
	width: 100%;
	height: 58px;
	margin: 0;
	padding: 0 20px 0 56px;
	border: 1px solid var(--ip-line);
	border-radius: var(--ip-radius-sm);
	background: var(--ip-white);
	color: var(--ip-ink);
	font: 500 17px var(--ip-font-ui);
	box-shadow: 0 1px 2px rgba(13, 27, 62, .06);
	transition: border-color .15s, box-shadow .15s;
}

#top.ipistis-ui .ip-search #searchform input#s::placeholder { color: var(--ip-muted); }
#top.ipistis-ui .ip-search #searchform input#s:focus { outline: 0; border-color: var(--ip-brand); box-shadow: 0 0 0 4px rgba(36, 87, 245, .15); }

#top.ipistis-ui .ip-search #searchform .av_searchform_search {
	position: absolute;
	left: 20px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0;
	fill: var(--ip-muted);
	color: var(--ip-muted);
	pointer-events: none;
	z-index: 1;
}

#top.ipistis-ui .ip-search #searchform #searchsubmit {
	position: absolute;
	left: 0;
	top: 0;
	width: 56px;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

/* 4 ─ Header (Enfold markup, iPistis look) ───────────────────────────────────────────── */
#top.ipistis-ui #wrap_all #header,
#top.ipistis-ui #wrap_all #header .container_wrap,
#top.ipistis-ui #wrap_all #header_main {
	background: rgba(255, 255, 255, .96);
	border-color: var(--ip-line);
}

#top.ipistis-ui #wrap_all #header_main { box-shadow: 0 1px 0 var(--ip-line); }

@supports (backdrop-filter: blur(8px)) {
	#top.ipistis-ui #wrap_all #header_main { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); }
}

#top.ipistis-ui #wrap_all #header .main_menu .menu > li > a,
#top.ipistis-ui #wrap_all #header .av-main-nav > li > a {
	font-family: var(--ip-font-ui);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--ip-ink);
}

#top.ipistis-ui #wrap_all #header .av-main-nav > li > a:hover,
#top.ipistis-ui #wrap_all #header .av-main-nav > li.current-menu-item > a,
#top.ipistis-ui #wrap_all #header .av-main-nav > li.current-menu-ancestor > a,
#top.ipistis-ui #wrap_all #header .av-main-nav > li.current_page_item > a { color: var(--ip-brand); }

#top.ipistis-ui #wrap_all #header .av-main-nav .avia-menu-fx .avia-arrow { background: var(--ip-white); border-color: var(--ip-line); }
#top.ipistis-ui #wrap_all #header .av-main-nav .avia-menu-fx .avia-arrow-wrap { display: none; }
#top.ipistis-ui #wrap_all #header .av-main-nav > li > a .avia-menu-fx { height: 3px; bottom: 0; }
#top.ipistis-ui #wrap_all #header .av-main-nav > li > a .avia-menu-fx .avia-arrow-wrap { display: none; }
#top.ipistis-ui #wrap_all #header .av-main-nav > li > a .avia-menu-fx::after { content: ""; display: block; height: 3px; background: var(--ip-brand); }

#top.ipistis-ui #wrap_all #header .sub-menu {
	background: var(--ip-white);
	border: 1px solid var(--ip-line);
	border-radius: var(--ip-radius);
	box-shadow: var(--ip-shadow);
	padding: 8px;
}

#top.ipistis-ui #wrap_all #header .sub-menu li a {
	border: 0;
	border-radius: 6px;
	color: var(--ip-text);
	font-weight: 500;
	font-size: 14px;
}

#top.ipistis-ui #wrap_all #header .sub-menu li a:hover { background: var(--ip-surface); color: var(--ip-brand); }
#top.ipistis-ui #wrap_all #header .logo img { max-height: 100%; width: auto; }

/* 5 ─ Layout helpers ─────────────────────────────────────────────────────────────────── */
#top.ipistis-ui .ip-wrap { width: 100%; max-width: var(--ip-max); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
#top.ipistis-ui .container.ip-container { width: 100%; max-width: var(--ip-max); margin-left: auto; margin-right: auto; padding: 0 24px; box-sizing: border-box; }
#top.ipistis-ui .ip-container .content { padding-top: 56px; padding-bottom: 72px; }

#top.ipistis-ui .ip-section-title {
	margin: 0 0 28px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
}

/* 6 ─ Hero + chips ───────────────────────────────────────────────────────────────────── */
#top.ipistis-ui .ip-hero { position: relative; border-bottom: 1px solid var(--ip-line); background: var(--ip-white); overflow: hidden; }

#top.ipistis-ui .ip-hero--home { padding: 88px 0 0; }
#top.ipistis-ui .ip-hero--page { padding: 40px 0 0; background: var(--ip-surface); }

/* blueprint grid, fading out to the lower left; the one decorative element on the blog home */
#top.ipistis-ui .ip-hero--home::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, var(--ip-line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--ip-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 120% at 100% 0, #000 0, transparent 70%);
	mask-image: radial-gradient(ellipse 70% 120% at 100% 0, #000 0, transparent 70%);
	opacity: .8;
	pointer-events: none;
}

#top.ipistis-ui .ip-hero__inner { position: relative; }
#top.ipistis-ui .ip-hero__grid { display: flex; align-items: center; gap: 28px; }
#top.ipistis-ui .ip-hero__copy { min-width: 0; }

#top.ipistis-ui .ip-hero__title {
	margin: 0;
	max-width: 17em;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.028em;
	font-size: clamp(2.25rem, 5.2vw, 3.9rem);
}

#top.ipistis-ui .ip-hero--page .ip-hero__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.022em; }

#top.ipistis-ui .ip-hero__text { max-width: 40em; margin-top: 20px; color: var(--ip-muted); font-size: 1.15rem; line-height: 1.65; }
#top.ipistis-ui .ip-hero__text p { margin: 0 0 .5em; }
#top.ipistis-ui .ip-hero--page .ip-hero__text { font-size: 1.05rem; margin-top: 12px; }
#top.ipistis-ui .ip-hero__count { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--ip-muted); }
#top.ipistis-ui .ip-hero__avatar img { display: block; width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--ip-white); box-shadow: var(--ip-shadow); }

#top.ipistis-ui .ip-hero--page .ip-hero__inner { padding-bottom: 36px; }
#top.ipistis-ui .ip-hero--search .ip-search { margin-top: 24px; }

/* breadcrumbs */
#top.ipistis-ui .ip-crumbs { margin: 0 0 20px; font-size: 13.5px; font-weight: 500; }
#top.ipistis-ui .ip-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
#top.ipistis-ui .ip-crumbs li { display: inline-flex; align-items: center; margin: 0; padding: 0; color: var(--ip-muted); max-width: 100%; }
#top.ipistis-ui .ip-crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-top: 1.5px solid var(--ip-muted); border-right: 1.5px solid var(--ip-muted); transform: rotate(45deg); opacity: .6; }
#top.ipistis-ui .ip-crumbs a { color: var(--ip-muted); text-decoration: none; }
#top.ipistis-ui .ip-crumbs a:hover { color: var(--ip-brand); text-decoration: underline; }
#top.ipistis-ui .ip-crumbs li:last-child span { display: inline-block; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ip-ink); }

/* category chips */
#top.ipistis-ui .ip-chips { margin-top: 44px; padding: 18px 0; border-top: 1px solid var(--ip-line); }
#top.ipistis-ui .ip-hero--page .ip-chips { margin-top: 28px; }
#top.ipistis-ui .ip-chips ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#top.ipistis-ui .ip-chips ul::-webkit-scrollbar { display: none; }
#top.ipistis-ui .ip-chips li { flex: 0 0 auto; margin: 0; padding: 0; }

#top.ipistis-ui .ip-chip {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--ip-line);
	border-radius: var(--ip-radius-sm);
	background: var(--ip-white);
	color: var(--ip-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s, color .15s, background-color .15s;
}

#top.ipistis-ui .ip-chip:hover { border-color: var(--ip-brand); color: var(--ip-brand); }
#top.ipistis-ui .ip-chip.is-active { background: var(--ip-ink); border-color: var(--ip-ink); color: #fff; box-shadow: inset 0 -3px 0 var(--ip-accent); }

/* 7 ─ Cards + grid ───────────────────────────────────────────────────────────────────── */
#top.ipistis-ui .ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px 28px; margin: 0; }

#top.ipistis-ui .ip-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ip-line);
	border-radius: var(--ip-radius);
	background: var(--ip-white);
	overflow: hidden;
	transition: border-color .2s var(--ip-ease), box-shadow .2s var(--ip-ease);
}

#top.ipistis-ui .ip-card:hover { border-color: #c9d3e6; box-shadow: var(--ip-shadow); }

#top.ipistis-ui .ip-card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ip-surface); border: 0; }
#top.ipistis-ui .ip-card__media img.ip-card__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .6s var(--ip-ease); }
#top.ipistis-ui .ip-card:hover .ip-card__img { transform: scale(1.04); }

#top.ipistis-ui .ip-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(135deg, var(--ip-ink), var(--ip-brand-dark));
}

#top.ipistis-ui .ip-card__placeholder span { font: 800 72px/1 var(--ip-font-ui); color: rgba(255, 255, 255, .85); }

#top.ipistis-ui .ip-card__body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 22px 24px 20px; }

#top.ipistis-ui .ip-badge {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--ip-brand-tint);
	color: var(--ip-brand-dark);
	font: 700 12.5px/1.4 var(--ip-font-ui);
	letter-spacing: .01em;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

#top.ipistis-ui a.ip-badge:hover { background: var(--ip-brand); color: #fff; }

#top.ipistis-ui .ip-card__title { margin: 0 0 10px; font-size: 1.28rem; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; }
#top.ipistis-ui .ip-card__title a { color: var(--ip-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ip-ease), color .15s; }
#top.ipistis-ui .ip-card__title a:hover { color: var(--ip-brand); background-size: 100% 2px; }

#top.ipistis-ui .ip-card__title a,
#top.ipistis-ui .ip-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

#top.ipistis-ui .ip-card__excerpt { margin: 0 0 20px; color: var(--ip-muted); font-size: 15.5px; line-height: 1.6; }

#top.ipistis-ui .ip-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ip-line); }
#top.ipistis-ui .ip-card__more { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
#top.ipistis-ui .ip-card__more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* byline */
#top.ipistis-ui .ip-byline { display: flex; align-items: center; gap: 12px; min-width: 0; }
#top.ipistis-ui .ip-byline__avatar img { display: block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--ip-surface); }
#top.ipistis-ui .ip-byline__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
#top.ipistis-ui .ip-byline__name { color: var(--ip-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
#top.ipistis-ui .ip-byline__name:hover { color: var(--ip-brand); }
#top.ipistis-ui .ip-byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; color: var(--ip-muted); font-size: 13px; }
#top.ipistis-ui .ip-byline__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ip-muted); opacity: .7; }

/* compact variant, if used by plugins/child themes */
#top.ipistis-ui .ip-card--compact .ip-card__body { padding: 16px 18px; }

/* 8 ─ Featured article: the one dark, high-contrast moment on the listing ────────────── */
#top.ipistis-ui .ip-featured { margin: 0 0 64px; }

#top.ipistis-ui .ip-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	border: 0;
	border-radius: 16px;
	background: var(--ip-ink);
	color: #fff;
	box-shadow: none;
}

#top.ipistis-ui .ip-card--featured:hover { box-shadow: 0 24px 48px -24px rgba(13, 27, 62, .55); }
#top.ipistis-ui .ip-card--featured .ip-card__media { aspect-ratio: auto; min-height: 380px; height: 100%; }
#top.ipistis-ui .ip-card--featured .ip-card__body { justify-content: center; padding: 48px 48px 40px; }

#top.ipistis-ui .ip-card--featured .ip-badge { background: var(--ip-accent); color: var(--ip-ink); }
#top.ipistis-ui a.ip-card--featured .ip-badge:hover,
#top.ipistis-ui .ip-card--featured a.ip-badge:hover { background: #fff; color: var(--ip-ink); }

#top.ipistis-ui .ip-card--featured .ip-card__title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.14; letter-spacing: -.022em; margin-bottom: 16px; }
#top.ipistis-ui .ip-card--featured .ip-card__title a { color: #fff; -webkit-line-clamp: 4; }
#top.ipistis-ui .ip-card--featured .ip-card__title a:hover { color: #fff; }
#top.ipistis-ui .ip-card--featured .ip-card__excerpt { color: #c4cde3; font-size: 1.05rem; -webkit-line-clamp: 4; }
#top.ipistis-ui .ip-card--featured .ip-card__foot { border-top-color: rgba(255, 255, 255, .16); padding-top: 22px; }
#top.ipistis-ui .ip-card--featured .ip-byline__name { color: #fff; }
#top.ipistis-ui .ip-card--featured .ip-byline__name:hover { color: var(--ip-accent); }
#top.ipistis-ui .ip-card--featured .ip-byline__meta { color: #a9b5d1; }
#top.ipistis-ui .ip-card--featured .ip-byline__sep { background: #a9b5d1; }
#top.ipistis-ui .ip-card--featured .ip-card__more { color: var(--ip-ink); background: #fff; padding: 12px 18px; border-radius: var(--ip-radius-sm); }
#top.ipistis-ui .ip-card--featured .ip-card__more:hover { background: var(--ip-accent); text-decoration: none; }
#top.ipistis-ui .ip-card--featured.ip-card--no-image { grid-template-columns: 1fr; }
#top.ipistis-ui .ip-card--featured.ip-card--no-image .ip-card__media { display: none; }

/* 9 ─ Pagination (Enfold's avia_pagination markup) ───────────────────────────────────── */
#top.ipistis-ui .ip-pagination { margin-top: 56px; }
#top.ipistis-ui .ip-pagination .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; float: none; margin: 0; padding: 0; border: 0; background: none; }
#top.ipistis-ui .ip-pagination .pagination > span,
#top.ipistis-ui .ip-pagination .pagination > a { float: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--ip-line); border-radius: var(--ip-radius-sm); background: var(--ip-white); color: var(--ip-ink); font: 700 15px var(--ip-font-ui); text-decoration: none; transition: border-color .15s, color .15s, background-color .15s; }
#top.ipistis-ui .ip-pagination .pagination a:hover { border-color: var(--ip-brand); color: var(--ip-brand); background: var(--ip-white); }
#top.ipistis-ui .ip-pagination .pagination .current { background: var(--ip-ink); border-color: var(--ip-ink); color: #fff; }
#top.ipistis-ui .ip-pagination .pagination .pagination-meta { border: 0; background: none; min-width: 0; margin-right: 8px; color: var(--ip-muted); font-weight: 600; font-size: 14px; }

/* 10 ─ Article header ────────────────────────────────────────────────────────────────── */
#top.ipistis-ui .template-single-blog .content { padding-top: 40px; }
#top.ipistis-ui .ip-article { margin: 0; padding: 0; border: 0; }
#top.ipistis-ui .ip-article__head { max-width: var(--ip-head); margin: 0 auto 36px; padding: 0; }
#top.ipistis-ui .ip-article__head .ip-crumbs { margin-bottom: 28px; }
#top.ipistis-ui .ip-article__cat { margin: 0 0 6px; }
#top.ipistis-ui .ip-article__cat .ip-badge { margin-bottom: 0; }

#top.ipistis-ui .ip-article__title {
	margin: 14px 0 28px;
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.026em;
}

#top.ipistis-ui .ip-article__head .ip-byline__avatar img { width: 48px; height: 48px; }
#top.ipistis-ui .ip-article__head .ip-byline__name { font-size: 15.5px; }
#top.ipistis-ui .ip-article__head .ip-byline__meta { font-size: 14px; }
#top.ipistis-ui .ip-article__comments { margin: 14px 0 0; font-size: 14px; font-weight: 600; }

#top.ipistis-ui .ip-article__media { max-width: var(--ip-wide); margin: 0 auto 48px; padding: 0; }
#top.ipistis-ui .ip-article__media img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 560px; object-fit: cover; margin: 0; border-radius: var(--ip-radius); background: var(--ip-surface); }
#top.ipistis-ui .ip-article__media figcaption { margin-top: 10px; color: var(--ip-muted); font-size: 14px; line-height: 1.5; }
#top.ipistis-ui .ip-article__media--embed img { aspect-ratio: auto; max-height: none; }
#top.ipistis-ui .ip-article__media--embed iframe { max-width: 100%; border-radius: var(--ip-radius); }

/* 11 ─ Article body: comfortable measure, serif text, clear hierarchy ────────────────── */
#top.ipistis-ui .ip-article__body {
	max-width: var(--ip-read);
	margin: 0 auto;
	padding: 0;
	color: #1f2a44;
	font-family: var(--ip-font-read);
	font-size: 1.1875rem;
	line-height: 1.72;
	overflow-wrap: break-word;
}

#top.ipistis-ui .ip-article--builder .ip-article__body { max-width: none; }

#top.ipistis-ui .ip-article__body > *:first-child { margin-top: 0; }
#top.ipistis-ui .ip-article__body p { margin: 0 0 1.35em; }
#top.ipistis-ui .ip-article__body a { color: var(--ip-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#top.ipistis-ui .ip-article__body a:hover { color: var(--ip-brand-dark); text-decoration-thickness: 2px; }

#top.ipistis-ui .ip-article__body h2,
#top.ipistis-ui .ip-article__body h3,
#top.ipistis-ui .ip-article__body h4,
#top.ipistis-ui .ip-article__body h5,
#top.ipistis-ui .ip-article__body h6 { font-family: var(--ip-font-ui); color: var(--ip-ink); font-weight: 800; line-height: 1.22; margin: 2.1em 0 .6em; scroll-margin-top: 110px; }
#top.ipistis-ui .ip-article__body h2 { font-size: 1.85rem; letter-spacing: -.022em; }
#top.ipistis-ui .ip-article__body h3 { font-size: 1.4rem; }
#top.ipistis-ui .ip-article__body h4 { font-size: 1.15rem; }
#top.ipistis-ui .ip-article__body h5,
#top.ipistis-ui .ip-article__body h6 { font-size: 1rem; }

#top.ipistis-ui .ip-article__body strong { color: var(--ip-ink); font-weight: 600; }

#top.ipistis-ui .ip-article__body ul,
#top.ipistis-ui .ip-article__body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
#top.ipistis-ui .ip-article__body ul { list-style: disc; }
#top.ipistis-ui .ip-article__body ol { list-style: decimal; }
#top.ipistis-ui .ip-article__body li { margin: 0 0 .55em; padding-left: .25em; }
#top.ipistis-ui .ip-article__body li::marker { color: var(--ip-brand); font-weight: 700; }
#top.ipistis-ui .ip-article__body li > ul,
#top.ipistis-ui .ip-article__body li > ol { margin: .55em 0 0; }

#top.ipistis-ui .ip-article__body blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border: 0;
	border-left: 4px solid var(--ip-brand);
	background: none;
	color: var(--ip-ink);
	font-size: 1.3rem;
	font-style: italic;
	line-height: 1.5;
}

#top.ipistis-ui .ip-article__body blockquote p:last-child { margin-bottom: 0; }
#top.ipistis-ui .ip-article__body blockquote cite { display: block; margin-top: .8em; color: var(--ip-muted); font: 600 14px var(--ip-font-ui); font-style: normal; }

#top.ipistis-ui .ip-article__body img { max-width: 100%; height: auto; border-radius: var(--ip-radius-sm); }
#top.ipistis-ui .ip-article__body figure,
#top.ipistis-ui .ip-article__body .wp-caption { max-width: 100%; margin: 2em 0; }
#top.ipistis-ui .ip-article__body figcaption,
#top.ipistis-ui .ip-article__body .wp-caption-text { margin-top: 10px; color: var(--ip-muted); font: 500 14px/1.5 var(--ip-font-ui); text-align: left; }
#top.ipistis-ui .ip-article__body .alignleft { float: left; margin: .4em 1.6em 1em 0; }
#top.ipistis-ui .ip-article__body .alignright { float: right; margin: .4em 0 1em 1.6em; }
#top.ipistis-ui .ip-article__body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
#top.ipistis-ui .ip-article__body iframe,
#top.ipistis-ui .ip-article__body video { max-width: 100%; }
#top.ipistis-ui .ip-article__body hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--ip-line); background: none; height: 0; }

#top.ipistis-ui .ip-article__body table { display: table; width: 100%; max-width: 100%; margin: 2em 0; overflow-x: auto; border-collapse: collapse; border: 0; font: 500 15.5px/1.5 var(--ip-font-ui); }
#top.ipistis-ui .ip-article__body th,
#top.ipistis-ui .ip-article__body td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ip-line); text-align: left; vertical-align: top; }
#top.ipistis-ui .ip-article__body thead th,
#top.ipistis-ui .ip-article__body tr:first-child th { background: var(--ip-surface); color: var(--ip-ink); font-weight: 700; border-bottom: 2px solid var(--ip-ink); white-space: nowrap; }
#top.ipistis-ui .ip-article__body tbody tr:hover td { background: #fafbfe; }

#top.ipistis-ui .ip-article__body code { padding: .12em .4em; border: 0; border-radius: 5px; background: var(--ip-surface); color: var(--ip-ink); font-size: .86em; }
#top.ipistis-ui .ip-article__body pre { margin: 2em 0; padding: 20px 22px; border: 0; border-radius: var(--ip-radius-sm); background: var(--ip-ink); color: #e8edfa; font-size: 14.5px; line-height: 1.6; overflow-x: auto; }
#top.ipistis-ui .ip-article__body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
#top.ipistis-ui .ip-article .pagination_split_post { max-width: var(--ip-read); margin: 28px auto 0; font: 600 15px var(--ip-font-ui); }

/* 12 ─ Share, tags, author box, post navigation ──────────────────────────────────────── */
#top.ipistis-ui .ip-article__foot { max-width: var(--ip-read); margin: 48px auto 0; padding: 28px 0 0; border-top: 1px solid var(--ip-line); }

#top.ipistis-ui .ip-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; padding: 0; border: 0; }
#top.ipistis-ui .ip-tags__label,
#top.ipistis-ui .ip-share__label { margin-right: 6px; color: var(--ip-muted); font: 700 14px var(--ip-font-ui); }
#top.ipistis-ui .ip-tags a { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--ip-surface); color: var(--ip-text); font: 600 13.5px var(--ip-font-ui); text-decoration: none; transition: background-color .15s, color .15s; }
#top.ipistis-ui .ip-tags a:hover { background: var(--ip-brand); color: #fff; }

#top.ipistis-ui .ip-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#top.ipistis-ui .ip-share .av-share-box { margin: 0; padding: 0; border: 0; background: none; float: none; width: auto; }
#top.ipistis-ui .ip-share .av-share-box h5,
#top.ipistis-ui .ip-share .av-share-box .av-share-box-title { display: none; }
#top.ipistis-ui .ip-share .av-share-box ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; border: 0; }
#top.ipistis-ui .ip-share .av-share-box li { margin: 0; padding: 0; float: none; border: 0; }
#top.ipistis-ui .ip-share .av-share-link a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ip-line); border-radius: var(--ip-radius-sm); background: var(--ip-white); color: var(--ip-ink); transition: border-color .15s, color .15s, background-color .15s; }
#top.ipistis-ui .ip-share .av-share-link a:hover { border-color: var(--ip-brand); background: var(--ip-brand); color: #fff; }

#top.ipistis-ui .ip-copy { height: 40px; padding: 0 16px; border: 1px solid var(--ip-line); border-radius: var(--ip-radius-sm); background: var(--ip-white); color: var(--ip-ink); font: 700 14px var(--ip-font-ui); cursor: pointer; transition: border-color .15s, color .15s; }
#top.ipistis-ui .ip-copy:hover { border-color: var(--ip-brand); color: var(--ip-brand); }
#top.ipistis-ui .ip-copy.is-done { border-color: #1a8f5a; color: #1a8f5a; }

#top.ipistis-ui .ip-author { display: flex; gap: 24px; max-width: var(--ip-head); margin: 64px auto 0; padding: 28px 32px; border-radius: var(--ip-radius); background: var(--ip-surface); }
#top.ipistis-ui .ip-author__avatar img { display: block; width: 84px; height: 84px; border-radius: 50%; }
#top.ipistis-ui .ip-author__name { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
#top.ipistis-ui .ip-author p { margin: 0 0 10px; color: var(--ip-text); font-size: 15.5px; line-height: 1.6; }
#top.ipistis-ui .ip-author a { font-size: 14.5px; font-weight: 700; }

#top.ipistis-ui .ip-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: var(--ip-head); margin: 32px auto 0; }
#top.ipistis-ui .ip-postnav__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
#top.ipistis-ui .ip-postnav__item:hover { border-color: var(--ip-brand); box-shadow: var(--ip-shadow); }
#top.ipistis-ui .ip-postnav__item--next { grid-column: 2; text-align: right; }
#top.ipistis-ui .ip-postnav__item--prev:only-child { grid-column: 1; }
#top.ipistis-ui .ip-postnav__dir { color: var(--ip-muted); font: 700 13px var(--ip-font-ui); }
#top.ipistis-ui .ip-postnav__title { color: var(--ip-ink); font: 700 1.05rem/1.35 var(--ip-font-ui); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#top.ipistis-ui .ip-postnav__item:hover .ip-postnav__title { color: var(--ip-brand); }

#top.ipistis-ui .ip-related { margin: 88px 0 0; padding-top: 56px; border-top: 1px solid var(--ip-line); }

/* 13 ─ Comments (Enfold markup restyled) ─────────────────────────────────────────────── */
#top.ipistis-ui .comment-entry { max-width: var(--ip-head); margin: 72px auto 0; padding: 0; border: 0; }
#top.ipistis-ui .comment-entry .comment_meta_container,
#top.ipistis-ui .comment-entry .side-container-comment { float: none; width: auto; position: static; margin: 0 0 24px; padding: 0; border: 0; background: none; text-align: left; }
#top.ipistis-ui .comment-entry .side-container-comment-inner { display: flex; align-items: baseline; gap: 8px; padding: 0; }
#top.ipistis-ui .comment-entry .comment-count { color: var(--ip-ink); font: 800 1.6rem var(--ip-font-ui); }
#top.ipistis-ui .comment-entry .comment-text { color: var(--ip-ink); font: 800 1.6rem var(--ip-font-ui); }
#top.ipistis-ui .comment-entry .comment_container { margin: 0; padding: 0; }
#top.ipistis-ui .commentlist { margin: 0 0 40px; padding: 0; list-style: none; }
#top.ipistis-ui .commentlist li { margin: 0; padding: 0; list-style: none; }
#top.ipistis-ui .commentlist > li { padding: 24px 0; border-bottom: 1px solid var(--ip-line); }
#top.ipistis-ui .commentlist article { display: flex; gap: 16px; margin: 0; padding: 0; }
#top.ipistis-ui .commentlist .gravatar { flex: 0 0 auto; position: static; width: auto; margin: 0; }
#top.ipistis-ui .commentlist .gravatar img { display: block; width: 48px; height: 48px; border-radius: 50%; }
#top.ipistis-ui .commentlist .comment_content { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; }
#top.ipistis-ui .commentlist .comment-header { margin: 0 0 6px; }
#top.ipistis-ui .commentlist .author_name,
#top.ipistis-ui .commentlist .comment_author_name { color: var(--ip-ink); font: 700 15.5px var(--ip-font-ui); font-style: normal; }
#top.ipistis-ui .commentlist .says { display: none; }
#top.ipistis-ui .commentlist .comment-meta,
#top.ipistis-ui .commentlist .commentmetadata { margin: 0; font-size: 13px; }
#top.ipistis-ui .commentlist .comment-meta a { color: var(--ip-muted); text-decoration: none; }
#top.ipistis-ui .commentlist .comment_text { margin: 0; padding: 0; font-size: 16px; line-height: 1.65; }
#top.ipistis-ui .commentlist .children { margin: 20px 0 0 8px; padding-left: 20px; border-left: 2px solid var(--ip-line); list-style: none; }
#top.ipistis-ui .commentlist .comment-reply-link { display: inline-block; margin-top: 8px; font: 700 13.5px var(--ip-font-ui); }

#top.ipistis-ui #respond { margin: 0; padding: 32px; border: 0; border-radius: var(--ip-radius); background: var(--ip-surface); }
#top.ipistis-ui #respond .comment-reply-title,
#top.ipistis-ui #respond h3 { margin: 0 0 18px; font-size: 1.35rem; font-weight: 800; }
#top.ipistis-ui #commentform label { display: block; margin: 0 0 6px; color: var(--ip-ink); font: 700 14px var(--ip-font-ui); }
#top.ipistis-ui #commentform input[type="text"],
#top.ipistis-ui #commentform input[type="email"],
#top.ipistis-ui #commentform input[type="url"],
#top.ipistis-ui #commentform textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--ip-line); border-radius: var(--ip-radius-sm); background: var(--ip-white); color: var(--ip-ink); font: 500 16px var(--ip-font-ui); box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
#top.ipistis-ui #commentform input:focus,
#top.ipistis-ui #commentform textarea:focus { outline: 0; border-color: var(--ip-brand); box-shadow: 0 0 0 4px rgba(36, 87, 245, .15); }
#top.ipistis-ui #commentform input[type="submit"] { width: auto; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--ip-radius-sm); background: var(--ip-brand); color: #fff; font: 700 15px var(--ip-font-ui); cursor: pointer; transition: background-color .18s; }
#top.ipistis-ui #commentform input[type="submit"]:hover { background: var(--ip-brand-dark); }

/* 14 ─ Sidebar, 404, empty state ─────────────────────────────────────────────────────── */
#top.ipistis-ui .sidebar { padding-top: 56px; }
#top.ipistis-ui .sidebar .widget { margin: 0 0 32px; padding: 24px; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); background: var(--ip-white); }
#top.ipistis-ui .sidebar .widgettitle { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; }
#top.ipistis-ui .sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
#top.ipistis-ui .sidebar .widget li { margin: 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ip-line); font-size: 15px; }
#top.ipistis-ui .sidebar .widget li:last-child { border-bottom: 0; }
#top.ipistis-ui .sidebar .widget a { color: var(--ip-text); text-decoration: none; }
#top.ipistis-ui .sidebar .widget a:hover { color: var(--ip-brand); }

#top.ipistis-ui .ip-404 { max-width: 640px; margin: 0 auto 72px; padding-top: 24px; }
#top.ipistis-ui .ip-404__code { margin: 24px 0 0; color: var(--ip-brand); font: 800 clamp(5rem, 16vw, 9rem)/1 var(--ip-font-ui); letter-spacing: -.05em; }
#top.ipistis-ui .ip-404__title { margin: 8px 0 14px; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.15; }
#top.ipistis-ui .ip-404__text { margin: 0; color: var(--ip-muted); font-size: 1.1rem; line-height: 1.65; }
#top.ipistis-ui .ip-404__tips { margin: 16px 0 0; color: var(--ip-muted); font-size: 14.5px; }

#top.ipistis-ui .ip-empty { max-width: 640px; margin: 24px auto 0; text-align: left; }
#top.ipistis-ui .ip-empty__title { margin: 0 0 10px; font-size: 1.8rem; font-weight: 800; }
#top.ipistis-ui .ip-empty .ip-chips { border-top: 0; margin-top: 24px; padding: 0; }

/* 15 ─ CTA band + footer ─────────────────────────────────────────────────────────────── */
#top.ipistis-ui .ip-cta { border-top: 1px solid var(--ip-line); background: var(--ip-surface); }
#top.ipistis-ui .ip-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: 56px; padding-bottom: 56px; }
#top.ipistis-ui .ip-cta__copy { flex: 1 1 420px; max-width: 640px; }
#top.ipistis-ui .ip-cta__title { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; }
#top.ipistis-ui .ip-cta__copy p { margin: 0; color: var(--ip-muted); font-size: 1.05rem; line-height: 1.6; }
#top.ipistis-ui .ip-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

#top.ipistis-ui #footer,
#top.ipistis-ui .footer_color,
#top.ipistis-ui #footer .container_wrap { background: var(--ip-ink); border-color: rgba(255, 255, 255, .1); color: #b4bfd8; }
#top.ipistis-ui #footer { padding-top: 24px; }
#top.ipistis-ui #footer h1,
#top.ipistis-ui #footer h2,
#top.ipistis-ui #footer h3,
#top.ipistis-ui #footer h4,
#top.ipistis-ui #footer .widgettitle { color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
#top.ipistis-ui #footer a,
#top.ipistis-ui #footer .widget a { color: #d3dbee; text-decoration: none; transition: color .15s; }
#top.ipistis-ui #footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#top.ipistis-ui #footer .widget li { border-color: rgba(255, 255, 255, .1); }
#top.ipistis-ui #footer .widget { margin: 20px 0; }
#top.ipistis-ui #footer input[type="text"],
#top.ipistis-ui #footer input[type="search"],
#top.ipistis-ui #footer input[type="email"] { border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--ip-radius-sm); background: rgba(255, 255, 255, .06); color: #fff; }

#top.ipistis-ui #socket,
#top.ipistis-ui .socket_color { background: #091330; border-color: rgba(255, 255, 255, .08); color: #94a1c0; font-size: 13.5px; }
#top.ipistis-ui #socket a { color: #c4cde3; }
#top.ipistis-ui #socket a:hover { color: #fff; }
#top.ipistis-ui #socket .social_bookmarks li a { border-color: rgba(255, 255, 255, .18); }

/* ─ Responsive ───────────────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 989px) {
	#top.ipistis-ui .ip-card--featured { grid-template-columns: minmax(0, 1fr); }
	#top.ipistis-ui .ip-card--featured .ip-card__media { min-height: 0; aspect-ratio: 16 / 9; }
	#top.ipistis-ui .ip-card--featured .ip-card__body { padding: 32px 28px 28px; }
	#top.ipistis-ui .ip-hero--home { padding-top: 64px; }
}

@media only screen and (max-width: 767px) {
	#top.ipistis-ui .ip-wrap,
	#top.ipistis-ui .container.ip-container { padding-left: 18px; padding-right: 18px; }
	#top.ipistis-ui .ip-container .content { padding-top: 36px; padding-bottom: 48px; }
	#top.ipistis-ui .ip-hero--home { padding-top: 44px; }
	#top.ipistis-ui .ip-hero__text { font-size: 1.05rem; }
	#top.ipistis-ui .ip-hero__grid { flex-direction: column; align-items: flex-start; gap: 18px; }
	#top.ipistis-ui .ip-chips { margin-top: 32px; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
	#top.ipistis-ui .ip-grid { gap: 24px; }
	#top.ipistis-ui .ip-featured { margin-bottom: 44px; }
	#top.ipistis-ui .ip-card__body { padding: 20px; }
	#top.ipistis-ui .ip-article__body { font-size: 1.0625rem; line-height: 1.7; }
	#top.ipistis-ui .ip-article__body h2 { font-size: 1.55rem; }
	#top.ipistis-ui .ip-article__body blockquote { font-size: 1.15rem; padding-left: 18px; }
	#top.ipistis-ui .ip-article__body .alignleft,
	#top.ipistis-ui .ip-article__body .alignright { float: none; display: block; margin: 1.5em auto; }
	#top.ipistis-ui .ip-article__body table { display: block; }
	#top.ipistis-ui .ip-article__media { margin-bottom: 32px; }
	#top.ipistis-ui .ip-article__media img { aspect-ratio: 4 / 3; }
	#top.ipistis-ui .ip-author { flex-direction: column; padding: 24px; gap: 16px; }
	#top.ipistis-ui .ip-postnav { grid-template-columns: 1fr; }
	#top.ipistis-ui .ip-postnav__item--next { grid-column: 1; text-align: left; }
	#top.ipistis-ui #respond { padding: 22px; }
	#top.ipistis-ui .ip-cta__inner { padding-top: 40px; padding-bottom: 40px; }
	#top.ipistis-ui .ip-cta__actions .ip-btn { flex: 1 1 100%; }
	#top.ipistis-ui .ip-crumbs li:last-child span { max-width: 22ch; }
}

@media (prefers-reduced-motion: reduce) {
	#top.ipistis-ui .ip-card,
	#top.ipistis-ui .ip-card__img,
	#top.ipistis-ui .ip-card__title a,
	#top.ipistis-ui .ip-btn,
	#top.ipistis-ui .ip-chip { transition: none; }
	#top.ipistis-ui .ip-card:hover .ip-card__img { transform: none; }
}


/* 16 ─ Overflow safety: long words, URLs, titles, wide embeds never push the page sideways ── */
#top.ipistis-ui #wrap_all { overflow-x: clip; }
#top.ipistis-ui main.content,
#top.ipistis-ui .ip-grid > *,
#top.ipistis-ui .ip-card,
#top.ipistis-ui .ip-card__body,
#top.ipistis-ui .ip-hero__copy,
#top.ipistis-ui .ip-byline,
#top.ipistis-ui .ip-byline__text,
#top.ipistis-ui .ip-postnav__item { min-width: 0; max-width: 100%; }

#top.ipistis-ui .ip-hero__title,
#top.ipistis-ui .ip-hero__text,
#top.ipistis-ui .ip-card__title,
#top.ipistis-ui .ip-card__title a,
#top.ipistis-ui .ip-card__excerpt,
#top.ipistis-ui .ip-badge,
#top.ipistis-ui .ip-byline__name,
#top.ipistis-ui .ip-article__title,
#top.ipistis-ui .ip-article__body,
#top.ipistis-ui .ip-article__body a,
#top.ipistis-ui .ip-article__body li,
#top.ipistis-ui .ip-article__body td,
#top.ipistis-ui .ip-article__body th,
#top.ipistis-ui .ip-postnav__title,
#top.ipistis-ui .ip-author p,
#top.ipistis-ui .ip-cta__title,
#top.ipistis-ui .ip-cta__copy p,
#top.ipistis-ui .ip-404__title,
#top.ipistis-ui .commentlist .comment_text,
#top.ipistis-ui .sidebar .widget {
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
}

#top.ipistis-ui .ip-badge { max-width: 100%; }
#top.ipistis-ui .ip-article__body img,
#top.ipistis-ui .ip-article__body iframe,
#top.ipistis-ui .ip-article__body video,
#top.ipistis-ui .ip-article__body embed,
#top.ipistis-ui .ip-article__body object,
#top.ipistis-ui .ip-article__body .wp-caption,
#top.ipistis-ui .ip-article__body figure { max-width: 100% !important; }
#top.ipistis-ui .ip-article__body img { height: auto; }
#top.ipistis-ui .ip-article__body .wp-caption { width: auto !important; }
#top.ipistis-ui .ip-article__body pre { max-width: 100%; white-space: pre; overflow-wrap: normal; }
#top.ipistis-ui .ip-article__body table { max-width: 100%; }
#top.ipistis-ui .ip-article__body th { white-space: normal; }
#top.ipistis-ui .ip-article__body .wp-block-table,
#top.ipistis-ui .ip-article__body .avia-table { overflow-x: auto; max-width: 100%; }

#top.ipistis-ui .ip-card__title a,
#top.ipistis-ui .ip-card__excerpt { -webkit-line-clamp: 3; }
#top.ipistis-ui .ip-card__more { flex: 0 0 auto; }
#top.ipistis-ui .ip-card__foot .ip-byline { flex: 1 1 160px; }
#top.ipistis-ui .ip-byline__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
#top.ipistis-ui .ip-byline__meta { white-space: normal; }

/* menu with many items: tighten instead of overflowing */
@media only screen and (max-width: 1280px) and (min-width: 990px) {
	#top.ipistis-ui #wrap_all #header .av-main-nav > li > a { font-size: 14px; }
	#top.ipistis-ui #wrap_all #header .av-main-nav > li > a .avia-menu-text { padding-left: 2px; padding-right: 2px; }
}

/* 17 ─ UI polish ─────────────────────────────────────────────────────────────────────── */
#top.ipistis-ui .ip-hero--home { padding-bottom: 0; background: linear-gradient(180deg, #fff 0, #f8faff 100%); }
#top.ipistis-ui .ip-hero__title { text-wrap: balance; }
#top.ipistis-ui .ip-hero__text { color: #55607c; }

/* section titles get a rule that runs to the edge */
#top.ipistis-ui .ip-section-title { display: flex; align-items: center; gap: 20px; }
#top.ipistis-ui .ip-section-title::after { content: ""; flex: 1; border-top: 1px solid var(--ip-line); }

/* softer, more refined cards */
#top.ipistis-ui .ip-card { border-radius: 14px; border-color: #e6eaf3; }
#top.ipistis-ui .ip-card__media { aspect-ratio: 16 / 9.5; }
#top.ipistis-ui .ip-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13, 27, 62, .12)); pointer-events: none; }
#top.ipistis-ui .ip-card--no-image .ip-card__media::after { display: none; }
#top.ipistis-ui .ip-card__body { padding: 24px 26px 22px; }
#top.ipistis-ui .ip-card__title { font-size: 1.22rem; margin-bottom: 12px; }
#top.ipistis-ui .ip-card__foot { border-top: 1px dashed var(--ip-line); }
#top.ipistis-ui .ip-card__more { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: var(--ip-brand-tint); color: var(--ip-brand-dark); }
#top.ipistis-ui .ip-card__more::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ip-ease); }
#top.ipistis-ui .ip-card__more:hover { background: var(--ip-brand); color: #fff; text-decoration: none; }
#top.ipistis-ui .ip-card__more:hover::after { transform: translateX(3px) rotate(45deg); }
#top.ipistis-ui .ip-card--featured .ip-card__more::after { display: none; }
#top.ipistis-ui .ip-card--featured .ip-card__media::after { display: none; }

#top.ipistis-ui .ip-featured { margin-bottom: 72px; }
#top.ipistis-ui .ip-card--featured .ip-card__media { min-height: 420px; }

/* article: calmer head, wider image, clearer reading start */
#top.ipistis-ui .ip-article__head { padding-bottom: 28px; border-bottom: 1px solid var(--ip-line); margin-bottom: 40px; }
#top.ipistis-ui .ip-article__media { margin-top: -4px; }
#top.ipistis-ui .ip-article__body > p:first-of-type { font-size: 1.28rem; line-height: 1.6; color: var(--ip-ink); }
#top.ipistis-ui .ip-article__body > p:first-of-type:first-child { margin-bottom: 1.5em; }

/* header: a touch more air */
#top.ipistis-ui #wrap_all #header_main .container { padding-top: 4px; padding-bottom: 4px; }

@media only screen and (max-width: 767px) {
	#top.ipistis-ui .ip-card__body { padding: 20px 20px 18px; }
	#top.ipistis-ui .ip-card--featured .ip-card__media { min-height: 0; }
	#top.ipistis-ui .ip-section-title::after { display: none; }
	#top.ipistis-ui .ip-article__head { padding-bottom: 22px; margin-bottom: 28px; }
	#top.ipistis-ui .ip-article__body > p:first-of-type { font-size: 1.15rem; }
	#top.ipistis-ui .ip-card__foot { gap: 12px; }
}

#top.ipistis-ui .ip-card--featured .ip-card__media { min-width: 0; width: 100%; }
#top.ipistis-ui .ip-card--featured.ip-card--no-image { grid-template-columns: minmax(0, 1fr); }


/* 18 ─ Sidebar redesign (Enfold widget markup) ───────────────────────────────────────── */
#top.ipistis-ui .sidebar { padding-top: 56px; padding-bottom: 56px; border: 0; background: none; }
#top.ipistis-ui .sidebar .inner_sidebar { margin: 0; padding: 0 0 0 8px; border: 0; background: none; }

@media only screen and (min-width: 990px) {
	#top.ipistis-ui .sidebar .inner_sidebar { position: sticky; top: 120px; }
}

#top.ipistis-ui .sidebar .widget,
#top.ipistis-ui .sidebar section.widget {
	position: relative;
	margin: 0 0 24px;
	padding: 24px 22px 20px;
	border: 1px solid var(--ip-line);
	border-radius: 14px;
	background: var(--ip-white);
	box-shadow: none;
	overflow: hidden;
}

#top.ipistis-ui .sidebar .seperator,
#top.ipistis-ui .sidebar .widget > .seperator { display: none; }

#top.ipistis-ui .sidebar .widgettitle {
	position: relative;
	margin: 0 0 16px;
	padding: 0 0 12px;
	border: 0;
	border-bottom: 1px solid var(--ip-line);
	color: var(--ip-ink);
	font: 800 1.02rem/1.3 var(--ip-font-ui);
	letter-spacing: -.01em;
	text-transform: none;
}

#top.ipistis-ui .sidebar .widgettitle::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 3px; background: var(--ip-brand); }

#top.ipistis-ui .sidebar .widget ul,
#top.ipistis-ui .sidebar .widget ol { margin: 0; padding: 0; list-style: none; border: 0; }

#top.ipistis-ui .sidebar .widget li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid #eef1f7;
	color: var(--ip-muted);
	font-size: 14.5px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

#top.ipistis-ui .sidebar .widget li:last-child { border-bottom: 0; padding-bottom: 0; }
#top.ipistis-ui .sidebar .widget li a { flex: 1; min-width: 0; color: var(--ip-text); font-weight: 600; text-decoration: none; transition: color .15s, padding-left .2s var(--ip-ease); }
#top.ipistis-ui .sidebar .widget li a:hover { color: var(--ip-brand); padding-left: 4px; }
#top.ipistis-ui .sidebar .widget li.current-cat > a,
#top.ipistis-ui .sidebar .widget li.current_page_item > a,
#top.ipistis-ui .sidebar .widget li.current-menu-item > a { color: var(--ip-brand); }

/* nested categories */
#top.ipistis-ui .sidebar .widget ul ul { flex-basis: 100%; margin: 8px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--ip-line); }
#top.ipistis-ui .sidebar .widget li:has(> ul) { flex-wrap: wrap; }

/* long archive lists scroll inside the card instead of stretching the page */
#top.ipistis-ui .sidebar .widget_archive ul,
#top.ipistis-ui .sidebar .widget_categories ul,
#top.ipistis-ui .sidebar .widget_pages ul { max-height: 300px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--ip-line) transparent; }

/* recent posts */
#top.ipistis-ui .sidebar .widget_recent_entries li { flex-direction: column; align-items: flex-start; gap: 3px; }
#top.ipistis-ui .sidebar .widget_recent_entries .post-date { color: var(--ip-muted); font-size: 12.5px; }

/* tag cloud as chips */
#top.ipistis-ui .sidebar .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
#top.ipistis-ui .sidebar .tagcloud a { display: inline-block; margin: 0; padding: 6px 12px; border: 1px solid var(--ip-line); border-radius: 6px; background: var(--ip-surface); color: var(--ip-text); font: 600 13px/1.3 var(--ip-font-ui) !important; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
#top.ipistis-ui .sidebar .tagcloud a:hover { border-color: var(--ip-brand); background: var(--ip-brand); color: #fff; }

/* search widget */
#top.ipistis-ui .sidebar .widget #searchform > div { position: relative; }
#top.ipistis-ui .sidebar .widget #searchform input#s { width: 100%; height: 46px; margin: 0; padding: 0 14px 0 42px; border: 1px solid var(--ip-line); border-radius: var(--ip-radius-sm); background: var(--ip-surface); color: var(--ip-ink); font: 500 15px var(--ip-font-ui); box-sizing: border-box; }
#top.ipistis-ui .sidebar .widget #searchform input#s:focus { outline: 0; border-color: var(--ip-brand); background: #fff; box-shadow: 0 0 0 3px rgba(36, 87, 245, .15); }
#top.ipistis-ui .sidebar .widget #searchform .av_searchform_search { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: var(--ip-muted); pointer-events: none; z-index: 1; }
#top.ipistis-ui .sidebar .widget #searchform #searchsubmit { position: absolute; left: 0; top: 0; width: 42px; height: 100%; margin: 0; padding: 0; opacity: 0; z-index: 2; cursor: pointer; }

/* sidebar on small screens: full width cards below the content */
@media only screen and (max-width: 989px) {
	#top.ipistis-ui .sidebar { padding-top: 8px; }
	#top.ipistis-ui .sidebar .inner_sidebar { padding-left: 0; }
}


/* 19 ─ Top bar, footer, hero facts (v1.1) ────────────────────────────────────────────── */
#top.ipistis-ui .ip-topbar { background: var(--ip-ink); color: #c4cde3; font: 500 13px/1 var(--ip-font-ui); }
#top.ipistis-ui .ip-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
#top.ipistis-ui .ip-topbar__links { display: flex; gap: 24px; }
#top.ipistis-ui .ip-topbar a { color: #fff; font-weight: 600; text-decoration: none; }
#top.ipistis-ui .ip-topbar a:hover { color: var(--ip-accent); }
@media only screen and (max-width: 767px) { #top.ipistis-ui .ip-topbar__hours { display: none; } #top.ipistis-ui .ip-topbar__inner { justify-content: center; } }

#top.ipistis-ui .ip-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ip-muted); font-size: 14.5px; }
#top.ipistis-ui .ip-hero__facts li { margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--ip-accent); line-height: 1.2; }
#top.ipistis-ui .ip-hero__facts strong { color: var(--ip-ink); font-weight: 800; font-size: 1.15rem; margin-right: 2px; }
#top.ipistis-ui .ip-hero__facts + .ip-search { margin-top: 24px; }

#top.ipistis-ui.ip-own-footer #footer { display: none; }
#top.ipistis-ui .ip-footer { background: var(--ip-ink); color: #b4bfd8; border-top: 4px solid var(--ip-brand); }
#top.ipistis-ui .ip-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
#top.ipistis-ui .ip-footer__name { margin: 0 0 12px; color: #fff; font: 800 1.3rem/1.2 var(--ip-font-ui); }
#top.ipistis-ui .ip-footer__brand p { margin: 0 0 14px; max-width: 34em; font-size: 15px; line-height: 1.65; }
#top.ipistis-ui .ip-footer__phone { color: #fff; font: 700 1.05rem var(--ip-font-ui); text-decoration: none; }
#top.ipistis-ui .ip-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
#top.ipistis-ui .ip-footer__social li { margin: 0; padding: 0; }
#top.ipistis-ui .ip-footer__social a { display: inline-block; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; color: #d3dbee; font: 600 13px var(--ip-font-ui); text-decoration: none; transition: background-color .15s, color .15s; }
#top.ipistis-ui .ip-footer__social a:hover { background: #fff; color: var(--ip-ink); }
#top.ipistis-ui .ip-footer__title { margin: 0 0 18px; color: #fff; font: 800 1rem/1.2 var(--ip-font-ui); }
#top.ipistis-ui .ip-footer__col ul { margin: 0; padding: 0; list-style: none; }
#top.ipistis-ui .ip-footer__col li { margin: 0 0 11px; padding: 0; border: 0; }
#top.ipistis-ui .ip-footer__col a { color: #c4cde3; font-size: 15px; text-decoration: none; transition: color .15s; }
#top.ipistis-ui .ip-footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media only screen and (max-width: 989px) { #top.ipistis-ui .ip-footer__grid { grid-template-columns: 1fr 1fr; padding-top: 48px; } #top.ipistis-ui .ip-footer__brand { grid-column: 1 / -1; } }
@media only screen and (max-width: 560px) { #top.ipistis-ui .ip-footer__grid { grid-template-columns: 1fr; gap: 32px; } }


/* 20 ─ Neutralise Enfold's generic .post rule (float:left; width:100%; clear:both) ───────── */
#top.ipistis-ui .ip-card,
#top.ipistis-ui .ip-article,
#top.ipistis-ui article.post-entry.ip-article { float: none; clear: none; width: auto; max-width: 100%; }
#top.ipistis-ui .ip-card--featured { display: grid; }
#top.ipistis-ui .ip-card--standard { display: flex; }
#top.ipistis-ui .ip-featured,
#top.ipistis-ui .ip-listing,
#top.ipistis-ui .ip-related,
#top.ipistis-ui .ip-empty,
#top.ipistis-ui .ip-pagination { clear: both; float: none; width: 100%; box-sizing: border-box; }
#top.ipistis-ui .ip-grid { width: 100%; }
#top.ipistis-ui .ip-container .content,
#top.ipistis-ui .ip-container .content.units { border-right: 0; margin-right: 0; }
#top.ipistis-ui .ip-container .content .entry-content-wrapper { padding-right: 0; }
#top.ipistis-ui .ip-container .sidebar { border-left: 0; }
#top.ipistis-ui .ip-container::after { content: ""; display: table; clear: both; }


/* 21 ─ Search field, redesigned everywhere (v1.2) ────────────────────────────────────── */
#top.ipistis-ui .ip-search__icon,
#top.ipistis-ui .ip-search__btn { display: none; }

#top.ipistis-ui .ip-search { max-width: 640px; }

#top.ipistis-ui .ip-search #searchform > div,
#top.ipistis-ui .sidebar .widget_search #searchform > div,
#top.ipistis-ui .ip-404 #searchform > div {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px;
	border: 1px solid var(--ip-line);
	border-radius: 14px;
	background: var(--ip-white);
	box-shadow: 0 1px 2px rgba(13, 27, 62, .05), 0 14px 34px -18px rgba(13, 27, 62, .3);
	transition: border-color .15s, box-shadow .15s;
}

#top.ipistis-ui .ip-search #searchform > div:focus-within,
#top.ipistis-ui .sidebar .widget_search #searchform > div:focus-within { border-color: var(--ip-brand); box-shadow: 0 0 0 4px rgba(36, 87, 245, .14), 0 14px 34px -18px rgba(13, 27, 62, .3); }

#top.ipistis-ui .ip-search #searchform .ip-search__icon,
#top.ipistis-ui .sidebar .widget_search #searchform .ip-search__icon { display: block; flex: 0 0 20px; margin: 0 4px 0 14px; color: var(--ip-muted); }

#top.ipistis-ui .ip-search #searchform .av_searchform_search,
#top.ipistis-ui .ip-search #searchform #searchsubmit,
#top.ipistis-ui .sidebar .widget_search #searchform .av_searchform_search,
#top.ipistis-ui .sidebar .widget_search #searchform #searchsubmit { display: none !important; }

#top.ipistis-ui .ip-search #searchform input#s,
#top.ipistis-ui .sidebar .widget_search #searchform input#s {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 50px;
	margin: 0;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ip-ink);
	font: 500 16.5px var(--ip-font-ui);
}

#top.ipistis-ui .ip-search #searchform input#s:focus,
#top.ipistis-ui .sidebar .widget_search #searchform input#s:focus { outline: 0; border: 0; box-shadow: none; }

#top.ipistis-ui .ip-search #searchform .ip-search__btn,
#top.ipistis-ui .sidebar .widget_search #searchform .ip-search__btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 50px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 9px;
	background: var(--ip-brand);
	color: #fff;
	font: 700 15px var(--ip-font-ui);
	cursor: pointer;
	transition: background-color .15s;
}

#top.ipistis-ui .ip-search #searchform .ip-search__btn:hover,
#top.ipistis-ui .sidebar .widget_search #searchform .ip-search__btn:hover { background: var(--ip-brand-dark); }
#top.ipistis-ui .ip-search .ip-search__btn svg { display: none; }

/* compact variant in the sidebar: icon-only button */
#top.ipistis-ui .sidebar .widget_search #searchform .ip-search__label { display: none; }
#top.ipistis-ui .sidebar .widget_search #searchform .ip-search__btn { width: 44px; height: 44px; padding: 0; }
#top.ipistis-ui .sidebar .widget_search #searchform input#s { height: 44px; font-size: 15px; }
#top.ipistis-ui .sidebar .widget_search #searchform .ip-search__icon { display: none; }
#top.ipistis-ui .sidebar .widget_search #searchform input#s { padding-left: 12px !important; }

/* search fields elsewhere (header dropdown, footer, page content): same border + radius */
#top.ipistis-ui #header #searchform input#s,
#top.ipistis-ui .container_wrap #searchform input#s { border-radius: 10px; border-color: var(--ip-line); font-family: var(--ip-font-ui); }
#top.ipistis-ui #header #searchform input#s:focus { border-color: var(--ip-brand); }

@media only screen and (max-width: 480px) {
	#top.ipistis-ui .ip-search #searchform .ip-search__btn { width: 50px; padding: 0; }
	#top.ipistis-ui .ip-search #searchform .ip-search__label { display: none; }
	#top.ipistis-ui .ip-search .ip-search__btn svg { display: block; }
	#top.ipistis-ui .ip-search #searchform .ip-search__icon { margin-left: 10px; }
}


/* 22 ─ Home slider ───────────────────────────────────────────────────────────────────── */
#top.ipistis-ui .ip-btn--light { background: #fff; color: var(--ip-ink); }
#top.ipistis-ui .ip-btn--light:hover { background: var(--ip-accent); color: var(--ip-ink); }

#top.ipistis-ui .ip-slider {
	position: relative;
	margin: 0 0 80px;
	border-radius: 20px;
	background:
		linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(135deg, #0d1b3e 0, #12296a 100%);
	color: #fff;
	overflow: hidden;
}

#top.ipistis-ui .ip-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -4px; }
#top.ipistis-ui .ip-slider__track::-webkit-scrollbar { display: none; }

#top.ipistis-ui .ip-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 540px; scroll-snap-align: start; margin: 0; padding: 0; float: none; width: 100%; }
#top.ipistis-ui .ip-slide__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 56px 40px 112px 56px; }
#top.ipistis-ui .ip-slide .ip-badge { background: var(--ip-accent); color: var(--ip-ink); }
#top.ipistis-ui .ip-slide a.ip-badge:hover { background: #fff; color: var(--ip-ink); }

#top.ipistis-ui .ip-slide__title { margin: 4px 0 18px; font-size: clamp(1.8rem, 3.3vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.024em; text-wrap: balance; }
#top.ipistis-ui .ip-slide__title a { color: #fff; text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#top.ipistis-ui .ip-slide__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
#top.ipistis-ui .ip-slide__excerpt { margin: 0 0 28px; max-width: 34em; color: #c4cde3; font-size: 1.05rem; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#top.ipistis-ui .ip-slide__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
#top.ipistis-ui .ip-slide .ip-byline__name { color: #fff; }
#top.ipistis-ui .ip-slide .ip-byline__name:hover { color: var(--ip-accent); }
#top.ipistis-ui .ip-slide .ip-byline__meta { color: #a9b5d1; }
#top.ipistis-ui .ip-slide .ip-byline__sep { background: #a9b5d1; }
#top.ipistis-ui .ip-slide .ip-byline__avatar img { width: 40px; height: 40px; }

#top.ipistis-ui .ip-slide__media { position: relative; display: block; margin: 20px 20px 84px 0; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .06); }
#top.ipistis-ui .ip-slide__media img.ip-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .8s var(--ip-ease); }
#top.ipistis-ui .ip-slide:hover .ip-slide__img { transform: scale(1.03); }
#top.ipistis-ui .ip-slide__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a3fc4, #2457f5); }
#top.ipistis-ui .ip-slide__placeholder span { font: 800 120px/1 var(--ip-font-ui); color: rgba(255, 255, 255, .85); }
#top.ipistis-ui .ip-slide--no-image { grid-template-columns: minmax(0, 1fr); }
#top.ipistis-ui .ip-slide--no-image .ip-slide__media { display: none; }

#top.ipistis-ui .ip-slider__bar { position: absolute; left: 56px; right: 40px; bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none; }
#top.ipistis-ui .ip-slider__dots,
#top.ipistis-ui .ip-slider__arrows { display: flex; gap: 8px; pointer-events: auto; }

#top.ipistis-ui .ip-slider__dot { position: relative; width: 48px; height: 24px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
#top.ipistis-ui .ip-slider__dot span { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
#top.ipistis-ui .ip-slider__dot span::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; }
#top.ipistis-ui .ip-slider__dot.is-active span::after { transform: scaleX(1); }
#top.ipistis-ui .ip-slider.is-playing .ip-slider__dot.is-active span::after { animation: ip-fill var(--ip-slide-ms, 6500ms) linear forwards; }
@keyframes ip-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

#top.ipistis-ui .ip-slider__arrow { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color .15s, color .15s; }
#top.ipistis-ui .ip-slider__arrow svg { width: 20px; height: 20px; }
#top.ipistis-ui .ip-slider__arrow:hover { background: #fff; color: var(--ip-ink); }

@media only screen and (max-width: 899px) {
	#top.ipistis-ui .ip-slider { border-radius: 16px; margin-bottom: 56px; }
	#top.ipistis-ui .ip-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	#top.ipistis-ui .ip-slide__media { order: -1; aspect-ratio: 16 / 10; margin: 14px 14px 0; }
	#top.ipistis-ui .ip-slide__content { padding: 28px 24px 96px; }
	#top.ipistis-ui .ip-slider__bar { left: 24px; right: 24px; bottom: 22px; }
	#top.ipistis-ui .ip-slider__dot { width: 30px; }
}


/* 23 ─ Topics: cards + latest by category ────────────────────────────────────────────── */
#top.ipistis-ui .ip-topics { margin-top: 96px; padding-top: 72px; border-top: 1px solid var(--ip-line); }
#top.ipistis-ui .ip-topics__head { margin-bottom: 32px; }
#top.ipistis-ui .ip-topics__head .ip-section-title { margin-bottom: 10px; }
#top.ipistis-ui .ip-topics__head p { margin: 0; max-width: 40em; color: var(--ip-muted); font-size: 1.05rem; line-height: 1.6; }

#top.ipistis-ui .ip-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0 0 56px; padding: 0; list-style: none; }
#top.ipistis-ui .ip-topic-grid li { margin: 0; padding: 0; }
#top.ipistis-ui .ip-topic { display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px 22px; border: 1px solid var(--ip-line); border-radius: 14px; background: var(--ip-white); text-decoration: none; box-sizing: border-box; transition: border-color .15s, background-color .15s, box-shadow .2s var(--ip-ease); }
#top.ipistis-ui .ip-topic:hover { border-color: var(--ip-brand); background: #fafcff; box-shadow: var(--ip-shadow); }
#top.ipistis-ui .ip-topic__icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--ip-brand-tint); color: var(--ip-brand-dark); font: 800 20px var(--ip-font-ui); transition: background-color .15s, color .15s; }
#top.ipistis-ui .ip-topic:hover .ip-topic__icon { background: var(--ip-brand); color: #fff; }
#top.ipistis-ui .ip-topic__text { flex: 1; min-width: 0; }
#top.ipistis-ui .ip-topic__name { display: block; color: var(--ip-ink); font: 700 1.05rem/1.3 var(--ip-font-ui); overflow-wrap: anywhere; }
#top.ipistis-ui .ip-topic__count { display: block; margin-top: 2px; color: var(--ip-muted); font-size: 13px; font-weight: 600; }
#top.ipistis-ui .ip-topic__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; color: var(--ip-muted); font-size: 13.5px; line-height: 1.5; }
#top.ipistis-ui .ip-topic__go { flex: 0 0 8px; width: 8px; height: 8px; border-top: 2px solid var(--ip-muted); border-right: 2px solid var(--ip-muted); transform: rotate(45deg); transition: transform .2s var(--ip-ease), border-color .15s; }
#top.ipistis-ui .ip-topic:hover .ip-topic__go { border-color: var(--ip-brand); transform: translateX(3px) rotate(45deg); }

#top.ipistis-ui .ip-bycat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#top.ipistis-ui .ip-bycat__col { margin: 0; padding: 24px; border-radius: 16px; background: var(--ip-surface); min-width: 0; }
#top.ipistis-ui .ip-bycat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding-bottom: 14px; border-bottom: 2px solid var(--ip-ink); }
#top.ipistis-ui .ip-bycat__head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
#top.ipistis-ui .ip-bycat__head a { font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
#top.ipistis-ui .ip-bycat__head a:hover { text-decoration: underline; text-underline-offset: 4px; }
#top.ipistis-ui .ip-bycat__col ul { margin: 0; padding: 0; list-style: none; }
#top.ipistis-ui .ip-bycat__col li { margin: 0; padding: 0; border-bottom: 1px solid var(--ip-line); }
#top.ipistis-ui .ip-bycat__col li:last-child { border-bottom: 0; }
#top.ipistis-ui .ip-bycat__item { display: flex; align-items: center; gap: 14px; padding: 14px 0; text-decoration: none; }
#top.ipistis-ui .ip-bycat__thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--ip-line); }
#top.ipistis-ui .ip-bycat__thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
#top.ipistis-ui .ip-bycat__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ip-ink), var(--ip-brand-dark)); }
#top.ipistis-ui .ip-bycat__text { min-width: 0; }
#top.ipistis-ui .ip-bycat__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ip-ink); font: 700 15px/1.4 var(--ip-font-ui); overflow-wrap: anywhere; transition: color .15s; }
#top.ipistis-ui .ip-bycat__item:hover .ip-bycat__title { color: var(--ip-brand); }
#top.ipistis-ui .ip-bycat__date { display: block; margin-top: 3px; color: var(--ip-muted); font-size: 12.5px; }

@media only screen and (max-width: 989px) { #top.ipistis-ui .ip-bycat { grid-template-columns: 1fr; } }
@media only screen and (max-width: 767px) { #top.ipistis-ui .ip-topics { margin-top: 64px; padding-top: 48px; } }


/* 24 ─ Article page: hero band, two-column layout, rail, progress (v1.2) ─────────────── */
:root { --ip-layout: 1072px; }

#top.ipistis-ui .ip-posthero { background: linear-gradient(180deg, var(--ip-surface) 0, #fff 100%); border-bottom: 1px solid var(--ip-line); padding: 36px 0 52px; }
#top.ipistis-ui .ip-posthero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
#top.ipistis-ui .ip-posthero__copy { min-width: 0; max-width: 880px; }
#top.ipistis-ui .ip-posthero--split .ip-posthero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: 56px; }
#top.ipistis-ui .ip-posthero--split .ip-posthero__copy { max-width: none; }
#top.ipistis-ui .ip-posthero .ip-crumbs { margin-bottom: 26px; }
#top.ipistis-ui .ip-posthero__cat .ip-badge { margin: 0; }
#top.ipistis-ui .ip-posthero__title { margin: 16px 0 28px; font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; line-height: 1.12; letter-spacing: -.026em; text-wrap: balance; overflow-wrap: anywhere; }
#top.ipistis-ui .ip-posthero .ip-byline__avatar img { width: 48px; height: 48px; }
#top.ipistis-ui .ip-posthero .ip-byline__name { font-size: 15.5px; }
#top.ipistis-ui .ip-posthero .ip-byline__meta { font-size: 14px; }
#top.ipistis-ui .ip-posthero__comments { margin: 14px 0 0; font-size: 14px; font-weight: 600; }
#top.ipistis-ui .ip-posthero__thumb { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--ip-line); box-shadow: var(--ip-shadow); }
#top.ipistis-ui .ip-posthero__thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }

#top.ipistis-ui .template-single-blog .content { padding-top: 0; }
#top.ipistis-ui .ip-article__media--wide { max-width: var(--ip-layout); margin: 44px auto 0; }
#top.ipistis-ui .ip-article__media--wide img { aspect-ratio: 16 / 8; max-height: 520px; }

#top.ipistis-ui .ip-post-layout { display: grid; grid-template-columns: minmax(0, var(--ip-read)) 300px; gap: 72px; justify-content: center; max-width: var(--ip-layout); margin: 52px auto 0; }
#top.ipistis-ui .ip-post-layout--builder { display: block; max-width: none; }
#top.ipistis-ui .ip-post-layout--builder .ip-rail { display: none; }
#top.ipistis-ui .ip-post-layout .ip-article { min-width: 0; }
#top.ipistis-ui .ip-post-layout .ip-article__body { max-width: none; margin: 0; }
#top.ipistis-ui .ip-post-layout .ip-article__foot { max-width: none; margin-left: 0; margin-right: 0; }
#top.ipistis-ui .ip-post-layout .ip-article__media--embed { max-width: none; margin: 0 0 32px; }

#top.ipistis-ui .ip-rail { min-width: 0; }
#top.ipistis-ui .ip-rail__inner { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
#top.ipistis-ui .ip-toc { padding: 0 0 0 20px; border-left: 2px solid var(--ip-line); }
#top.ipistis-ui .ip-toc[hidden] { display: none; }
#top.ipistis-ui .ip-toc__title { margin: 0 0 14px; color: var(--ip-ink); font: 800 .8rem/1 var(--ip-font-ui); letter-spacing: .08em; text-transform: uppercase; }
#top.ipistis-ui .ip-toc ol { margin: 0; padding: 0; list-style: none; max-height: 52vh; overflow-y: auto; scrollbar-width: thin; }
#top.ipistis-ui .ip-toc li { margin: 0; padding: 0; }
#top.ipistis-ui .ip-toc a { position: relative; display: block; padding: 6px 0; color: var(--ip-muted); font: 600 14px/1.4 var(--ip-font-ui); text-decoration: none; transition: color .15s; }
#top.ipistis-ui .ip-toc a:hover { color: var(--ip-ink); }
#top.ipistis-ui .ip-toc li.is-sub a { padding-left: 14px; font-weight: 500; font-size: 13.5px; }
#top.ipistis-ui .ip-toc a.is-active { color: var(--ip-brand); }
#top.ipistis-ui .ip-toc a.is-active::before { content: ""; position: absolute; left: -22px; top: 6px; bottom: 6px; width: 2px; background: var(--ip-brand); }

#top.ipistis-ui .ip-rail__card { padding: 26px 24px; border-radius: 16px; background: var(--ip-ink); color: #c4cde3; }
#top.ipistis-ui .ip-rail__card h2 { margin: 0 0 8px; color: #fff; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
#top.ipistis-ui .ip-rail__card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; }
#top.ipistis-ui .ip-rail__card .ip-btn { width: 100%; min-height: 46px; padding: 0 16px; text-align: center; }

#top.ipistis-ui .ip-post-after { max-width: var(--ip-layout); margin: 0 auto; }
#top.ipistis-ui .ip-post-after .ip-author,
#top.ipistis-ui .ip-post-after .ip-postnav { max-width: none; }
#top.ipistis-ui .comment-entry { max-width: var(--ip-layout); }

#top.ipistis-ui .ip-progress { position: fixed; z-index: 99999; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; height: 3px; pointer-events: none; }
#top.ipistis-ui .ip-progress span { display: block; height: 100%; background: var(--ip-brand); transform-origin: left; transform: scaleX(0); }

@media only screen and (max-width: 1099px) {
	#top.ipistis-ui .ip-post-layout { grid-template-columns: minmax(0, var(--ip-read)); gap: 40px; }
	#top.ipistis-ui .ip-rail__inner { position: static; }
	#top.ipistis-ui .ip-toc { display: none; }
}

@media only screen and (max-width: 899px) {
	#top.ipistis-ui .ip-posthero--split .ip-posthero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	#top.ipistis-ui .ip-posthero__thumb { order: -1; aspect-ratio: 16 / 10; }
}

@media only screen and (max-width: 767px) {
	#top.ipistis-ui .ip-posthero { padding: 24px 0 36px; }
	#top.ipistis-ui .ip-post-layout { margin-top: 32px; }
	#top.ipistis-ui .ip-article__media--wide { margin-top: 28px; }
	#top.ipistis-ui .ip-article__media--wide img { aspect-ratio: 16 / 10; }
}

/* 25 ─ Align article column with the hero (left edge) ────────────────────────────────── */
#top.ipistis-ui .ip-post-layout { max-width: none; justify-content: space-between; }
#top.ipistis-ui .ip-article__media--wide,
#top.ipistis-ui .ip-post-after,
#top.ipistis-ui .comment-entry { max-width: none; }
#top.ipistis-ui .ip-post-after .ip-author,
#top.ipistis-ui .ip-post-after .ip-postnav { max-width: var(--ip-layout); margin-left: 0; }
#top.ipistis-ui .comment-entry { max-width: var(--ip-layout); margin-left: 0; margin-right: 0; }
@media only screen and (max-width: 1099px) { #top.ipistis-ui .ip-post-layout { justify-content: start; } }


/* 26 ─ Magazine home (v1.3) ──────────────────────────────────────────────────────────── */
#top.ipistis-ui .mg-home { --mg-gap: 28px; }
#top.ipistis-ui .mg-home article { float: none; clear: none; width: auto; margin: 0; padding: 0; border: 0; }
#top.ipistis-ui .mg-home h2,
#top.ipistis-ui .mg-home h3 { text-wrap: balance; overflow-wrap: anywhere; }
#top.ipistis-ui .mg-home a { text-decoration: none; }
#top.ipistis-ui .mg-section { margin-top: 80px; }

/* strip: categories + search */
#top.ipistis-ui .mg-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 40px; }
#top.ipistis-ui .mg-strip .ip-chips { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; border: 0; }
#top.ipistis-ui .mg-strip .ip-search { flex: 0 1 340px; max-width: 340px; margin: 0; }
#top.ipistis-ui .mg-strip .ip-search #searchform > div { padding: 4px; border-radius: 10px; box-shadow: none; }
#top.ipistis-ui .mg-strip .ip-search #searchform input#s { height: 38px; font-size: 15px; }
#top.ipistis-ui .mg-strip .ip-search #searchform .ip-search__btn { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 7px; }
#top.ipistis-ui .mg-strip .ip-search #searchform .ip-search__icon { margin-left: 10px; }

/* small parts */
#top.ipistis-ui .mg-img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .6s var(--ip-ease); }
#top.ipistis-ui .mg-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(135deg, var(--ip-ink), var(--ip-brand-dark)); }
#top.ipistis-ui .mg-ph span { color: rgba(255,255,255,.85); font: 800 44px/1 var(--ip-font-ui); }

#top.ipistis-ui .mg-cat { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--ip-brand-dark); font: 800 11px/1.3 var(--ip-font-ui); letter-spacing: .07em; text-transform: uppercase; }
#top.ipistis-ui .mg-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ip-accent); flex: 0 0 6px; }
#top.ipistis-ui .mg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-top: 8px; color: var(--ip-muted); font: 500 12.5px/1.4 var(--ip-font-ui); }
#top.ipistis-ui .mg-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 9px 2px; border-radius: 50%; background: currentColor; opacity: .7; }

/* every card is one big click target via its title link */
#top.ipistis-ui .mg-home article { position: relative; }
#top.ipistis-ui .mg-home article h2 a::after,
#top.ipistis-ui .mg-home article h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

#top.ipistis-ui .mg-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; }
#top.ipistis-ui .mg-item--plain { grid-template-columns: minmax(0, 1fr); }
#top.ipistis-ui .mg-item__thumb { position: relative; display: block; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; background: var(--ip-surface); }
#top.ipistis-ui .mg-item__title { margin: 0; color: var(--ip-ink); font: 700 15px/1.38 var(--ip-font-ui); letter-spacing: -.005em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#top.ipistis-ui .mg-item__title a { color: inherit; transition: color .15s; }
#top.ipistis-ui .mg-item:hover .mg-item__title a { color: var(--ip-brand); }
#top.ipistis-ui .mg-item:hover .mg-img,
#top.ipistis-ui .mg-row:hover .mg-img,
#top.ipistis-ui .mg-overlay:hover .mg-img,
#top.ipistis-ui .mg-feature:hover .mg-img,
#top.ipistis-ui .mg-cat-card:hover .mg-img { transform: scale(1.05); }

#top.ipistis-ui .mg-overlay { position: relative; display: block; min-height: 380px; height: 100%; border-radius: 16px; overflow: hidden; background: var(--ip-ink); }
#top.ipistis-ui .mg-overlay--hero { min-height: 540px; }
#top.ipistis-ui .mg-overlay--wide { min-height: 440px; }
#top.ipistis-ui .mg-overlay__media { position: absolute; inset: 0; }
#top.ipistis-ui .mg-overlay__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,43,0) 30%, rgba(8,17,43,.9) 100%); }
#top.ipistis-ui .mg-overlay__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
#top.ipistis-ui .mg-overlay .mg-cat { color: #fff; }
#top.ipistis-ui .mg-overlay__title { margin: 0; color: #fff; font: 800 1.3rem/1.22 var(--ip-font-ui); letter-spacing: -.015em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#top.ipistis-ui .mg-overlay--hero .mg-overlay__title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.022em; }
#top.ipistis-ui .mg-overlay__title a { color: #fff; }
#top.ipistis-ui .mg-overlay .mg-meta { color: rgba(255,255,255,.78); }

/* section head */
#top.ipistis-ui .mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 26px; }
#top.ipistis-ui .mg-head__title { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
#top.ipistis-ui .mg-head__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
#top.ipistis-ui .mg-head__link::after { content: ""; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ip-ease); }
#top.ipistis-ui .mg-head__link:hover::after { transform: translateX(3px) rotate(45deg); }

/* top mosaic */
#top.ipistis-ui .mg-mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--mg-gap); align-items: stretch; }
#top.ipistis-ui .mg-mosaic__col { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; }
#top.ipistis-ui .mg-mosaic__center { min-width: 0; }

/* explore categories */
#top.ipistis-ui .mg-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
#top.ipistis-ui .mg-cats__grid li { margin: 0; padding: 0; }
#top.ipistis-ui .mg-cat-card { display: block; padding: 10px; border: 1px solid var(--ip-line); border-radius: 14px; background: var(--ip-white); transition: border-color .15s, box-shadow .2s var(--ip-ease); }
#top.ipistis-ui .mg-cat-card:hover { border-color: var(--ip-brand); box-shadow: var(--ip-shadow); }
#top.ipistis-ui .mg-cat-card__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--ip-surface); }
#top.ipistis-ui .mg-cat-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px 4px; }
#top.ipistis-ui .mg-cat-card__text { min-width: 0; }
#top.ipistis-ui .mg-cat-card__name { display: block; color: var(--ip-ink); font: 700 15px/1.3 var(--ip-font-ui); overflow-wrap: anywhere; }
#top.ipistis-ui .mg-cat-card__count { display: block; margin-top: 2px; color: var(--ip-muted); font-size: 12.5px; font-weight: 600; }
#top.ipistis-ui .mg-cat-card__go { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--ip-surface); position: relative; transition: background-color .15s; }
#top.ipistis-ui .mg-cat-card__go::after { content: ""; position: absolute; left: 8px; top: 9px; width: 6px; height: 6px; border-top: 2px solid var(--ip-ink); border-right: 2px solid var(--ip-ink); transform: rotate(45deg); }
#top.ipistis-ui .mg-cat-card:hover .mg-cat-card__go { background: var(--ip-brand); }
#top.ipistis-ui .mg-cat-card:hover .mg-cat-card__go::after { border-color: #fff; }

/* full-bleed bands */
#top.ipistis-ui .mg-band { position: relative; margin-top: 88px; padding: 56px 0 64px; background: var(--mg-bg); box-shadow: 0 0 0 100vmax var(--mg-bg); clip-path: inset(0 -100vmax); color: #fff; }
#top.ipistis-ui .mg-band .mg-section { margin-top: 0; }
#top.ipistis-ui .mg-band--dark { --mg-bg: var(--ip-ink); }
#top.ipistis-ui .mg-band--spot { --mg-bg: var(--ip-brand-dark); padding: 48px 0; }
#top.ipistis-ui .mg-band .mg-head__title,
#top.ipistis-ui .mg-band .mg-item__title,
#top.ipistis-ui .mg-band .mg-item__title a { color: #fff; }
#top.ipistis-ui .mg-band .mg-head__link { color: #fff; }
#top.ipistis-ui .mg-band .mg-meta { color: #a9b5d1; }
#top.ipistis-ui .mg-band .mg-cat { color: #fff; }
#top.ipistis-ui .mg-band .mg-item:hover .mg-item__title a { color: var(--ip-accent); }
#top.ipistis-ui .mg-trend { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; }
#top.ipistis-ui .mg-trend__list { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
#top.ipistis-ui .mg-trend__list .mg-item { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
#top.ipistis-ui .mg-trend__list .mg-item:last-child { padding-bottom: 0; border-bottom: 0; }

/* latest stories */
#top.ipistis-ui .mg-latest__top { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 32px; }
#top.ipistis-ui .mg-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 360px; border-radius: 16px; background: var(--ip-surface); overflow: hidden; }
#top.ipistis-ui .mg-feature__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px; min-width: 0; }
#top.ipistis-ui .mg-feature__title { margin: 0; color: var(--ip-ink); font: 800 clamp(1.4rem, 2.3vw, 1.95rem)/1.18 var(--ip-font-ui); letter-spacing: -.02em; }
#top.ipistis-ui .mg-feature__title a { color: inherit; }
#top.ipistis-ui .mg-feature__excerpt { margin: 14px 0 18px; color: var(--ip-muted); font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#top.ipistis-ui .mg-feature__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--ip-brand); font-size: 14px; font-weight: 700; }
#top.ipistis-ui .mg-feature__more::after { content: ""; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
#top.ipistis-ui .mg-feature__media { position: relative; min-height: 260px; }
#top.ipistis-ui .mg-latest__side { display: flex; flex-direction: column; justify-content: space-between; }
#top.ipistis-ui .mg-latest__side .mg-item { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--ip-line); }
#top.ipistis-ui .mg-latest__side .mg-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#top.ipistis-ui .mg-latest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--ip-line); }

/* spotlight band */
#top.ipistis-ui .mg-spot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
#top.ipistis-ui .mg-spot__item { display: flex; align-items: center; gap: 18px; }
#top.ipistis-ui .mg-spot__thumb { position: relative; flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
#top.ipistis-ui .mg-spot__body { min-width: 0; }
#top.ipistis-ui .mg-spot__title { margin: 0; color: #fff; font: 700 1.05rem/1.35 var(--ip-font-ui); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#top.ipistis-ui .mg-spot__title a { color: #fff; }
#top.ipistis-ui .mg-spot .mg-cat::before { background: var(--ip-accent); }

/* category section: rows + aside */
#top.ipistis-ui .mg-catsec__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
#top.ipistis-ui .mg-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: center; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--ip-line); }
#top.ipistis-ui .mg-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#top.ipistis-ui .mg-row__thumb { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--ip-surface); }
#top.ipistis-ui .mg-row__title { margin: 0 0 8px; color: var(--ip-ink); font: 800 1.3rem/1.28 var(--ip-font-ui); letter-spacing: -.012em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#top.ipistis-ui .mg-row__title a { color: inherit; transition: color .15s; }
#top.ipistis-ui .mg-row:hover .mg-row__title a { color: var(--ip-brand); }
#top.ipistis-ui .mg-row__excerpt { margin: 0; color: var(--ip-muted); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

#top.ipistis-ui .mg-aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
#top.ipistis-ui .mg-aside__box { margin: 0; padding: 22px; border: 1px solid var(--ip-line); border-radius: 14px; background: var(--ip-white); }
#top.ipistis-ui .mg-aside__title { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ip-line); font: 800 1.05rem/1.3 var(--ip-font-ui); position: relative; }
#top.ipistis-ui .mg-aside__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 3px; background: var(--ip-brand); }
#top.ipistis-ui .mg-aside ul { margin: 0; padding: 0; list-style: none; }
#top.ipistis-ui .mg-aside__cats li { margin: 0 0 8px; padding: 0; }
#top.ipistis-ui .mg-aside__cats li:last-child { margin-bottom: 0; }
#top.ipistis-ui .mg-aside__cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 8px; background: var(--ip-surface); color: var(--ip-ink); font: 700 14px/1.3 var(--ip-font-ui); transition: background-color .15s, color .15s; }
#top.ipistis-ui .mg-aside__cats a:hover { background: var(--ip-brand); color: #fff; }
#top.ipistis-ui .mg-aside__n { color: var(--ip-muted); font-weight: 600; font-size: 13px; }
#top.ipistis-ui .mg-aside__cats a:hover .mg-aside__n { color: #fff; }
#top.ipistis-ui .mg-aside__posts { display: flex; flex-direction: column; gap: 18px; }
#top.ipistis-ui .mg-aside__posts .mg-item { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
#top.ipistis-ui .mg-aside__posts .mg-item__title { font-size: 14px; -webkit-line-clamp: 2; }
#top.ipistis-ui .mg-aside__social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#top.ipistis-ui .mg-aside__social li { margin: 0; padding: 0; }
#top.ipistis-ui .mg-aside__social a { display: block; padding: 12px 10px; border-radius: 8px; background: var(--ip-ink); color: #fff; font: 700 13.5px var(--ip-font-ui); text-align: center; transition: background-color .15s; }
#top.ipistis-ui .mg-aside__social a:hover { background: var(--ip-brand); color: #fff; }

/* highlights + category mosaic */
#top.ipistis-ui .mg-highlights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mg-gap); }
#top.ipistis-ui .mg-highlights .mg-overlay { min-height: 420px; }
#top.ipistis-ui .mg-catmos__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
#top.ipistis-ui .mg-catmos__big .mg-overlay { min-height: 100%; }
#top.ipistis-ui .mg-catmos__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; align-content: start; }
#top.ipistis-ui .mg-catmos__list .mg-item { grid-template-columns: 84px minmax(0, 1fr); }

/* newsletter + browse more */
#top.ipistis-ui .mg-news { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 88px; padding: 48px 56px; border-radius: 20px; background: linear-gradient(135deg, var(--ip-ink), #16307a); color: #fff; }
#top.ipistis-ui .mg-news h2 { margin: 0 0 6px; color: #fff; font-size: 1.8rem; font-weight: 800; }
#top.ipistis-ui .mg-news p { margin: 0; color: #c4cde3; }
#top.ipistis-ui .mg-news__form { display: flex; flex-wrap: wrap; gap: 10px; }
#top.ipistis-ui .mg-news__form input[type="email"] { width: 300px; max-width: 100%; height: 50px; padding: 0 18px; border: 0; border-radius: 10px; background: #fff; color: var(--ip-ink); font: 500 15px var(--ip-font-ui); }
#top.ipistis-ui .mg-more { margin: 64px 0 0; text-align: center; }

/* responsive */
@media only screen and (max-width: 1099px) {
	#top.ipistis-ui .mg-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	#top.ipistis-ui .mg-mosaic__center { grid-column: 1 / -1; order: -1; }
	#top.ipistis-ui .mg-overlay--hero { min-height: 460px; }
	#top.ipistis-ui .mg-catsec__grid { grid-template-columns: minmax(0, 1fr); }
	#top.ipistis-ui .mg-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media only screen and (max-width: 899px) {
	#top.ipistis-ui .mg-trend,
	#top.ipistis-ui .mg-latest__top,
	#top.ipistis-ui .mg-catmos__grid { grid-template-columns: minmax(0, 1fr); }
	#top.ipistis-ui .mg-feature { grid-template-columns: minmax(0, 1fr); }
	#top.ipistis-ui .mg-feature__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
	#top.ipistis-ui .mg-latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#top.ipistis-ui .mg-spot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	#top.ipistis-ui .mg-highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#top.ipistis-ui .mg-catmos__big .mg-overlay { min-height: 420px; }
}

@media only screen and (max-width: 639px) {
	#top.ipistis-ui .mg-section { margin-top: 56px; }
	#top.ipistis-ui .mg-band { margin-top: 64px; padding: 40px 0 44px; }
	#top.ipistis-ui .mg-strip .ip-search { flex: 1 1 100%; max-width: none; }
	#top.ipistis-ui .mg-mosaic { grid-template-columns: minmax(0, 1fr); }
	#top.ipistis-ui .mg-overlay--hero { min-height: 400px; }
	#top.ipistis-ui .mg-overlay__body { padding: 20px; }
	#top.ipistis-ui .mg-head__title { font-size: 1.4rem; }
	#top.ipistis-ui .mg-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	#top.ipistis-ui .mg-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	#top.ipistis-ui .mg-latest__grid,
	#top.ipistis-ui .mg-highlights__grid,
	#top.ipistis-ui .mg-catmos__list { grid-template-columns: minmax(0, 1fr); }
	#top.ipistis-ui .mg-highlights .mg-overlay { min-height: 340px; }
	#top.ipistis-ui .mg-feature__body { padding: 24px; }
	#top.ipistis-ui .mg-news { padding: 32px 24px; }
	#top.ipistis-ui .mg-news__form { width: 100%; }
	#top.ipistis-ui .mg-news__form input[type="email"] { width: 100%; }
	#top.ipistis-ui .mg-news__form .ip-btn { width: 100%; }
}

#top.ipistis-ui .mg-item__title,
#top.ipistis-ui .mg-row__title,
#top.ipistis-ui .mg-spot__title,
#top.ipistis-ui .mg-cat-card__name { text-wrap: wrap; }


/* 27 ─ Top bar vs Enfold's fixed sticky header (v1.3.1) ──────────────────────────────── */
/* Enfold's sticky header is position:fixed without a top value. The top bar scrolls away with the page, so
   js/ipistis-blog.js writes the remaining bar height into --ip-tb and the header follows it (only when the header is fixed). */
#top.ipistis-ui .ip-topbar { height: 38px; box-sizing: border-box; position: relative; z-index: 502; }
html.ip-hdr-fixed #top.ipistis-ui #wrap_all #header { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ip-tb, 0px)); }
@media only screen and (max-width: 767px) { #top.ipistis-ui .ip-topbar { display: none; } }


/* 28 ─ Layout fixes against Enfold's own sidebar rules (v1.3.1) ──────────────────────── */
#top.ipistis-ui #main .ip-container .content,
#top.ipistis-ui #main .ip-container .content.units { border: 0 !important; margin-right: 0; }
#top.ipistis-ui #main .ip-container .sidebar,
#top.ipistis-ui #main .sidebar_right .sidebar,
#top.ipistis-ui #main .sidebar_left .sidebar { border: 0 !important; }

/* sidebar sits under the content on tablets and phones instead of squeezing into a narrow column */
@media only screen and (max-width: 989px) {
	#top.ipistis-ui #main .ip-container .content,
	#top.ipistis-ui #main .ip-container .sidebar { float: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
	#top.ipistis-ui #main .ip-container .sidebar .inner_sidebar { margin: 0; padding: 0; }
	#top.ipistis-ui #main .ip-container .sidebar { padding-top: 8px; }
}

/* the top strip search never overflows narrow phones */
@media only screen and (max-width: 360px) {
	#top.ipistis-ui .mg-strip .ip-search #searchform .ip-search__btn { width: 42px; padding: 0; }
	#top.ipistis-ui .mg-strip .ip-search #searchform .ip-search__label { display: none; }
	#top.ipistis-ui .mg-strip .ip-search #searchform .ip-search__icon { margin-left: 8px; }
}

/* content padding must win over Enfold's .content padding rules */
#top.ipistis-ui #main .ip-container { --ip-pt: 56px; --ip-pb: 72px; }
#top.ipistis-ui #main .ip-container.template-single-blog { --ip-pt: 0px; }
#top.ipistis-ui #main .ip-container .content { padding-top: var(--ip-pt) !important; padding-bottom: var(--ip-pb) !important; }
@media only screen and (max-width: 767px) {
	#top.ipistis-ui #main .ip-container { --ip-pt: 32px; --ip-pb: 48px; }
	#top.ipistis-ui #main .ip-container.template-single-blog { --ip-pt: 0px; }
}

/* Enfold gives .units "display:inline"; the float hides it on desktop but on tablets/phones (float:none) vertical
   padding of an inline element does nothing, so the content collapsed against the header. Make the columns blocks. */
#top.ipistis-ui #main .ip-container .content,
#top.ipistis-ui #main .ip-container .sidebar { display: block; box-sizing: border-box; }

@media only screen and (max-width: 479px) {
	#top.ipistis-ui .ip-posthero__title { font-size: 1.85rem; margin-bottom: 22px; }
	#top.ipistis-ui .ip-hero__title { font-size: 2.1rem; }
	#top.ipistis-ui .mg-overlay--hero .mg-overlay__title { font-size: 1.55rem; }
}


/* 29 ─ Comments, rebuilt on top of Enfold's comment markup (v1.4) ────────────────────── */
#top.ipistis-ui #main .comment-entry { max-width: var(--ip-layout); margin: 72px 0 0; padding: 0; border: 0; clear: both; }
#top.ipistis-ui #main .comment-entry .comment_container { max-width: 100%; margin: 0; padding: 0; }

/* heading: "Replies [0] ───────" */
#top.ipistis-ui #main .comment-entry .comment_meta_container { float: none; clear: both; margin: 0 0 28px; padding: 0; }
#top.ipistis-ui #main .comment-entry .side-container-comment { float: none; width: auto; position: static; margin: 0; padding: 0; border: 0; background: none; }
#top.ipistis-ui #main .comment-entry .side-container-comment-inner { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; text-align: left; overflow: visible; }
#top.ipistis-ui #main .comment-entry .side-container-comment-inner .comment-text { order: 1; display: block; padding: 0; color: var(--ip-ink); font: 800 1.6rem/1.2 var(--ip-font-ui); letter-spacing: -.02em; text-transform: capitalize; }
#top.ipistis-ui #main .comment-entry .comment-count { order: 2; position: static; display: inline-block; width: auto; min-width: 38px; height: 38px; margin: 0; padding: 0 12px; border-radius: 8px; background: var(--ip-brand-tint); color: var(--ip-brand-dark); font: 800 1rem/38px var(--ip-font-ui); text-align: center; box-sizing: border-box; }
#top.ipistis-ui #main .comment-entry .center-border { display: none; }
#top.ipistis-ui #main .comment-entry .side-container-comment-inner::after { content: ""; order: 3; flex: 1; border-top: 1px solid var(--ip-line); }

/* list */
#top.ipistis-ui #main .comment-entry .commentlist { margin: 0 0 48px; padding: 0; border: 0; list-style: none; }
#top.ipistis-ui #main .comment-entry .commentlist li { list-style: none; }
#top.ipistis-ui #main .comment-entry .commentlist > li.comment { float: none; display: block; width: 100%; min-height: 0; margin: 0; padding: 26px 0; border: 0; border-bottom: 1px solid var(--ip-line); }
#top.ipistis-ui #main .comment-entry .commentlist > li.comment:first-child { padding-top: 0; }
#top.ipistis-ui #main .comment-entry .commentlist li.comment > div { float: none; width: auto; min-height: 0; }
#top.ipistis-ui #main .comment-entry .commentlist article { display: flex; align-items: flex-start; gap: 18px; margin: 0; padding: 0; }
#top.ipistis-ui #main .comment-entry .commentlist .gravatar { float: none; position: static; flex: 0 0 52px; width: auto; left: auto; margin: 0; border-radius: 50%; }
#top.ipistis-ui #main .comment-entry .commentlist .gravatar img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
#top.ipistis-ui #main .comment-entry .commentlist .comment_content { flex: 1; min-width: 0; margin: 0; padding: 0; overflow: visible; z-index: auto; }
#top.ipistis-ui #main .comment-entry .commentlist .comment-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 8px; }
#top.ipistis-ui #main .comment-entry .commentlist .author_name,
#top.ipistis-ui #main .comment-entry .commentlist .author_name a,
#top.ipistis-ui #main .comment-entry .commentlist cite { color: var(--ip-ink); font: 700 16px/1.3 var(--ip-font-ui); font-style: normal; letter-spacing: 0; text-decoration: none; }
#top.ipistis-ui #main .comment-entry .commentlist .says { display: none; }
#top.ipistis-ui #main .comment-entry .commentlist .commentmetadata { margin: 0; font: 500 13px/1.4 var(--ip-font-ui); color: var(--ip-muted); }
#top.ipistis-ui #main .comment-entry .commentlist .commentmetadata a { color: var(--ip-muted); text-decoration: none; }
#top.ipistis-ui #main .comment-entry .commentlist .comment_text { padding: 0; font: 400 16px/1.65 var(--ip-font-ui); color: var(--ip-text); overflow-wrap: anywhere; }
#top.ipistis-ui #main .comment-entry .commentlist .comment_text p { margin: 0 0 .8em; }
#top.ipistis-ui #main .comment-entry .commentlist .comment-reply-link { position: static; display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 6px; background: var(--ip-surface); color: var(--ip-ink); font: 700 13px/1.2 var(--ip-font-ui); text-decoration: none; transition: background-color .15s, color .15s; }
#top.ipistis-ui #main .comment-entry .commentlist .comment-reply-link:hover { background: var(--ip-brand); color: #fff; }
#top.ipistis-ui #main .comment-entry .commentlist ul,
#top.ipistis-ui #main .comment-entry .commentlist .children { margin: 22px 0 0; padding: 0 0 0 28px; border: 0; border-left: 2px solid var(--ip-line); list-style: none; }
#top.ipistis-ui #main .comment-entry .commentlist .children li.comment { float: none; width: auto; margin: 0 0 22px; padding: 0; border: 0; min-height: 0; }
#top.ipistis-ui #main .comment-entry .commentlist .children li.comment:last-child { margin-bottom: 0; }
#top.ipistis-ui #main .comment-entry .commentlist .children .gravatar { position: static; left: auto; width: auto; flex-basis: 40px; }
#top.ipistis-ui #main .comment-entry .commentlist .children .gravatar img { width: 40px; height: 40px; }
#top.ipistis-ui #main .comment-entry .commentlist .children .comment_content { margin: 0; padding: 0; }
#top.ipistis-ui #main .comment-entry .commentlist .children .comment-reply-link { left: auto; top: auto; }
#top.ipistis-ui #main .comment-entry .comment_page_nav_links { display: flex; justify-content: space-between; margin: 0 0 24px; font: 700 14px var(--ip-font-ui); }

/* "Leave a Reply" */
#top.ipistis-ui #main .comment-entry .miniheading { display: block; margin: 0 0 8px; padding: 0; color: var(--ip-ink); font: 800 1.6rem/1.2 var(--ip-font-ui); letter-spacing: -.02em; text-transform: none; }
#top.ipistis-ui #main .comment-entry .minitext { display: block; margin: 0 0 20px; padding: 0; color: var(--ip-muted); font: 400 15.5px/1.6 var(--ip-font-ui); }

/* the form card */
#top.ipistis-ui #main .comment-entry #respond,
#top.ipistis-ui #main .comment-entry .comment-respond { margin: 0; padding: 32px; border: 0; border-radius: 16px; background: var(--ip-surface); }
#top.ipistis-ui #main .comment-entry #reply-title { display: none; }
#top.ipistis-ui #main .comment-entry .commentlist #reply-title { display: block; margin: 0 0 14px; font: 800 1.2rem var(--ip-font-ui); }
#top.ipistis-ui #main .comment-entry #commentform { position: static; margin: 0; }
#top.ipistis-ui #main .comment-entry #commentform p { position: static; margin: 0 0 18px; padding: 0; }
#top.ipistis-ui #main .comment-entry #commentform .comment-notes,
#top.ipistis-ui #main .comment-entry #commentform .logged-in-as { display: block; margin: 0 0 20px; padding: 0; color: var(--ip-muted); font: 500 14.5px/1.6 var(--ip-font-ui); letter-spacing: 0; text-transform: none; }
#top.ipistis-ui #main .comment-entry #commentform .logged-in-as a { color: var(--ip-brand); font-weight: 600; }
#top.ipistis-ui #main .comment-entry #commentform .required,
#top.ipistis-ui #main .comment-entry #commentform .required-field-message { color: var(--ip-ink); }

/* labels sit above the field (Enfold positions them absolutely at left:245px) */
#top.ipistis-ui #main .comment-entry #commentform label { position: static !important; left: auto !important; top: auto; display: block; margin: 0 0 8px; padding: 0; color: var(--ip-ink); font: 700 14px/1.3 var(--ip-font-ui); letter-spacing: 0; text-transform: none; }
#top.ipistis-ui #main .comment-entry #commentform .comment-form-comment label { display: block; }

#top.ipistis-ui #main .comment-entry #commentform input[type="text"],
#top.ipistis-ui #main .comment-entry #commentform input[type="email"],
#top.ipistis-ui #main .comment-entry #commentform input[type="url"],
#top.ipistis-ui #main .comment-entry #commentform textarea,
#top.ipistis-ui #main .comment-entry #commentform #comment { display: block; width: 100% !important; max-width: 100%; margin: 0; padding: 14px 16px; border: 1px solid var(--ip-line); border-radius: 10px; background: #fff; color: var(--ip-ink); font: 500 16px/1.5 var(--ip-font-ui); box-sizing: border-box; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
#top.ipistis-ui #main .comment-entry #commentform textarea,
#top.ipistis-ui #main .comment-entry #commentform #comment { height: auto; min-height: 170px; resize: vertical; }
#top.ipistis-ui #main .comment-entry #commentform input:focus,
#top.ipistis-ui #main .comment-entry #commentform textarea:focus { outline: 0; border-color: var(--ip-brand); box-shadow: 0 0 0 4px rgba(36, 87, 245, .15); }

/* name / email / website in one row on wide screens */
#top.ipistis-ui #main .comment-entry #commentform .personal_data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; }
#top.ipistis-ui #main .comment-entry #commentform .personal_data p { float: none; width: auto; margin: 0; }
#top.ipistis-ui #main .comment-entry #commentform .personal_data label { display: block; }

#top.ipistis-ui #main .comment-entry #commentform .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
#top.ipistis-ui #main .comment-entry #commentform .comment-form-cookies-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; }
#top.ipistis-ui #main .comment-entry #commentform .comment-form-cookies-consent label { margin: 0; font-weight: 500; }
#top.ipistis-ui #main .comment-entry #commentform .g-recaptcha,
#top.ipistis-ui #main .comment-entry #commentform .grecaptcha-badge,
#top.ipistis-ui #main .comment-entry #commentform [class*="recaptcha"] { max-width: 100%; margin: 0 0 18px; }
#top.ipistis-ui #main .comment-entry #commentform .form-submit { margin: 0; }
#top.ipistis-ui #main .comment-entry #commentform input[type="submit"],
#top.ipistis-ui #main .comment-entry #commentform .submit { display: inline-flex; align-items: center; width: auto; min-width: 0; height: 50px; margin: 0; padding: 0 30px; border: 0; border-radius: 9px; background: var(--ip-brand); color: #fff; font: 700 15px/1 var(--ip-font-ui); cursor: pointer; transition: background-color .15s; }
#top.ipistis-ui #main .comment-entry #commentform input[type="submit"]:hover { background: var(--ip-brand-dark); }

@media only screen and (max-width: 767px) {
	#top.ipistis-ui #main .comment-entry { margin-top: 48px; }
	#top.ipistis-ui #main .comment-entry #respond,
	#top.ipistis-ui #main .comment-entry .comment-respond { padding: 22px 18px; }
	#top.ipistis-ui #main .comment-entry #commentform .personal_data { grid-template-columns: minmax(0, 1fr); }
	#top.ipistis-ui #main .comment-entry .commentlist .gravatar { flex-basis: 40px; }
	#top.ipistis-ui #main .comment-entry .commentlist .gravatar img { width: 40px; height: 40px; }
	#top.ipistis-ui #main .comment-entry .commentlist .children { padding-left: 14px; }
	#top.ipistis-ui #main .comment-entry #commentform input[type="submit"] { width: 100%; justify-content: center; }
}

@media only screen and (max-width: 380px) {
	#top.ipistis-ui #main .comment-entry #commentform .g-recaptcha { transform: scale(.84); transform-origin: 0 0; margin-bottom: 4px; }
}
