/* TSC Blog Sidebar / Single / Category / Search - live-style match */

.tsc-blog-page {
	width: 100%;
}

.tsc-blog-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 52px 0 70px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 55px;
	align-items: start;
}

.tsc-blog-main {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.tsc-blog-sidebar {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

/* Sidebar */
.tsc-blog-sidebar-widget {
	margin: 0 0 38px;
}

.tsc-blog-sidebar-title {
	margin: 0 0 16px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 500;
}

/* Search */
.tsc-blog-search-control {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid #d7d7d7;
	background: #fff;
}

.tsc-blog-search-control input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 0 !important;
	outline: 0;
	box-shadow: none !important;
	background: transparent;
	font: inherit;
}

.tsc-blog-search-control button {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.tsc-blog-search-control button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Recent posts with thumbnails */
.tsc-blog-recent-list,
.tsc-blog-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #ececec;
}

.tsc-blog-recent-list li,
.tsc-blog-category-list li {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid #ececec;
}

.tsc-blog-recent-post-link {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	color: inherit;
	text-decoration: none;
}

.tsc-blog-recent-thumb {
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: #f3f3f3;
}

.tsc-blog-recent-thumb-image,
.tsc-blog-recent-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tsc-blog-recent-copy {
	display: block;
	min-width: 0;
}

.tsc-blog-recent-title {
	display: block;
	font-size: 14px;
	line-height: 1.4;
}

.tsc-blog-recent-post-link:hover .tsc-blog-recent-title {
	text-decoration: underline;
}

.tsc-blog-recent-date {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	line-height: 1.35;
	opacity: .62;
}

/* Categories */
.tsc-blog-category-list a {
	color: inherit;
	text-decoration: none;
}

.tsc-blog-category-list a:hover,
.tsc-blog-category-list .current-cat > a {
	text-decoration: underline;
}

/* Calendar */
.tsc-blog-calendar {
	width: 100%;
	overflow-x: auto;
}

.tsc-blog-calendar .wp-calendar-table,
.tsc-blog-calendar table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
}

.tsc-blog-calendar caption {
	padding: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
}

.tsc-blog-calendar th,
.tsc-blog-calendar td {
	padding: 7px 2px;
	border: 1px solid #ececec;
	text-align: center;
	vertical-align: middle;
}

.tsc-blog-calendar th {
	font-weight: 600;
	background: rgba(0, 0, 0, .025);
}

.tsc-blog-calendar td a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.tsc-blog-calendar .wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding-top: 10px;
	font-size: 13px;
}

.tsc-blog-calendar .wp-calendar-nav a {
	color: inherit;
	text-decoration: none;
}

.tsc-blog-calendar .wp-calendar-nav a:hover {
	text-decoration: underline;
}

/* Single post */
.tsc-blog-single-title,
.tsc-blog-archive-title {
	margin: 0 0 28px;
	line-height: 1.2;
}

.tsc-blog-single-image {
	width: 100%;
	margin: 0 0 30px;
}

.tsc-blog-single-image-file,
.tsc-blog-single-image img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.tsc-blog-single-content {
	line-height: 1.75;
}

.tsc-blog-single-content > :first-child {
	margin-top: 0;
}

.tsc-blog-single-content img {
	max-width: 100%;
	height: auto;
}

.tsc-blog-single-categories {
	margin-top: 35px;
	padding-top: 18px;
	border-top: 1px solid #ededed;
}

.tsc-blog-single-categories a {
	color: inherit;
}

/* Archive/search post sequence:
   title -> meta -> featured image -> excerpt -> read more */
.tsc-blog-archive-header {
	margin: 0 0 30px;
}

.tsc-blog-archive-description {
	margin-top: -12px;
	margin-bottom: 28px;
}

.tsc-blog-post-list {
	display: grid;
	gap: 48px;
}

.tsc-blog-card {
	display: block;
	margin: 0;
	padding: 0 0 44px;
	border-bottom: 1px solid #ececec;
}

.tsc-blog-card-title {
	margin: 0 0 10px;
	font-size: 25px;
	line-height: 1.28;
}

.tsc-blog-card-title a {
	color: inherit;
	text-decoration: none;
}

.tsc-blog-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 12px;
	margin-bottom: 18px;
	font-size: 13px;
	line-height: 1.5;
	opacity: .72;
}

.tsc-blog-card-meta a {
	color: inherit;
}

.tsc-blog-card-image {
	display: block;
	width: 100%;
	margin: 0 0 22px;
	overflow: hidden;
}

.tsc-blog-card-image-file,
.tsc-blog-card-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	transition: transform .25s ease;
}

.tsc-blog-card-image:hover img {
	transform: scale(1.01);
}

.tsc-blog-card-excerpt {
	margin-bottom: 18px;
	line-height: 1.72;
}

.tsc-blog-read-more {
	display: inline-block;
	color: inherit;
	text-decoration: underline;
}

/* Pagination */
.tsc-blog-pagination {
	margin-top: 40px;
}

.tsc-blog-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tsc-blog-pagination .page-numbers a,
.tsc-blog-pagination .page-numbers span {
	display: inline-flex;
	min-width: 38px;
	height: 38px;
	padding: 0 11px;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	color: inherit;
	text-decoration: none;
}

.tsc-blog-pagination .page-numbers .current {
	background: #222;
	border-color: #222;
	color: #fff;
}

/* Tablet/mobile */
@media (max-width: 900px) {
	.tsc-blog-container {
		grid-template-columns: 1fr;
		gap: 38px;
		padding-top: 35px;
	}

	.tsc-blog-main {
		grid-column: 1;
		grid-row: 1;
	}

	.tsc-blog-sidebar {
		grid-column: 1;
		grid-row: 2;
	}
}

@media (max-width: 650px) {
	.tsc-blog-container {
		width: min(100% - 28px, 1180px);
	}

	.tsc-blog-card-title {
		font-size: 21px;
	}

	.tsc-blog-recent-post-link {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.tsc-blog-recent-thumb {
		width: 64px;
		height: 64px;
	}
}

/* Recent comments */
.tsc-blog-comments-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #ececec;
}

.tsc-blog-comments-list li {
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid #ececec;
	font-size: 13px;
	line-height: 1.45;
}

.tsc-blog-comments-list a {
	color: inherit;
	text-decoration: none;
}

.tsc-blog-comments-list a:hover .tsc-blog-comment-post {
	text-decoration: underline;
}

.tsc-blog-comment-author {
	font-weight: 600;
}

.tsc-blog-comment-on {
	opacity: .7;
	margin: 0 3px;
}

.tsc-blog-comment-post {
	display: inline;
}



/* Single post share buttons - live style */
.tsc-blog-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 28px 0 0;
}

.tsc-blog-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 18px;
    border: 0;
    border-radius: 5px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: opacity .2s ease;
}

.tsc-blog-share-button:hover,
.tsc-blog-share-button:focus {
    color: #fff !important;
    opacity: .9;
    text-decoration: none !important;
}

.tsc-blog-share-facebook {
    background: linear-gradient(to bottom, #4f84b7 0%, #2f5f8d 100%);
}

.tsc-blog-share-x {
    background: linear-gradient(to bottom, #262626 0%, #000 100%);
}

.tsc-blog-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
}

.tsc-blog-share-icon-facebook {
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.tsc-blog-share-icon-x {
    font-size: 19px;
    font-weight: 400;
}

@media (max-width: 650px) {
    .tsc-blog-share-buttons {
        grid-template-columns: 1fr;
    }
}

/* Sticky right blog sidebar - desktop behavior */
@media (min-width: 901px) {
    .tsc-blog-container {
        align-items: start;
    }

    .tsc-blog-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 110px;
        align-self: start;
        height: max-content;
        z-index: 2;
    }

    /* Keep the sticky sidebar below the WordPress admin bar when logged in. */
    body.admin-bar .tsc-blog-sidebar {
        top: 142px;
    }
}

/* Sidebar returns to normal document flow on tablet/mobile. */
@media (max-width: 900px) {
    .tsc-blog-sidebar {
        position: static;
        top: auto;
        height: auto;
        z-index: auto;
    }
}

/* Accessibility (accessScan, Sep 2026): the page banner already shows the title, so
 * the in-content <h1> headers are hidden visually but kept for screen readers (they
 * must stay inside <main>). Overrides a display:none rule in Additional CSS. */
body .tsc-blog-page .tsc-blog-single-header,
body .tsc-blog-page .tsc-blog-archive-header {
	display: block !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}
.tsc-blog-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
