/*
Theme Name: TalkNari
Theme URI: https://talknari.com/
Author: TalkNari
Author URI: https://talknari.com/
Description: A fast editorial magazine theme for TalkNari — daily blessings, wishes, responses, DIY, parties, home, food and family. System fonts (no font downloads), no jQuery, 16:9 featured images, Customizer options and ad-ready hooks for the TalkNari Toolkit plugin.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talknari
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, editor-style, block-patterns, wide-blocks, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--tn-black: #000;
	--tn-ink: #111;
	--tn-text: #1f1f1f;
	--tn-muted: #595959;
	--tn-faint: #707070;
	--tn-rule: #e2e2e2;
	--tn-surface: #f5f5f3;
	--tn-accent: #1a5bce;
	--tn-accent-dark: #12449e;
	--tn-accent-light: #8fb3f5;
	--tn-pin: #e60023;
	--tn-serif: Georgia, "Times New Roman", Times, serif;
	--tn-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--tn-wrap: 1240px;
	--tn-content: 720px;
	--tn-header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tn-header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--tn-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--tn-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--tn-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--tn-accent-dark); }
:focus-visible { outline: 3px solid var(--tn-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--tn-serif); color: var(--tn-ink); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
hr { border: 0; border-top: 1px solid var(--tn-rule); margin: 2em 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--tn-ink); display: block;
	font-size: 15px; font-weight: 700; height: auto; left: 8px; padding: 14px 20px; top: 8px; width: auto; z-index: 100000;
}

.container { width: 100%; max-width: var(--tn-wrap); margin-inline: auto; padding-inline: 20px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border: 0; border-radius: 2px;
	background: var(--tn-ink); color: #fff; font-weight: 700; font-size: 15px;
	text-decoration: none; cursor: pointer; letter-spacing: .01em;
}
.btn:hover { background: var(--tn-accent); color: #fff; }
.btn--accent { background: var(--tn-accent); }
.btn--accent:hover { background: var(--tn-accent-dark); }
.btn--pin { background: var(--tn-pin); border-radius: 999px; }
.btn--pin:hover { background: #b8001c; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid #666; }
.btn--ghost:hover { border-color: #fff; background: transparent; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--tn-black); color: #fff; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header--light { background: #fff; color: var(--tn-ink); border-bottom: 1px solid var(--tn-rule); }

.hdr-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--tn-header-h); gap: 12px; }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 6px; }
.hdr-right { justify-content: flex-end; }
.hdr-logo { display: flex; align-items: center; color: inherit; text-decoration: none; }
.hdr-logo svg, .hdr-logo img { display: block; height: 34px; width: auto; }
@media (max-width: 600px) { .hdr-logo svg, .hdr-logo img { height: 28px; } }
.custom-logo-link { display: block; }

.icon-btn {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; padding: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.site-header--light .icon-btn:hover { background: var(--tn-surface); }
.icon-btn svg { width: 22px; height: 22px; }

.hdr-follow {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
	border-radius: 999px; background: var(--tn-pin); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
}
.hdr-follow:hover { background: #b8001c; color: #fff; }
.hdr-follow svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .hdr-follow span { display: none; } .hdr-follow { padding: 0 10px; } }

/* Category bar */
.cat-nav { background: #fff; border-bottom: 1px solid var(--tn-rule); position: relative; z-index: 50; }
.cat-nav .menu { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.cat-nav .menu > li { position: relative; }
.cat-nav .menu > li > a {
	display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 13px;
	color: var(--tn-ink); text-decoration: none; font-size: 13px; font-weight: 800;
	letter-spacing: .07em; text-transform: uppercase;
}
.cat-nav .menu > li > a:hover { color: var(--tn-accent); }
.cat-nav .menu > .current-menu-item > a,
.cat-nav .menu > .current-menu-ancestor > a,
.cat-nav .menu > .current-menu-parent > a,
.cat-nav .menu > .current-post-ancestor > a { box-shadow: inset 0 -3px 0 var(--tn-accent); }
.cat-nav .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.cat-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px 0;
	background: #fff; border: 1px solid var(--tn-rule); box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.cat-nav li:hover > .sub-menu, .cat-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cat-nav .sub-menu a { display: block; padding: 9px 18px; color: var(--tn-ink); text-decoration: none; font-size: 15px; }
.cat-nav .sub-menu a:hover { background: var(--tn-surface); color: var(--tn-accent); }
@media (max-width: 1000px) {
	.cat-nav .menu { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-inline: 8px; }
	.cat-nav .menu::-webkit-scrollbar { display: none; }
	.cat-nav .menu > li > a { white-space: nowrap; padding: 0 11px; }
	.cat-nav .sub-menu, .cat-nav .menu-item-has-children > a::after { display: none; }
}

/* Search panel */
.search-panel { background: var(--tn-black); padding: 18px 0 22px; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; width: 100%; }
.search-form label { flex: 1; display: flex; }
.search-field {
	flex: 1; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid #c9c9c9; border-radius: 2px;
	background: #fff; color: var(--tn-ink); font-size: 16px;
}
.search-submit { min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px; background: var(--tn-accent); color: #fff; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--tn-accent-dark); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 1000; display: flex; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); border: 0; padding: 0; cursor: pointer; }
.drawer-panel {
	position: relative; width: min(390px, 88vw); height: 100%; overflow-y: auto; background: #fff;
	padding: 14px 22px 40px; box-shadow: 0 0 40px rgba(0, 0, 0, .25);
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-top .hdr-logo svg { height: 26px; }
.drawer .icon-btn:hover { background: var(--tn-surface); }
.drawer-menu ul { list-style: none; margin: 0; padding: 0; }
.drawer-menu > ul > li { border-bottom: 1px solid var(--tn-rule); }
.drawer-menu a { display: flex; align-items: center; min-height: 46px; color: var(--tn-ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.drawer-menu .sub-menu { padding: 0 0 10px 14px; }
.drawer-menu .sub-menu a { min-height: 38px; font-weight: 500; font-size: 15px; color: var(--tn-muted); }
.drawer-menu a:hover { color: var(--tn-accent); }
.drawer-section { margin-top: 26px; }
.drawer-section h2 { font-family: var(--tn-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tn-muted); margin-bottom: 6px; }
.drawer-links, .drawer-links-wrap ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.drawer-links a, .drawer-links-wrap a { display: block; padding: 6px 0; color: var(--tn-ink); text-decoration: none; font-size: 15px; }
.drawer-search { margin: 6px 0 14px; }
.drawer-search .search-submit { padding: 0 16px; }
body.drawer-open { overflow: hidden; }

/* ---------- Shared bits ---------- */
.cat-label {
	display: inline-block; font-family: var(--tn-sans); font-size: 12px; font-weight: 800; line-height: 1.3;
	letter-spacing: .08em; text-transform: uppercase; color: var(--tn-accent); text-decoration: none;
}
.cat-label:hover { color: var(--tn-accent-dark); text-decoration: underline; }
.meta, .card-meta { font-size: 13px; color: var(--tn-muted); }
.meta a, .card-meta a { color: inherit; text-decoration: none; }
.meta a:hover, .card-meta a:hover { text-decoration: underline; }

.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-top: 3px solid var(--tn-ink); padding-top: 12px; margin-bottom: 24px;
}
.section-title { font-size: 28px; margin: 0; }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--tn-accent); }
.section-sub { margin: 4px 0 0; font-size: 15px; color: var(--tn-muted); }
.section-more { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

.breadcrumbs { font-size: 13px; color: var(--tn-muted); margin: 0 0 14px; }
.breadcrumbs a { color: var(--tn-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--tn-ink); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; }

.avatar-initials {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 36px; height: 36px; border-radius: 50%; background: var(--tn-ink); color: #fff;
	font-family: var(--tn-serif); font-weight: 700; font-size: 14px; letter-spacing: .02em;
}
.avatar-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border: 1px solid var(--tn-rule);
	border-radius: 999px; color: var(--tn-ink); background: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
}
.chip:hover { border-color: var(--tn-ink); color: var(--tn-ink); }
.chip.is-active { background: var(--tn-ink); border-color: var(--tn-ink); color: #fff; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--tn-surface); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-title { font-size: 21px; line-height: 1.22; margin: 0; }
.card-title a { color: var(--tn-ink); text-decoration: none; }
.card-title a:hover { color: var(--tn-accent); text-decoration: underline; text-decoration-thickness: 1px; }
.card-excerpt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--tn-muted); }
.card--lead .card-title { font-size: 40px; line-height: 1.08; }
.card--lead .card-excerpt { font-size: 18px; }
.card--feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.card--feature .card-title { font-size: 34px; line-height: 1.1; }
.card--row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.card--row .card-title { font-size: 18px; }
.card--text .card-title { font-size: 20px; }
.card--noimg .card-media { display: none; }

.grid { display: grid; gap: 34px 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; }
.stack > * { padding: 16px 0; border-bottom: 1px solid var(--tn-rule); }
.stack > *:first-child { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; }

@media (max-width: 1000px) {
	.grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split, .card--feature { grid-template-columns: 1fr; }
	.card--lead .card-title { font-size: 32px; }
}
@media (max-width: 600px) {
	.grid-4, .grid-3 { grid-template-columns: 1fr; gap: 0; }
	.grid > .card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--tn-rule); }
	.grid > .card:first-child { padding-top: 0; }
	.grid > .card .card-title { font-size: 17px; }
	.grid > .card .card-excerpt { display: none; }
	.card--row { grid-template-columns: 110px minmax(0, 1fr); }
	.card--lead .card-title, .card--feature .card-title { font-size: 27px; }
	.card--lead .card-excerpt { font-size: 16px; }
}

/* ---------- Homepage ---------- */
.home-section { padding: 40px 0; }
@media (max-width: 600px) { .home-section { padding: 26px 0; } .section-title { font-size: 25px; } }
.home-hero { padding-top: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.hero-latest { min-width: 0; }
.hero-latest .section-head { margin-bottom: 4px; }
.hero-list { list-style: none; margin: 0; padding: 0; counter-reset: tnlatest; }
.hero-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--tn-rule); }
.hero-list li::before { counter-increment: tnlatest; content: counter(tnlatest); font-family: var(--tn-serif); font-size: 26px; font-weight: 700; line-height: 1; color: var(--tn-accent); }
.hero-list .card-title { font-size: 18px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day {
	position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 160px; padding: 16px;
	border: 1px solid var(--tn-rule); background: #fff; color: var(--tn-ink); text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.day:hover { border-color: var(--tn-ink); color: var(--tn-ink); }
.day-name { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tn-muted); }
.day-title { font-family: var(--tn-serif); font-size: 17px; line-height: 1.28; }
.day-empty { font-size: 14px; color: var(--tn-muted); }
.day-today { display: none; align-self: flex-start; margin-top: auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--tn-accent); color: #fff; padding: 3px 7px; }
.day.is-today { background: var(--tn-black); border-color: var(--tn-black); color: #fff; }
.day.is-today .day-name { color: var(--tn-accent-light); }
.day.is-today .day-empty { color: #c9c9c9; }
.day.is-today .day-today { display: block; }
@media (max-width: 1000px) {
	.days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.day { scroll-snap-align: start; }
}

.cat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.cat-tile { border-top: 1px solid var(--tn-ink); padding-top: 14px; }
.cat-tile h3 { font-size: 22px; margin: 0 0 6px; }
.cat-tile h3 a { color: var(--tn-ink); text-decoration: none; }
.cat-tile h3 a:hover { color: var(--tn-accent); }
.cat-tile p { margin: 0; font-size: 15px; color: var(--tn-muted); line-height: 1.5; }
@media (max-width: 1000px) { .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cat-tiles { grid-template-columns: 1fr; } }

.band { background: var(--tn-black); color: #e6e6e6; padding: 52px 0; margin-top: 24px; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: 34px; margin: 0 0 8px; }
.band p { margin: 0; max-width: 620px; font-size: 17px; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.empty-state { padding: 60px 0; text-align: center; color: var(--tn-muted); }
.empty-state h1, .empty-state h2 { color: var(--tn-ink); }

/* ---------- Archive ---------- */
.archive-header { padding: 28px 0 30px; border-bottom: 1px solid var(--tn-rule); margin-bottom: 36px; }
.archive-kicker { margin: 0 0 6px; }
.archive-title { font-size: 50px; line-height: 1.05; margin: 0 0 12px; }
.archive-desc { max-width: 780px; font-size: 18px; line-height: 1.6; color: var(--tn-muted); }
.archive-desc p:last-child { margin-bottom: 0; }
.archive-header .chips { margin-top: 18px; }
.archive-feature { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--tn-rule); }
.archive-author { display: flex; gap: 18px; align-items: center; }
.archive-author .avatar-initials, .archive-author .avatar-photo { width: 72px; height: 72px; font-size: 26px; }
@media (max-width: 600px) { .archive-title { font-size: 34px; } .archive-desc { font-size: 16px; } }

.pagination { margin: 48px 0 16px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
	min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--tn-rule); color: var(--tn-ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
a.page-numbers:hover { border-color: var(--tn-ink); color: var(--tn-ink); }
.page-numbers.current { background: var(--tn-black); border-color: var(--tn-black); color: #fff; }
.page-numbers.dots { border-color: transparent; }

/* ---------- Single ---------- */
.single-wrap { padding-top: 26px; }
.single-layout { display: grid; grid-template-columns: minmax(0, var(--tn-content)) 300px; gap: 64px; justify-content: center; align-items: start; }
.single-layout--nosidebar { grid-template-columns: minmax(0, var(--tn-content)); }
@media (max-width: 1100px) { .single-layout { grid-template-columns: minmax(0, var(--tn-content)); } .single-layout .sidebar { display: none; } }

.entry-header { margin-bottom: 22px; }
.entry-title { font-size: 46px; line-height: 1.08; margin: 8px 0 14px; letter-spacing: -.01em; }
.entry-dek { font-family: var(--tn-serif); font-size: 21px; line-height: 1.45; color: var(--tn-muted); margin: 0 0 18px; }
.byline {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 0;
	border-top: 1px solid var(--tn-rule); border-bottom: 1px solid var(--tn-rule); font-size: 14px; color: var(--tn-muted);
}
.byline-author { display: flex; align-items: center; gap: 10px; color: var(--tn-ink); font-weight: 700; }
.byline-author a { color: var(--tn-ink); text-decoration: none; }
.byline-author a:hover { text-decoration: underline; }
.byline .dot { color: #b5b5b5; }
@media (max-width: 600px) {
	.entry-title { font-size: 31px; }
	.entry-dek { font-size: 18px; }
	.byline { gap: 4px 14px; }
	.byline-author { width: 100%; }
	.byline .dot { display: none; }
}

.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.share a, .share button {
	display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1px solid var(--tn-rule);
	border-radius: 999px; background: #fff; color: var(--tn-ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--tn-ink); color: var(--tn-ink); }
.share .share-pin { background: var(--tn-pin); border-color: var(--tn-pin); color: #fff; }
.share .share-pin:hover { background: #b8001c; border-color: #b8001c; color: #fff; }
.share svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
	.share { gap: 6px; }
	.share a, .share button { padding: 0 13px; }
	.share button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.entry-featured { margin: 0 0 30px; }
.entry-featured img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tn-surface); }
.entry-featured figcaption { font-size: 13px; color: var(--tn-muted); margin-top: 8px; }

.entry-content { font-size: 19px; line-height: 1.75; color: var(--tn-text); overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 31px; margin-top: 1.7em; margin-bottom: .55em; }
.entry-content h3 { font-size: 24px; margin-top: 1.45em; margin-bottom: .45em; }
.entry-content h4 { font-size: 20px; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li > ul, .entry-content li > ol { margin-top: .45em; }
.entry-content a { color: var(--tn-accent); }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.7em 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 14px; color: var(--tn-muted); text-align: center; margin-top: 8px; line-height: 1.5; }
.entry-content .tn-portrait, .entry-content figure:has(> .tn-portrait) img { max-width: min(100%, 560px); margin-inline: auto; display: block; }
.entry-content figure:has(> .tn-portrait), .entry-content figure:has(> a > .tn-portrait) { margin-inline: auto; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.8em 0; padding: 2px 0 2px 24px; border-left: 4px solid var(--tn-ink);
	font-family: var(--tn-serif); font-size: 23px; line-height: 1.5; font-style: italic; color: var(--tn-ink);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--tn-sans); font-style: normal; font-size: 14px; color: var(--tn-muted); }
.entry-content .wp-block-pullquote { border-top: 3px solid var(--tn-ink); border-bottom: 1px solid var(--tn-rule); padding: 24px 0; text-align: center; }
.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--tn-rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--tn-surface); }
.entry-content details { border-top: 1px solid var(--tn-rule); padding: 14px 0; }
.entry-content details:last-of-type { border-bottom: 1px solid var(--tn-rule); }
.entry-content summary { font-weight: 700; cursor: pointer; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--tn-rule); }
.entry-content pre { background: var(--tn-surface); padding: 16px; overflow-x: auto; font-size: 15px; }
.entry-content .alignwide { max-width: 1000px; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
	.entry-content { font-size: 18px; line-height: 1.7; }
	.entry-content h2 { font-size: 26px; }
	.entry-content h3 { font-size: 21px; }
	.entry-content blockquote { font-size: 20px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; max-width: 100%; }
}

.tn-box { background: var(--tn-surface); padding: 22px 24px; margin: 1.6em 0; }
.tn-box > :last-child { margin-bottom: 0; }

.entry-footer { margin-top: 36px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; font-size: 14px; }
.entry-tags .label { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: var(--tn-muted); margin-right: 4px; }

.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; border-top: 3px solid var(--tn-ink); padding: 22px 0 6px; margin: 30px 0; }
.author-box .avatar-initials, .author-box .avatar-photo { width: 72px; height: 72px; font-size: 24px; }
.author-box h2 { font-size: 22px; margin: 2px 0 6px; }
.author-box h2 a { color: var(--tn-ink); text-decoration: none; }
.author-box p { margin: 0 0 8px; color: var(--tn-muted); font-size: 16px; }
.author-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-muted); }

.related { margin: 44px 0; }
.related .grid-3 { gap: 28px 20px; }
.related .card-title { font-size: 19px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.side-box h2 { font-family: var(--tn-sans); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tn-ink); border-top: 3px solid var(--tn-ink); padding-top: 12px; margin: 0 0 12px; }
.side-box p { font-size: 15px; color: var(--tn-muted); margin: 0 0 10px; }
.side-about .hdr-logo svg { height: 26px; margin-bottom: 12px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 12px 0; border-bottom: 1px solid var(--tn-rule); }
.side-list li:first-child { padding-top: 0; }
.side-list a { font-family: var(--tn-serif); font-size: 17px; line-height: 1.3; color: var(--tn-ink); text-decoration: none; font-weight: 700; }
.side-list a:hover { color: var(--tn-accent); text-decoration: underline; }
.sidebar-sticky { position: sticky; top: calc(var(--tn-header-h) + 24px); }
.widget { font-size: 15px; }
.widget ul { padding-left: 1.1em; }

/* Comments */
.comments-area { border-top: 1px solid var(--tn-rule); padding-top: 30px; margin-top: 30px; }
.comments-title, .comment-reply-title { font-size: 26px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 1px solid var(--tn-rule); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--tn-rule); }
.comment-meta { font-size: 14px; color: var(--tn-muted); margin-bottom: 6px; }
.comment-author { font-weight: 700; color: var(--tn-ink); }
.comment-author .avatar { display: none; }
.comment-metadata a { color: var(--tn-muted); text-decoration: none; }
.reply a { font-size: 14px; font-weight: 700; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 2px; font-size: 16px; background: #fff;
}
.comment-form .submit { min-height: 48px; padding: 0 24px; border: 0; border-radius: 2px; background: var(--tn-ink); color: #fff; font-weight: 700; cursor: pointer; }
.comment-form .submit:hover { background: var(--tn-accent); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }

/* ---------- Pages ---------- */
.page-wrap { max-width: 780px; margin-inline: auto; padding-top: 28px; }
.page-wrap .entry-title { font-size: 44px; }
.page-wrap .entry-content { font-size: 18px; }
.page-wrap .entry-content h2 { font-size: 27px; }
.page-wrap .entry-content h3 { font-size: 21px; }
@media (max-width: 600px) { .page-wrap .entry-title { font-size: 32px; } }

/* 404 */
.error-404 { max-width: 760px; margin-inline: auto; padding: 56px 0 20px; text-align: center; }
.error-404 .big { font-family: var(--tn-serif); font-size: 96px; font-weight: 700; line-height: 1; color: var(--tn-ink); margin: 0 0 8px; }
.error-404 .search-form { max-width: 560px; margin: 24px auto; }
.error-404 .chips { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tn-black); color: #c9c9c9; padding: 56px 0 26px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand .hdr-logo svg { height: 32px; }
.footer-brand p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: #bdbdbd; max-width: 380px; }
.footer-col h2 { font-family: var(--tn-sans); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.site-footer a { color: #d9d9d9; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2f2f2f; margin-top: 42px; padding-top: 20px; font-size: 13px; color: #a6a6a6; }
.footer-bottom a { font-size: 13px; color: #a6a6a6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Extras ---------- */
.hdr-center { display: flex; justify-content: center; min-width: 0; }
.home-welcome { padding: 56px 0 24px; }
.welcome-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; max-width: 900px; margin: 10px 0 16px; letter-spacing: -.01em; }
.welcome-text { max-width: 700px; font-size: 19px; color: var(--tn-muted); margin-bottom: 22px; }
.section-chips { margin: -8px 0 24px; }
.home-about-inner { max-width: 780px; font-size: 17px; color: var(--tn-muted); }
.home-about-inner h2 { font-size: 26px; color: var(--tn-ink); }
.archive-page { font-weight: 400; color: var(--tn-muted); font-size: .6em; white-space: nowrap; }
.search-again { max-width: 620px; margin-top: 18px; }
.page-links { margin: 24px 0; font-weight: 700; }
.comment-notes { font-size: 14px; color: var(--tn-muted); }
.side-about .section-more { display: inline-block; margin-top: 4px; }
.hero-lead { min-width: 0; }

/* ---------- Accessibility & motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .cat-nav, .site-footer, .share, .sidebar, .related, .comments-area, .tn-ad, .tn-pin-btn { display: none !important; }
	.single-layout { display: block; }
	.entry-content { font-size: 12pt; }
}
