/* === Made Good — Custom Styles === */

/* Headings inherit parent color */
.has-text-color h1,
.has-text-color h2,
.has-text-color h3,
.has-text-color h4,
.has-text-color h5,
.has-text-color h6 {
  color: inherit !important;
}

/* Smooth rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global side padding */
body .is-layout-constrained {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 1024px) {
  body .is-layout-constrained {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--wp--preset--color--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
}

/* Navigation links */
.wp-block-navigation a {
  text-decoration: none !important;
}

/* Hero heading — fallback if custom font fails */
.wp-block-group.alignfull h1 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
}

/* Post cards on blog */
.post-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.post-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

/* Category labels */
.wp-block-post-terms a {
  text-decoration: none;
  color: var(--wp--preset--color--accent);
}

/* Article content styling */
.entry-content h2 {
  margin-top: 2.5rem;
}

.entry-content img {
  border-radius: 2px;
}

/* Featured image on single posts */
.single-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--wp--preset--color--border);
}

/* Footer links */
.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer a:hover {
  color: var(--wp--preset--color--accent);
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--wp--preset--color--primary);
  padding-left: 1.5rem;
  font-style: italic;
}

/* Table of contents (RankMath) */
.wp-block-rank-math-toc-block {
  background: var(--wp--preset--color--muted);
  padding: 1.5rem 2rem;
  border-radius: 2px;
  border: 1px solid var(--wp--preset--color--border);
}

.wp-block-rank-math-toc-block a {
  text-decoration: none;
}

/* Code blocks */
pre {
  background: var(--wp--preset--color--muted);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  padding: 1.25rem;
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  body .is-layout-constrained {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .wp-block-navigation {
    display: none;
  }
}
