/* Trending Blog Kit
 * One colour per topic is the system: every tag, placeholder image, section rule and
 * menu underline takes its colour from the story's category (--c). Everything else stays quiet.
 */

@font-face {
	font-family: "TBK Archivo";
	src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "TBK Source Serif";
	src: url("../fonts/source-serif-4.woff2") format("woff2-variations"), url("../fonts/source-serif-4.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "TBK Source Serif";
	src: url("../fonts/source-serif-4-italic.woff2") format("woff2-variations"), url("../fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

body.tbk {
	--ink: #13233A;
	--ink-soft: #2E3B4F;
	--muted: #5B6779;
	--line: #D8DEE7;
	--mist: #EEF2F7;
	--paper: #FFFFFF;
	--accent: #2D3BE8;
	--accent-dark: #1F2BC4;
	--sans: "TBK Archivo", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--serif: "TBK Source Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
	--wrap: 1240px;
	--gutter: 20px;
	--c: var(--accent);

	margin: 0;
	padding: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
:where(body.tbk) *,
:where(body.tbk) *::before,
:where(body.tbk) *::after { box-sizing: border-box; }
:where(body.tbk) :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--sans);
	color: inherit;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}
:where(body.tbk) p { margin: 0; }
:where(body.tbk) a { color: inherit; text-decoration: none; }
:where(body.tbk) img { max-width: 100%; height: auto; border: 0; }
:where(body.tbk) button { font-family: var(--sans); }
body.tbk :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.tbk-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.tbk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tbk-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.tbk-skip:focus { top: 12px; }

/* ---------- Buttons and forms ---------- */
.tbk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--accent); color: #fff !important; border: 0; border-radius: 6px;
	padding: 11px 20px; font: 700 15px/1.2 var(--sans); cursor: pointer; text-decoration: none !important;
}
.tbk-btn:hover { background: var(--accent-dark); }
.tbk-btn-quiet { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }
.tbk-btn-quiet:hover { background: var(--ink); color: #fff !important; }

body.tbk input[type="text"], body.tbk input[type="email"], body.tbk input[type="url"],
body.tbk input[type="search"], body.tbk input[type="password"], body.tbk textarea {
	width: 100%; padding: 11px 12px; border: 1px solid #B8C2D0; border-radius: 6px;
	background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
}
body.tbk input:focus, body.tbk textarea:focus { outline: 3px solid rgba(45, 59, 232, .3); outline-offset: 0; border-color: var(--accent); }
:where(body.tbk) label { font-weight: 600; font-size: 15px; }

.tbk-searchform { display: flex; gap: 8px; max-width: 640px; }
.tbk-searchform input { flex: 1; }

/* ---------- Header ---------- */
.tbk-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
body.admin-bar .tbk-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tbk-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .tbk-header { top: 0; } }
.tbk-bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.tbk-brand { flex: none; }
.tbk-wordmark {
	font-family: var(--sans); font-weight: 900; font-stretch: 72%; font-size: 30px; line-height: 1;
	letter-spacing: -.01em; color: var(--ink) !important; text-decoration: none !important;
}
.tbk-brand .custom-logo-link img { max-height: 44px; width: auto; display: block; }
.tbk-nav { flex: 1; min-width: 0; }
.tbk-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tbk-menu::-webkit-scrollbar { display: none; }
.tbk-menu li { margin: 0; flex: none; }
.tbk-menu a {
	position: relative; display: block; padding: 22px 10px; font-weight: 600; font-size: 15px; color: var(--ink);
	white-space: nowrap;
}
.tbk-menu a::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 4px;
	background: var(--c, var(--accent)); transform: scaleY(0); transform-origin: bottom; transition: transform .15s ease;
}
.tbk-menu a:hover::after, .tbk-menu a[aria-current="page"]::after, .tbk-menu .current-menu-item > a::after { transform: scaleY(1); }
.tbk-tools { display: flex; gap: 4px; margin-left: auto; flex: none; }
.tbk-iconbtn {
	width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; padding: 0;
}
.tbk-iconbtn:hover { background: var(--mist); }
.tbk-icon { fill: currentColor; display: block; }
.tbk-menubtn { display: none; }
.tbk-searchbar { background: var(--mist); border-top: 1px solid var(--line); padding: 14px 0; }
.tbk-searchbar[hidden] { display: none; }

@media (max-width: 960px) {
	.tbk-menubtn { display: inline-flex; }
	.tbk-bar { min-height: 60px; gap: 12px; }
	.tbk-wordmark { font-size: 26px; }
	.tbk-js .tbk-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(19, 35, 58, .25); }
	.tbk-js .tbk-nav.is-open { display: block; }
	.tbk-js .tbk-menu { flex-direction: column; overflow: visible; padding: 8px var(--gutter) 16px; }
	.tbk-js .tbk-menu a { padding: 13px 0 13px 22px; font-size: 17px; border-bottom: 1px solid var(--mist); }
	.tbk-js .tbk-menu a::after { left: 0; right: auto; top: 50%; bottom: auto; width: 10px; height: 10px; margin-top: -5px; transform: none; }
	html:not(.tbk-js) .tbk-nav { order: 3; flex-basis: 100%; }
	html:not(.tbk-js) .tbk-bar { flex-wrap: wrap; }
}

/* Trending strip */
.tbk-strip { background: var(--mist); border-bottom: 1px solid var(--line); }
.tbk-strip-in { display: flex; align-items: center; gap: 20px; min-height: 46px; }
.tbk-strip-label { flex: none; font-weight: 800; font-size: 14px; font-stretch: 85%; }
.tbk-strip-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tbk-strip-list::-webkit-scrollbar { display: none; }
.tbk-strip-list li { flex: none; display: flex; align-items: center; gap: 8px; scroll-snap-align: start; margin: 0; }
.tbk-strip-list li::before { content: ""; width: 8px; height: 8px; background: var(--c); flex: none; }
.tbk-strip-list a { font-size: 14px; font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tbk-strip-list a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Story pieces ---------- */
.tbk-tag {
	display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; line-height: 1.2;
	color: var(--c) !important; text-decoration: none !important;
}
.tbk-tag::before { content: ""; width: 9px; height: 9px; background: var(--c); flex: none; }
a.tbk-tag:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.tbk-h { font-weight: 700; font-stretch: 90%; line-height: 1.18; letter-spacing: -.005em; color: var(--ink); }
.tbk-h a { color: var(--ink) !important; text-decoration: none; }
.tbk-h a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tbk-dek { font-family: var(--serif); font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.tbk-meta { font-size: 13px; color: var(--muted); }

.tbk-media {
	display: block; position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9;
	background: var(--c); container-type: inline-size;
}
.tbk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; }
.tbk-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; overflow: hidden; background: var(--c); }
.tbk-ph span {
	font-family: var(--sans); font-weight: 900; font-stretch: 62%; line-height: .74; color: rgba(255, 255, 255, .24);
	font-size: 9rem; font-size: 62cqw; transform: translate(-3%, 4%); user-select: none;
}

.tbk-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tbk-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tbk-card-grid .tbk-h { font-size: 21px; }
.tbk-card-text .tbk-h { font-size: 20px; }
.tbk-card-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.tbk-card-row .tbk-media { aspect-ratio: 4 / 3; }
.tbk-card-row .tbk-h { font-size: 18px; }
.tbk-card-row .tbk-dek { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
	.tbk-card-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.tbk-card-row .tbk-dek { display: none; }
	.tbk-card-row .tbk-h { font-size: 17px; }
}

.tbk-sec-title { font-weight: 800; font-stretch: 85%; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.tbk-sec-title a { color: var(--ink) !important; }
.tbk-more { font-weight: 700; font-size: 14px; color: var(--ink) !important; text-decoration: underline !important; text-decoration-color: var(--c) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }

/* ---------- Homepage ---------- */
body.tbk { display: flex; flex-direction: column; min-height: 100vh; }
.tbk-main { flex: 1 0 auto; }
.tbk-lead { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 44px; margin-top: 32px; margin-bottom: 56px; }
.tbk-lead-story { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tbk-lead-body { display: flex; flex-direction: column; gap: 12px; }
.tbk-lead-story .tbk-h { font-size: clamp(30px, 1.1rem + 2.6vw, 50px); font-weight: 800; font-stretch: 78%; line-height: 1.03; letter-spacing: -.018em; }
.tbk-lead-story .tbk-dek { font-size: 19px; max-width: 62ch; }
.tbk-lead-side { display: flex; flex-direction: column; }
.tbk-lead-side .tbk-card { padding: 18px 0; border-top: 1px solid var(--line); }
.tbk-lead-side .tbk-card:first-child { padding-top: 0; border-top: 0; }

.tbk-mostread { margin-bottom: 56px; padding-top: 14px; --rule: 2px; --rule-c: var(--ink); }
.tbk-mostread .tbk-sec-title { margin-bottom: 20px; }
.tbk-rank { list-style: none; margin: 0; padding: 0; counter-reset: tbkrank; }
.tbk-rank li { counter-increment: tbkrank; position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tbk-rank li::before {
	content: counter(tbkrank); font-family: var(--sans); font-weight: 800; font-stretch: 70%; font-size: 46px;
	line-height: .9; color: var(--c);
}
.tbk-rank .tbk-h { font-size: 17px; }
.tbk-rank-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tbk-rank-row li { padding: 0 20px; border-left: 1px solid var(--line); }
.tbk-rank-row li:first-child { padding-left: 0; border-left: 0; }

.tbk-topic { margin-bottom: 56px; padding-top: 20px; --rule: 6px; --rule-c: var(--c); }
.tbk-topic-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.tbk-topic-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; }
.tbk-topic-grid > .tbk-card-grid .tbk-h { font-size: 26px; font-stretch: 85%; }
.tbk-topic-solo { display: block; }
.tbk-topic-solo > .tbk-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.tbk-topic-list { display: flex; flex-direction: column; gap: 20px; }
.tbk-topic-list .tbk-card + .tbk-card { padding-top: 20px; border-top: 1px solid var(--line); }

.tbk-latest { margin-bottom: 64px; padding-top: 14px; --rule: 2px; --rule-c: var(--ink); }
.tbk-latest .tbk-sec-title { margin-bottom: 22px; }
.tbk-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.tbk-stack .tbk-card { padding: 20px 0; border-top: 1px solid var(--line); }
.tbk-stack .tbk-card:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.tbk-older { margin-top: 28px; }

.tbk-welcome { padding-top: 72px; padding-bottom: 96px; }
.tbk-welcome > * { max-width: 920px; }
.tbk-welcome h1 { font-weight: 900; font-stretch: 66%; font-size: clamp(56px, 6vw + 1rem, 120px); line-height: .92; letter-spacing: -.02em; margin-bottom: 24px; overflow-wrap: anywhere; }
.tbk-welcome-lede { font-family: var(--serif); font-size: clamp(20px, 1rem + .8vw, 26px); line-height: 1.45; color: var(--ink-soft); max-width: 44ch; margin-bottom: 14px !important; }
.tbk-welcome p { font-size: 17px; color: var(--muted); }
.tbk-admin-hint { margin-top: 32px !important; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--mist); color: var(--ink) !important; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

@media (max-width: 1024px) {
	.tbk-rank-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
	.tbk-rank-row li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
	.tbk-lead { grid-template-columns: 1fr; gap: 28px; margin-top: 20px; }
	.tbk-lead-side .tbk-card:first-child { padding-top: 18px; border-top: 1px solid var(--line); }
	.tbk-topic-grid { grid-template-columns: 1fr; gap: 24px; }
	.tbk-topic-solo > .tbk-card { grid-template-columns: 1fr; gap: 12px; }
	.tbk-stack { grid-template-columns: 1fr; }
	.tbk-stack .tbk-card:nth-child(2) { border-top: 1px solid var(--line); padding-top: 20px; }
}
@media (max-width: 600px) {
	body.tbk { --gutter: 16px; }
	.tbk-rank-row { grid-template-columns: 1fr; row-gap: 0; }
	.tbk-rank-row li { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 14px; padding: 14px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
	.tbk-rank-row li:first-child { border-top: 0; padding-top: 0 !important; }
	.tbk-rank-row li::before { font-size: 36px; width: 30px; }
	.tbk-rank-row li > * { flex: 1 1 calc(100% - 48px); margin-left: 44px; }
	.tbk-rank-row li > .tbk-tag { margin-top: -38px; }
	.tbk-sec-title { font-size: 24px; }
	.tbk-lead, .tbk-mostread, .tbk-topic, .tbk-latest { margin-bottom: 40px; }
}

/* ---------- Archive ---------- */
.tbk-archive-head { display: flex; gap: 20px; align-items: flex-start; margin-top: 36px; margin-bottom: 32px; padding-top: 24px; --rule: 6px; --rule-c: var(--c); }
.tbk-archive-title { font-weight: 800; font-stretch: 80%; font-size: clamp(32px, 1rem + 3vw, 52px); line-height: 1.02; letter-spacing: -.015em; }
.tbk-pagenum { display: block; font-size: 16px; font-weight: 600; font-stretch: 100%; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.tbk-archive-desc { font-family: var(--serif); font-size: 18px; color: var(--ink-soft); max-width: 68ch; margin-top: 12px; }
.tbk-archive-desc p { margin: 0 0 .6em; }
.tbk-archive-head .tbk-searchform { margin-top: 18px; }
.tbk-avatar { border-radius: 50%; display: block; flex: none; }
.tbk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.tbk-nothing { font-family: var(--serif); font-size: 19px; color: var(--ink-soft); padding: 8px 0 32px; }
.tbk-nothing + .tbk-sec-title { margin-bottom: 20px; padding-top: 14px; border-top: 2px solid var(--ink); }
.tbk-pages { margin: 48px 0 72px; }
.tbk-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tbk-pages li { margin: 0; }
.tbk-pages a, .tbk-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; font-size: 15px; }
.tbk-pages a:hover { border-color: var(--ink); }
.tbk-pages .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.tbk-pages .dots { border: 0; }
@media (max-width: 900px) { .tbk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tbk-grid { grid-template-columns: 1fr; gap: 32px; } .tbk-archive-head { margin-top: 24px; } }

/* ---------- Article ---------- */
.tbk-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 28px; margin-bottom: 56px; align-items: start; }
.tbk-article { min-width: 0; max-width: 740px; }
.tbk-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.tbk-crumbs li { margin: 0; }
.tbk-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.tbk-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tbk-article-head .tbk-tag { font-size: 14px; }
.tbk-article-title { margin-top: 12px !important; font-weight: 800; font-stretch: 80%; font-size: clamp(32px, 1rem + 2.8vw, 52px); line-height: 1.04; letter-spacing: -.018em; }
.tbk-article-dek { margin-top: 16px !important; font-family: var(--serif); font-size: clamp(19px, 1rem + .5vw, 22px); line-height: 1.45; color: var(--ink-soft); }
.tbk-byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tbk-byline-name { font-size: 15px; font-weight: 600; }
.tbk-byline-name a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.tbk-byline-name a:hover { text-decoration-color: var(--ink); }
.tbk-byline-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin-top: 2px !important; }
.tbk-feature { margin: 24px 0 0; }
.tbk-feature .tbk-img { width: 100%; border-radius: 4px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.tbk-feature figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.tbk-article-body { margin-top: 28px; }

.tbk-toc { border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; margin: 0 0 32px; background: #FAFBFD; }
.tbk-toc summary { font-weight: 700; font-size: 16px; cursor: pointer; }
.tbk-toc ol { margin: 12px 0 2px; padding-left: 20px; font-size: 15.5px; line-height: 1.45; }
.tbk-toc li { margin: 6px 0; }
.tbk-toc .tbk-toc-l3 { margin-left: 16px; list-style-type: circle; }
.tbk-toc a { color: var(--accent); }
.tbk-toc a:hover { text-decoration: underline; }

.tbk-prose { font-family: var(--serif); font-size: 19px; line-height: 1.72; color: #1C2838; overflow-wrap: break-word; }
.tbk-prose > * { margin: 0 0 1.15em; }
.tbk-prose p { margin: 0 0 1.15em; }
.tbk-prose h2, .tbk-prose h3, .tbk-prose h4 { font-family: var(--sans); font-weight: 800; font-stretch: 88%; color: var(--ink); line-height: 1.18; letter-spacing: -.01em; scroll-margin-top: 110px; }
.tbk-prose h2 { font-size: 30px; margin: 1.7em 0 .55em; }
.tbk-prose h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.tbk-prose h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.tbk-prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tbk-prose a:hover { text-decoration-thickness: 2px; }
.tbk-prose ul, .tbk-prose ol { padding-left: 1.3em; }
.tbk-prose li { margin: .35em 0; }
.tbk-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--c); font-style: italic; color: var(--ink-soft); }
.tbk-prose blockquote p:last-child { margin-bottom: 0; }
.tbk-prose figure { margin: 1.6em 0; }
.tbk-prose figcaption, .tbk-prose .wp-element-caption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px; }
.tbk-prose img { border-radius: 4px; }
.tbk-prose .wp-block-table { overflow-x: auto; }
.tbk-prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.tbk-prose th, .tbk-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbk-prose th { background: var(--mist); font-weight: 700; }
.tbk-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.tbk-prose code { font-size: .85em; background: var(--mist); padding: 2px 5px; border-radius: 4px; }
.tbk-prose pre { background: var(--mist); padding: 16px; border-radius: 6px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.tbk-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.tbk-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.tbk-prose .aligncenter { margin-inline: auto; display: block; }
.tbk-prose .wp-block-button__link { font-family: var(--sans); text-decoration: none; }
.tbk-prose::after { content: ""; display: table; clear: both; }

.tbk-taglist { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tbk-taglist li { margin: 0; }
.tbk-taglist a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-weight: 600; }
.tbk-taglist a:hover { border-color: var(--ink); }

.tbk-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.tbk-share-label { font-weight: 700; font-size: 15px; margin-right: 6px; }
.tbk-share-btn {
	width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; position: relative; padding: 0;
}
.tbk-share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tbk-share-btn .tbk-icon { width: 20px; height: 20px; }
.tbk-copy-msg { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.tbk-copy-msg:empty { display: none; }

.tbk-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 22px 0 0; border-top: 2px solid var(--ink); }
.tbk-author-name { font-weight: 700; font-size: 17px; }
.tbk-author-name a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.tbk-author-bio { font-family: var(--serif); font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 6px !important; }
.tbk-author-more { margin-top: 8px !important; font-size: 14px; font-weight: 600; }
.tbk-author-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.tbk-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 36px; }
body.admin-bar .tbk-side { top: 132px; }
.tbk-side-box { padding-top: 12px; border-top: 2px solid var(--ink); }
.tbk-side-h { font-weight: 800; font-stretch: 85%; font-size: 20px; margin-bottom: 14px !important; }
.tbk-side .tbk-rank li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; }
.tbk-side .tbk-rank li:first-child { border-top: 0; padding-top: 0; }
.tbk-side .tbk-rank li::before { font-size: 34px; grid-row: span 2; }
.tbk-side .tbk-rank .tbk-h { font-size: 16px; }
.tbk-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tbk-topics li { margin: 0; border-top: 1px solid var(--line); }
.tbk-topics li:first-child { border-top: 0; }
.tbk-topics a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; font-size: 15px; }
.tbk-topics a::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.tbk-topics a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.tbk-related { margin-bottom: 64px; padding-top: 14px; --rule: 2px; --rule-c: var(--ink); }
.tbk-mostread, .tbk-topic, .tbk-latest, .tbk-archive-head, .tbk-related { position: relative; }
.tbk-mostread::before, .tbk-topic::before, .tbk-latest::before, .tbk-archive-head::before, .tbk-related::before {
	content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: var(--rule); background: var(--rule-c);
}
.tbk-related .tbk-sec-title { margin-bottom: 22px; }
.tbk-comments-wrap { margin-bottom: 72px; }
.tbk-comments { max-width: 740px; }
.tbk-comments .tbk-sec-title { margin-bottom: 18px; font-size: 24px; }
.tbk-comment-list, .tbk-comment-list .children { list-style: none; margin: 0; padding: 0; }
.tbk-comment-list .children { padding-left: 28px; }
.tbk-comment-list .comment-body { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; }
.tbk-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tbk-comment-list .comment-author .avatar { border-radius: 50%; }
.tbk-comment-list .comment-author .says { display: none; }
.tbk-comment-list .comment-metadata { font-size: 13px; color: var(--muted); margin: 4px 0 8px 50px; }
.tbk-comment-list .comment-content { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin-left: 50px; }
.tbk-comment-list .comment-content p { margin: 0 0 .7em; }
.tbk-comment-list .reply { margin-left: 50px; font-size: 14px; font-weight: 700; }
.tbk-comment-list .reply a { color: var(--accent); }
.tbk-comments .comment-respond { margin-top: 28px; }
.tbk-comments .comment-form p { margin: 0 0 14px; }
.tbk-comments .comment-form label { display: block; margin-bottom: 6px; }
.tbk-comments .comment-notes, .tbk-comments .logged-in-as { font-size: 14px; color: var(--muted); }
.tbk-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.tbk-comments .comment-form-cookies-consent label { font-weight: 400; font-size: 14px; }

@media (max-width: 1024px) {
	.tbk-article-wrap { grid-template-columns: 1fr; gap: 48px; }
	.tbk-article { max-width: 740px; margin-inline: auto; width: 100%; }
	.tbk-side { position: static; max-width: 740px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
	.tbk-prose { font-size: 18px; line-height: 1.68; }
	.tbk-prose h2 { font-size: 26px; }
	.tbk-prose h3 { font-size: 21px; }
	.tbk-author { flex-direction: column; gap: 12px; }
	.tbk-feature { margin-inline: calc(var(--gutter) * -1); }
	.tbk-feature .tbk-img { border-radius: 0; }
	.tbk-feature figcaption { padding-inline: var(--gutter); }
}

/* ---------- Pages ---------- */
.tbk-page { max-width: 820px; margin-top: 40px; margin-bottom: 72px; }
.tbk-page-head { padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tbk-page-title { font-weight: 800; font-stretch: 80%; font-size: clamp(34px, 1rem + 3vw, 54px); line-height: 1.04; letter-spacing: -.018em; }
.tbk-page .tbk-prose { max-width: 720px; }

.tbk-contact { margin: 1.2em 0 2em; }
.tbk-form { display: grid; gap: 14px; max-width: 620px; position: relative; font-family: var(--sans); }
.tbk-form p { margin: 0 !important; }
.tbk-form label { display: block; margin-bottom: 6px; }
.tbk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tbk-note { padding: 12px 14px; border-radius: 6px; margin: 0 0 16px !important; font-family: var(--sans); font-size: 16px; }
.tbk-note-ok { background: #E7F6EF; color: #065F46; }
.tbk-note-err { background: #FDECEC; color: #9B1C1C; }
.tbk-small { font-family: var(--sans); font-size: 15px; color: var(--muted); margin-top: 14px !important; }

/* ---------- 404 ---------- */
.tbk-404 { padding-top: 56px; padding-bottom: 64px; }
.tbk-404-code { font-weight: 900; font-stretch: 62%; font-size: clamp(120px, 20vw, 220px); line-height: .8; color: var(--line); margin-bottom: 18px !important; }
.tbk-404 h1 { font-weight: 800; font-stretch: 82%; font-size: clamp(30px, 1rem + 2vw, 44px); line-height: 1.08; margin-bottom: 12px; }
.tbk-404 > p:not(.tbk-404-code) { font-family: var(--serif); font-size: 19px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.tbk-footer { background: var(--ink); color: #C9D3E0; padding: 56px 0 28px; margin-top: 24px; }
.tbk-footer :focus-visible { outline-color: #fff; }
.tbk-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.tbk-footer .tbk-wordmark { color: #fff !important; font-size: 32px; }
.tbk-footer-brand p { margin-top: 14px; font-size: 15px; line-height: 1.55; max-width: 36ch; }
.tbk-footer-col h2 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.tbk-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tbk-footer-col li { margin: 0 0 8px; }
.tbk-footer-col a { font-size: 15px; color: #C9D3E0; }
.tbk-footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tbk-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; font-size: 14px; }
.tbk-footer-base > :first-child { flex: 1 1 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.tbk-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.tbk-footer-menu a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .tbk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tbk-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .tbk-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- Ads and cookie notice ---------- */
.tbk-ad { margin: 32px 0; text-align: center; clear: both; min-height: 90px; }
.tbk-ad-label { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tbk-ad-side { margin: 0; }
.tbk-cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99999; max-width: 680px; margin: 0 auto;
	background: #13233A; color: #F1F4F8; border-radius: 10px; padding: 14px 16px; display: flex; flex-wrap: wrap;
	gap: 12px; align-items: center; box-shadow: 0 12px 32px rgba(19, 35, 58, .3); font: 400 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.tbk-cookie[hidden] { display: none !important; }
.tbk-cookie p { margin: 0; flex: 1 1 280px; }
.tbk-cookie a { color: #AFC0FF; text-decoration: underline; }
.tbk-cookie button { background: #2D3BE8; color: #fff; border: 0; border-radius: 6px; padding: 10px 22px; font-weight: 700; font-size: 14px; cursor: pointer; flex: none; }

@media (prefers-reduced-motion: reduce) {
	body.tbk *, body.tbk *::before, body.tbk *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.tbk-header, .tbk-strip, .tbk-side, .tbk-share, .tbk-related, .tbk-footer, .tbk-cookie, .tbk-ad, .tbk-comments-wrap { display: none !important; }
}
