/*
Theme Name:  TavelSpot
Theme URI:   https://tavelspot.com
Description: TavelSpot child theme for GeneratePress — 국내 여행 가이드 블로그. Ocean Blue & Terracotta warm travel aesthetic.
Author:      TavelSpot
Version:     1.0.0
Template:    generatepress
Tags:        travel, korea, blog, ocean, warm
Text Domain: tavelspot
*/

/* =========================================================
   GOOGLE FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=Noto+Serif+KR:wght@300;400;600;700;900&display=swap');

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  /* Ocean Blue */
  --ocean:        #0E4D92;
  --ocean-light:  #1A6BB5;
  --ocean-mid:    #4A7FC1;
  --ocean-pale:   #E8F0FA;

  /* Terracotta */
  --terra:        #C35831;
  --terra-light:  #D97255;
  --terra-pale:   #FAF0EB;

  /* Sand / Beige */
  --beige:        #F9F6F0;
  --beige-dark:   #EDE9E1;

  /* Ink (text) */
  --ink:          #1A1714;
  --ink-mid:      #4A4540;
  --ink-light:    #8A827A;
  --ink-subtle:   #C4BCB4;

  /* Utility */
  --white:        #FFFFFF;
  --dark:         #1A1714;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(14,77,146,0.10);
  --shadow-hover: 0 8px 28px rgba(14,77,146,0.12);

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   12px;
  --r-xl:   14px;
  --r-2xl:  16px;

  /* Typography */
  --ff-serif: 'Noto Serif KR', serif;
  --ff-sans:  'Noto Sans KR', sans-serif;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--ocean-light); }

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

/* =========================================================
   LAYOUT SHELL
   ========================================================= */
.ts-main { min-height: 100vh; }

.ts-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.ts-header-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--beige-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.ts-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.ts-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.ts-logo-icon {
  width: 28px;
  height: 34px;
  flex-shrink: 0;
}

.ts-logo-wordmark {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ts-logo-wordmark .tavel { color: var(--ocean); }
.ts-logo-wordmark .spot  { color: var(--terra); }

.ts-logo-sub {
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* Nav */
.ts-nav { flex: 1; }

.ts-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}

.ts-nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  transition: background 0.15s, color 0.15s;
}

.ts-nav ul li a:hover,
.ts-nav ul li.current-menu-item a {
  background: var(--beige);
  color: var(--ocean);
}

/* Header search */
.ts-header-search { margin-left: auto; }

.ts-search-form { display: flex; }

.ts-search-field {
  font-family: var(--ff-sans);
  font-size: 14px;
  padding: 8px 14px;
  border: 1.5px solid var(--beige-dark);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--white);
  color: var(--ink);
  outline: none;
  width: 200px;
}

.ts-search-field:focus { border-color: var(--ocean-mid); }

.ts-search-submit {
  padding: 8px 16px;
  background: var(--ocean);
  border: 1.5px solid var(--ocean);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff-sans);
  transition: background 0.15s;
}

.ts-search-submit:hover { background: var(--ocean-light); }

/* =========================================================
   CATEGORY STRIP
   ========================================================= */
.ts-cat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--beige-dark);
}

.ts-cat-strip-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ts-cat-strip-inner::-webkit-scrollbar { display: none; }

.ts-cat-tab {
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-light);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--ff-sans);
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
}

.ts-cat-tab:hover { color: var(--ocean); }
.ts-cat-tab.active {
  border-bottom-color: var(--ocean);
  color: var(--ocean);
  font-weight: 600;
}

/* =========================================================
   FEATURED HERO
   ========================================================= */
.ts-featured-hero {
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
  margin-bottom: 48px;
  cursor: pointer;
  background: var(--ocean-pale);
  transition: box-shadow 0.2s;
}

.ts-featured-hero:hover { box-shadow: var(--shadow-hover); }

.ts-featured-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-featured-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,77,146,0.60) 0%, rgba(14,77,146,0.10) 60%, transparent 100%);
}

.ts-featured-hero-content {
  position: relative;
  z-index: 1;
}

.ts-featured-hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ts-badge-featured {
  background: var(--ocean);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

.ts-badge-cat {
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.ts-featured-hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: white;
  line-height: 1.35;
  margin-bottom: 12px;
  max-width: 600px;
}

.ts-featured-hero-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 20px;
}

.ts-featured-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ts-featured-hero-date {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.ts-btn-read {
  background: var(--white);
  color: var(--ocean);
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff-sans);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.ts-btn-read:hover { opacity: 0.9; color: var(--ocean); }

/* Decorative pin (no-image fallback background) */
.ts-featured-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ocean-pale), var(--beige-dark));
}

/* =========================================================
   POSTS AREA CONTROLS
   ========================================================= */
.ts-posts-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ts-posts-count-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ts-posts-count-label span {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-light);
  margin-left: 8px;
}

/* =========================================================
   POSTS GRID
   ========================================================= */
.ts-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* =========================================================
   POST CARD
   ========================================================= */
.ts-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
}

.ts-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.ts-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }

.ts-card-thumb {
  height: 192px;
  overflow: hidden;
  background: var(--ocean-pale);
  flex-shrink: 0;
  position: relative;
}

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

.ts-card:hover .ts-card-thumb img { transform: scale(1.04); }

.ts-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ocean-pale), var(--beige-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.06em;
}

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

.ts-card-cat-row {
  margin-bottom: 10px;
}

/* Category tag */
.ts-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.ts-tag-ocean {
  background: var(--ocean-pale);
  color: var(--ocean);
}

.ts-tag-terra {
  background: var(--terra-pale);
  color: var(--terra);
}

.ts-tag-neutral {
  background: var(--beige-dark);
  color: var(--ink-mid);
}

.ts-card-title {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 8px;
  flex: 1;
}

.ts-card-excerpt {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.ts-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--beige-dark);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-subtle);
}

/* =========================================================
   BODY LAYOUT
   ========================================================= */
.ts-body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.ts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
}

.ts-widget {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ts-widget-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--terra);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* About widget */
.ts-about-icon {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--ocean-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.ts-about-title {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.ts-about-title .tavel { color: var(--ocean); }
.ts-about-title .spot  { color: var(--terra); }

.ts-about-desc {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
  text-align: center;
}

/* Category list in sidebar */
.ts-sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ts-sidebar-cat-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--ink-mid);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--ff-sans);
  text-align: left;
  transition: all 0.15s;
  text-decoration: none;
  width: 100%;
}

.ts-sidebar-cat-btn:hover {
  background: var(--ocean-pale);
  color: var(--ocean);
}

.ts-sidebar-cat-count {
  font-size: 12px;
  color: var(--ink-subtle);
  background: var(--beige-dark);
  padding: 2px 8px;
  border-radius: 100px;
}

/* Popular posts */
.ts-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--beige-dark);
  text-decoration: none;
  transition: opacity 0.15s;
}

.ts-popular-item:last-child { border-bottom: none; }
.ts-popular-item:hover { opacity: 0.75; }

.ts-popular-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ocean-pale);
  color: var(--ocean);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ts-popular-title {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
}

.ts-popular-date {
  font-size: 11px;
  color: var(--ink-subtle);
  margin-top: 3px;
}

/* Tags */
.ts-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ts-tag-pill {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--beige);
  color: var(--ink-mid);
  border: 1px solid var(--beige-dark);
  text-decoration: none;
  transition: all 0.15s;
}

.ts-tag-pill:hover {
  background: var(--ocean-pale);
  color: var(--ocean);
  border-color: var(--ocean-mid);
}

/* Newsletter widget */
.ts-newsletter-widget {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-light));
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(14,77,146,0.20);
}

.ts-newsletter-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ts-newsletter-title {
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.4;
}

.ts-newsletter-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  line-height: 1.6;
}

.ts-newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: none;
  font-size: 14px;
  font-family: var(--ff-sans);
  margin-bottom: 10px;
  outline: none;
  color: var(--ink);
}

.ts-btn-subscribe {
  width: 100%;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--terra);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff-sans);
  transition: background 0.15s;
}

.ts-btn-subscribe:hover { background: var(--terra-light); }

/* =========================================================
   PAGINATION
   ========================================================= */
.ts-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ts-pagination .nav-links { display: flex; gap: 6px; align-items: center; }

.ts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--beige-dark);
  background: var(--white);
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 400;
  font-family: var(--ff-sans);
  text-decoration: none;
  transition: all 0.15s;
}

.ts-pagination .page-numbers:hover,
.ts-pagination .page-numbers.current {
  background: var(--ocean);
  border-color: var(--ocean);
  color: white;
  font-weight: 600;
}

/* =========================================================
   SINGLE POST
   ========================================================= */

/* Article header */
.ts-article-header {
  background: var(--ocean-pale);
  border-bottom: 1px solid var(--beige-dark);
  padding: 48px 24px 40px;
}

.ts-article-header-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.ts-article-tags-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ts-article-title {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 20px;
  max-width: 780px;
}

.ts-article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-light);
  flex-wrap: wrap;
}

.ts-article-byline a { color: var(--ocean); }

/* Single layout */
.ts-single-body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* Featured image */
.ts-post-featured-img {
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/9;
  background: var(--ocean-pale);
}

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

/* Post content */
.ts-post-content {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-mid);
}

.ts-post-content h2 {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
}

.ts-post-content h3 {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.ts-post-content p { margin-bottom: 20px; }

.ts-post-content ul,
.ts-post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.ts-post-content li { margin-bottom: 6px; }

.ts-post-content blockquote {
  border-left: 3px solid var(--ocean);
  padding: 14px 18px;
  background: var(--ocean-pale);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 24px 0;
  font-size: 15px;
  color: var(--ocean);
}

.ts-post-content blockquote strong { color: var(--ocean); }

.ts-post-content pre {
  background: var(--ink);
  color: var(--ocean-pale);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-family: 'Courier New', monospace;
}

.ts-post-content code {
  background: var(--ocean-pale);
  color: var(--ocean);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.ts-post-content pre code { background: none; color: inherit; padding: 0; }

.ts-post-content img {
  border-radius: var(--r-lg);
  margin: 20px 0;
}

.ts-post-content a {
  color: var(--ocean);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Travel tip callout */
.ts-post-content .wp-block-quote,
.ts-travel-tip {
  background: var(--ocean-pale);
  border-left: 3px solid var(--ocean);
  padding: 14px 18px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ocean);
}

/* Info box */
.ts-info-box {
  background: var(--terra-pale);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-top: 24px;
}

.ts-info-box-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--terra);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Post tags */
.ts-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--beige-dark);
}

/* Author box */
.ts-author-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--beige-dark);
  margin-top: 40px;
}

.ts-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ocean-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ts-author-name {
  font-family: var(--ff-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.ts-author-bio {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* Post navigation */
.ts-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.ts-post-nav-item {
  padding: 16px 20px;
  background: var(--white);
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ts-post-nav-item:hover {
  border-color: var(--ocean-mid);
  box-shadow: var(--shadow-sm);
}

.ts-post-nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-subtle);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ts-post-nav-title {
  font-family: var(--ff-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* Related post */
.ts-related-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige-dark);
  text-decoration: none;
  transition: opacity 0.15s;
}

.ts-related-item:last-child { border-bottom: none; }
.ts-related-item:hover { opacity: 0.75; }

.ts-related-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ocean-pale);
  flex-shrink: 0;
}

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

.ts-related-title {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.ts-related-date {
  font-size: 11px;
  color: var(--ink-subtle);
  margin-top: 4px;
}

/* =========================================================
   ARCHIVE HEADER
   ========================================================= */
.ts-archive-header {
  background: var(--white);
  border-bottom: 1px solid var(--beige-dark);
  padding: 36px 24px;
}

.ts-archive-header-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.ts-archive-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}

.ts-archive-title {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.ts-archive-desc {
  margin: 8px 0 0;
  color: var(--ink-light);
  font-size: 14px;
}

/* =========================================================
   NOT FOUND
   ========================================================= */
.ts-not-found {
  text-align: center;
  padding: 80px 24px;
}

.ts-not-found-code {
  font-family: var(--ff-serif);
  font-size: 96px;
  font-weight: 900;
  color: var(--ocean-pale);
  line-height: 1;
  margin-bottom: 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.ts-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  margin-top: 80px;
  padding: 48px 24px;
}

.ts-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.ts-footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  max-width: 240px;
  margin-top: 12px;
}

.ts-footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.ts-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.ts-footer-col a:hover { color: rgba(255,255,255,0.85); }

.ts-footer-bottom {
  max-width: 1040px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comment-form input,
.comment-form textarea {
  font-family: var(--ff-sans);
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--ocean-mid); }

.comment-form .submit {
  background: var(--ocean);
  color: white;
  border: none;
  border-radius: var(--r-md);
  padding: 11px 24px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.comment-form .submit:hover { background: var(--ocean-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .ts-posts-grid { grid-template-columns: repeat(2, 1fr); }

  .ts-body,
  .ts-single-body {
    grid-template-columns: 1fr;
  }

  .ts-sidebar,
  .ts-single-body aside { position: static; }

  .ts-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .ts-posts-grid { grid-template-columns: 1fr; }

  .ts-featured-hero { padding: 28px 24px; min-height: 280px; }
  .ts-featured-hero-title { font-size: 22px; }

  .ts-article-title { font-size: 24px; }

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

  .ts-footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .ts-footer-bottom { flex-direction: column; text-align: center; }
}
