/**
 * Centy Blog — matches getcenty.com marketing (Fraunces + DM Sans, #00a865).
 */

:root {
  --centy-green: #00a865;
  --centy-green-hover: #007a49;
  --centy-charcoal: #111827;
  --centy-body: #374151;
  --centy-muted: #6b7280;
  --centy-border: #e4e7ed;
  --centy-bg-off: #f7f8fa;
  --centy-header-h: 56px;
}

/* Space for fixed header */
body .is-root-container,
body .wp-site-blocks {
  padding-top: var(--centy-header-h);
}

/* ── Header ── */
.centy-site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100010;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--centy-border) !important;
  margin: 0 !important;
}

.centy-site-header .centy-header-inner {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.centy-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--centy-charcoal) !important;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.centy-logo:hover {
  color: var(--centy-charcoal) !important;
  opacity: 0.88;
}

.centy-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--centy-green);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
}

.centy-logo__text {
  font-family: "Fraunces", Georgia, serif;
}

.centy-site-header .wp-block-navigation .wp-block-navigation-item__content {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--centy-body);
}

.centy-site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--centy-green);
}

.centy-site-header .wp-block-navigation__responsive-container-open,
.centy-site-header .wp-block-navigation__responsive-container-close {
  color: var(--centy-charcoal);
}

/* ── Blog hero / archive intro ── */
.centy-blog-hero {
  background: linear-gradient(180deg, var(--centy-bg-off) 0%, #fff 100%);
  border-bottom: 1px solid var(--centy-border);
}

.centy-blog-hero h1 {
  color: var(--centy-charcoal);
  letter-spacing: -0.02em;
}

.centy-blog-hero .centy-blog-lead {
  color: var(--centy-body);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.centy-blog-hero .wp-block-query-title {
  color: var(--centy-charcoal);
  letter-spacing: -0.02em;
}

.centy-blog-hero .wp-block-term-description {
  color: var(--centy-body);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── Post cards (archive) ── */
.centy-post-card {
  border: 1px solid var(--centy-border);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 1.75rem) !important;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.centy-post-card:hover {
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  border-color: #d1d5db;
}

.centy-post-card .wp-block-post-featured-image {
  border-radius: 8px;
  overflow: hidden;
}

.centy-post-card .wp-block-post-featured-image img {
  transition: transform 0.35s ease;
}

.centy-post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.02);
}

.centy-post-card .wp-block-post-title a {
  text-decoration: none;
  color: var(--centy-charcoal);
}

.centy-post-card .wp-block-post-title a:hover {
  color: var(--centy-green);
}

.centy-post-card .wp-block-post-excerpt {
  color: var(--centy-body);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.centy-post-card .wp-block-post-excerpt .wp-block-post-excerpt__excerpt {
  margin-bottom: 0.5rem;
}

.centy-post-card .wp-block-post-date {
  color: var(--centy-muted);
  font-size: 0.875rem;
}

.centy-post-card .wp-block-post-terms a {
  font-size: 0.8125rem;
  text-decoration: none;
}

/* Pagination */
.centy-query-loop .wp-block-query-pagination {
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--centy-border);
}

.centy-query-loop .wp-block-query-pagination a {
  font-weight: 500;
}

/* ── Footer ── */
.centy-site-footer {
  background: var(--centy-charcoal) !important;
  color: #e5e7eb !important;
  margin-top: 3rem !important;
}

.centy-site-footer a {
  color: #fff !important;
  text-decoration: none;
  opacity: 0.9;
}

.centy-site-footer a:hover {
  color: #b3e8d4 !important;
  opacity: 1;
}

.centy-site-footer .centy-footer-muted {
  color: var(--centy-muted);
  font-size: 0.875rem;
}

.centy-site-footer .wp-block-heading,
.centy-site-footer h2,
.centy-site-footer h3 {
  color: #fff !important;
  font-family: "Fraunces", Georgia, serif;
}

.centy-site-footer .centy-footer-sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.centy-query-loop .wp-block-post-template.is-flex-container,
.centy-query-loop .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem !important;
}

/* Single post prose */
.single-post .entry-content,
.single-post .wp-block-post-content {
  color: var(--centy-body);
}

.single-post .wp-block-post-title {
  color: var(--centy-charcoal);
}

/* Block editor / admin — avoid shifting editor canvas */
.block-editor-iframe__body .wp-site-blocks {
  padding-top: 0;
}
