/*
 * BellCrier look for the Academy (matches bellcrier.com).
 *
 * Loads after style.css. Dark is the default; html[data-theme="light"]
 * switches the whole site to the light palette (chosen in the account menu,
 * kept in localStorage "bc_theme").
 *
 * The original theme reads its colours from --color-* variables, so those
 * are remapped here to the BellCrier palette; everything else below is the
 * new header, cards, article layout and footer.
 */

/* ---------- Palette ---------- */
:root {
	color-scheme: dark;
	--ac-page: #0B1220;
	--ac-band: #0E1627;
	--ac-card: #111A2B;
	--ac-raised: #172236;
	--ac-line: #22304A;
	--ac-line-strong: #2E3D59;
	--ac-text-strong: #FCFCFD;
	--ac-text: #E2E8F0;
	--ac-text-2: #AAB6C8;
	--ac-text-3: #8C99AD;
	--ac-accent: #3B82F6;
	--ac-accent-text: #6BA0F8;
	--ac-accent-soft: rgba(59, 130, 246, 0.12);
	--ac-header: #05070C;
	--ac-header-line: rgba(252, 252, 253, 0.07);
	--ac-header-link: #CBD5E1;
	--ac-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.6);
	--ac-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ac-font-heading: "Russo One", "Inter", system-ui, sans-serif;

	/* The original theme's variables, pointed at the palette above. */
	--color-bg-deep: var(--ac-page);
	--color-surface: var(--ac-card);
	--color-surface-hover: var(--ac-raised);
	--color-accent: var(--ac-accent-text);
	--color-accent-hover: #9CBFFA;
	--color-text: var(--ac-text-strong);
	--color-text-muted: var(--ac-text-2);
	--color-text-secondary: var(--ac-text);
	--color-text-soft: var(--ac-text-3);
	--color-border: var(--ac-line);
	--color-border-light: var(--ac-line-strong);
	--color-accent-light: var(--ac-accent-soft);
	--color-secondary: #316FD5;
	--color-secondary-dark: #255AAF;
	--gradient-brand: linear-gradient(135deg, #316FD5, #3B82F6);
	--shadow-post: none;
	--shadow-sidebar: none;
	--shadow-header: none;
	--shadow-footer: none;
}

:root[data-theme="light"] {
	color-scheme: light;
	--ac-page: #E8EDF3;
	--ac-band: #DFE5EE;
	--ac-card: #F3F5F8;
	--ac-raised: #E9EDF2;
	--ac-line: #D3DBE5;
	--ac-line-strong: #BFCAD8;
	--ac-text-strong: #0B1220;
	--ac-text: #172033;
	--ac-text-2: #445067;
	--ac-text-3: #5B687D;
	--ac-accent: #2563EB;
	--ac-accent-text: #1D4ED8;
	--ac-accent-soft: rgba(37, 99, 235, 0.10);
	--ac-header: #FCFCFD;
	--ac-header-line: #E2E8F0;
	--ac-header-link: #334155;
	--ac-shadow: 0 24px 50px -30px rgba(11, 18, 32, 0.30);
	--color-accent-hover: #1E3A8A;
	--color-secondary: #2563EB;
}

/* Checkboxes keep the white-inside look in both modes (as on bellcrier.com). */
input[type="checkbox"], input[type="radio"] { color-scheme: light; }

body { background: var(--ac-page) !important; color: var(--ac-text-2) !important; }
a { color: var(--ac-accent-text); }
a:hover { color: var(--color-accent-hover); }
.screen-reader-text.skip-link:focus {
	clip-path: none; width: auto; height: auto; margin: 0; padding: 10px 14px; z-index: 2000; top: 8px; left: 8px;
	background: var(--ac-card); color: var(--ac-text-strong); border-radius: 8px;
}

/* ---------- Header: one bar, same height as bellcrier.com ---------- */
.ac-header {
	position: sticky; top: 0; z-index: 1000;
	background: var(--ac-header); border-bottom: 1px solid var(--ac-header-line);
	font-family: var(--ac-font-body);
}
.ac-header__inner {
	max-width: 1600px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 28px);
	min-height: 62px; display: flex; align-items: center; gap: 18px;
}
.ac-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.ac-brand__logo { display: block; width: clamp(150px, 13vw, 190px); height: auto; }
.ac-logo-light { display: none; }
:root[data-theme="light"] .ac-logo-light { display: block; }
:root[data-theme="light"] .ac-logo-dark { display: none; }
.ac-brand__tag {
	font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--ac-accent-text); background: var(--ac-accent-soft); border: 1px solid rgba(59, 130, 246, 0.35);
	padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}

.ac-panel { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ac-nav { flex: 0 1 auto; }
.ac-nav__list, .ac-nav ul.ac-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; justify-content: flex-start; }
.ac-nav__item, .ac-nav__list > .menu-item { position: relative; margin: 0; background: none; border-radius: 0; }
.ac-nav__link, .ac-nav__list > .menu-item > a {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px;
	background: transparent; color: var(--ac-header-link) !important; font: 600 15px/1.2 var(--ac-font-body);
	cursor: pointer; white-space: nowrap; text-decoration: none;
}
.ac-nav__link:hover, .ac-nav__list > .menu-item > a:hover, .has-drop.is-open > .ac-nav__link, .ac-nav__link.is-current {
	color: var(--ac-accent-text) !important; background: var(--ac-accent-soft);
}
.ac-nav__link .ac-ico--chevron { width: 14px; height: 14px; transition: transform 0.2s ease; }
.has-drop.is-open > .ac-nav__link .ac-ico--chevron { transform: rotate(180deg); }

/* Dropdown panels */
.ac-drop, .ac-account__menu {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; min-width: 270px;
	background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 14px;
	box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55); padding: 10px;
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
:root[data-theme="light"] .ac-drop, :root[data-theme="light"] .ac-account__menu { box-shadow: 0 24px 48px -20px rgba(11, 18, 32, 0.28); }
/* Invisible bridge so moving the mouse to the panel doesn't close it. */
.ac-drop::before, .ac-account__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.is-open > .ac-drop, .ac-account.is-open > .ac-account__menu { opacity: 1; visibility: visible; transform: none; }
.ac-drop ul, .ac-account__menu ul { display: block; margin: 0; padding: 0; list-style: none; }
.ac-drop li, .ac-account__menu li { margin: 0; background: none; }
.ac-drop__head, .ac-account__label {
	margin: 4px 10px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-text-3);
}
.ac-drop a, .ac-account__menu a {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
	color: var(--ac-text) !important; font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.ac-drop a:hover, .ac-account__menu a:hover { background: var(--ac-raised); color: var(--ac-accent-text) !important; }
.ac-drop a .ac-ico { flex-shrink: 0; color: var(--ac-accent-text); }
.ac-drop a strong { display: block; font-weight: 700; color: var(--ac-text-strong); }
.ac-drop a:hover strong { color: var(--ac-accent-text); }
.ac-drop a small { display: block; font-size: 12.5px; color: var(--ac-text-3); }

.ac-drop--mega {
	display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 4px 14px;
	width: min(820px, calc(100vw - 40px)); padding: 16px;
}
.ac-drop--mega .ac-drop__col { min-width: 0; }
.ac-drop--mega a { padding: 5px 10px; font-size: 14px; }

/* Search: compact, grows a little when used */
.ac-search { flex: 1 1 200px; max-width: 320px; margin-left: auto; }
.ac-search .search-form {
	display: flex; width: 100%; height: 40px; border: 1px solid var(--ac-line); border-radius: 10px;
	background: color-mix(in srgb, var(--ac-page) 70%, transparent); overflow: hidden;
}
.ac-search .search-form:focus-within { border-color: rgba(59, 130, 246, 0.55); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14); }
.ac-search .search-form label { flex: 1; display: flex; min-width: 0; }
.ac-search .search-field {
	width: 100%; min-height: 0; height: 100%; padding: 0 12px; border: 0; background: transparent;
	color: var(--ac-text-strong); font: 400 14.5px var(--ac-font-body); outline: none;
}
.ac-search .search-field::placeholder { color: var(--ac-text-3); }
.ac-search .search-submit {
	padding: 0 12px; border: 0; border-left: 1px solid var(--ac-line); background: transparent;
	color: var(--ac-text-2); font: 600 13.5px var(--ac-font-body); cursor: pointer;
}
.ac-search .search-submit:hover { color: var(--ac-accent-text); background: var(--ac-accent-soft); }

.ac-cta {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 16px; border-radius: 10px;
	background: linear-gradient(135deg, #316FD5, #3B82F6); color: #FCFCFD !important;
	font: 700 14.5px var(--ac-font-body); text-decoration: none; white-space: nowrap;
	box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.55); transition: transform 0.2s ease, filter 0.2s ease;
}
.ac-cta:hover { transform: translateY(-1px); filter: brightness(1.08); color: #FCFCFD !important; }
.ac-cta .ac-ico { width: 16px; height: 16px; }

/* Account menu (user icon), like bellcrier.com */
.ac-account { position: relative; flex-shrink: 0; }
.ac-account__toggle {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; border: 0; background: transparent;
	color: var(--ac-header-link); cursor: pointer; border-radius: 8px;
}
.ac-account__toggle .ac-ico--user { width: 28px; height: 28px; stroke-width: 1.6; }
.ac-account__toggle .ac-ico--chevron { width: 14px; height: 14px; transition: transform 0.2s ease; }
.ac-account__toggle:hover, .ac-account.is-open .ac-account__toggle { color: var(--ac-accent-text); }
.ac-account.is-open .ac-account__toggle .ac-ico--chevron { transform: rotate(180deg); }
.ac-account__toggle:focus-visible, .ac-nav__link:focus-visible, .ac-burger:focus-visible { outline: 2px solid #6BA0F8; outline-offset: 2px; }
.ac-account__menu { left: auto; right: 0; width: 280px; }
.ac-account__menu ul { padding: 4px 0; border-top: 1px solid var(--ac-line); }
.ac-account__menu ul:first-child { border-top: 0; }
.ac-account__label { margin-top: 10px; }
.ac-account__menu .ac-account__label:first-child { margin-top: 4px; }
.ac-account__menu a .ac-ico { width: 17px; height: 17px; color: var(--ac-text-3); }
.ac-account__menu a.is-strong { font-weight: 700; color: var(--ac-text-strong) !important; }
.ac-account__menu a.is-danger:hover { color: #F87171 !important; }
.ac-account__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 10px; color: var(--ac-text-strong); font-weight: 700; font-size: 14px; }
.ac-account__badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ac-accent-text); background: var(--ac-accent-soft); padding: 2px 8px; border-radius: 999px; }
.ac-theme { padding: 2px 0 6px; border-top: 1px solid var(--ac-line); }
.ac-theme__options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 6px; padding: 4px; border-radius: 10px; background: var(--ac-page); border: 1px solid var(--ac-line); }
.ac-theme__options button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border: 0; border-radius: 7px;
	background: transparent; color: var(--ac-text-2); font: 600 13px var(--ac-font-body); cursor: pointer;
}
.ac-theme__options button .ac-ico { width: 15px; height: 15px; }
.ac-theme__options button[aria-pressed="true"] { background: var(--ac-card); color: var(--ac-accent-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }

/* Burger (tablets and phones) */
.ac-burger { display: none; margin-left: auto; width: 42px; height: 42px; padding: 0; border: 1px solid var(--ac-line); border-radius: 10px; background: transparent; color: var(--ac-text-strong); cursor: pointer; align-items: center; justify-content: center; }
.ac-burger__bars, .ac-burger__bars::before, .ac-burger__bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, background 0.2s ease; }
.ac-burger__bars { position: relative; }
.ac-burger__bars::before, .ac-burger__bars::after { content: ""; position: absolute; left: 0; }
.ac-burger__bars::before { top: -6px; }
.ac-burger__bars::after { top: 6px; }
.is-open .ac-burger__bars { background: transparent; }
.is-open .ac-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .ac-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1280px) {
	.ac-cta { padding: 10px 12px; }
	.ac-cta span, .ac-cta { font-size: 13.5px; }
	.ac-search { max-width: 240px; }
}
@media (max-width: 1099px) {
	.ac-burger { display: inline-flex; }
	.ac-header__inner { flex-wrap: wrap; row-gap: 0; }
	.ac-panel {
		display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 12px;
		padding: 6px 0 16px; border-top: 1px solid var(--ac-header-line); max-height: calc(100vh - 62px); overflow-y: auto;
	}
	.ac-header.is-open .ac-panel { display: flex; }
	.ac-nav__list, .ac-nav ul.ac-nav__list { flex-direction: column; align-items: stretch; }
	.ac-nav__link, .ac-nav__list > .menu-item > a { width: 100%; justify-content: space-between; padding: 12px; }
	.ac-drop, .ac-account__menu {
		position: static; display: none; opacity: 1; visibility: visible; transform: none; width: auto; min-width: 0;
		box-shadow: none; margin: 2px 0 6px; background: var(--ac-card);
	}
	.is-open > .ac-drop { display: block; }
	.ac-drop--mega { grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; }
	.ac-search { flex: 0 0 auto; max-width: none; margin: 0; order: -1; }
	.ac-cta { justify-content: center; }
	/* In the menu panel the account links are simply shown. */
	.ac-account__toggle { display: none; }
	.ac-account__menu { display: block; width: auto; }
}
@media (max-width: 520px) {
	.ac-drop--mega { grid-template-columns: 1fr; }
	.ac-brand__logo { width: 140px; }
}

/* ---------- Layout, sidebars ---------- */
/* Three columns with fixed sidebars: the right one fits 300px-wide banners
   (300 + 2 x 18 padding + 1px border), the left one fits long category names. The middle
   column takes the rest. Tablets drop the left sidebar; phones stack. */
.container-fluid { max-width: 1600px; }
.container-fluid > .row { display: grid; grid-template-columns: 270px minmax(0, 1fr) 337px; align-items: start; }
.container-fluid > .row > .left-sidebar,
.container-fluid > .row > .center-content,
.container-fluid > .row > .right-sidebar { width: auto; max-width: none; flex: none; }
.center-content { padding: clamp(18px, 2vw, 28px); }
.single .center-content { padding-left: clamp(14px, 1.4vw, 20px); padding-right: clamp(14px, 1.4vw, 20px); }
.left-sidebar, .right-sidebar { background: transparent; box-shadow: none; padding: 24px 18px; align-self: stretch; }
.right-sidebar .widget img, .right-sidebar .custom-html-widget img { display: block; width: 100%; max-width: 300px; height: auto; }
@media (max-width: 1279px) {
	.container-fluid > .row { grid-template-columns: minmax(0, 1fr) 337px; }
	.container-fluid > .row > .left-sidebar { display: none; }
}
@media (max-width: 959px) {
	.container-fluid > .row { grid-template-columns: minmax(0, 1fr); }
	.right-sidebar { border-left: 0; border-top: 1px solid var(--ac-line); }
	.right-sidebar .widget img, .right-sidebar .custom-html-widget img { margin: 0 auto; }
}
.left-sidebar { border-right: 1px solid var(--ac-line); }
.right-sidebar { border-left: 1px solid var(--ac-line); }
.sidebar li a { color: var(--ac-text) !important; font-weight: 500; font-size: 14.5px; padding: 6px 10px; border-radius: 8px; }
.categories-menu li a:hover { background: var(--ac-raised); color: var(--ac-accent-text) !important; }
.categories-menu .current-menu-item > a, .sidebar .current-menu-item > a { background: var(--ac-accent-soft); color: var(--ac-accent-text) !important; }
.current-menu-item { background: none; }
.category-header > a:first-of-type, .sidebar .category-header > a {
	font-family: var(--ac-font-body) !important; font-size: 12px !important; font-weight: 800 !important;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-text-3) !important;
}
.widget-title, .right-sidebar h2, .right-sidebar .wp-block-heading {
	font-family: var(--ac-font-body) !important; font-size: 12px !important; font-weight: 800 !important;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-text-3) !important; margin: 0 0 10px;
}
.right-sidebar .widget { margin-bottom: 26px; }
.right-sidebar ul li { margin: 0 0 2px; }
.right-sidebar ul li a { display: block; padding: 5px 8px; line-height: 1.4; }
.right-sidebar .tagcloud a { display: inline-block; padding: 3px 9px; margin: 0 4px 6px 0; border-radius: 999px; background: var(--ac-card); border: 1px solid var(--ac-line); font-size: 13px !important; color: var(--ac-text) !important; }
.right-sidebar .tagcloud a:hover { border-color: var(--ac-accent); color: var(--ac-accent-text) !important; }
.right-sidebar img { border-radius: 10px; }

/* ---------- Homepage intro: one compact strip ---------- */
.home-intro-card {
	margin: 0 0 22px; border-radius: 16px; text-align: left; border: 1px solid var(--ac-line);
	background: radial-gradient(600px 220px at 100% 0%, rgba(59, 130, 246, 0.16), transparent 70%), var(--ac-card);
	box-shadow: none;
}
.home-intro-card::before { display: none; }
.home-intro-card__inner, .home-intro-card .home-intro-card__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
	padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 30px);
}
.home-intro-card__copy { flex: 1 1 380px; min-width: 0; }
.home-intro-card__eyebrow {
	display: block; margin: 0 0 6px; padding: 0; border: 0; background: none;
	font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ac-accent-text);
}
.home-intro-card__title, .home-intro-card .home-intro-card__title {
	margin: 0 0 6px; max-width: none; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--ac-text-strong);
}
.home-intro-card__title .gradient-text { background: linear-gradient(90deg, #6BA0F8, #3B82F6); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .home-intro-card__title .gradient-text { background: linear-gradient(90deg, #1D4ED8, #2563EB); -webkit-background-clip: text; background-clip: text; }
.home-intro-card__text, .home-intro-card .home-intro-card__text { margin: 0; padding: 0; max-width: 60ch; font-size: 15.5px; line-height: 1.55; color: var(--ac-text-2); }
.home-intro-card__cta {
	display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; text-decoration: none;
	background: var(--ac-page); border: 1px solid var(--ac-line); color: var(--ac-text-2) !important; font-size: 13.5px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.home-intro-card__cta strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ac-accent-text); font-size: 15.5px; }
.home-intro-card__cta strong .ac-ico { width: 16px; height: 16px; transition: transform 0.2s ease; }
.home-intro-card__cta:hover { border-color: var(--ac-accent); transform: translateY(-1px); }
.home-intro-card__cta:hover strong .ac-ico { transform: translateX(3px); }
@media (max-width: 640px) { .home-intro-card__cta { width: 100%; } }

/* ---------- Post cards (lists) ---------- */
.post {
	background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 14px; box-shadow: none;
	padding: 18px 20px; margin-bottom: 14px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.post:hover { border-color: rgba(59, 130, 246, 0.45); }
.post-thumbnail { flex: 0 0 64px; }
.post-thumbnail img { width: 64px; height: 64px; border-radius: 10px; }
.post-info h2 { font-size: 18px; line-height: 1.35; margin: 0; }
.post-info h2 a { color: var(--ac-text-strong); }
.post-info h2 a:hover { color: var(--ac-accent-text); }
.post-excerpt p { margin-top: 10px; color: var(--ac-text-2) !important; font-size: 15px; }
.post-tags .tag { background: var(--ac-raised); border: 1px solid var(--ac-line); font-size: 12.5px; }
.post-tags .tag a { color: var(--ac-text) !important; }
.star-meter { --star-on: #F59E0B; --star-off: color-mix(in srgb, var(--ac-text-3) 45%, transparent); }
.recent-posts-section__all { font-family: var(--ac-font-body); letter-spacing: 0.02em; text-transform: none; font-size: 14px; color: var(--ac-accent-text); }

/* ---------- Single post: no box, subtle breadcrumbs ---------- */
.ac-crumbs { margin: 0 0 14px; font-size: 13px; }
.ac-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.ac-crumbs li { display: inline-flex; align-items: center; color: var(--ac-text-3); }
.ac-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ac-line-strong); }
.ac-crumbs a { color: var(--ac-text-2); }
.ac-crumbs a:hover { color: var(--ac-accent-text); }
.ac-crumbs [aria-current] { max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ac-article { max-width: 840px; margin: 0 auto; padding: 4px 0 20px; background: none; box-shadow: none; border: 0; }
.ac-article .entry-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; color: var(--ac-text-strong); }
.ac-article .entry-title a { color: inherit; }
.ac-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; font-size: 14px; color: var(--ac-text-3); }
.ac-article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ac-article__meta .ac-ico { width: 15px; height: 15px; }
.ac-article__meta a { color: var(--ac-accent-text); font-weight: 600; }
.ac-article__head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--ac-line); }
.ac-article__image { margin: 0 0 24px; }
.ac-article__image img { width: 100%; height: auto; border-radius: 14px; display: block; }
.ac-article .entry-content { font-size: 17px; line-height: 1.75; color: var(--ac-text); }
.ac-article .entry-content p { color: var(--ac-text) !important; margin: 0 0 1.15em; }
.ac-article .entry-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 1.8em 0 0.6em; color: var(--ac-text-strong); }
.ac-article .entry-content h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 1.5em 0 0.5em; color: var(--ac-text-strong); }
.ac-article .entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.ac-article .entry-content img { border-radius: 12px; }
.ac-article .entry-content blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 3px solid var(--ac-accent); background: var(--ac-card); border-radius: 0 10px 10px 0; color: var(--ac-text); }
.ac-article .entry-content code { background: var(--ac-raised); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }

/* Category pages */
.ac-archive-head { margin: 0 0 18px; }
.ac-archive-head .category-title { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ac-text-strong); }
.ac-archive-head .category-description { margin: 0; color: var(--ac-text-2); }

/* Buttons from the original theme, in BellCrier blue */
.btn-primary, a.btn-primary, button.btn-primary { background: linear-gradient(135deg, #316FD5, #3B82F6); }
.btn-primary:hover, a.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(59, 130, 246, 0.6); }

/* ---------- Footer ---------- */
.ac-footer { margin-top: 20px; background: var(--ac-header); border-top: 1px solid var(--ac-header-line); color: var(--ac-text-2); font-family: var(--ac-font-body); }
.ac-footer__inner {
	max-width: 1600px; margin: 0 auto; padding: 36px clamp(16px, 2vw, 28px) 24px;
	display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 24px 40px;
}
.ac-footer__quote { margin: 12px 0 0; max-width: 42ch; font-style: italic; font-size: 14.5px; color: var(--ac-text-3); }
.ac-footer__head { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-text-3); }
.ac-footer ul { display: block; margin: 0; padding: 0; list-style: none; }
.ac-footer li { margin: 0 0 6px; }
.ac-footer a { color: var(--ac-header-link); font-size: 14.5px; }
.ac-footer a:hover { color: var(--ac-accent-text); }
.ac-footer__base { max-width: 1600px; margin: 0 auto; padding: 14px clamp(16px, 2vw, 28px) 22px; border-top: 1px solid var(--ac-header-line); font-size: 13px; color: var(--ac-text-3); }
@media (max-width: 760px) { .ac-footer__inner { grid-template-columns: 1fr 1fr; } .ac-footer__brand { grid-column: 1 / -1; } }

/* Pages (privacy policy etc.) and the contact form */
.ac-article.page .entry-header { margin-bottom: 18px; }
.cf7-privacy-note { font-size: 13.5px; color: var(--ac-text-3); }
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]), .wpcf7-form textarea {
	border: 1px solid var(--ac-line); border-radius: 10px; background: var(--ac-card); color: var(--ac-text-strong); padding: 10px 12px; font: inherit;
}
.wpcf7-form input[type="submit"] { border: 0; border-radius: 10px; padding: 11px 22px; background: linear-gradient(135deg, #316FD5, #3B82F6); color: #FCFCFD; font-weight: 700; cursor: pointer; }

/* style.css resets <strong>/<em> to plain text; bring them back in content. */
.entry-content strong, .entry-content b, .post-excerpt strong, .post-excerpt b { font-weight: 700; color: var(--ac-text-strong); }
.entry-content em, .entry-content i:not([class]), .post-excerpt em { font-style: italic; }

/* ==========================================================================
   Articles for social traffic: cards, share, BellCrier check, related,
   progress bar, phone bar, videos, 404.
   ========================================================================== */

/* ---------- Post cards ---------- */
.post.ac-card {
	display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 18px; align-items: start;
	padding: 14px; margin-bottom: 14px;
}
.post.ac-card:not(.has-image) { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; }
.ac-card__img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--ac-raised); flex: none; margin: 0; }
.ac-card__img img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform .4s ease; }
.post.ac-card:hover .ac-card__img img { transform: scale(1.04); }
.ac-card__body { min-width: 0; width: auto; padding: 2px 0; }
.ac-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 6px; font-size: 13px; color: var(--ac-text-3); }
.ac-card__meta > * + *::before { content: none; }
.ac-card__cat { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-accent-text) !important; }
.ac-card__title { margin: 0 0 6px; font-size: 19px !important; line-height: 1.3; }
.ac-card__title a { color: var(--ac-text-strong); }
.ac-card__title a:hover { color: var(--ac-accent-text); }
.ac-card__excerpt p { margin: 0 !important; font-size: 15px; line-height: 1.55; color: var(--ac-text-2) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-card__badge {
	position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 8px; border-radius: 999px; background: rgba(5, 7, 12, .78); color: #FCFCFD;
	font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.ac-card__badge.is-inline { position: static; background: var(--ac-accent-soft); color: var(--ac-accent-text); }
.post.ac-card.is-featured { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; }
.post.ac-card.is-featured .ac-card__img { aspect-ratio: 2 / 1; border-radius: 0; }
.post.ac-card.is-featured .ac-card__body { padding: 16px 22px 20px; }
.post.ac-card.is-featured .ac-card__title { font-size: clamp(21px, 2.2vw, 27px) !important; }
.ac-section-title { margin: 0; font-size: 20px; color: var(--ac-text-strong); }
.recent-posts-section__head { align-items: center; margin-bottom: 14px; }
@media (max-width: 640px) {
	.post.ac-card { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; }
	.post.ac-card:not(.has-image) { padding: 16px; }
	.post.ac-card:not(.has-image) .ac-card__body { padding: 0; }
	.ac-card__img { border-radius: 0; aspect-ratio: 16 / 9; }
	.ac-card__body { padding: 12px 16px 16px; }
	.ac-card__title { font-size: 18px !important; }
}

/* ---------- Reading progress ---------- */
.ac-progress { position: sticky; top: 62px; z-index: 999; height: 3px; margin-bottom: -3px; pointer-events: none; }
.ac-progress span { display: block; height: 100%; background: linear-gradient(90deg, #316FD5, #6BA0F8); transform: scaleX(0); transform-origin: left; }
@media (max-width: 1099px) { .ac-progress { top: 62px; } }

/* ---------- Share ---------- */
.ac-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; }
.ac-share__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ac-text-3); margin-right: 4px; }
.ac-share__btn {
	display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--ac-line);
	background: var(--ac-card); color: var(--ac-text) !important; font: 600 13px var(--ac-font-body); text-decoration: none !important; cursor: pointer;
}
.ac-share__btn:hover { border-color: var(--ac-accent); color: var(--ac-accent-text) !important; }
.ac-share__native { background: var(--ac-accent); border-color: var(--ac-accent); color: #FCFCFD !important; }
/* Phones with a share sheet: one "Share" button plus copy link. */
.ac-share.has-native .ac-share__btn:not(.ac-share__native):not(.ac-share__copy) { display: none; }
.ac-article__foot { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--ac-line); }
.ac-article__foot .ac-share { margin: 0; }

/* ---------- BellCrier breach check ("ad") ---------- */
.bc-cta {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 28px; align-items: center;
	margin: 30px 0 8px; padding: clamp(20px, 3vw, 30px); border-radius: 18px; overflow: hidden;
	background: radial-gradient(520px 260px at 0% 0%, rgba(59, 130, 246, .28), transparent 70%), linear-gradient(135deg, #0D1A33, #0A1222);
	border: 1px solid rgba(59, 130, 246, .35); color: #CBD5E1;
}
.bc-cta__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6BA0F8; }
.bc-cta__eyebrow .ac-ico { width: 16px; height: 16px; }
.bc-cta__title { margin: 0 0 8px !important; font-size: clamp(1.3rem, 2.4vw, 1.65rem) !important; line-height: 1.2; color: #FCFCFD !important; }
.bc-cta__text { margin: 0 0 12px !important; font-size: 15px; line-height: 1.55; color: #AAB6C8 !important; }
.bc-cta__points { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bc-cta__points li { position: relative; margin: 0 !important; padding-left: 20px; font-size: 14px; font-weight: 600; color: #E2E8F0; }
.bc-cta__points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 7px; border-left: 2px solid #4ADE80; border-bottom: 2px solid #4ADE80; transform: rotate(-45deg); }
.bc-cta__form { display: grid; gap: 10px; margin: 0; }
.bc-cta__label { font-size: 13px; font-weight: 700; color: #CBD5E1; }
.bc-cta__form input[type="email"] {
	width: 100%; box-sizing: border-box; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #CBD5E1;
	background: #F3F5F8; color: #0B1220; font: 500 16px var(--ac-font-body);
}
.bc-cta__form input[type="email"]:focus { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .35); }
.bc-cta__form button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 12px; cursor: pointer;
	background: linear-gradient(135deg, #316FD5, #3B82F6); color: #FCFCFD; font: 800 16px var(--ac-font-body);
	box-shadow: 0 12px 26px -12px rgba(59, 130, 246, .8); transition: transform .2s ease, filter .2s ease;
}
.bc-cta__form button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bc-cta__form button .ac-ico { width: 18px; height: 18px; }
.bc-cta__fine { margin: 0 !important; font-size: 12px; line-height: 1.45; color: #8C99AD !important; }
@media (max-width: 760px) { .bc-cta { grid-template-columns: minmax(0, 1fr); } }

.bc-cta--sidebar { display: block; margin: 0 0 24px; padding: 18px; border-radius: 16px; }
.bc-cta--sidebar .bc-cta__title { font-family: var(--ac-font-heading); font-size: 18px !important; margin: 0 0 4px !important; }
.bc-cta--sidebar .bc-cta__text { font-size: 13.5px; margin: 0 0 12px !important; }
.bc-cta--sidebar .bc-cta__form input[type="email"], .bc-cta--sidebar .bc-cta__form button { height: 44px; font-size: 15px; }
@media (max-width: 959px) { .bc-cta--sidebar { display: none; } }

/* ---------- Related ---------- */
.ac-related { margin: 34px 0 0; }
.ac-related__title { margin: 0 0 14px !important; font-size: 20px !important; color: var(--ac-text-strong); }
.ac-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-related__card { display: flex; flex-direction: column; border: 1px solid var(--ac-line); border-radius: 14px; overflow: hidden; background: var(--ac-card); text-decoration: none !important; transition: border-color .2s ease, transform .2s ease; }
.ac-related__card:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-2px); }
.ac-related__img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #16306B, #05080F); color: #6BA0F8; overflow: hidden; }
.ac-related__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.ac-related__img .ac-ico { width: 34px; height: 34px; }
.ac-related__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ac-related__cat { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-accent-text); }
.ac-related__name { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ac-text-strong); }
@media (max-width: 760px) { .ac-related__grid { grid-template-columns: minmax(0, 1fr); } .ac-related__card { flex-direction: row; } .ac-related__img { flex: 0 0 110px; aspect-ratio: auto; } }

/* ---------- Phone "Check free" bar ---------- */
.ac-stickybar {
	position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 900; display: flex; align-items: center; gap: 10px;
	padding: 10px 10px 10px 14px; border-radius: 14px; background: #0D1A33; border: 1px solid rgba(59, 130, 246, .45);
	box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6); color: #E2E8F0; font: 600 14px var(--ac-font-body);
	animation: ac-rise .25s ease;
}
.ac-stickybar[hidden] { display: none; }
.ac-stickybar__text { flex: 1; display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ac-stickybar__text .ac-ico { width: 17px; height: 17px; color: #6BA0F8; flex-shrink: 0; }
.ac-stickybar__btn { flex-shrink: 0; padding: 9px 14px; border-radius: 10px; background: linear-gradient(135deg, #316FD5, #3B82F6); color: #FCFCFD !important; font-weight: 800; text-decoration: none; }
.ac-stickybar__close { flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #8C99AD; font-size: 22px; line-height: 1; cursor: pointer; }
@keyframes ac-rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 960px) { .ac-stickybar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ac-stickybar { animation: none; } }

/* ---------- Videos ---------- */
.ac-video, .entry-content .wp-video { position: relative; width: 100% !important; margin: 1.4em 0; border-radius: 14px; overflow: hidden; background: #05080F; }
.ac-video { aspect-ratio: 16 / 9; }
.ac-video iframe, .ac-video video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.entry-content video { width: 100%; height: auto; border-radius: 14px; }
.ac-video__play {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%;
	border: 0; cursor: pointer; color: #FCFCFD; font-family: var(--ac-font-body);
	background: radial-gradient(60% 70% at 50% 45%, rgba(59, 130, 246, .35), transparent 70%), linear-gradient(135deg, #0D1A33, #05080F);
}
.ac-video__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 0 10px rgba(59, 130, 246, .2); transition: transform .2s ease; }
.ac-video__play:hover .ac-video__icon { transform: scale(1.07); }
.ac-video__label { font-size: 17px; font-weight: 800; }
.ac-video__note { font-size: 12.5px; color: #8C99AD; }

/* ---------- Breadcrumbs on phones: hide the current page (it's the title) ---------- */
@media (max-width: 640px) {
	.ac-crumbs li:last-child { display: none; }
	.ac-crumbs li:nth-last-child(2)::after { content: none; }
}

/* ---------- 404 ---------- */
.ac-404 { margin: 10px 0 26px; }
.ac-404__code { margin: 0; font-family: var(--ac-font-heading); font-size: 64px; line-height: 1; color: var(--ac-accent-text); }
.ac-404 p { color: var(--ac-text-2); }
.ac-404__search .search-form { display: flex; max-width: 480px; height: 46px; margin-top: 12px; border: 1px solid var(--ac-line); border-radius: 12px; overflow: hidden; background: var(--ac-card); }
.ac-404__search label { flex: 1; display: flex; }
.ac-404__search .search-field { flex: 1; border: 0; background: transparent; color: var(--ac-text-strong); padding: 0 14px; font: inherit; }
.ac-404__search .search-submit { border: 0; padding: 0 16px; background: var(--ac-accent); color: #FCFCFD; font-weight: 700; cursor: pointer; }

/* ==========================================================================
   Polish (2026-09-29): article meta, contents box, section links, pagination,
   topics, back-to-top, toast, image zoom, header hide on phones, reveal,
   content typography, focus, print.
   ========================================================================== */

/* Jumps to #sections land below the sticky header. */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
::selection { background: rgba(59, 130, 246, .35); color: inherit; }
:focus-visible { outline: 2px solid #6BA0F8; outline-offset: 2px; }

/* ---------- Article meta: category chip, published, updated, read time ---------- */
.ac-article__meta { gap: 8px 16px; }
.ac-article__meta > span { color: var(--ac-text-3); }
.ac-article__meta time { color: var(--ac-text-2); }
.ac-article__meta .ac-ico { width: 15px; height: 15px; opacity: .85; }
.ac-article__cat {
	display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
	background: var(--ac-accent-soft); border: 1px solid rgba(59, 130, 246, .35);
	font-size: 12px; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase; text-decoration: none !important;
}
.ac-article__cat:hover { background: rgba(59, 130, 246, .2); }
.ac-article__updated { color: var(--st-green, #4ADE80) !important; }
.ac-article__updated time { color: inherit !important; }
:root[data-theme="light"] .ac-article__updated { color: #15803D !important; }
.ac-article__head { padding-bottom: 16px; }

/* ---------- Article footer: tags + share ---------- */
.ac-article__foot { display: grid; gap: 14px; }
.ac-article__foot .post-tags { margin: 0; }
.ac-share__label { flex-basis: 100%; margin: 0 0 2px; }

/* ---------- Contents box ---------- */
.ac-toc { margin: 1.4em 0 1.8em; }
.ac-toc details { border: 1px solid var(--ac-line); border-radius: 14px; background: var(--ac-card); }
.ac-toc summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none;
	font-weight: 700; color: var(--ac-text-strong);
}
.ac-toc summary::-webkit-details-marker { display: none; }
.ac-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; margin-left: 4px; opacity: .6; }
.ac-toc details[open] summary::after { transform: rotate(-135deg); }
.ac-toc__title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.ac-toc__count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ac-text-3); }
.ac-article .entry-content .ac-toc ol { margin: 0 !important; padding: 0 16px 14px 36px !important; list-style: decimal; }
.ac-article .entry-content .ac-toc li { margin: 0; padding: 3px 0; font-size: 15px; line-height: 1.45; }
.ac-article .entry-content .ac-toc a { text-decoration: none; color: var(--ac-text); }
.ac-article .entry-content .ac-toc a:hover { color: var(--ac-accent-text); text-decoration: underline; }

/* ---------- Section links on headings ---------- */
.ac-article .entry-content h2 { position: relative; }
.ac-anchor {
	display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 4px; border-radius: 6px;
	color: var(--ac-text-3) !important; opacity: 0; transition: opacity .15s ease, color .15s ease; text-decoration: none !important;
}
.ac-article .entry-content h2:hover .ac-anchor, .ac-anchor:focus-visible { opacity: 1; }
.ac-anchor:hover { color: var(--ac-accent-text) !important; background: var(--ac-accent-soft); }
@media (hover: none) { .ac-anchor { opacity: .45; } }

/* ---------- Section titles, counts, topics ---------- */
.recent-posts-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ac-section-count { font-size: 13.5px; color: var(--ac-text-3); }
.ac-topics { margin: 34px 0 10px; }
.ac-topics__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ac-topics__grid li { margin: 0; }
.ac-topics__card {
	position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 40px 14px 16px; border-radius: 12px;
	border: 1px solid var(--ac-line); background: var(--ac-card); text-decoration: none !important;
	transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.ac-topics__card:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-2px); }
.ac-topics__name { font-weight: 700; color: var(--ac-text-strong); }
.ac-topics__count { font-size: 13px; color: var(--ac-text-3); }
.ac-topics__card .ac-ico { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ac-accent-text); transition: transform .2s ease; }
.ac-topics__card:hover .ac-ico { transform: translateX(3px); }

/* ---------- Pagination ---------- */
.pagination.home-pagination, .home-pagination { margin: 22px 0 6px; padding: 0; border: 0; }
.home-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.home-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 10px; border: 1px solid var(--ac-line); background: var(--ac-card); color: var(--ac-text) !important; font-weight: 600; text-decoration: none;
}
.home-pagination a.page-numbers:hover { border-color: var(--ac-accent); color: var(--ac-accent-text) !important; background: var(--ac-card); }
.home-pagination .page-numbers.current { background: var(--ac-accent); border-color: var(--ac-accent); color: #FCFCFD !important; }
.home-pagination .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }
.home-pagination .prev, .home-pagination .next { padding: 0 16px; }
@media (max-width: 480px) { .home-pagination .page-numbers:not(.prev):not(.next):not(.current) { display: none; } }

/* ---------- Back to top ---------- */
.ac-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 890; display: grid; place-items: center; width: 44px; height: 44px;
	border-radius: 12px; border: 1px solid var(--ac-line); background: var(--ac-card); color: var(--ac-text-strong); cursor: pointer;
	box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); transition: transform .2s ease, border-color .2s ease;
}
.ac-top[hidden] { display: none; }
.ac-top:hover { transform: translateY(-2px); border-color: var(--ac-accent); color: var(--ac-accent-text); }
/* Keep clear of the phone "Check free" bar. */
@media (max-width: 959px) { .ac-stickybar:not([hidden]) ~ .ac-top { bottom: 84px; } .ac-top { right: 12px; bottom: 12px; } }

/* ---------- Toast ---------- */
.ac-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 2100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	padding: 10px 16px; border-radius: 10px; background: #0B1220; color: #FCFCFD; border: 1px solid rgba(107, 160, 248, .4);
	font: 600 14px var(--ac-font-body); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .6); transition: opacity .2s ease, transform .2s ease;
}
.ac-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Image zoom ---------- */
.ac-zoomable { cursor: zoom-in; }
.ac-zoom {
	position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px;
	background: rgba(5, 7, 12, .9); cursor: zoom-out; animation: ac-fade .15s ease;
}
.ac-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.ac-zoom__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(252, 252, 253, .1); color: #FCFCFD; font-size: 28px; line-height: 1; cursor: pointer; }
@keyframes ac-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Header hides while reading on phones and tablets ---------- */
.ac-header { transition: transform .25s ease; }
.ac-progress { transition: top .25s ease; }
@media (max-width: 1099px) {
	html.ac-header-away .ac-header { transform: translateY(-100%); }
	html.ac-header-away .ac-progress { top: 0; }
}

/* ---------- Cards fade in ---------- */
.ac-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease, border-color .2s ease; }
.ac-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ac-reveal { opacity: 1; transform: none; }
	.ac-header, .ac-progress, .ac-toast { transition: none; }
}

/* ---------- Article typography extras ---------- */
.ac-article .entry-content table { display: block; width: 100%; overflow-x: auto; margin: 1.4em 0; border-collapse: collapse; font-size: 15px; }
.ac-article .entry-content th, .ac-article .entry-content td { padding: 10px 12px; border: 1px solid var(--ac-line); text-align: left; vertical-align: top; }
.ac-article .entry-content th { background: var(--ac-card); color: var(--ac-text-strong); font-weight: 700; }
.ac-article .entry-content tr:nth-child(even) td { background: color-mix(in srgb, var(--ac-card) 55%, transparent); }
.ac-article .entry-content pre { margin: 1.4em 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--ac-line); background: var(--ac-card); font-size: 14px; line-height: 1.6; }
.ac-article .entry-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--ac-line); }
.ac-article .entry-content figure { margin: 1.4em 0; }
.ac-article .entry-content figcaption, .ac-article .entry-content .wp-caption-text { margin-top: 8px; font-size: 13.5px; color: var(--ac-text-3); text-align: center; }
.ac-article .entry-content sup a { text-decoration: none; font-weight: 700; padding: 0 1px; }
.ac-article .entry-content li::marker { color: var(--ac-accent-text); }
.ac-article .entry-content img { height: auto; }

/* ---------- Print: just the article ---------- */
@media print {
	.ac-header, .ac-progress, .left-sidebar, .right-sidebar, .ac-footer, .ac-stickybar, .ac-top, .ac-toast,
	.bc-cta, .ac-related, .ac-share, .ac-toc, .ac-anchor, .ac-crumbs, .home-intro-card, .ac-topics { display: none !important; }
	body { background: #fff !important; color: #111 !important; }
	.container-fluid > .row { display: block; }
	.ac-article { max-width: none; }
	.ac-article .entry-content, .ac-article .entry-content p, .ac-article .entry-title { color: #111 !important; }
	.ac-article .entry-content a::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}

/* Tool directory strip (homepage) */
.ac-tools { margin: 34px 0 0; }
.ac-tools__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ac-tools__list li { margin: 0; }
.ac-tools__item {
	display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
	border: 1px solid var(--ac-line); background: var(--ac-card); text-decoration: none !important; transition: border-color .2s ease, transform .2s ease;
}
.ac-tools__item:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-2px); }
.ac-tools__name { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ac-text-strong); }
.ac-tools__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--ac-text-3); }
.ac-tools__cat { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; color: var(--ac-accent-text); }
@media print { .ac-reveal { opacity: 1 !important; transform: none !important; } .ac-tools { display: none !important; } }

/* Tag chips: neutral icons, no company logos */
.post-tags .tag .ac-ico { width: 14px; height: 14px; color: var(--ac-text-3); flex-shrink: 0; }
.post-tags .tag img { display: none; } /* old logo images stored in tag descriptions, never shown */
.ac-footer__base { display: flex; flex-direction: column; gap: 6px; }
.ac-footer__note { font-size: 12px; line-height: 1.5; color: var(--ac-text-3); opacity: .85; max-width: 90ch; }

/* The native Share button only appears where the device has a share sheet. */
.ac-share__btn[hidden], .ac-share__native[hidden] { display: none !important; }
