/*
Theme Name: 3D Printing Services Blog
Theme URI: https://3dprintingservices.com/blog/
Description: Lightweight custom theme matching the 3dprintingservices.com design system. Depends on the parent site sharing the docroot: it enqueues /assets/css/styles.css and /assets/js/app.js, and requires /partials/{header,footer,jsonld-shared}.php for the site chrome. This file holds only blog-specific additions on top of the site's design tokens.
Author: 3D Printing Services
Version: 1.0.0
Requires PHP: 7.4
Text Domain: tdps
*/

/* ---- Post cards (blog.php used 180px image-slots; .uc-img is 150px on the site) ---- */
.uc-card .uc-img-180 { height: 180px; }
.uc-card a:has(> .uc-img-180) { display: block; }
.uc-noimg {
  display: block; width: 100%; background: var(--bg-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--line);
}

/* ---- Single post layout ---- */
.post-body { max-width: 780px; }
.post-hero-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.page-hero .blog-meta { margin-top: 20px; font-size: 0.7rem; }
.page-hero .breadcrumb span[aria-current] { color: var(--ink-soft); }

/* ---- Prose extensions (styles.css covers h2/h3/p/ul/strong only) ---- */
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-press); }
.prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.prose ol li::marker { font-family: var(--font-mono); font-size: 0.85em; color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; color: var(--ink-soft); font-style: italic; }
.prose blockquote p { font-size: 1.1rem; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; line-height: 1.6; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.prose figure { margin: 0; }
.prose figcaption, .wp-caption-text { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 36px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; color: var(--ink); border-bottom: 2px solid var(--line-strong); padding: 10px 12px; }
.prose td { color: var(--ink-soft); border-bottom: 1px solid var(--line); padding: 10px 12px; }

/* ---- WordPress content classes ---- */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-quote { border-left: 3px solid var(--accent); padding-left: 20px; }

/* ---- Pagination (the_posts_pagination output) ---- */
.navigation.pagination { margin-top: clamp(36px, 5vw, 56px); }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.navigation.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 9px 13px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, color .15s;
}
a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.page-numbers.dots { border: 0; }

/* ---- Prev / next post links (single) ---- */
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.post-nav a:hover { color: var(--accent); }

/* ---- Search form ---- */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form .search-field {
  flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
}
.search-form .search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.page-hero .search-form { margin-top: 24px; }
.notfound .search-form { margin-inline: auto; }
@media (max-width: 540px) { .search-form { flex-direction: column; } .search-form .btn { justify-content: center; } }
