/*
Theme Name: Tech Suddo AdSense
Theme URI: https://techsuddo.com
Author: D R Parajuli
Author URI: https://techsuddo.com
Description: Fast, Core Web Vitals optimized, and Google AdSense-friendly WordPress theme built for Tech Suddo. Includes configurable header logo/title display, harmonized Tech Blue + Amber brand palette, modern card-based comments, CLS-safe ad slots, Schema.org JSON-LD, E-E-A-T author box, hierarchical Table of Contents, SVG icons, dark mode, and bilingual (English + Devanagari) typography.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
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: techsuddo
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

:root {
  --ts-bg: #ffffff;
  --ts-surface: #f8fafc;
  --ts-surface-alt: #f1f5f9;
  --ts-text: #0f172a;
  --ts-text-muted: #475569;
  --ts-text-subtle: #64748b;
  --ts-primary: #0284c7;
  --ts-primary-dark: #0369a1;
  --ts-primary-soft: #e0f2fe;
  --ts-accent: #f97316;
  --ts-accent-dark: #ea580c;
  --ts-accent-soft: #ffedd5;
  --ts-border: #e2e8f0;
  --ts-header-bg: #0f172a;
  --ts-header-text: #f8fafc;
  --ts-radius: 12px;
  --ts-radius-sm: 8px;
  --ts-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --ts-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --ts-container: 1200px;
  --ts-font-sans: "Plus Jakarta Sans", "Inter", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ts-transition: 0.2s ease;
}

[data-theme="dark"] {
  --ts-bg: #0b1120;
  --ts-surface: #111827;
  --ts-surface-alt: #1e293b;
  --ts-text: #f1f5f9;
  --ts-text-muted: #cbd5e1;
  --ts-text-subtle: #94a3b8;
  --ts-primary: #38bdf8;
  --ts-primary-dark: #0ea5e9;
  --ts-primary-soft: rgba(56, 189, 248, 0.14);
  --ts-accent: #fb923c;
  --ts-accent-dark: #f97316;
  --ts-accent-soft: rgba(251, 146, 60, 0.15);
  --ts-border: #1e293b;
  --ts-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --ts-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ts-font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ts-text);
  background-color: var(--ts-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ts-primary);
  text-decoration: none;
  transition: color var(--ts-transition);
}

a:hover {
  color: var(--ts-primary-dark);
}

.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;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--ts-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--ts-radius-sm);
  font-weight: 600;
}

.ts-container {
  width: 100%;
  max-width: var(--ts-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Utility Bar */
.ts-topbar {
  background: var(--ts-header-bg);
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 6px 0;
}

.ts-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ts-trending-badge {
  background: linear-gradient(135deg, var(--ts-accent), var(--ts-accent-dark));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ts-trending-link {
  color: #f8fafc;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-trending-link:hover {
  color: #fb923c;
}

.ts-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ts-topbar-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px;
}

.ts-topbar-nav a {
  color: #cbd5e1;
  font-size: 12.5px;
}

.ts-topbar-nav a:hover {
  color: #ffffff;
}

/* Main Header & Dropdown Nav */
.ts-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ts-bg);
  border-bottom: 1px solid var(--ts-border);
  box-shadow: var(--ts-shadow);
}

.ts-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.ts-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ts-logo-wrap .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.ts-logo-wrap img.custom-logo {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.ts-site-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ts-site-title a {
  color: var(--ts-text);
}

.ts-site-tagline {
  display: block;
  font-size: 11.5px;
  color: var(--ts-text-subtle);
  font-weight: 500;
}

.ts-main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.ts-main-nav li {
  position: relative;
}

.ts-main-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--ts-text);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--ts-radius-sm);
  white-space: nowrap;
}

.ts-main-nav a:hover,
.ts-main-nav .current-menu-item > a {
  background: var(--ts-primary-soft);
  color: var(--ts-primary);
}

.ts-main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  flex-direction: column;
  align-items: stretch;
  background: var(--ts-bg);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  box-shadow: var(--ts-shadow-md);
  padding: 6px;
  z-index: 120;
}

.ts-main-nav li:hover > ul,
.ts-main-nav li:focus-within > ul {
  display: flex;
}

.ts-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ts-border);
  background: var(--ts-surface);
  color: var(--ts-text);
  border-radius: var(--ts-radius-sm);
  cursor: pointer;
  transition: background var(--ts-transition), border-color var(--ts-transition), color var(--ts-transition);
}

.ts-icon-btn:hover {
  background: var(--ts-primary-soft);
  border-color: var(--ts-primary);
  color: var(--ts-primary);
}

.ts-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ts-menu-toggle {
  display: none;
}

.ts-header-search {
  display: none;
  padding: 12px 0;
  border-top: 1px solid var(--ts-border);
  background: var(--ts-surface);
}

.ts-header-search.is-open {
  display: block;
}

.ts-search-form,
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}

.ts-search-field,
.wp-block-search__input,
.widget_search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  background: var(--ts-bg);
  color: var(--ts-text);
  font-family: inherit;
  font-size: 14px;
}

.ts-search-submit,
.wp-block-search__button,
.widget_search input[type="submit"],
.widget_search button[type="submit"] {
  padding: 10px 18px;
  background: var(--ts-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--ts-radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--ts-transition);
}

.ts-search-submit:hover,
.wp-block-search__button:hover,
.widget_search input[type="submit"]:hover {
  background: var(--ts-primary-dark);
}

/* CLS-Safe AdSense Containers */
.ts-ad-slot {
  margin: 24px 0;
  padding: 12px;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  text-align: center;
  overflow: hidden;
}

.ts-ad-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ts-text-subtle);
  margin-bottom: 8px;
}

.ts-ad-header {
  min-height: 110px;
}

.ts-ad-infeed,
.ts-ad-article {
  min-height: 120px;
}

.ts-ad-sidebar {
  min-height: 270px;
}

/* Hero Featured Grid */
.ts-hero-section {
  padding: 24px 0 8px;
}

.ts-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}

.ts-hero-main {
  position: relative;
  border-radius: var(--ts-radius);
  overflow: hidden;
  background: #0f172a;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.ts-hero-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease;
}

.ts-hero-main:hover img {
  transform: scale(1.03);
}

.ts-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 75%);
  color: #ffffff;
}

.ts-hero-overlay h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.28;
  font-weight: 800;
}

.ts-hero-overlay h2 a {
  color: #ffffff;
}

.ts-hero-meta {
  font-size: 13px;
  color: #cbd5e1;
}

.ts-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ts-hero-side-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  transition: box-shadow var(--ts-transition), border-color var(--ts-transition);
}

.ts-hero-side-card:hover {
  box-shadow: var(--ts-shadow-md);
  border-color: var(--ts-primary);
}

.ts-hero-side-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--ts-radius-sm);
  overflow: hidden;
  background: var(--ts-surface-alt);
}

.ts-hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-hero-side-card h3 {
  margin: 6px 0;
  font-size: 15.5px;
  line-height: 1.38;
  font-weight: 700;
}

.ts-hero-side-card h3 a {
  color: var(--ts-text);
}

.ts-hero-side-card h3 a:hover {
  color: var(--ts-primary);
}

/* Category Badge */
.ts-cat-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--ts-primary);
  color: #ffffff;
  border-radius: 4px;
}

.ts-cat-badge:hover {
  background: var(--ts-accent);
  color: #ffffff;
}

/* Main Content Layout */
.ts-main-wrap {
  padding: 28px 0 48px;
}

.ts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.ts-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ts-border);
  position: relative;
}

.ts-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  position: relative;
}

.ts-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 48px;
  height: 2px;
  background: var(--ts-accent);
}

/* Post Grid & Even-Height Cards */
.ts-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ts-card {
  background: var(--ts-bg);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--ts-transition), box-shadow var(--ts-transition), border-color var(--ts-transition);
}

.ts-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ts-shadow-md);
  border-color: var(--ts-primary);
}

.ts-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ts-surface-alt);
}

.ts-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ts-card-title {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-card-title a {
  color: var(--ts-text);
}

.ts-card-title a:hover {
  color: var(--ts-primary);
}

.ts-card-excerpt {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ts-text-muted);
  line-height: 1.6;
  flex: 1;
}

.ts-card-meta {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--ts-text-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ts-infeed-wrap {
  grid-column: 1 / -1;
}

/* Pagination */
.ts-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  background: var(--ts-bg);
  color: var(--ts-text);
  font-weight: 600;
  font-size: 14px;
}

.ts-pagination .page-numbers.current,
.ts-pagination .page-numbers:hover {
  background: var(--ts-primary);
  color: #ffffff;
  border-color: var(--ts-primary);
}

/* Single Post & Page */
.ts-breadcrumbs {
  font-size: 13px;
  color: var(--ts-text-subtle);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ts-article-header h1 {
  margin: 12px 0 14px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.ts-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ts-text-subtle);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ts-border);
  margin-bottom: 20px;
}

.ts-featured-image {
  margin: 0 0 24px;
  border-radius: var(--ts-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ts-surface-alt);
}

.ts-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Social Share Bar */
.ts-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
}

.ts-share-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ts-text);
  margin-right: 4px;
}

.ts-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--ts-radius-sm);
  border: 1px solid var(--ts-border);
  background: var(--ts-bg);
  color: var(--ts-text);
  cursor: pointer;
  transition: border-color var(--ts-transition), color var(--ts-transition), background var(--ts-transition);
}

.ts-share-btn:hover {
  border-color: var(--ts-primary);
  color: var(--ts-primary);
  background: var(--ts-primary-soft);
}

/* Table of Contents */
.ts-toc {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-left: 4px solid var(--ts-accent);
  border-radius: var(--ts-radius-sm);
  padding: 16px 20px;
  margin: 0 0 24px;
}

.ts-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.ts-toc-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14.5px;
}

.ts-toc-list li {
  margin-bottom: 6px;
}

.ts-toc-list li.ts-toc-sub {
  padding-left: 18px;
  font-size: 13.5px;
}

.ts-toc-num {
  font-weight: 700;
  color: var(--ts-accent-dark);
  margin-right: 6px;
}

.ts-entry-content {
  font-size: 17px;
  line-height: 1.78;
}

.ts-entry-content h2,
.ts-entry-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.3;
  font-weight: 800;
}

.ts-entry-content h2 {
  font-size: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ts-border);
}

.ts-entry-content h3 {
  font-size: 20px;
}

.ts-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--ts-radius-sm);
  border: 1px solid var(--ts-border);
}

.ts-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
}

.ts-entry-content th,
.ts-entry-content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ts-border);
  border-right: 1px solid var(--ts-border);
  text-align: left;
}

.ts-entry-content tr:last-child td {
  border-bottom: none;
}

.ts-entry-content th:last-child,
.ts-entry-content td:last-child {
  border-right: none;
}

.ts-entry-content th {
  background: var(--ts-surface-alt);
  font-weight: 700;
}

.ts-entry-content blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--ts-surface);
  border-left: 4px solid var(--ts-primary);
  border-radius: 0 var(--ts-radius-sm) var(--ts-radius-sm) 0;
  color: var(--ts-text-muted);
}

.ts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.ts-tags a {
  padding: 5px 12px;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ts-text-muted);
}

.ts-tags a:hover {
  border-color: var(--ts-accent);
  color: var(--ts-accent-dark);
}

/* Author Box (E-E-A-T, Squish-Proof Avatar) */
.ts-author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  margin: 28px 0;
}

.ts-author-avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
}

.ts-author-avatar img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ts-accent);
}

.ts-author-info h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.ts-author-info p {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--ts-text-muted);
  line-height: 1.6;
}

.ts-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* Related Posts */
.ts-related-posts {
  margin-top: 36px;
}

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

/* Modern Cool Comment Section */
.comments-area {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--ts-border);
}

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

.comment-list .children {
  list-style: none;
  margin: 12px 0 0 28px;
  padding-left: 18px;
  border-left: 2px solid var(--ts-border);
}

.ts-comment-item {
  margin-bottom: 16px;
}

.ts-comment-card {
  padding: 18px 20px;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  box-shadow: var(--ts-shadow);
  transition: border-color var(--ts-transition);
}

.ts-comment-card:hover {
  border-color: var(--ts-primary);
}

.ts-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ts-comment-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.ts-comment-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ts-primary-soft);
}

.ts-comment-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-comment-author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ts-text);
}

.ts-comment-badge {
  background: var(--ts-accent-soft);
  color: var(--ts-accent-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ts-comment-date {
  display: block;
  font-size: 12px;
  color: var(--ts-text-subtle);
}

.ts-comment-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ts-text-muted);
}

.ts-comment-text p {
  margin: 0 0 8px;
}

.ts-comment-awaiting {
  font-size: 13px;
  font-style: italic;
  color: var(--ts-accent-dark);
  margin: 0 0 8px;
}

.ts-comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ts-reply-pill a,
.ts-edit-pill a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--ts-bg);
  border: 1px solid var(--ts-border);
  color: var(--ts-text-muted);
}

.ts-reply-pill a:hover,
.ts-edit-pill a:hover {
  border-color: var(--ts-primary);
  color: var(--ts-primary);
  background: var(--ts-primary-soft);
}

.comment-respond {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 26px;
  box-shadow: var(--ts-shadow);
}

.comment-reply-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.ts-comment-notes {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--ts-text-subtle);
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-url,
.comment-form .comment-form-cookies-consent,
.comment-form .form-submit,
.comment-form .logged-in-as,
.comment-form .ts-comment-notes {
  grid-column: 1 / -1;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ts-text);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-form .comment-form-cookies-consent label {
  margin: 0;
  font-weight: 500;
  font-size: 13.5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  background: var(--ts-bg);
  color: var(--ts-text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--ts-transition), box-shadow var(--ts-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ts-primary);
  box-shadow: 0 0 0 3px var(--ts-primary-soft);
}

.comment-form .submit {
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-dark));
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--ts-transition), box-shadow var(--ts-transition);
}

.comment-form .submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--ts-shadow-md);
}

/* Sidebar */
.ts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ts-widget {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 20px;
}

.ts-widget-title,
.ts-widget .wp-block-heading {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ts-primary);
}

.ts-widget p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ts-text-muted);
}

.ts-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-widget li {
  padding: 9px 0;
  border-bottom: 1px solid var(--ts-border);
  font-size: 14.5px;
}

.ts-widget li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Uniform Pill Tag Cloud */
.tagcloud,
.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagcloud a,
.wp-block-tag-cloud a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.3;
  background: var(--ts-bg);
  border: 1px solid var(--ts-border);
  border-radius: 999px;
  color: var(--ts-text-muted);
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
  border-color: var(--ts-accent);
  color: var(--ts-accent-dark);
  background: var(--ts-accent-soft);
}

.ts-recent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ts-recent-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 52px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--ts-surface-alt);
}

.ts-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-recent-info {
  flex: 1;
  min-width: 0;
}

.ts-recent-info a {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ts-text);
  margin-bottom: 4px;
}

.ts-recent-info a:hover {
  color: var(--ts-primary);
}

.ts-sidebar-sticky {
  position: sticky;
  top: 88px;
}

/* Footer */
.ts-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 36px;
  margin-top: 24px;
}

.ts-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.ts-footer p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px;
}

.ts-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-footer li {
  margin-bottom: 10px;
  font-size: 14px;
}

.ts-footer a {
  color: #cbd5e1;
}

.ts-footer a:hover {
  color: #fb923c;
}

.ts-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-right: 56px;
  font-size: 13px;
  color: #94a3b8;
}

.ts-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent));
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ts-shadow-md);
  z-index: 90;
}

.ts-back-to-top.is-visible {
  display: flex;
}

/* Responsive */
@media (max-width: 992px) {
  .ts-hero-grid,
  .ts-layout {
    grid-template-columns: 1fr;
  }

  .ts-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ts-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .ts-topbar-right {
    display: none;
  }

  .ts-menu-toggle {
    display: inline-flex;
  }

  .ts-main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ts-bg);
    border-bottom: 1px solid var(--ts-border);
    padding: 12px 20px;
    box-shadow: var(--ts-shadow-md);
  }

  .ts-main-nav.is-open {
    display: block;
  }

  .ts-main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .ts-main-nav ul ul {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }

  .ts-post-grid,
  .ts-related-grid,
  .ts-footer-grid,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-list .children {
    margin-left: 14px;
    padding-left: 12px;
  }

  .ts-article-header h1 {
    font-size: 25px;
  }

  .ts-hero-main {
    min-height: 300px;
  }

  .ts-author-box {
    flex-direction: column;
  }
}
