/* ==========================================================================
   Blog Listing Page — page-specific styles
   Loaded only when is_home() via functions.php
   ========================================================================== */

/* ===== Blog Header =====
   Same treatment as the services hub (.svc-hero) and the case studies
   archive (.p-hero): dark brand-gradient band, breadcrumb, coral eyebrow,
   white title and light lede. The three list pages now open identically.
   The light lavender fade and its two decorative radial blobs are gone —
   they were tuned for a light ground and have no equivalent on the other
   two headers. */
.blog-header {
  background: var(--grad-brand);
  padding: 40px var(--gutter) 56px;
  position: relative;
  overflow: hidden;
}
.blog-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.crumbs a { color: rgba(255,255,255,.8); transition: color var(--d-fast); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: rgba(255,255,255,.45); display: inline-flex; }
.crumbs .current { color: #fff; font-weight: 600; }
.blog-head-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-end;
}
.blog-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ts-coral-300);
  margin: 0 0 8px;
}
.blog-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  color: #fff;
  margin: 0 0 16px;
}
.blog-lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin: 0;
  max-width: 560px;
}
.header-stats {
  display: flex;
  gap: 22px;
  margin-top: 16px;
}
.header-stats .hs {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.header-stats .hs strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.header-search { width: 340px; }
.header-search .search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 11px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--d-base), border-color var(--d-base);
}
.header-search .search-box:focus-within {
  border-color: var(--ts-coral-400);
  box-shadow: 0 0 0 3px rgba(240,85,63,.35);
}
.header-search .search-box svg { width: 18px; height: 18px; color: var(--ts-plum-500); flex-shrink: 0; }
.header-search input {
  border: 0; outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-1);
  width: 100%;
}
.header-search input::placeholder { color: var(--fg-4); }

/* ===== Toolbar ===== */
.blog-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-1);
}
.cat-chips { display: flex; gap: 9px; flex-wrap: wrap; flex: 1; }
.chip {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  cursor: pointer;
  transition: all var(--d-base) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.chip:hover { border-color: var(--ts-plum-300); color: var(--ts-plum-700); background: var(--ts-plum-50); }
.chip.active { background: var(--ts-plum-600); border-color: var(--ts-plum-600); color: #fff; }
.chip .cnt { font-size: 11px; opacity: .7; font-weight: 500; }
.sort { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.sort label { font-size: 13px; color: var(--fg-3); }
.sort select {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 8px 32px 8px 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.sort select:focus { outline: none; border-color: var(--ts-plum-400); box-shadow: var(--shadow-focus); }

/* ===== Page layout: main + sidebar ===== */
.blog-body {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 30px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1fr 332px;
  gap: 48px;
  align-items: start;
}

/* ===== Featured post ===== */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  margin-bottom: 30px;
  cursor: pointer;
}
.featured-thumb {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ts-coral-400);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(214, 65, 44,.32);
}
.featured-badge svg { width: 13px; height: 13px; }
.featured-body { padding: 34px 36px; display: flex; flex-direction: column; }
.featured-cat {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ts-plum-600);
  margin-bottom: 12px;
}
.featured-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg-1);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body p { font-size: 15px; line-height: 1.62; color: var(--fg-2); margin: 0 0 22px; }
.featured-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.featured-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--fg-3); flex: 1; }
.featured-meta span { display: inline-flex; align-items: center; gap: 6px; }
.featured-meta svg { width: 14px; height: 14px; }
.read-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ts-plum-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--d-base);
  text-decoration: none;
}
.featured:hover .read-link { gap: 10px; color: var(--ts-plum-700); }
.read-link svg { width: 15px; height: 15px; }

/* ===== Post grid ===== */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.blog-card { padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.blog-thumb { height: 172px; position: relative; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-pill {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--ts-plum-700);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 1;
}
.blog-body-card { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-body-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1.32;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.blog-body-card h3 a { color: inherit; text-decoration: none; }
.blog-body-card p { font-size: 13px; line-height: 1.55; color: var(--fg-2); margin: 0 0 16px; }
.blog-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--fg-3);
  padding-top: 12px;
  border-top: 1px solid var(--ts-ink-100);
  align-items: center;
  margin-top: auto;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-meta svg { width: 13px; height: 13px; }
.blog-meta .arr { margin-left: auto; color: var(--ts-plum-600); }

/* ===== Thumb art variants ===== */
.blog-thumb,
.featured-thumb { background: #EBE3EC; }
.thumb-a { background: linear-gradient(135deg, #2A1E30 0%, #6D4F72 100%); }
.thumb-a::before { content: ""; position: absolute; inset: 24px; border: 2px dashed rgba(255,255,255,.4); border-radius: 8px; }
.thumb-a .chart-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; gap: 6px; align-items: flex-end; height: 46%; }
.thumb-a .chart-mark span { width: 14px; background: #fff; border-radius: 3px 3px 0 0; opacity: .88; }
.thumb-b { background: linear-gradient(135deg, #FBBF24 0%, #F0553F 100%); }
.thumb-b::before { content: ""; position: absolute; inset: 18px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 18px); border-radius: 6px; }
.thumb-c { background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%); }
.thumb-c::before { content: ""; position: absolute; left: 16%; top: 24%; width: 34px; height: 34px; background: #FBBF24; border-radius: 50%; box-shadow: 64px 16px 0 -2px #FCD34D, 116px 6px 0 0 #F87171, 32px 64px 0 -4px #A88CAA, 96px 72px 0 -2px #60A5FA; }
.thumb-d { background: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%); }
.thumb-d::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 45%), radial-gradient(circle at 75% 70%, rgba(255,255,255,.16), transparent 45%); }
.thumb-e { background: linear-gradient(135deg, #DB2777 0%, #F0553F 100%); }
.thumb-e::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.thumb-e::after  { content: ""; position: absolute; inset: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.thumb-f { background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%); }
.thumb-f::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 62%; height: 62%; background: linear-gradient(90deg, transparent 48%, rgba(255,255,255,.4) 48% 52%, transparent 52%), linear-gradient(0deg, transparent 48%, rgba(255,255,255,.4) 48% 52%, transparent 52%); }
.thumb-g { background: linear-gradient(135deg, #0F172A 0%, #475569 100%); }
.thumb-g::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: block; width: 46%; height: 46%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); }
.thumb-g::after  { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 14px; background: #F0553F; border-radius: 50%; box-shadow: 0 0 0 6px rgba(240, 85, 63,.25); }

/* ===== Pagination ===== */
/* .ts-pagination: shared styles in style.css */

/* ===== Sidebar ===== */
/* .side, .side-card, pop-list, cat-list, tag-cloud: in style.css */

/* About author card */
.about-card { text-align: center; position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 64px; background-color: #120A16;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 15px 15px;}
.about-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--ts-plum-600);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  margin: 0px auto 12px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 5px;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-card h4 { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--fg-1); margin: 0 0 3px; }
.about-role { font-size: 12.5px; color: var(--ts-plum-600); font-weight: 600; margin: 0 0 12px; }
.about-bio { font-size: 13px; line-height: 1.6; color: var(--fg-2); margin: 0 0 18px; }
.about-card .ts-btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.about-foot { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.about-foot a {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--ts-ink-50); border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3); transition: all var(--d-base);
}
.about-foot a:hover { background: var(--ts-plum-600); border-color: var(--ts-plum-600); color: #fff; }
.about-foot svg { width: 15px; height: 15px; }


/* CTA band, now shared: see .fp-cta-* in assets/css/front-page.css */

/* No posts */
.no-posts { padding: 60px 24px; text-align: center; color: var(--fg-3); font-size: 15px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .blog-body            { grid-template-columns: 1fr; }
  .side                 { position: static; }
  .blog-head-grid       { grid-template-columns: 1fr; gap: 26px; align-items: flex-start; }
  .header-search        { width: 100%; }
  .blog-header          { padding: 32px var(--gutter) 40px; }
  .featured             { grid-template-columns: 1fr; }
  .featured-thumb       { min-height: 200px; }
}
@media (max-width: 760px) {
  .posts-grid  { grid-template-columns: 1fr; }
  .toolbar     { flex-direction: column; align-items: stretch; }
}
