/*
Theme Name: DigitalBizBooks
Theme URI: https://digitalbizbooks.com/
Author: DigitalBizBooks
Description: A fast, accessible editorial theme for the DigitalBizBooks.com digital marketing magazine: magazine homepage, article template with automatic table of contents, topic archives, author profiles, a guest post services landing page, and a privacy-safe WhatsApp chat button. Tools, calculators and forms are designed to live in a companion plugin so they survive a theme change.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitalbizbooks
Tags: blog, news, magazine, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, one-column, two-columns, grid-layout
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--bg: #f6f8fc;
	--surface: #ffffff;
	--soft: #eef2fa;
	--ink: #0b1b3f;
	--text: #1f2a44;
	--muted: #55627f;
	--line: #dde4f1;
	--brand: #1d4ed8;
	--brand-2: #2563eb;
	--teal: #0f766e;
	--link: #1d4ed8;
	--focus: #2563eb;
	--navy: #0b1b3f;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 8px 24px rgba(11, 27, 63, .06);
	--shadow-lg: 0 12px 40px rgba(11, 27, 63, .16);
	--header-h: 68px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--wa: #0e7a5f;
	color-scheme: light;
}

:root[data-scheme="dark"] {
	--bg: #0a1226;
	--surface: #101a35;
	--soft: #16224a;
	--ink: #f1f5ff;
	--text: #d6def0;
	--muted: #a3b0cc;
	--line: #233159;
	--brand: #8fb0ff;
	--link: #9dbbff;
	--navy: #060d20;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
	color-scheme: dark;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.dbb-lock { overflow: hidden; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.dbb-skip {
	position: absolute; left: 12px; top: -60px; z-index: 200; background: #0f3799; color: #fff;
	padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.dbb-skip:focus { top: 12px; }
.dbb-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

.dbb-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.dbb-wrap--read { max-width: 800px; }
.dbb-sec { padding-block: 40px; }
.dbb-main { min-height: 60vh; }

/* =========================================================
   3. Buttons, chips, small bits
   ========================================================= */
.dbb-btn, .dbb-comments .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 2px solid transparent;
	background: var(--brand-2); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.dbb-btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: var(--shadow); }
.dbb-btn--light { background: #fff; color: #0b1b3f; }
.dbb-btn--light:hover { background: #eaf0ff; }
.dbb-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.dbb-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.dbb-btn--wa { background: var(--wa); color: #fff; }
.dbb-btn--wa:hover { background: #0a6a52; }

.dbb-iconbtn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
	border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
}
.dbb-iconbtn:hover { background: var(--soft); }

.dbb-chip {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: var(--c); background: color-mix(in srgb, var(--c) 11%, var(--surface)); padding: 3px 9px; border-radius: 6px;
	text-decoration: none; line-height: 1.5;
}
a.dbb-chip:hover { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
:root[data-scheme="dark"] .dbb-chip { color: var(--cd); background: color-mix(in srgb, var(--cd) 16%, var(--surface)); }
.dbb-flag {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px;
}

.dbb-avatar {
	flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 800;
	color: #fff; background: var(--c); width: 24px; height: 24px; font-size: 10px; margin-right: 8px;
}
:root[data-scheme="dark"] .dbb-avatar { background: var(--cd); color: #0a1226; }
.dbb-avatar--md { width: 44px; height: 44px; font-size: 16px; margin-right: 0; }
.dbb-avatar--lg { width: 64px; height: 64px; font-size: 22px; margin-right: 0; }
.dbb-avatar--xl { width: 96px; height: 96px; font-size: 32px; margin-right: 0; }

.dbb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--muted); }
.dbb-meta a { color: inherit; font-weight: 600; text-decoration: none; }
.dbb-meta a:hover { color: var(--link); text-decoration: underline; }
.dbb-meta__sep { opacity: .6; }

.dbb-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.dbb-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .55; }
.dbb-crumbs a { color: var(--muted); text-decoration: none; }
.dbb-crumbs a:hover { color: var(--link); text-decoration: underline; }
.dbb-crumbs [aria-current] span { color: var(--ink); font-weight: 600; display: inline-block; max-width: min(46ch, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* =========================================================
   4. Header + navigation
   ========================================================= */
.dbb-header {
	position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line); transition: box-shadow .2s ease;
}
.dbb-header.is-stuck { box-shadow: 0 6px 22px rgba(11, 27, 63, .09); }
.dbb-header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.dbb-logo { display: inline-flex; align-items: center; flex: none; }
.dbb-logo img { height: 40px; width: auto; max-width: 100%; }
.dbb-logo__custom { max-height: 44px; width: auto; }
.dbb-logo__pic--dark { display: none; }
:root[data-scheme="dark"] .dbb-header .dbb-logo__pic--light { display: none; }
:root[data-scheme="dark"] .dbb-header .dbb-logo__pic--dark { display: block; }

.dbb-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.dbb-nav__head, .dbb-nav__foot { display: none; }
.dbb-menu, .dbb-menu ul { list-style: none; margin: 0; padding: 0; }
.dbb-menu { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.dbb-menu > li { position: relative; }
.dbb-menu a, .dbb-megabtn {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent;
	color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.dbb-menu a:hover, .dbb-megabtn:hover, .dbb-menu .current-menu-item > a { background: var(--soft); color: var(--link); }
.dbb-megabtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dbb-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface); border: 1px solid var(--line);
	border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 5;
}
.dbb-menu li:hover > .sub-menu, .dbb-menu li:focus-within > .sub-menu { display: block; }
.dbb-menu .sub-menu a { display: flex; }

.dbb-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.dbb-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 4px 20px; padding-block: 20px; }
.dbb-mega__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.dbb-mega__item:hover { background: var(--soft); color: var(--link); }
.dbb-mega__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
:root[data-scheme="dark"] .dbb-mega__dot { background: var(--cd); }

.dbb-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.dbb-burger { display: none; }
.dbb-scheme__sun { display: none; }
:root[data-scheme="dark"] .dbb-scheme__sun { display: inline-flex; }
:root[data-scheme="dark"] .dbb-scheme__moon { display: none; }
.dbb-scheme__moon { display: inline-flex; }

.dbb-searchbar { border-top: 1px solid var(--line); background: var(--surface); padding-block: 14px; }
.dbb-searchform { display: flex; gap: 8px; max-width: 640px; }
.dbb-searchform input[type="search"] {
	flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
	background: var(--surface); color: var(--ink);
}
.dbb-searchform button {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 10px;
	border: 0; background: var(--brand-2); color: #fff; font-weight: 700; cursor: pointer;
}
.dbb-searchform button:hover { background: #1d4ed8; }

.dbb-scrim { position: fixed; inset: 0; background: rgba(5, 10, 25, .55); z-index: 59; }

.dbb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.dbb-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #2563eb, #14b8a6); }

@media (max-width: 980px) {
	/* backdrop-filter would make the header the containing block of the fixed drawer */
	.dbb-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
	.dbb-burger { display: inline-grid; }
	.dbb-nav { display: none; }
	.dbb-nav.is-open {
		display: flex; flex-direction: column; align-items: stretch; gap: 8px; position: fixed; top: 0; right: 0; bottom: 0;
		width: min(88vw, 380px); background: var(--surface); z-index: 80; padding: 14px 16px 24px; overflow-y: auto;
		box-shadow: var(--shadow-lg); animation: dbb-in .22s ease;
	}
	.dbb-nav__head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
	.dbb-nav__foot { display: block; margin-top: auto; padding-top: 16px; }
	.dbb-megawrap { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
	.dbb-megabtn { width: 100%; justify-content: space-between; font-size: 17px; padding: 14px 8px; }
	.dbb-mega { position: static; box-shadow: none; border: 0; }
	.dbb-mega__grid { padding: 4px 0 8px; grid-template-columns: 1fr; padding-inline: 0; }
	.dbb-menu { flex-direction: column; align-items: stretch; }
	.dbb-menu a { font-size: 17px; padding: 14px 8px; width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; }
	.dbb-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}
@keyframes dbb-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 640px) {
	.dbb-header__in { gap: 8px; }
	.dbb-logo img { height: 36px; }
}

/* =========================================================
   5. Cards
   ========================================================= */
.dbb-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.dbb-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-2) 30%, var(--line)); }
.dbb-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.dbb-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dbb-card:hover .dbb-card__img { transform: scale(1.03); }
.dbb-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--surface)), color-mix(in srgb, var(--c) 4%, var(--surface))); }
.dbb-ph svg { opacity: .55; }
:root[data-scheme="dark"] .dbb-ph { color: var(--cd); }
.dbb-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; min-width: 0; flex: 1; }
.dbb-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dbb-card__title { margin: 0; font-size: 19px; line-height: 1.28; }
.dbb-card__title a { color: var(--ink); text-decoration: none; }
.dbb-card__title a::after { content: ""; position: absolute; inset: 0; }
.dbb-card__title a:hover { color: var(--link); }
.dbb-card__ex { margin: 0; color: var(--muted); font-size: 15px; }
.dbb-card .dbb-meta { margin-top: auto; position: relative; z-index: 1; }
.dbb-card .dbb-chip, .dbb-card .dbb-meta a { position: relative; z-index: 2; }

/* lead (hero) */
.dbb-card--lead { min-height: 440px; color: #fff; border: 0; background: #0b1b3f; }
.dbb-card--lead .dbb-card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.dbb-card--lead .dbb-ph { background: linear-gradient(135deg, #14307a, #0b1b3f); color: #6ea0ff; }
.dbb-card--lead .dbb-ph svg { width: 120px; height: 120px; opacity: .18; }
.dbb-card--lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 12, 30, .94) 0%, rgba(6, 12, 30, .72) 38%, rgba(6, 12, 30, .08) 78%); pointer-events: none; }
.dbb-card--lead .dbb-card__body { position: relative; z-index: 1; margin-top: auto; padding: 28px; gap: 10px; flex: none; }
.dbb-card--lead .dbb-card__title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; }
.dbb-card--lead .dbb-card__title a { color: #fff; }
.dbb-card--lead .dbb-card__ex { color: #dbe4f8; font-size: 16px; max-width: 62ch; }
.dbb-card--lead .dbb-meta, .dbb-card--lead .dbb-meta a { color: #dbe4f8; }
.dbb-card--lead .dbb-chip { background: #fff; color: var(--c); }
.dbb-card--lead .dbb-flag { color: #dbe4f8; border-color: rgba(255, 255, 255, .4); }

/* side (hero stack) */
.dbb-card--side { flex-direction: row; align-items: stretch; }
.dbb-card--side .dbb-card__media { flex: none; width: 128px; aspect-ratio: auto; }
.dbb-card--side .dbb-card__body { padding: 12px 14px; gap: 6px; }
.dbb-card--side .dbb-card__title { font-size: 16px; }

/* row (search) */
.dbb-card--row { flex-direction: row; }
.dbb-card--row .dbb-card__media { flex: none; width: 240px; aspect-ratio: auto; }

/* compact (trending) */
.dbb-card--compact .dbb-card__body { padding: 16px 18px 16px 62px; position: relative; }
.dbb-card--compact .dbb-card__title { font-size: 16px; }
.dbb-rank { position: absolute; left: 16px; top: 12px; font-size: 34px; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--brand-2) 55%, var(--surface)); letter-spacing: -.04em; }

@media (max-width: 640px) {
	.dbb-card--row { flex-direction: column; }
	.dbb-card--row .dbb-card__media { width: 100%; aspect-ratio: 16 / 9; }
	.dbb-card--lead { min-height: 400px; }
	.dbb-card--lead .dbb-card__body { padding: 20px; }
}

/* =========================================================
   6. Sections and grids
   ========================================================= */
.dbb-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dbb-sechead__title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); position: relative; padding-left: 14px; }
.dbb-sechead__title::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 4px; background: linear-gradient(#2563eb, #14b8a6); }
.dbb-sechead__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }
.dbb-sechead__more:hover { text-decoration: underline; }

.dbb-grid { display: grid; gap: 24px; }
.dbb-grid > * { min-width: 0; }
.dbb-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.dbb-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.dbb-rows { display: grid; gap: 20px; }
.dbb-trend { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.dbb-band { background: var(--soft); padding-block: 44px; }

.dbb-hero { padding-block: 28px 8px; }
.dbb-hero__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.dbb-hero__side { display: grid; gap: 14px; align-content: start; grid-template-rows: repeat(4, 1fr); }
.dbb-hero__side > * { min-height: 104px; }
@media (max-width: 900px) {
	.dbb-hero__grid { grid-template-columns: 1fr; }
	.dbb-hero__side { grid-template-rows: none; }
}

.dbb-split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1020px) { .dbb-split { grid-template-columns: minmax(0, 1fr) 340px; } }
.dbb-split__side { display: grid; gap: 20px; align-content: start; }
.dbb-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dbb-panel__title { font-size: 18px; margin-bottom: 14px; }
.dbb-panel--brand { background: linear-gradient(135deg, #14307a, #0b1b3f); border: 0; color: #dbe4f8; }
.dbb-panel--brand .dbb-panel__title { color: #fff; }
.dbb-poplist { list-style: none; counter-reset: pop; padding: 0; margin: 0; display: grid; gap: 14px; }
.dbb-poplist li { counter-increment: pop; position: relative; padding-left: 40px; }
.dbb-poplist li::before { content: counter(pop); position: absolute; left: 0; top: -2px; font-size: 24px; font-weight: 800; color: color-mix(in srgb, var(--brand-2) 55%, var(--surface)); }
.dbb-poplist a { color: var(--ink); font-weight: 700; text-decoration: none; display: block; line-height: 1.3; }
.dbb-poplist a:hover { color: var(--link); }
.dbb-poplist__cat { display: block; margin-top: 6px; }

.dbb-cta { background: linear-gradient(120deg, #0b1b3f, #14307a 60%, #0f766e); color: #dbe4f8; margin-top: 24px; }
.dbb-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 44px; }
.dbb-cta h2 { color: #fff; margin-bottom: 8px; font-size: clamp(24px, 3vw, 32px); }
.dbb-cta p { margin: 0; max-width: 60ch; }
.dbb-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.dbb-empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); max-width: 760px; margin: 40px auto; }
.dbb-empty .dbb-searchform { margin: 20px auto 0; justify-content: center; }

.dbb-pagehead { background: linear-gradient(180deg, var(--soft), var(--bg)); padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.dbb-pagehead h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.dbb-pagehead p { color: var(--muted); max-width: 70ch; }
.dbb-pagehead__kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal) !important; margin-bottom: 6px !important; }
:root[data-scheme="dark"] .dbb-pagehead__kicker { color: #5eead4 !important; }
.dbb-pagehead__desc { color: var(--muted); font-size: 18px; max-width: 70ch; }
.dbb-pagehead__desc p { margin-bottom: .5em; }
.dbb-pagehead--center { text-align: center; }
.dbb-pagehead--center .dbb-searchform { margin: 20px auto 0; }
.dbb-pagehead--cat { border-bottom: 4px solid var(--c); }
:root[data-scheme="dark"] .dbb-pagehead--cat { border-bottom-color: var(--cd); }
.dbb-count { color: var(--muted); font-weight: 600; margin-bottom: 20px; }

.dbb-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.dbb-pills a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.dbb-pills a:hover { border-color: var(--brand-2); color: var(--link); }
.dbb-pills--wide { margin: 0; }

.dbb-topics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.dbb-topic { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); text-decoration: none; min-width: 0; }
:root[data-scheme="dark"] .dbb-topic { border-left-color: var(--cd); }
.dbb-topic:hover { box-shadow: var(--shadow); }
.dbb-topic__name { font-weight: 800; color: var(--ink); }
.dbb-topic__n { font-size: 13px; color: var(--muted); }

.dbb-profile { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.dbb-profile__links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-weight: 600; color: var(--muted); }

.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.nav-links a.page-numbers:hover { border-color: var(--brand-2); color: var(--link); }

/* =========================================================
   7. Article
   ========================================================= */
.dbb-article__head { padding-top: 32px; }
.dbb-article__chips { margin-bottom: 12px; }
.dbb-article__title { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 16px; }
.dbb-article__dek { font-size: 20px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
.dbb-article__byline { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dbb-article__author { font-weight: 700; color: var(--ink); text-decoration: none; }
.dbb-article__author:hover { color: var(--link); text-decoration: underline; }
.dbb-article__dates { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; color: var(--muted); }
.dbb-article__fig { margin: 24px auto 8px; padding-inline: 20px; max-width: 1040px; }
.dbb-article__img { width: 100%; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; }
.dbb-article__fig figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

.dbb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); margin-bottom: 8px; }
.dbb-share__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .05em; }
.dbb-share__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.dbb-share__btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.dbb-share__tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.dbb-share__tip:empty { display: none; }

.dbb-disclosure { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 14px 16px; margin: 24px 0 0; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--teal); background: var(--surface); font-size: 14px; color: var(--muted); }
.dbb-disclosure strong { color: var(--ink); }
.dbb-disclosure--sponsored { border-left-color: #b45309; }

/* Prose */
.dbb-prose { font-size: 18px; line-height: 1.78; color: var(--text); overflow-wrap: break-word; }
.dbb-prose > * { max-width: 100%; }
.dbb-prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 1.8em 0 .55em; scroll-margin-top: calc(var(--header-h) + 24px); }
.dbb-prose h3 { font-size: clamp(21px, 2.4vw, 24px); margin: 1.5em 0 .5em; scroll-margin-top: calc(var(--header-h) + 24px); }
.dbb-prose h4 { font-size: 19px; margin: 1.3em 0 .4em; }
.dbb-prose p, .dbb-prose ul, .dbb-prose ol { margin-bottom: 1.2em; }
.dbb-prose li { margin-bottom: .4em; }
.dbb-prose a { font-weight: 600; }
.dbb-prose img, .dbb-prose figure { border-radius: 12px; }
.dbb-prose figure { margin: 1.6em 0; }
.dbb-prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }
.dbb-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand-2); color: var(--ink); font-size: 1.08em; }
.dbb-prose code { background: var(--soft); padding: .12em .4em; border-radius: 6px; font-size: .9em; }
.dbb-prose pre { background: #0b1b3f; color: #e8edf8; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.dbb-prose pre code { background: none; padding: 0; color: inherit; }
.dbb-prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 1.6em 0; font-size: 16px; }
.dbb-prose th, .dbb-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.dbb-prose th { background: var(--soft); color: var(--ink); }
.dbb-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.dbb-prose .wp-block-table table { display: table; }
.dbb-fullwidth { max-width: none; }
.dbb-pagelinks { display: flex; gap: 8px; margin-top: 20px; }

/* TOC */
.dbb-toc { margin: 1.6em 0 1.8em; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 16px; line-height: 1.5; }
.dbb-toc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; border-radius: 14px; }
.dbb-toc summary::-webkit-details-marker { display: none; }
.dbb-toc summary svg { transition: transform .2s ease; }
.dbb-toc[open] summary svg { transform: rotate(180deg); }
.dbb-toc[open] summary { border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.dbb-toc nav { padding: 12px 18px 16px; }
.dbb-toc ol { list-style: decimal; margin: 0; padding-left: 1.3em; }
.dbb-toc ol ol { list-style: lower-alpha; margin: 6px 0 4px; }
.dbb-toc li { margin: 0 0 6px; padding-left: 4px; }
.dbb-toc a { font-weight: 600; text-decoration: none; color: var(--text); }
.dbb-toc a:hover, .dbb-toc a.is-current { color: var(--link); text-decoration: underline; }
.dbb-toc a.is-current { font-weight: 800; }

.dbb-sources { margin-top: 2.4em; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 15px; }
.dbb-sources h2 { font-size: 18px; margin-bottom: 10px; }
.dbb-sources ol { margin: 0; padding-left: 1.3em; }
.dbb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dbb-tags a { padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.dbb-tags a::before { content: "#"; opacity: .5; }

.dbb-authorbox { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.dbb-authorbox__name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.dbb-authorbox__name a { color: var(--ink); text-decoration: none; }
.dbb-authorbox__bio { color: var(--muted); margin-bottom: 8px; font-size: 15px; }
.dbb-authorbox__links { display: flex; gap: 14px; align-items: center; margin: 0; font-weight: 600; font-size: 14px; }
.dbb-authorbox__soc { color: var(--muted); }

.dbb-postnav { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-top: 32px; }
.dbb-postnav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.35; }
.dbb-postnav a:hover { border-color: var(--brand-2); }
.dbb-postnav span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.dbb-postnav__next { text-align: right; }
.dbb-article__widgets { margin-top: 28px; }

/* Comments */
.dbb-comments { margin-top: 24px; }
.dbb-comments h2, .dbb-comments .comment-reply-title { font-size: 24px; }
.dbb-comments__list, .dbb-comments .children { list-style: none; padding: 0; margin: 0 0 24px; }
.dbb-comments .children { padding-left: 20px; border-left: 2px solid var(--line); margin-top: 12px; }
.dbb-comments .comment-body { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.dbb-comments .comment-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.dbb-comments .comment-meta a { color: inherit; }
.dbb-comments label { display: block; font-weight: 600; margin-bottom: 4px; }
.dbb-comments input[type="text"], .dbb-comments input[type="email"], .dbb-comments textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.dbb-comments .comment-form p { margin-bottom: 14px; }
.dbb-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.dbb-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* =========================================================
   8. Newsletter + footer + floating controls
   ========================================================= */
.dbb-news { background: linear-gradient(120deg, #0b1b3f, #14307a); color: #dbe4f8; margin-top: 24px; }
.dbb-news__in { display: grid; gap: 28px; padding-block: 44px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .dbb-news__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dbb-news h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.dbb-news p { margin: 0; }
.dbb-news__note { font-size: 13px; margin-top: 10px !important; color: #b9c6e4; }
.dbb-news__admin { font-size: 14px; padding: 12px 14px; border: 1px dashed rgba(255, 255, 255, .45); border-radius: 10px; }
.dbb-news input[type="email"], .dbb-news input[type="text"] { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: #fff; color: #0b1b3f; }
.dbb-news button, .dbb-news input[type="submit"] { min-height: 46px; padding: 0 20px; border-radius: 10px; border: 0; background: #14b8a6; color: #04201d; font-weight: 800; cursor: pointer; }
.dbb-news label { color: #dbe4f8; }
.dbb-news a { color: #fff; }

.dbb-footer { background: var(--navy); color: #b9c6e4; font-size: 15px; }
.dbb-footer__grid { display: grid; gap: 32px; padding-block: 48px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .dbb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .dbb-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.dbb-footer a { color: #dbe4f8; text-decoration: none; }
.dbb-footer a:hover { color: #fff; text-decoration: underline; }
.dbb-footer__brand p { margin: 14px 0; max-width: 42ch; }
.dbb-foot__title { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.dbb-footlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dbb-social { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.dbb-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.dbb-social a:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.dbb-footer .dbb-social a { border-color: rgba(255, 255, 255, .25); color: #dbe4f8; }
.dbb-footer .dbb-social a:hover { background: #2563eb; color: #fff; text-decoration: none; }
.dbb-footer__base { border-top: 1px solid rgba(255, 255, 255, .12); }
.dbb-footer__base-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.dbb-footer__base p { margin: 0; font-size: 14px; }
.dbb-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; font-size: 14px; }

.dbb-wa {
	position: fixed; right: 18px; bottom: 18px; z-index: 55; display: inline-flex; align-items: center; height: 56px; min-width: 56px;
	padding: 0 14px; border-radius: 28px; background: var(--wa); color: #fff; text-decoration: none; justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28); transition: transform .2s ease, box-shadow .2s ease;
}
.dbb-wa:hover, .dbb-wa:focus-visible { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 30px rgba(0, 0, 0, .34); color: #fff; }
.dbb-wa__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; transition: max-width .25s ease, margin .25s ease; }
.dbb-wa:hover .dbb-wa__label, .dbb-wa:focus-visible .dbb-wa__label { max-width: 150px; margin-left: 8px; }
.dbb-wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(14, 122, 95, .5); animation: dbb-pulse 3s ease-out infinite; pointer-events: none; }
@keyframes dbb-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

.dbb-top { position: fixed; right: 20px; bottom: 90px; z-index: 54; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.dbb-top:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
@media (max-width: 560px) { .dbb-wa { right: 12px; bottom: 12px; height: 48px; min-width: 48px; border-radius: 24px; padding: 0 10px; } .dbb-wa svg { width: 24px; height: 24px; } .dbb-top { right: 14px; bottom: 70px; } .dbb-footer__base { padding-bottom: 56px; } }

/* =========================================================
   9. Guest post landing, FAQ, form slots, sitemap
   ========================================================= */
.dbb-gp-hero { background: radial-gradient(1000px 400px at 85% -10%, rgba(20, 184, 166, .25), transparent 60%), linear-gradient(135deg, #0b1b3f, #14307a); color: #dbe4f8; padding-block: 56px 48px; }
.dbb-gp-hero__in { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .dbb-gp-hero__in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.dbb-gp-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); }
.dbb-gp-hero .dbb-crumbs ol, .dbb-gp-hero .dbb-crumbs a { color: #b9c6e4; }
.dbb-gp-hero .dbb-crumbs [aria-current] span { color: #fff; }
.dbb-gp-hero .dbb-pagehead__kicker { color: #5eead4 !important; }
.dbb-gp-hero__lead { font-size: 19px; max-width: 58ch; }
.dbb-gp-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.dbb-gp-hero__facts { list-style: none; padding: 22px; margin: 0; display: grid; gap: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.dbb-gp-hero__facts li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-weight: 600; }
.dbb-gp-hero__facts svg { color: #5eead4; flex: none; margin-top: 3px; }

.dbb-feat { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.dbb-feat > div { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.dbb-feat h3 { font-size: 18px; }
.dbb-feat p { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.dbb-two { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) { .dbb-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dbb-check { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.dbb-check li { position: relative; padding-left: 30px; }
.dbb-check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dbb-steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 16px; }
.dbb-steps li { counter-increment: st; position: relative; padding-left: 52px; }
.dbb-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-2); color: #fff; font-weight: 800; }
.dbb-steps strong { display: block; color: var(--ink); }
.dbb-steps span { color: var(--muted); font-size: 15px; }

.dbb-faq { display: grid; gap: 10px; }
.dbb-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.dbb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.dbb-faq summary::-webkit-details-marker { display: none; }
.dbb-faq summary svg { flex: none; transition: transform .2s ease; }
.dbb-faq details[open] summary svg { transform: rotate(180deg); }
.dbb-faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.dbb-inquiry { background: var(--soft); padding-block: 48px; scroll-margin-top: var(--header-h); }
.dbb-inquiry h2 { font-size: clamp(26px, 3vw, 34px); }
.dbb-formslot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 18px; }
.dbb-formslot label { display: block; font-weight: 600; margin-bottom: 4px; }
.dbb-formslot input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .dbb-formslot select, .dbb-formslot textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.dbb-formslot textarea { min-height: 120px; }
.dbb-formslot input[type="submit"], .dbb-formslot button[type="submit"] { min-height: 46px; padding: 0 22px; border-radius: 10px; border: 0; background: var(--brand-2); color: #fff; font-weight: 700; cursor: pointer; }
.dbb-formslot--fallback p:last-of-type { margin-bottom: 0; }
.dbb-formslot__admin { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; font-size: 13px; color: var(--muted); }

.dbb-sitemap { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.dbb-sitemap ul { padding-left: 1.1em; }
.dbb-sitemap li { margin-bottom: 6px; }

.dbb-widget { margin-bottom: 20px; }
.dbb-widget__title { font-size: 18px; }

/* =========================================================
   10. Preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
	.dbb-header, .dbb-footer, .dbb-news, .dbb-wa, .dbb-top, .dbb-share, .dbb-progress, .dbb-cta, .dbb-comments, .dbb-postnav, .dbb-scrim { display: none !important; }
	body { background: #fff; color: #000; }
	.dbb-prose { font-size: 12pt; }
}
