/* ==========================================================
   CONTENT — blog, single posts, archives, search, 404
   ========================================================== */
.entry-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 44px 110px;
}

.entry-head { margin-bottom: 56px; }

/* ==========================================================
   BLOG TOOLBAR — search field + category filter chips
   (template-parts/blog-toolbar.php, inside .entry-wrap)
   ========================================================== */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  max-width: 420px;
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  display: flex;
  color: var(--text-muted);
  pointer-events: none;
}

.blog-search input[type="search"] {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 13px 92px 13px 44px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  transition: border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.blog-search input[type="search"]::placeholder { color: var(--text-muted); }
.blog-search input[type="search"]:focus { outline: none; border-color: var(--purple); }

.blog-search button {
  position: absolute;
  right: 5px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  padding: 9px 20px;
  border: none;
  border-radius: 100px;
  background: var(--purple);
  cursor: pointer;
  transition: background 0.18s ease;
}

.blog-search button:hover { background: var(--purple-hover); }

.blog-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--btn-gray);
  color: var(--text-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.blog-chip:hover { background: var(--pill-lavender); color: var(--purple); }
.blog-chip.active { background: var(--text-dark); color: #fff; }

@media (max-width: 640px) {
  .blog-toolbar { margin-bottom: 32px; padding-bottom: 22px; }
  .blog-search { flex-basis: 100%; max-width: none; }
  .blog-chips { gap: 7px; }
  .blog-chip { padding: 8px 13px; font-size: 13.5px; }
}

.entry-wrap .breadcrumb,
.post-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.entry-wrap .breadcrumb a,
.post-hero .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: opacity 0.18s ease; }
.entry-wrap .breadcrumb a:hover,
.post-hero .breadcrumb a:hover { opacity: 0.6; }

.entry-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 16px;
}

.entry-meta {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.entry-thumb {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 44px;
  background: var(--card-gray);
}

.entry-thumb img { width: 100%; height: auto; display: block; }

/* ── Post body ──────────────────────────────────────────── */
.entry-body {
  max-width: 760px;
  font-size: 17.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text-body);
  font-weight: 500;
}

.entry-body h2,
.entry-body h3,
.entry-body h4 {
  color: var(--text-dark);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 44px 0 14px;
}

.entry-body h2 { font-size: 30px; }
.entry-body h3 { font-size: 24px; }
.entry-body h4 { font-size: 20px; }

.entry-body p { margin-bottom: 20px; }
.entry-body a { color: var(--purple); }
.entry-body ul,
.entry-body ol { margin: 0 0 20px 22px; }
.entry-body li { margin-bottom: 9px; }

.entry-body img,
.entry-body iframe { max-width: 100%; height: auto; border-radius: 16px; display: block; }

.entry-body blockquote {
  border-left: 3px solid var(--purple);
  background: var(--card-gray);
  border-radius: 0 16px 16px 0;
  padding: 22px 26px;
  margin: 0 0 24px;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

.entry-body code,
.entry-body pre {
  background: var(--card-gray);
  border-radius: 10px;
  font-size: 15px;
}

.entry-body code { padding: 2px 7px; }
.entry-body pre { padding: 20px 22px; overflow-x: auto; margin-bottom: 22px; }

/* ── Post grid ──────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--card-gray);
  border-radius: 20px;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(16,16,20,0.18);
}

.post-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--btn-gray);
}

.post-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }

.post-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.post-card h3 a { color: var(--text-dark); text-decoration: none; }
.post-card h3 a:hover { opacity: 0.6; }

.post-excerpt {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 22px;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--purple);
  text-decoration: none;
}

.post-link:hover { gap: 12px; }

/* ── Pagination ─────────────────────────────────────────── */
.post-pagination { margin-top: 56px; }

.post-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 100px;
  background: var(--btn-gray);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease;
}

.post-pagination .page-numbers:hover { background: #e8e7ec; }
.post-pagination .page-numbers.current { background: var(--purple); color: #fff; }

/* ── Empty states / 404 ─────────────────────────────────── */
.entry-empty {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.entry-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.entry-404 { text-align: center; }

/* ── Comments ───────────────────────────────────────────── */
.entry-comments {
  max-width: 760px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.entry-comments .comment-list { list-style: none; }

.entry-comments input[type="text"],
.entry-comments input[type="email"],
.entry-comments input[type="url"],
.entry-comments textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 14px;
}

.entry-comments input:focus,
.entry-comments textarea:focus { outline: none; border-color: var(--purple); }

.entry-comments .submit {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border: none;
  border-radius: 100px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
}

.entry-comments .submit:hover { background: var(--purple-hover); }

/* ==========================================================
   POST CARD EXTRAS — category chip, fallback thumb, card body
   ========================================================== */
.post-card-body { display: flex; flex-direction: column; flex: 1; }

.post-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  background: var(--pill-lavender);
  color: var(--purple);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.post-cat {
  background: var(--pill-lavender);
  color: var(--purple);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 500;
}

.post-dot { color: var(--text-muted); }

/* ==========================================================
   SINGLE POST
   ========================================================== */
.post-single { max-width: 1100px; margin: 0 auto; padding: 56px 44px 0; }

.post-hero { text-align: center; max-width: 820px; margin: 0 auto 44px; }

.post-hero .breadcrumb { justify-content: center; }

.post-cats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.post-cats .section-tag { margin-bottom: 0; text-decoration: none; transition: background 0.18s ease; }
.post-cats .section-tag:hover { background: var(--pill-lavender); }

.post-hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 22px;
}

.post-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.post-byline-name { color: var(--text-dark); }
.post-avatar { border-radius: 50%; display: block; }

.post-feature {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 52px;
  background: var(--card-gray);
}

.post-feature img { width: 100%; height: auto; display: block; }

.post-body { max-width: 760px; margin: 0 auto; }

/* ── Tags ───────────────────────────────────────────────── */
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 44px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-tags a {
  background: var(--btn-gray);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.post-tags a:hover { background: var(--pill-lavender); color: var(--purple); }

/* ── Author card ────────────────────────────────────────── */
.post-author {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px;
  background: var(--card-gray);
  border-radius: 20px;
}

.post-author-avatar { border-radius: 50%; display: block; flex-shrink: 0; }

.post-author-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.post-author-bio {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-body);
}

/* ── Prev / next ────────────────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 48px auto 0;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.post-nav-link:hover { border-color: var(--purple); background: var(--card-gray); }
.post-nav-link.next { text-align: right; grid-column: 2; }

.post-nav-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-nav-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-dark);
}

/* ── Related ────────────────────────────────────────────── */
.post-related { max-width: 1100px; margin: 0 auto; padding: 96px 44px 110px; }
.post-related .section-head { margin-bottom: 48px; }
.post-related .post-grid { grid-template-columns: repeat(3, 1fr); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .entry-wrap { padding: 48px 20px 80px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .entry-body { font-size: 16.5px; }
  .entry-body h2 { font-size: 25px; }
}

@media (max-width: 1080px) {
  .post-related .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .post-single { padding: 32px 20px 0; }
  .post-hero { margin-bottom: 32px; }
  .post-feature { border-radius: 16px; margin-bottom: 36px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { grid-column: 1; text-align: left; }
  .post-author { flex-direction: column; gap: 14px; padding: 24px; }
  .post-related { padding: 64px 20px 80px; }
  .post-related .post-grid { grid-template-columns: 1fr; }
}

/* Paged posts (<!--nextpage-->) and the prev arrow direction */
.entry-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.entry-pages a { color: var(--purple); text-decoration: none; }

.post-nav-link.prev { grid-column: 1; }

/* ==========================================================
   FULL-WIDTH SINGLE POST

   The post is no longer a centred 1100px column: it spans the viewport with
   the same 44px gutter every other section uses, and the feature image goes
   edge to edge. calc(50% - 50vw) pulls the image out past the gutter without
   needing a wrapper element or overflow tricks.
   ========================================================== */
.post-single {
  max-width: none;
  margin: 0;
  padding: 56px 44px 0;
}

.post-single .post-body,
.post-single .entry-body,
.post-single .post-tags,
.post-single .post-author,
.post-single .post-nav,
.post-single .entry-comments {
  max-width: none;
}

.post-feature {
  border-radius: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.post-feature img { width: 100%; max-height: 620px; object-fit: cover; }

/* Headline block stays measured so it does not stretch across the whole screen */
.post-hero { max-width: 1000px; }

.post-related { max-width: none; }

@media (max-width: 640px) {
  .post-single { padding: 32px 20px 0; }
  .post-feature img { max-height: 320px; }
}
