/* ==========================================================
   ByteTidings — light, TechCrunch-inspired news theme
   ========================================================== */

/* ---------- Fonts (self-hosted for speed and privacy; SIL Open Font License) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

/* ---------- Brand tokens ---------- */
:root {
	--bt-primary: #0A7C78;      /* Tide Teal (brand) */
	--bt-lagoon: #14B8A6;       /* bright accent */
	--bt-coral: #F0533A;        /* breaking / alerts */
	--bt-ink: #0F1B2D;          /* headlines */
	--bt-text: #243041;         /* body text */
	--bt-muted: #5B6676;        /* meta text */
	--bt-line: #E4EAEC;         /* dividers */
	--bt-surface: #F4F8F8;      /* soft sections */
	--bt-tint: #E6F4F3;         /* teal tint */
	--bt-bg: #FFFFFF;

	--bt-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bt-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--bt-radius: 10px;
	--bt-max: 1240px;
	--bt-gutter: 20px;
	--bt-header-h: 68px;
	--bt-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bt-header-h) + 16px); }
body {
	margin: 0;
	background: var(--bt-bg);
	color: var(--bt-text);
	font-family: var(--bt-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--bt-primary); text-decoration: none; }
a:hover { color: var(--bt-ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--bt-head); color: var(--bt-ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--bt-lagoon); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--bt-tint); color: var(--bt-ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bt-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--bt-ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.bt-skip:focus { left: 8px; color: #fff; }

.bt-container { width: 100%; max-width: var(--bt-max); margin: 0 auto; padding: 0 var(--bt-gutter); }
.bt-main { min-height: 50vh; }

/* ---------- Buttons ---------- */
.bt-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--bt-primary); color: #fff; border: 0;
	padding: 12px 20px; border-radius: 999px;
	font-family: var(--bt-head); font-weight: 700; font-size: 15px;
	transition: background .2s var(--bt-ease), transform .2s var(--bt-ease);
}
.bt-btn:hover { background: var(--bt-ink); color: #fff; }
.bt-btn:active { transform: translateY(1px); }
.bt-btn--sm { padding: 8px 16px; font-size: 14px; }

.bt-iconbtn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: transparent; border: 0; color: var(--bt-ink);
	transition: background .2s;
}
.bt-iconbtn:hover { background: var(--bt-surface); }

/* ---------- Header ---------- */
.bt-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--bt-line);
}
.admin-bar .bt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bt-header { top: 0; } }

.bt-header__inner { display: flex; align-items: center; gap: 28px; height: var(--bt-header-h); }
.bt-header__menu { display: none; margin-left: -10px; }
.bt-header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.bt-logo, .custom-logo-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--bt-ink); }
.bt-logo:hover { color: var(--bt-ink); }
.custom-logo { max-height: 40px; width: auto; }
.bt-logo__mark { flex-shrink: 0; transition: transform .4s var(--bt-ease); }
.bt-logo:hover .bt-logo__mark { transform: rotate(-6deg) scale(1.05); }
.bt-logo__text { font-family: var(--bt-head); font-weight: 800; font-size: 23px; letter-spacing: -.03em; }
.bt-logo__text span { color: var(--bt-primary); }

.bt-nav { min-width: 0; }
.bt-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.bt-nav__list::-webkit-scrollbar { display: none; }
.bt-nav__list a {
	position: relative; display: block; padding: 8px 12px;
	font-family: var(--bt-head); font-weight: 700; font-size: 15px; color: var(--bt-ink);
}
.bt-nav__list a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
	background: var(--bt-lagoon); border-radius: 3px;
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--bt-ease);
}
.bt-nav__list a:hover::after,
.bt-nav__list .current-menu-item > a::after,
.bt-nav__list .current-cat > a::after { transform: scaleX(1); }

/* Search panel */
.bt-search { border-top: 1px solid var(--bt-line); background: #fff; padding: 18px 0; animation: bt-drop .25s var(--bt-ease); }
@keyframes bt-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.bt-searchform {
	display: flex; align-items: center; gap: 10px;
	background: var(--bt-surface); border: 1px solid var(--bt-line);
	border-radius: 999px; padding: 6px 6px 6px 18px;
	color: var(--bt-muted);
	transition: border-color .2s, box-shadow .2s;
}
.bt-searchform:focus-within { border-color: var(--bt-primary); box-shadow: 0 0 0 4px var(--bt-tint); background: #fff; }
.bt-searchform__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--bt-ink); padding: 6px 0; }
.bt-searchform__input:focus { outline: none; }

/* ---------- Breaking ticker ---------- */
.bt-ticker { background: var(--bt-surface); border-bottom: 1px solid var(--bt-line); font-size: 14px; }
.bt-ticker__inner { display: flex; align-items: center; gap: 16px; height: 42px; }
.bt-ticker__label {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	font-family: var(--bt-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
	color: var(--bt-coral);
}
.bt-ticker__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--bt-coral); box-shadow: 0 0 0 0 rgba(240, 83, 58, .6); animation: bt-pulse 1.8s infinite; }
@keyframes bt-pulse { 70% { box-shadow: 0 0 0 8px rgba(240, 83, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 83, 58, 0); } }
.bt-ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.bt-ticker__track { display: flex; gap: 40px; width: max-content; list-style: none; margin: 0; padding: 0; animation: bt-marquee 55s linear infinite; }
.bt-ticker:hover .bt-ticker__track, .bt-ticker:focus-within .bt-ticker__track { animation-play-state: paused; }
.bt-ticker__track li { position: relative; padding-left: 16px; }
.bt-ticker__track li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--bt-lagoon); }
.bt-ticker__track a { color: var(--bt-ink); font-weight: 500; }
.bt-ticker__track a:hover { color: var(--bt-primary); }
@keyframes bt-marquee { to { transform: translateX(-50%); } }

/* ---------- Drawer (mobile menu) ---------- */
.bt-drawer { position: fixed; inset: 0; z-index: 100; }
.bt-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 27, 45, .35); animation: bt-fade .2s; }
.bt-drawer__panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 360px);
	background: #fff; padding: 16px 20px 32px; overflow-y: auto;
	box-shadow: 0 0 40px rgba(15, 27, 45, .15);
	animation: bt-slide .28s var(--bt-ease);
	display: flex; flex-direction: column; gap: 18px;
}
.bt-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.bt-drawer .bt-nav__list { flex-direction: column; white-space: normal; }
.bt-drawer .bt-nav__list a { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--bt-line); }
.bt-drawer .bt-nav__list a::after { display: none; }
@keyframes bt-fade { from { opacity: 0; } }
@keyframes bt-slide { from { transform: translateX(-100%); } }

/* ---------- Shared bits ---------- */
.bt-cat {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--bt-head); font-weight: 800; font-size: 12px;
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--bt-cat, var(--bt-primary));
	margin-bottom: 8px;
}
.bt-cat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.bt-cat:hover { color: var(--bt-ink); }
.bt-cat--lg { font-size: 13px; }

.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--bt-muted); }
.bt-meta__author { color: var(--bt-ink); font-weight: 600; }
.bt-meta__author:hover { color: var(--bt-primary); }
.bt-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.bt-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--bt-radius); background: var(--bt-surface); transition: transform .5s var(--bt-ease), filter .3s; }
.bt-img--placeholder {
	display: block; aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 80% 20%, rgba(255,255,255,.35) 0 18%, transparent 19%),
		radial-gradient(circle at 15% 110%, rgba(255,255,255,.25) 0 30%, transparent 31%),
		linear-gradient(135deg, var(--bt-cat, var(--bt-primary)), var(--bt-ink));
}

/* Headline links: animated underline like TechCrunch */
.bt-lead__title a, .bt-mini__title a, .bt-river__title a, .bt-card__title a, .bt-popular__title a {
	color: var(--bt-ink);
	background-image: linear-gradient(var(--bt-lagoon), var(--bt-lagoon));
	background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
	transition: background-size .35s var(--bt-ease), color .2s;
}
.bt-lead__title a:hover, .bt-mini__title a:hover, .bt-river__title a:hover, .bt-card__title a:hover, .bt-popular__title a:hover {
	background-size: 100% 2px; color: var(--bt-ink);
}
.bt-lead:hover .bt-img, .bt-river:hover .bt-img, .bt-card:hover .bt-img, .bt-mini:hover .bt-img { transform: scale(1.03); }
.bt-lead__media, .bt-river__media, .bt-card__media, .bt-mini__media { display: block; overflow: hidden; border-radius: var(--bt-radius); }

/* Section headings */
.bt-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--bt-ink); }
.bt-section-title { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.025em; }
.bt-section-title--cat { display: flex; align-items: center; gap: 10px; }
.bt-section-title--cat::before { content: ""; width: 12px; height: 26px; border-radius: 3px; background: var(--bt-cat, var(--bt-primary)); }
.bt-section-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--bt-head); font-weight: 700; font-size: 14px; color: var(--bt-ink); }
.bt-section-more .bt-icon { width: 16px; height: 16px; transition: transform .2s var(--bt-ease); }
.bt-section-more:hover { color: var(--bt-primary); }
.bt-section-more:hover .bt-icon { transform: translateX(3px); }
.bt-section-label {
	font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--bt-muted); margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--bt-line);
}

/* ---------- Homepage hero ---------- */
.bt-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 40px; }
.bt-lead__media .bt-img { aspect-ratio: 16 / 9; }
.bt-lead__body { padding-top: 18px; }
.bt-lead__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 12px; }
.bt-lead__excerpt { font-size: 18px; color: var(--bt-muted); max-width: 62ch; margin-bottom: 14px; }

.bt-hero__side { display: flex; flex-direction: column; }
.bt-mini { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--bt-line); }
.bt-mini:last-child { border-bottom: 0; }
.bt-mini__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.bt-mini .bt-cat { margin-bottom: 6px; font-size: 11px; }
.bt-mini__media .bt-img { aspect-ratio: 1 / 1; border-radius: 8px; }
.bt-mini__media { border-radius: 8px; }

/* ---------- Main + sidebar layout ---------- */
.bt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 24px; padding-bottom: 56px; }
.bt-layout--article { padding-top: 0; }
.bt-layout__side { display: flex; flex-direction: column; gap: 32px; }
.bt-sticky { position: sticky; top: calc(var(--bt-header-h) + 24px); }

/* River list */
.bt-river { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--bt-line); }
.bt-river__title { font-size: 22px; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; margin-bottom: 10px; }
.bt-river__media .bt-img { aspect-ratio: 3 / 2; }

/* Grid cards */
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 20px; }
.bt-card__media .bt-img { aspect-ratio: 16 / 9; }
.bt-card__body { padding-top: 14px; }
.bt-card__title { font-size: 18px; font-weight: 800; line-height: 1.28; margin-bottom: 8px; }

.bt-catblock { padding: 48px 0; border-top: 1px solid var(--bt-line); }
.bt-catblock:nth-of-type(even) { background: var(--bt-surface); }
.bt-catblock .bt-section-head { border-bottom-color: var(--bt-cat, var(--bt-ink)); }

/* Sidebar widgets */
.bt-widget { font-size: 15px; }
.bt-widget__title {
	font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--bt-ink);
}
.bt-widget ul { list-style: none; padding: 0; margin: 0; }
.bt-widget li { padding: 10px 0; border-bottom: 1px solid var(--bt-line); }
.bt-widget li a { color: var(--bt-ink); font-weight: 600; }
.bt-widget li a:hover { color: var(--bt-primary); }

.bt-popular__list { counter-reset: bt-pop; list-style: none; margin: 0; padding: 0; }
.bt-popular .bt-popular__item { counter-increment: bt-pop; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--bt-line); }
.bt-popular__item::before {
	content: counter(bt-pop);
	font-family: var(--bt-head); font-weight: 800; font-size: 32px; line-height: 1;
	color: var(--bt-lagoon); opacity: .9;
}
.bt-popular .bt-cat { font-size: 11px; margin-bottom: 4px; }
.bt-popular__title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0; }

/* Pagination */
.bt-pagination { margin-top: 32px; }
.bt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bt-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px;
	border: 1px solid var(--bt-line); border-radius: 999px;
	font-family: var(--bt-head); font-weight: 700; color: var(--bt-ink);
	transition: all .2s;
}
.bt-pagination .page-numbers:hover { border-color: var(--bt-ink); }
.bt-pagination .page-numbers.current { background: var(--bt-ink); border-color: var(--bt-ink); color: #fff; }
.bt-pagination .next { background: var(--bt-primary); border-color: var(--bt-primary); color: #fff; }
.bt-pagination .next:hover { background: var(--bt-ink); border-color: var(--bt-ink); color: #fff; }

.bt-empty { padding: 48px 24px; text-align: center; background: var(--bt-surface); border-radius: var(--bt-radius); margin-top: 24px; }
.bt-count { color: var(--bt-muted); font-size: 14px; margin: 8px 0 0; }

/* ---------- Archive header ---------- */
.bt-archive-head { background: var(--bt-surface); border-bottom: 1px solid var(--bt-line); padding: 44px 0 36px; position: relative; overflow: hidden; }
.bt-archive-head::after {
	content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
	background: var(--bt-cat, var(--bt-primary)); opacity: .08;
}
.bt-archive-head__kicker { font-family: var(--bt-head); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-cat, var(--bt-primary)); margin-bottom: 6px; }
.bt-archive-head__title { font-size: clamp(32px, 4.5vw, 54px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.bt-archive-head__desc { max-width: 70ch; color: var(--bt-muted); font-size: 17px; margin-top: 12px; }
.bt-archive-head__desc p:last-child { margin: 0; }
.bt-archive-head__author { display: flex; align-items: center; gap: 18px; }
.bt-archive-head__author img { border-radius: 50%; }
.bt-archive-head__search { max-width: 560px; margin-top: 18px; }
.bt-lead--archive { padding: 24px 0 8px; border-bottom: 1px solid var(--bt-line); }
.bt-lead--archive .bt-lead__title { font-size: clamp(26px, 3vw, 36px); }

/* ---------- Article ---------- */
.bt-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .bt-progress { top: 32px; }
.bt-progress__bar { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--bt-primary), var(--bt-lagoon)); }

.bt-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--bt-muted); margin-bottom: 18px; }
.bt-crumbs a { color: var(--bt-muted); }
.bt-crumbs a:hover { color: var(--bt-primary); }

.bt-article__head { padding-top: 36px; padding-bottom: 28px; max-width: calc(var(--bt-max)); }
.bt-article__title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; max-width: 22ch; margin: 4px 0 16px; }
.bt-article__dek { font-size: 20px; line-height: 1.5; color: var(--bt-muted); max-width: 60ch; margin-bottom: 0; }
.bt-article__byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bt-line); }
.bt-byline { display: flex; align-items: center; gap: 12px; }
.bt-byline__avatar { border-radius: 50%; }
.bt-byline__name { font-weight: 700; color: var(--bt-ink); }
.bt-byline__name:hover { color: var(--bt-primary); }

.bt-share { display: flex; gap: 8px; }
.bt-share__btn {
	position: relative; display: inline-grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--bt-line); background: #fff; color: var(--bt-ink);
	transition: all .2s var(--bt-ease);
}
.bt-share__btn:hover { background: var(--bt-ink); border-color: var(--bt-ink); color: #fff; transform: translateY(-2px); }
.bt-share__btn .bt-icon { width: 18px; height: 18px; }
.bt-share__toast { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--bt-ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.bt-share__toast.is-visible { opacity: 1; }

.bt-article__figure { margin: 0 0 32px; }
.bt-article__figure .bt-img { aspect-ratio: 16 / 9; }
.bt-article__figure figcaption { font-size: 13px; color: var(--bt-muted); margin-top: 10px; }

/* Article body text */
.bt-prose { font-size: 19px; line-height: 1.75; color: var(--bt-text); max-width: 720px; }
.bt-prose--page { margin: 40px auto 64px; }
.bt-prose > * + * { margin-top: 1.1em; }
.bt-prose p { margin: 0; }
.bt-prose h2 { font-size: 28px; font-weight: 800; margin: 1.8em 0 .5em; letter-spacing: -.025em; }
.bt-prose h3 { font-size: 22px; font-weight: 800; margin: 1.6em 0 .4em; }
.bt-prose a { color: var(--bt-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(20, 184, 166, .45); }
.bt-prose a:hover { text-decoration-color: var(--bt-primary); }
.bt-prose ul, .bt-prose ol { padding-left: 1.3em; }
.bt-prose li + li { margin-top: .4em; }
.bt-prose li::marker { color: var(--bt-primary); font-weight: 700; }
.bt-prose blockquote {
	margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--bt-lagoon);
	font-family: var(--bt-head); font-size: 24px; font-weight: 700; line-height: 1.4; color: var(--bt-ink);
}
.bt-prose blockquote p { margin: 0; }
.bt-prose img, .bt-prose figure img { border-radius: var(--bt-radius); }
.bt-prose figure { margin: 1.8em 0; }
.bt-prose figcaption { font-size: 14px; color: var(--bt-muted); margin-top: 8px; }
.bt-prose code { font-size: .88em; background: var(--bt-surface); padding: 2px 6px; border-radius: 4px; }
.bt-prose pre { background: var(--bt-ink); color: #E6F4F3; padding: 20px; border-radius: var(--bt-radius); overflow-x: auto; font-size: 15px; }
.bt-prose pre code { background: none; padding: 0; }
.bt-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bt-prose th, .bt-prose td { border-bottom: 1px solid var(--bt-line); padding: 10px; text-align: left; }
.bt-prose hr { border: 0; height: 1px; background: var(--bt-line); margin: 2.4em 0; }
.bt-prose .wp-block-embed, .bt-prose iframe { max-width: 100%; }

/* Key takeaways box */
.bt-takeaways { max-width: 720px; margin: 0 0 28px; padding: 20px 24px; background: var(--bt-tint); border-left: 4px solid var(--bt-primary); border-radius: 0 var(--bt-radius) var(--bt-radius) 0; }
.bt-takeaways__title { font-family: var(--bt-head); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-primary); margin: 0 0 10px; }
.bt-takeaways ul { margin: 0; padding-left: 1.2em; font-size: 17px; line-height: 1.55; color: var(--bt-ink); }
.bt-takeaways li + li { margin-top: 6px; }
.bt-takeaways li::marker { color: var(--bt-primary); }

/* Table of contents */
.bt-prose .bt-toc { margin: 0 0 2em; padding: 18px 22px; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); background: #fff; font-size: 16px; }
.bt-prose .bt-toc__title { font-family: var(--bt-head); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-muted); margin: 0 0 8px; }
.bt-prose .bt-toc ol { margin: 0; padding-left: 1.3em; }
.bt-prose .bt-toc li + li { margin-top: 4px; }
.bt-prose .bt-toc a { color: var(--bt-ink); text-decoration: none; font-weight: 600; }
.bt-prose .bt-toc a:hover { color: var(--bt-primary); text-decoration: underline; }

/* Contact form */
.bt-form { display: grid; gap: 16px; max-width: 560px; margin-top: 1.5em; }
.bt-form label { display: block; font-weight: 600; font-size: 15px; color: var(--bt-ink); margin-bottom: 6px; }
.bt-form input, .bt-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--bt-line); border-radius: 8px; font: inherit; font-size: 16px; background: #fff; }
.bt-form input:focus, .bt-form textarea:focus { outline: none; border-color: var(--bt-primary); box-shadow: 0 0 0 4px var(--bt-tint); }
.bt-form__hp { position: absolute !important; left: -9999px !important; }
.bt-notice { padding: 14px 18px; border-radius: 8px; font-size: 16px; margin: 1em 0; }
.bt-notice--ok { background: #E7F7EE; color: #14532D; }
.bt-notice--err { background: #FDECEC; color: #7F1D1D; }

/* Sources list (added by the article importer) */
.bt-prose .bt-sources-title { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-muted); margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--bt-line); }
.bt-prose .bt-sources { list-style: none; padding: 0; font-size: 15px; line-height: 1.5; }
.bt-prose .bt-sources li { position: relative; padding-left: 18px; }
.bt-prose .bt-sources li::before { content: "↗"; position: absolute; left: 0; color: var(--bt-lagoon); }
.bt-prose .bt-sources a { color: var(--bt-muted); text-decoration-color: var(--bt-line); }
.bt-prose .bt-sources a:hover { color: var(--bt-primary); }

.bt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; max-width: 720px; }
.bt-tags a { padding: 6px 14px; border-radius: 999px; background: var(--bt-surface); color: var(--bt-ink); font-size: 14px; font-weight: 600; border: 1px solid var(--bt-line); }
.bt-tags a:hover { background: var(--bt-tint); border-color: var(--bt-lagoon); }

.bt-authorbox { display: flex; gap: 18px; align-items: flex-start; max-width: 720px; margin: 40px 0; padding: 24px; background: var(--bt-surface); border-radius: var(--bt-radius); }
.bt-authorbox img { border-radius: 50%; flex-shrink: 0; }
.bt-authorbox__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-muted); margin: 0 0 2px; }
.bt-authorbox__name { font-family: var(--bt-head); font-size: 20px; font-weight: 800; color: var(--bt-ink); }
.bt-authorbox__bio { margin: 6px 0 0; color: var(--bt-muted); font-size: 15px; }

.bt-related { background: var(--bt-surface); }

/* Comments */
.bt-comments { max-width: 720px; margin-top: 16px; }
.bt-comments__title { font-size: 22px; font-weight: 800; }
.bt-comments__list { list-style: none; padding: 0; }
.bt-comments__list .comment { padding: 16px 0; border-bottom: 1px solid var(--bt-line); }
.bt-comments__list .children { list-style: none; padding-left: 24px; }
.bt-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.bt-comments .comment-meta { font-size: 14px; color: var(--bt-muted); }
.bt-comments .says { display: none; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--bt-ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--bt-line); border-radius: 8px; font: inherit; background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--bt-primary); box-shadow: 0 0 0 4px var(--bt-tint); }

/* ---------- Ads ---------- */
.bt-ad { margin: 24px auto; text-align: center; }
.bt-ad__label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bt-muted); margin-bottom: 6px; }
.bt-ad--placeholder {
	display: grid; place-items: center; gap: 2px;
	border: 2px dashed #C9D6D8; border-radius: var(--bt-radius);
	color: var(--bt-muted); font-family: var(--bt-head); font-weight: 700; font-size: 14px;
	background: repeating-linear-gradient(45deg, #fff, #fff 10px, #F7FAFA 10px, #F7FAFA 20px);
}
.bt-ad--placeholder small { font-family: var(--bt-body); font-weight: 400; font-size: 12px; }
.bt-ad--header.bt-ad--placeholder, .bt-ad--footer.bt-ad--placeholder { min-height: 90px; max-width: 970px; }
.bt-ad--sidebar.bt-ad--placeholder { min-height: 250px; margin: 0; }
.bt-ad--incontent.bt-ad--placeholder { min-height: 200px; }
.bt-prose .bt-ad { margin: 2em 0; }

/* ---------- 404 ---------- */
.bt-404 { text-align: center; padding: 80px var(--bt-gutter) 96px; max-width: 720px; }
.bt-404__code { font-family: var(--bt-head); font-weight: 800; font-size: clamp(96px, 18vw, 180px); line-height: 1; letter-spacing: -.06em; margin: 0; background: linear-gradient(135deg, var(--bt-primary), var(--bt-lagoon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-404__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.bt-404__search { margin: 24px auto; max-width: 520px; }

/* ---------- Footer ---------- */
.bt-footer { background: var(--bt-surface); border-top: 1px solid var(--bt-line); margin-top: 24px; padding: 56px 0 24px; font-size: 15px; }
.bt-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.bt-footer__brand p { color: var(--bt-muted); max-width: 42ch; margin: 16px 0 18px; }
.bt-footer__title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-muted); margin-bottom: 14px; }
.bt-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bt-footer__links a { color: var(--bt-ink); font-weight: 600; }
.bt-footer__links a:hover { color: var(--bt-primary); }
.bt-social { display: flex; gap: 8px; }
.bt-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--bt-line); color: var(--bt-ink); transition: all .2s; }
.bt-social a:hover { background: var(--bt-primary); border-color: var(--bt-primary); color: #fff; }
.bt-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--bt-line); font-size: 14px; color: var(--bt-muted); }
.bt-footer__bottom p { margin: 0; }
.bt-totop { color: var(--bt-muted); font-weight: 600; }

/* WordPress alignment helpers */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--bt-muted); }
.sticky .bt-lead__title::after { content: ""; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.bt-header__inner { gap: 16px; }
	.bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bt-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}

@media (max-width: 900px) {
	:root { --bt-header-h: 60px; }
	.bt-header__menu { display: inline-grid; }
	.bt-header .bt-nav { display: none; }
	.bt-logo__text { font-size: 21px; }
	.bt-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
	.bt-layout { grid-template-columns: 1fr; }
	.bt-layout__side { border-top: 2px solid var(--bt-ink); padding-top: 24px; }
	.bt-sticky { position: static; }
	.bt-footer__grid { grid-template-columns: 1fr 1fr; }
	.bt-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	:root { --bt-gutter: 16px; }
	body { font-size: 15px; }
	.bt-ticker__inner { height: 38px; }
	.bt-lead__excerpt { font-size: 16px; }
	.bt-river { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 18px 0; }
	.bt-river__media .bt-img { aspect-ratio: 1 / 1; }
	.bt-river__title { font-size: 17px; }
	.bt-mini { grid-template-columns: minmax(0, 1fr) 88px; }
	.bt-mini__title { font-size: 16px; }
	.bt-grid { grid-template-columns: 1fr; gap: 24px; }
	.bt-catblock { padding: 36px 0; }
	.bt-section-title { font-size: 22px; }
	.bt-prose { font-size: 17px; line-height: 1.7; }
	.bt-prose blockquote { font-size: 20px; }
	.bt-article__dek { font-size: 17px; }
	.bt-authorbox { flex-direction: column; }
	.bt-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.bt-ticker__track { animation: none; }
}
