/**
 * Blog and editorial templates.
 *
 * The landing-page tokens and header styles live in theme.css. This file keeps
 * editorial styles separate so the original landing page remains untouched.
 */

.tautanara-blog {
	background: #fff;
	color: var(--slate);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	border-radius: 8px;
	background: #fff;
	color: var(--navy);
}

.blog-site-header .brand-logo,
.blog-site-footer .brand-logo {
	flex: 0 0 auto;
}

.desktop-nav .current-menu-item,
.desktop-nav .is-current {
	color: var(--blue);
}

.desktop-nav .current-menu-item::after,
.desktop-nav .is-current::after {
	transform: scaleX(1);
}

.blog-main {
	min-height: 60vh;
}

.blog-hero {
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(circle at 82% 18%, rgb(37 99 235 / 13%), transparent 26%),
		linear-gradient(180deg, #f4f8ff 0%, #fff 100%);
	padding: 88px 0 72px;
}

.blog-hero__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
}

.blog-hero__copy {
	max-width: 760px;
}

.blog-hero h1 {
	margin-bottom: 20px;
	font-size: clamp(2.45rem, 6vw, 4.55rem);
	font-weight: 800;
	letter-spacing: -0.055em;
}

.blog-hero__description {
	max-width: 680px;
	margin: 0;
	color: var(--muted);
	font-size: clamp(1rem, 2vw, 1.13rem);
}

.blog-search {
	flex: 0 1 340px;
}

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 7px;
	border: 1px solid #cbd9e9;
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 9px 28px rgb(37 99 235 / 7%);
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--navy);
}

.search-field::placeholder {
	color: #94a3b8;
}

.search-submit {
	min-height: 42px;
	padding: 9px 15px;
	border: 0;
	border-radius: 9px;
	background: var(--blue);
	color: #fff;
	cursor: pointer;
	font-size: 0.84rem;
	font-weight: 750;
}

.search-submit:hover {
	background: var(--blue-dark);
}

.blog-section {
	padding: 80px 0 96px;
}

.blog-section--soft {
	background: var(--blue-pale);
}

.section-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
}

.section-title-row h2 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 2.55rem);
	font-weight: 800;
}

.section-title-row p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.featured-post {
	display: grid;
	grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
	margin-bottom: 66px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow-soft);
}

.featured-post__media {
	display: block;
	min-height: 390px;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.featured-post__media img {
	width: 100%;
	height: 100%;
	min-height: 390px;
	object-fit: cover;
}

.featured-post__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--blue);
}

.featured-post__media--placeholder svg {
	width: 68px;
	height: 68px;
	opacity: 0.55;
}

.featured-post__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 5vw, 58px);
}

.featured-label {
	margin-bottom: 14px;
	color: var(--blue);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.featured-post h2 {
	margin-bottom: 17px;
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 800;
}

.featured-post h2 a:hover {
	color: var(--blue);
}

.featured-post__excerpt {
	margin: 18px 0 25px;
	color: var(--muted);
	font-size: 0.95rem;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.article-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
	border-color: #abc8ed;
	box-shadow: var(--shadow-soft);
	transform: translateY(-3px);
}

.article-card:focus-within {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}

.article-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #dbeafe, #f5f9ff);
}

.article-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.article-card:hover .article-card__media img {
	transform: scale(1.025);
}

.article-card__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #77a7ec;
}

.article-card__media--placeholder svg {
	width: 48px;
	height: 48px;
}

.article-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.article-card h2,
.article-card h3 {
	margin: 12px 0 12px;
	font-size: 1.22rem;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: -0.03em;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
	color: var(--blue);
}

.article-card__excerpt {
	margin: 0 0 22px;
	color: var(--muted);
	font-size: 0.87rem;
}

.article-card .article-meta {
	margin-top: auto;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	color: #64748b;
	font-size: 0.74rem;
}

.article-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.article-meta svg {
	width: 15px;
	height: 15px;
	color: #7893b7;
}

.article-category {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 5px 9px;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: var(--blue-soft);
	color: var(--blue-dark);
	font-size: 0.69rem;
	font-weight: 750;
}

.article-category:hover {
	border-color: var(--blue);
	background: #dbeafe;
}

.pagination-wrap {
	margin-top: 52px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: #334155;
	font-size: 0.82rem;
	font-weight: 700;
}

.pagination a.page-numbers:hover,
.pagination .page-numbers.current {
	border-color: var(--blue);
	background: var(--blue);
	color: #fff;
}

.empty-state {
	max-width: 680px;
	margin: 0 auto;
	padding: 58px 28px;
	border: 1px dashed #abc2de;
	border-radius: 16px;
	background: #f9fbff;
	text-align: center;
}

.empty-state__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--blue-soft);
	color: var(--blue);
}

.empty-state h2 {
	margin-bottom: 11px;
	font-size: 1.65rem;
	font-weight: 800;
}

.empty-state p {
	margin: 0 auto 22px;
	color: var(--muted);
}

.archive-header {
	border-bottom: 1px solid var(--line);
	background: var(--blue-pale);
	padding: 72px 0 58px;
}

.archive-header__inner {
	max-width: 820px;
}

.archive-header h1 {
	margin-bottom: 15px;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 800;
}

.archive-header__description,
.archive-header__description p {
	margin: 0;
	color: var(--muted);
}

.archive-search {
	max-width: 620px;
	margin-top: 28px;
}

.single-article {
	padding-bottom: 96px;
}

.article-hero {
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(circle at 78% 20%, rgb(37 99 235 / 11%), transparent 29%),
		var(--blue-pale);
	padding: 48px 0 66px;
}

.article-header {
	max-width: 920px;
	margin: 0 auto;
}

.breadcrumbs {
	margin-bottom: 30px;
	color: #64748b;
	font-size: 0.76rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	color: #a2afc2;
}

.breadcrumbs a:hover {
	color: var(--blue);
}

.article-header h1 {
	max-width: 900px;
	margin: 17px 0 25px;
	font-size: clamp(2.35rem, 6vw, 4.7rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.055em;
}

.article-header .article-meta {
	gap: 10px 18px;
	font-size: 0.8rem;
}

.single-featured-image {
	width: min(1080px, 100% - 48px);
	margin: -1px auto 0;
	padding-top: 48px;
}

.single-featured-image img {
	width: 100%;
	max-height: 640px;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 18px 50px rgb(15 23 42 / 11%);
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) 180px;
	justify-content: center;
	gap: 70px;
	padding-top: 68px;
}

.article-content {
	min-width: 0;
	color: #334155;
	font-size: 1.02rem;
	line-height: 1.85;
}

.article-content > *:first-child {
	margin-top: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table,
.article-content figure {
	margin-top: 0;
	margin-bottom: 1.55em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	scroll-margin-top: 105px;
	color: var(--navy);
	font-weight: 750;
}

.article-content h2 {
	margin: 2em 0 0.7em;
	font-size: clamp(1.75rem, 4vw, 2.45rem);
}

.article-content h3 {
	margin: 1.75em 0 0.65em;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.article-content h4 {
	margin: 1.5em 0 0.6em;
	font-size: 1.16rem;
}

.article-content a {
	color: var(--blue-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.article-content a:hover {
	color: var(--blue);
	text-decoration-thickness: 2px;
}

.article-content ul,
.article-content ol {
	padding-left: 1.45em;
}

.article-content ul {
	list-style: disc;
}

.article-content ol {
	list-style: decimal;
}

.article-content li {
	margin-bottom: 0.55em;
	padding-left: 0.2em;
}

.article-content blockquote {
	padding: 22px 26px;
	border-left: 4px solid var(--blue);
	border-radius: 0 12px 12px 0;
	background: var(--blue-pale);
	color: #334155;
	font-size: 1.08rem;
}

.article-content blockquote p:last-child {
	margin-bottom: 0;
}

.article-content code {
	padding: 0.14em 0.36em;
	border-radius: 5px;
	background: #eaf0f8;
	color: #be123c;
	font-size: 0.88em;
}

.article-content pre {
	overflow-x: auto;
	padding: 22px;
	border-radius: 12px;
	background: #0f172a;
	color: #e2e8f0;
	font-size: 0.88rem;
	line-height: 1.7;
}

.article-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.article-content table {
	display: table;
	width: 100%;
	min-width: 0;
	border: 1px solid var(--line);
}

.article-content th,
.article-content td {
	padding: 13px 15px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.article-content th {
	background: #f5f8fc;
	color: var(--navy);
}

.article-content img {
	height: auto;
	border-radius: 12px;
}

.article-content figcaption,
.wp-caption-text {
	margin-top: 9px;
	color: #64748b;
	font-size: 0.78rem;
	text-align: center;
}

.article-content .alignwide {
	width: min(960px, calc(100vw - 48px));
	max-width: none;
	margin-right: 50%;
	margin-left: 50%;
	transform: translateX(-50%);
}

.article-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-right: 50%;
	margin-left: 50%;
	transform: translateX(-50%);
}

.article-content .wp-block-embed__wrapper {
	position: relative;
}

.article-aside {
	align-self: start;
	position: sticky;
	top: 112px;
}

.share-box {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: #fff;
}

.share-box h2 {
	margin-bottom: 13px;
	font-size: 0.84rem;
	letter-spacing: 0;
}

.share-links {
	display: grid;
	gap: 8px;
}

.share-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 700;
}

.share-links a:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.post-taxonomies {
	max-width: 760px;
	margin: 50px auto 0;
	padding-top: 27px;
	border-top: 1px solid var(--line);
}

.taxonomy-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 13px;
}

.taxonomy-row strong {
	flex: 0 0 80px;
	color: var(--navy);
	font-size: 0.78rem;
}

.taxonomy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.taxonomy-links a {
	padding: 5px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: #526176;
	font-size: 0.71rem;
}

.taxonomy-links a:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.post-cta {
	max-width: 960px;
	margin: 62px auto 0;
	padding: clamp(32px, 6vw, 55px);
	border-radius: 16px;
	background:
		radial-gradient(circle at 90% 15%, rgb(255 255 255 / 15%), transparent 30%),
		var(--blue);
	color: #dbeafe;
	text-align: center;
}

.post-cta h2 {
	margin-bottom: 14px;
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 2.55rem);
	font-weight: 800;
}

.post-cta p {
	max-width: 670px;
	margin: 0 auto 25px;
}

.post-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.post-cta .btn-white:hover {
	color: var(--blue-dark);
}

.post-cta .btn-outline {
	border-color: rgb(255 255 255 / 48%);
	color: #fff;
}

.post-cta .btn-outline:hover {
	border-color: #fff;
	background: rgb(255 255 255 / 10%);
	color: #fff;
}

.post-navigation {
	max-width: 960px;
	margin: 56px auto 0;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.post-navigation a {
	display: block;
	min-height: 100%;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: #fff;
}

.post-navigation a:hover {
	border-color: var(--blue);
	box-shadow: var(--shadow-soft);
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-subtitle {
	display: block;
	margin-bottom: 7px;
	color: #64748b;
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.post-navigation .nav-title {
	color: var(--navy);
	font-size: 0.9rem;
	font-weight: 750;
}

.related-posts {
	margin-top: 72px;
	padding: 72px 0 90px;
	background: var(--blue-pale);
}

.comments-area {
	max-width: 760px;
	margin: 70px auto 0;
	padding-top: 45px;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	margin-bottom: 25px;
	font-size: 1.65rem;
}

.comment-list {
	margin: 0 0 45px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 18px 0 0 28px;
	list-style: none;
}

.comment-body {
	margin-bottom: 18px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.comment-meta {
	margin-bottom: 14px;
	font-size: 0.75rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--navy);
	font-weight: 750;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-content ul {
	padding-left: 1.3em;
	list-style: disc;
}

.comment-content ol {
	padding-left: 1.3em;
	list-style: decimal;
}

.reply {
	margin-top: 12px;
}

.comment-reply-link {
	color: var(--blue);
	font-size: 0.77rem;
	font-weight: 750;
}

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--navy);
	font-size: 0.78rem;
	font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbd9e9;
	border-radius: 10px;
	background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--blue);
	outline: 3px solid rgb(37 99 235 / 13%);
}

.comment-form .submit {
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--blue);
	color: #fff;
	cursor: pointer;
	font-weight: 750;
}

.not-found-page {
	display: grid;
	min-height: 68vh;
	place-items: center;
	padding: 80px 0;
	background: var(--blue-pale);
}

.not-found-card {
	max-width: 680px;
	padding: clamp(35px, 7vw, 68px);
	border: 1px solid var(--line);
	border-radius: 17px;
	background: #fff;
	text-align: center;
	box-shadow: var(--shadow-soft);
}

.not-found-code {
	display: block;
	margin-bottom: 10px;
	color: var(--blue);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.not-found-card h1 {
	margin-bottom: 16px;
	font-size: clamp(2.1rem, 6vw, 3.7rem);
	font-weight: 800;
}

.not-found-card > p {
	margin-bottom: 26px;
	color: var(--muted);
}

.not-found-card .search-form {
	max-width: 480px;
	margin: 0 auto 18px;
}

.page-content-wrap {
	padding: 72px 0 96px;
}

.page-content-wrap .article-header {
	margin-bottom: 45px;
}

@media (max-width: 1040px) {
	.article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article-layout {
		grid-template-columns: minmax(0, 720px);
		gap: 38px;
	}

	.article-aside {
		position: static;
	}

	.share-box {
		max-width: 720px;
	}

	.share-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.blog-hero {
		padding: 66px 0 58px;
	}

	.blog-hero__inner {
		display: grid;
		gap: 30px;
	}

	.blog-search {
		width: 100%;
		max-width: 560px;
	}

	.featured-post {
		grid-template-columns: 1fr;
	}

	.featured-post__media,
	.featured-post__media img {
		min-height: 300px;
	}

	.article-hero {
		padding-top: 36px;
	}

	.article-layout {
		padding-top: 52px;
	}
}

@media (max-width: 620px) {
	.blog-section {
		padding: 60px 0 72px;
	}

	.section-title-row {
		display: block;
	}

	.section-title-row p {
		margin-top: 8px;
	}

	.article-grid {
		grid-template-columns: 1fr;
	}

	.featured-post {
		margin-bottom: 50px;
	}

	.featured-post__media,
	.featured-post__media img {
		min-height: 230px;
	}

	.featured-post__content {
		padding: 27px 24px 30px;
	}

	.single-featured-image {
		width: min(100% - 28px, 520px);
		padding-top: 28px;
	}

	.single-featured-image img {
		border-radius: 12px;
	}

	.article-layout {
		padding-top: 42px;
	}

	.article-content {
		font-size: 0.98rem;
	}

	.article-content .alignwide,
	.article-content .alignfull {
		width: calc(100vw - 28px);
	}

	.share-links {
		grid-template-columns: 1fr;
	}

	.taxonomy-row {
		display: block;
	}

	.taxonomy-row strong {
		display: block;
		margin-bottom: 8px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.post-cta__actions {
		flex-direction: column;
	}

	.post-cta__actions .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.article-card,
	.article-card__media img {
		transition: none;
	}
}
