/**
 * Single blog post — porting html/blog-post-pro-v10-updated.html.
 *
 * Conditionally enqueued on is_singular('post'). Page-specific selectors are
 * either prefixed with `.single-post-` or scoped under existing classes used
 * only on singles (`.blog-page`, `.blog-layout`, `.post-meta`, `.post-body`,
 * `.post-tags`, `.post-nav`, `.blog-sidebar`, `.more-from-blog`, etc.) so they
 * don't collide with the blog archive's same-name `.post-hero` / `.blog-*`
 * rules in blog.css.
 */

/* ── STICKY PAGE ID BAR (matches blog archive) ── */
.page-id-bar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 40px;
}
.page-id-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-id-divider {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.page-id-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ── POST TITLE (in-column, Playfair — reference has no hero band) ── */
.post-title {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.05em;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.post-title em { font-style: normal; }

/* ── BREADCRUMB ── */
.blog-breadcrumb {
  background: var(--white);
  padding: 14px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--stone);
}
.blog-breadcrumb a { color: var(--stone); transition: color 0.2s; }
.blog-breadcrumb a:hover { color: var(--terra); }
.blog-breadcrumb span { color: var(--dust); }
.blog-breadcrumb-current { color: var(--ink); }

/* ── MAIN LAYOUT ── */
.blog-page { background: var(--white); }
.blog-layout {
  max-width: 1350px;
  margin: 0 auto;
  padding: 48px 48px 64px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  align-items: start;
}
.blog-main {
  padding-right: 56px;
  border-right: 1px solid var(--border);
  animation: fadeUp 0.5s var(--ease-out) both;
  min-width: 0;
}

/* ── FEATURED IMAGE ── */
.blog-featured-image {
  width: 100%;
  aspect-ratio: 1280/720;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background: var(--ivory);
  border-top: 3px solid var(--charcoal);
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}
.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── POST META (in-content) ── */
.post-meta { margin-bottom: 32px; }
.post-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.post-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra-light), var(--gold-light));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--stone);
  flex-shrink: 0;
  overflow: hidden;
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-info { min-width: 0; }
.post-author-name { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.post-author-store { font-size: 13px; font-weight: 600; color: var(--mascot); }
.post-author-store a { color: var(--mascot); transition: color 0.2s; }
.post-author-store a:hover { color: var(--mascot); }
.post-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ── SHARE BUTTONS ── */
.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.post-share-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  background: var(--stone);
  border: none;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.share-btn.pinterest { background: #E60023; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.email-share { background: var(--stone); }

/* ── POST BODY ── */
.post-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > blockquote { margin-bottom: 20px; }
.post-body p, .post-body li, .post-body blockquote { color: var(--ink); }
/* Inline prose links in the article body rest Fri-Yay and are BOLD — this bold
 * treatment is specific to the blog post; .legal-body a gets the same colors
 * but is NOT bolded (2.1 redline). */
.post-body a {
  color: var(--fri-yay);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(196,95,78,0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.post-body a:hover { color: var(--mascot); font-weight: 700; text-decoration: underline; text-decoration-color: var(--mascot); }
.post-body h2 {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 36px 0 14px;
  line-height: 1.25;
}
.post-body h2 em { font-style: italic; color: var(--terra); }
.post-body h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 28px 0 12px;
}
.post-body img,
.post-body .wp-block-image img {
  border-radius: var(--radius-card);
  margin: 24px 0;
  width: 100%;
}
.post-body blockquote {
  font-size: 16px;
  line-height: 1.75;
  font-style: italic;
  margin: 28px 0;
  padding-left: 20px;
  border-left: 3px solid var(--charcoal);
}
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body figure { margin: 24px 0; }
.post-body figcaption {
  font-size: 11px;
  color: var(--stone);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ── EMAIL OPT-IN STRIP ── */
.post-optin {
  margin: 40px 0;
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 32px 40px;
}
.post-optin-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.post-optin-eyebrow { display: none; }
.post-optin-headline {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}
.post-optin-sub {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
/* Inline email capture — input and button sit flush (gap:0, radius:0), which
 * is why neither carries its own rounding. */
.post-optin-form {
  display: flex;
  flex-shrink: 0;
  gap: 0;
}
.post-optin-input {
  width: 220px;
  padding: 11px 16px;
  border: none;
  border-radius: 0;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.post-optin-input::placeholder { color: var(--dust); }
.post-optin-btn {
  flex-shrink: 0;
  background: var(--fri-yay);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 11px 22px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.post-optin-btn:hover { background: var(--mascot); }
@media (max-width: 768px) {
  .post-optin { padding: 26px 24px; }
  .post-optin-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .post-optin-form { width: 100%; }
  .post-optin-input { width: auto; flex: 1; min-width: 0; }
}

/* ── POST TAGS ── */
.post-tags {
  margin-top: 40px;
  padding-top: 28px;
}
.post-tags-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Filled Fri-Yay-light pill that inverts to solid Fri-Yay on hover. The tags
 * render inside .post-body, so every colour/decoration declaration has to beat
 * the `.post-body a` prose-link rule — same `.post-body a.<class>` escape the
 * post-nav cards use, which avoids !important. */
.post-tag,
.post-body a.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 5px;
  border: 1px solid var(--fri-yay-light);
  background: var(--fri-yay-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fri-yay);
  transition: all 0.2s;
  text-decoration: none;
}
.post-tag:hover,
.post-body a.post-tag:hover {
  background: var(--fri-yay);
  border-color: var(--fri-yay);
  color: #fff;
  text-decoration: none;
}

/* ── POST NAV ── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-nav-item {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.post-body a.post-nav-item{
  text-decoration: none;
}
.post-nav-item:hover { border-color: var(--charcoal); box-shadow: var(--shadow-sm); }
.post-nav-item.next { text-align: right; }
.post-nav-dir {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 4px;
}
.post-nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1.3;
}

/* ── SIDEBAR ── */
.blog-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  /* gap: 32px; */
  gap: 24px;
  padding-left: 56px;
  /* padding-left: 0px; */
  animation: fadeUp 0.5s var(--ease-out) 0.1s both;
}

.sidebar-author {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}
.sidebar-author-avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra-light), var(--gold-light));
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--stone);
  margin: 0 auto 14px;
  overflow: hidden;
}
.sidebar-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-author-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.sidebar-author-name {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.sidebar-author-store {
  font-size: 12px;
  font-weight: 600;
  color: var(--mascot);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.sidebar-author-store a { color: var(--mascot); }
.sidebar-author-bio {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
}
.sidebar-author-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* width: 100%; */
  padding: 9px 0;
  padding: 8px 20px;
  border-radius: 4px;
  border: 1.5px solid var(--charcoal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--charcoal);
  text-decoration: none;
}
.sidebar-author-btn:hover { background: var(--mascot); border-color: var(--mascot) !important; color: #fff; }

/* .pro-badge — moved to main-style.css for cross-template reuse. */

.sidebar-section {
  background: var(--white);
  border-radius: var(--radius-card);
  /* padding: 22px; */
  padding: 0;
  padding-bottom: 24px;
}
.sidebar-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Sidebar search */
.sidebar-search { display: flex; gap: 0; width: 100%; }
.sidebar-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-right: none;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  border-radius: 0;
  min-width: 0;
}
.sidebar-search input::placeholder { color: var(--dust); }
.sidebar-search button {
  padding: 8px 12px;
  background: var(--charcoal);
  color: #fff;
  border: 1px solid var(--charcoal);
  font-size: 12px;
  cursor: pointer;
  border-radius: 0;
  outline: none;
  transition: background 0.2s;
}
.sidebar-search button:hover { background: var(--ink); }

/* Sidebar category pills */
.sidebar-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(28,26,24,0.6);
  font-size: 11px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.sidebar-cat-pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.sidebar-cat-pill.active {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

/* Sidebar recent posts */
.sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.sidebar-post-img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #E8DDD2, #D8CCC0);
  background-size: cover;
  background-position: center;
}
.sidebar-post-info { min-width: 0; }
.sidebar-post-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.sidebar-post:hover .sidebar-post-title { color: var(--terra); }
.sidebar-post-meta { font-size: 10px; color: var(--stone); letter-spacing: 0.04em; }

/* ── MORE FROM BLOG ── */
.more-from-blog { padding: 56px 0 48px; background: var(--white); }
.more-from-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.more-from-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.more-from-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.more-from-title {
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  line-height: 1.15;
}
.more-from-title em { font-style: italic; }
.more-from-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.more-from-link:hover { color: var(--stone); }

.more-blog-wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.more-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.more-blog-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(216,212,206,0.5);
  box-shadow: 0 2px 8px rgba(28,26,24,0.04);
  background: var(--white);
}
.more-blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(28,26,24,0.08); }
.more-blog-img {
  aspect-ratio: 16/10;
  background: #EDEAE4;
  position: relative;
}
.more-blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #fff;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 3px;
}
.more-blog-body { padding: 16px 16px 20px; color: var(--ink); }
.more-blog-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
}
.more-blog-excerpt {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.more-blog-footer { font-size: 11px; color: var(--stone); letter-spacing: 0.02em; }
/* Pro seller blog: stacked "Live Well · Teach Well" rows (TV · Podcast · Blog),
 * see ts_render_more_from_sections(). */
.more-from-section { margin-bottom: 48px; }
.more-from-section:last-child { margin-bottom: 0; }
.more-blog-grid--four { grid-template-columns: repeat(4, 1fr); }
.more-podcast-img { aspect-ratio: 1/1; background: #EDEAE4; }
.card-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28,26,24,0.55);
  border: 1.5px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  z-index: 1;
  transition: all 0.2s ease;
}
.more-blog-card:hover .card-play-overlay { background: var(--fri-yay); transform: translate(-50%, -50%) scale(1.08); }
.more-blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  margin-top: 10px;
  transition: color 0.25s;
}
.more-blog-card:hover .more-blog-readmore { color: var(--fri-yay); }

/* ── NEWSLETTER POPUP ── */
.ts-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,26,24,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  backdrop-filter: blur(4px);
}
.ts-popup-overlay.active { opacity: 1; pointer-events: all; }
.ts-popup-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  margin: 24px;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.ts-popup-overlay.active .ts-popup-box { transform: translateY(0) scale(1); }
.ts-popup-header {
  background: var(--charcoal);
  border-top: 3px solid var(--gold);
  padding: 28px 32px 24px;
  position: relative;
}
.ts-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.ts-popup-close:hover { background: rgba(255,255,255,0.2); }
.ts-popup-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.ts-popup-title {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.ts-popup-title em { font-style: italic; }
.ts-popup-sub { font-size: 13px; color: rgba(255,255,255,0.5); }
.ts-popup-body { padding: 28px 32px 32px; }
.ts-popup-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
  margin-top: 20px;
}
.ts-popup-section-label:first-child { margin-top: 0; }
.ts-popup-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.ts-popup-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.ts-popup-pill:hover { border-color: var(--gold); color: var(--gold); }
.ts-popup-pill.selected {
  background: var(--gold-light);
  color: var(--gold);
  border-color: var(--gold);
}
.ts-popup-email-row { display: flex; gap: 0; margin-top: 24px; }
.ts-popup-email-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-right: none;
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  border-radius: 8px 0 0 8px;
  transition: border-color 0.2s;
  min-width: 0;
}
.ts-popup-email-row input:focus { border-color: var(--charcoal); }
.ts-popup-email-row input::placeholder { color: var(--dust); }
.ts-popup-submit {
  padding: 12px 24px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.ts-popup-submit:hover { background: #D4B87A; }
.ts-popup-fine-print {
  font-size: 10px;
  color: var(--dust);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .single-post-hero { padding: 40px 24px 36px; }
  .single-post-hero-title { font-size: 36px; }
  .blog-layout { grid-template-columns: 1fr; padding: 32px 24px 48px; }
  .blog-main { padding-right: 0; border-right: none; }
  .blog-sidebar { position: static; padding-left: 0; }
  .more-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .more-from-inner, .more-blog-wrap { padding: 0 24px; }
}
@media (max-width: 768px) {
  .page-id-bar{
    flex-direction: column;
    gap: 0;
  }
  .page-id-bar .page-id-divider{
    display: none !important;
  }
}
@media (max-width: 600px) {
  .single-post-hero-title { font-size: 28px; }
  .post-title { font-size: 28px; }
  .post-nav { grid-template-columns: 1fr; }
  .blog-breadcrumb { padding: 12px 24px; }
  .more-blog-grid { grid-template-columns: 1fr 1fr; }
  .post-optin-inner { flex-direction: column; align-items: flex-start; }
}

/* ── SQUARE IMAGE GRID (2.1 redline) ──
 * The reference's .pinnable-duo / .pinnable-square: a 2-column grid of 1:1
 * images (600×600 source assets) with a 12px gutter. Three triggers, one look:
 *
 *   .ts-image-grid     — wrapped server-side around any run of two or more
 *                        images in the body (inc/pinnable.php). The catch-all,
 *                        and the one that covers classic-editor / pasted posts.
 *   .ts-gallery-duo    — added server-side to ANY gallery holding exactly two
 *                        images. Two images in the body are a matched pair in
 *                        this design, never a stack.
 *   .is-style-pinnable — the author-picked "Pinnable 2×2" style, which also
 *                        injects the Save-to-Pinterest overlay. Same grid, four
 *                        images deep instead of two.
 *
 * The gallery variants override core's flex layout, which would otherwise size
 * each image to its own aspect ratio and leave the pair ragged. A single image
 * is never wrapped and keeps the full-width treatment further up this file. */
.post-body .wp-block-gallery.is-style-pinnable,
.post-body .wp-block-gallery.ts-gallery-duo,
.post-body .ts-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.post-body .wp-block-gallery.is-style-pinnable figure.wp-block-image,
.post-body .wp-block-gallery.ts-gallery-duo figure.wp-block-image,
.post-body .ts-image-grid > * {
  position: relative;
  display: block; /* grid items blockify anyway; explicit because a bare <a> is a common item here */
  margin: 0;
  width: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--ivory);
}
/* The width/margin reset matters: `.post-body img` sets `width: 100%` and a
 * 24px block margin for standalone images, which inside the grid would push the
 * squares apart and break the crop. */
.post-body .wp-block-gallery.is-style-pinnable figure.wp-block-image img,
.post-body .wp-block-gallery.ts-gallery-duo figure.wp-block-image img,
.post-body .ts-image-grid > * img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  display: block;
}
/* Pasted bodies wrap images in a lightbox link; it has to fill the square or the
 * image inside it collapses to the anchor's own inline height. */
.post-body .ts-image-grid > * > a {
  display: block;
  width: 100%;
  height: 100%;
}
/* Odd-length run: the trailing image has no partner, so it spans both columns
 * and keeps its natural proportions rather than being cropped to a square that
 * would then be twice as tall as its neighbours. `:nth-child(odd):last-child`
 * IS the odd test — a last item sitting on an odd index means an odd count — so
 * the run length never has to be written into the markup. */
.post-body .ts-image-grid > *:nth-child(odd):last-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  background: none;
}
.post-body .ts-image-grid > *:nth-child(odd):last-child img {
  height: auto;
  object-fit: fill;
  border-radius: var(--radius-card);
}
.post-body .wp-block-gallery.is-style-pinnable figure.wp-block-image:hover .pin-btn,
.post-body .wp-block-gallery.ts-gallery-duo figure.wp-block-image:hover .pin-btn {
  opacity: 1;
  transform: translateY(0);
}
/* Per-image captions are hidden so a caption on the gallery itself reads as the
 * pair's single caption, the way .pinnable-caption does in the reference — it
 * inherits the shared `.post-body figcaption` styling already defined above. */
.post-body .wp-block-gallery.is-style-pinnable figure.wp-block-image figcaption,
.post-body .wp-block-gallery.ts-gallery-duo figure.wp-block-image figcaption { display: none; }
@media (max-width: 560px) {
  .post-body .wp-block-gallery.is-style-pinnable,
  .post-body .wp-block-gallery.ts-gallery-duo,
  .post-body .ts-image-grid { gap: 8px; }
}

/* Blog post email box (#202): the account email shows read-only, and the box's
   own confirmation names the seller's store (design blog-post-seller.html). */
.post-optin-done { font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 360px; }
.post-optin-done b { font-weight: 700; }
.post-optin-input[readonly] { background: var(--cream, #FAF7F2); color: var(--ink); }

/* Email sign-up: light version (design 27-10-2026) — header-coloured fill,
   thin outline, ink text; replaces the old dark strip. */
.post-optin { background: #FAFAF6; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.post-optin-headline { color: var(--ink); }
.post-optin-sub { color: var(--stone); }
.post-optin-input { background: var(--white); border: 1px solid var(--border); border-right: 0; }
.post-optin-input::placeholder { color: var(--stone); }
.post-optin-btn { background: var(--fri-yay); }
.post-optin-btn:hover { background: var(--mascot); }

/* "Was this post helpful?" (#203) — blog-post-seller.html #postHelpful. */
.post-helpful { margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-helpful-q { font-size: 15px; font-weight: 600; color: var(--ink); margin-right: 4px; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.ph-btn:hover,
.ph-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ph-thanks { font-size: 14px; color: var(--stone); }
.ph-thanks[hidden] { display: none; }
.post-helpful + .post-optin { margin-top: 24px; }
