/**
 * Astracana Pages (Core 1.3.7)
 * Design pass for the standard-post surfaces — blog index, single articles,
 * post archives, search results. These pages otherwise render with generic
 * GeneratePress chrome (pale gray ground, default blue links, no cards).
 * Everything here reuses the design-system tokens (--astra-* in
 * astracana-design-system.css, loaded site-wide) with literal fallbacks.
 * Scoped to post body classes only; CPT templates are untouched.
 */

/* ---------- Ground + base links ---------- */
body.blog, body.single-post, body.category, body.tag, body.author, body.date, body.search-results {
  background: var(--astra-ivory, #faf7f0);
}

/* ---------- Blog index / archives: card grid ---------- */
body.blog .site-main, body.category .site-main, body.tag .site-main,
body.author .site-main, body.date .site-main, body.search-results .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  align-items: start;
}
body.blog .paging-navigation, body.category .paging-navigation, body.tag .paging-navigation,
body.author .paging-navigation, body.date .paging-navigation, body.search-results .paging-navigation {
  grid-column: 1 / -1;
}
body.blog article.post, body.category article.post, body.tag article.post,
body.author article.post, body.date article.post, body.search-results article.post {
  display: flex;
  margin: 0;
}
body.blog .inside-article, body.category .inside-article, body.tag .inside-article,
body.author .inside-article, body.date .inside-article, body.search-results .inside-article {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 22, 42, 0.08);
  border-radius: var(--astra-radius, 14px);
  box-shadow: var(--astra-shadow, 0 10px 30px rgba(17, 22, 42, 0.10));
  padding: 1.5rem 1.5rem 1.6rem;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
body.blog .inside-article:hover, body.category .inside-article:hover, body.tag .inside-article:hover,
body.author .inside-article:hover, body.date .inside-article:hover, body.search-results .inside-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(17, 22, 42, 0.14);
}
/* Featured image leads the card (theme places it after the header). */
body.blog .post-image, body.category .post-image, body.tag .post-image,
body.author .post-image, body.date .post-image, body.search-results .post-image {
  order: -1;
  margin: -1.5rem -1.5rem 1.15rem;
}
body.blog .post-image a, body.category .post-image a, body.tag .post-image a,
body.author .post-image a, body.date .post-image a, body.search-results .post-image a {
  display: block;
}
body.blog .post-image img, body.category .post-image img, body.tag .post-image img,
body.author .post-image img, body.date .post-image img, body.search-results .post-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
/* Card titles + meta */
body.blog .entry-title, body.category .entry-title, body.tag .entry-title,
body.author .entry-title, body.date .entry-title, body.search-results .entry-title {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
body.blog .entry-title a, body.category .entry-title a, body.tag .entry-title a,
body.author .entry-title a, body.date .entry-title a, body.search-results .entry-title a {
  color: var(--astra-navy, #11162a);
  text-decoration: none;
}
body.blog .entry-title a:hover, body.category .entry-title a:hover, body.tag .entry-title a:hover,
body.author .entry-title a:hover, body.date .entry-title a:hover, body.search-results .entry-title a:hover {
  color: var(--astra-gold-deep, #96702f);
}
body.blog .entry-header .entry-meta, body.category .entry-header .entry-meta,
body.tag .entry-header .entry-meta, body.author .entry-header .entry-meta,
body.date .entry-header .entry-meta, body.search-results .entry-header .entry-meta {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--astra-gold-deep, #96702f);
}
body.blog .entry-header .entry-meta a, body.category .entry-header .entry-meta a,
body.tag .entry-header .entry-meta a, body.author .entry-header .entry-meta a,
body.date .entry-header .entry-meta a, body.search-results .entry-header .entry-meta a {
  color: inherit;
  text-decoration: none;
}
/* Teaser text stays card-sized even if full content is shown. */
body.blog .entry-summary, body.category .entry-summary, body.tag .entry-summary,
body.author .entry-summary, body.date .entry-summary, body.search-results .entry-summary {
  color: var(--astra-ink-soft, #5a5c6e);
  font-size: 0.97rem;
}
body.blog .entry-content, body.category .entry-content, body.tag .entry-content,
body.author .entry-content, body.date .entry-content, body.search-results .entry-content {
  color: var(--astra-ink-soft, #5a5c6e);
  font-size: 0.97rem;
  max-height: 7.2em;
  overflow: hidden;
}
/* Read-more as the soft-gold arrow link used across the site. */
body.blog .read-more, body.category .read-more, body.tag .read-more,
body.author .read-more, body.date .read-more, body.search-results .read-more {
  color: var(--astra-gold-deep, #96702f);
  font-weight: 600;
  text-decoration: none;
}
body.blog .read-more::after, body.category .read-more::after, body.tag .read-more::after,
body.author .read-more::after, body.date .read-more::after, body.search-results .read-more::after {
  content: " \2192";
}
body.blog .read-more:hover, body.category .read-more:hover, body.tag .read-more:hover,
body.author .read-more:hover, body.date .read-more:hover, body.search-results .read-more:hover {
  text-decoration: underline;
}

/* Card footer meta: category reads as an uppercase eyebrow. */
body.blog footer.entry-meta, body.category footer.entry-meta, body.tag footer.entry-meta,
body.author footer.entry-meta, body.date footer.entry-meta, body.search-results footer.entry-meta,
body.single-post footer.entry-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 22, 42, 0.07);
  font-size: 0.85rem;
  color: var(--astra-ink-soft, #5a5c6e);
}
body.single-post footer.entry-meta { margin-top: 2rem; }
.cat-links a, .tags-links a {
  color: var(--astra-gold-deep, #96702f);
  text-decoration: none;
}
.cat-links a {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}
.cat-links a:hover, .tags-links a:hover { text-decoration: underline; }

/* Pagination */
.paging-navigation { text-align: center; margin-top: 0.5rem; }
.paging-navigation a {
  color: var(--astra-navy, #11162a);
  text-decoration: none;
  display: inline-block;
  padding: 0.4em 0.9em;
  border: 1px solid rgba(17, 22, 42, 0.15);
  border-radius: 999px;
  margin: 0 0.15rem;
  background: #fff;
}
.paging-navigation a:hover { border-color: var(--astra-gold, #c8a86b); color: var(--astra-gold-deep, #96702f); }
.paging-navigation .current {
  display: inline-block;
  padding: 0.4em 0.9em;
  margin: 0 0.15rem;
  border-radius: 999px;
  background: var(--astra-navy, #11162a);
  color: var(--astra-ivory, #faf7f0);
}

/* ---------- Single article ---------- */
body.single-post .inside-article {
  background: #fff;
  border: 1px solid rgba(17, 22, 42, 0.08);
  border-radius: var(--astra-radius, 14px);
  box-shadow: var(--astra-shadow, 0 10px 30px rgba(17, 22, 42, 0.10));
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
body.single-post .entry-title { margin-bottom: 0.7rem; }
body.single-post .entry-header .entry-meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--astra-ink-soft, #5a5c6e);
}
body.single-post .entry-header .entry-meta a { color: inherit; text-decoration: none; }
/* Author name in midnight, never the default link blue. */
body.single-post .byline a {
  color: var(--astra-navy, #11162a);
  font-weight: 600;
}
body.single-post .byline a:hover { color: var(--astra-gold-deep, #96702f); }
body.single-post .post-image { margin: 1.4rem 0 1.8rem; }
body.single-post .post-image img {
  display: block;
  max-width: 100%;
  border-radius: var(--astra-radius, 14px);
  box-shadow: var(--astra-shadow, 0 10px 30px rgba(17, 22, 42, 0.10));
}
/* Comfortable reading measure + site link treatment. */
body.single-post .entry-content {
  font-size: 1.05rem;
  line-height: 1.78;
  max-width: 68ch;
}
body.single-post .entry-content a {
  color: var(--astra-gold-deep, #96702f);
  font-weight: 500;
  text-decoration-color: rgba(200, 168, 107, 0.55);
  text-underline-offset: 3px;
}
body.single-post .entry-content a:hover { color: var(--astra-navy, #11162a); }

/* ---------- End-of-article signature panel (Core the_content filter) ---------- */
.astracana-article-cta {
  background: radial-gradient(900px 300px at 50% -20%, #26315c 0%, var(--astra-navy, #11162a) 60%);
  color: var(--astra-ivory-text, #faf7f0);
  border-radius: 16px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  margin: 2.6rem 0 0.5rem;
  text-align: center;
}
.astracana-article-cta-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--astra-gold-soft, #e6cf9e);
  margin: 0 0 0.6rem;
}
.astracana-article-cta h2 {
  color: var(--astra-ivory-text, #faf7f0);
  margin: 0 0 0.7rem;
}
.astracana-article-cta p {
  color: var(--astra-ivory-dim, #c9c2b2);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.astracana-article-cta-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.3rem 0 0;
}

/* ---------- Sidebar search: site styling; hidden on articles ---------- */
.widget_search .search-field {
  border: 1px solid rgba(17, 22, 42, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--astra-ink, #212334);
  padding: 0.65em 1.1em;
}
.widget_search .search-submit {
  background: var(--astra-navy, #11162a);
  color: var(--astra-ivory, #faf7f0);
  border: 1px solid var(--astra-navy, #11162a);
  border-radius: 999px;
  cursor: pointer;
}
.widget_search .search-submit:hover {
  background: var(--astra-navy-2, #1a2138);
  color: var(--astra-gold-soft, #e6cf9e);
}
/* Reading pages stay clean: no dated search box beside an article. */
body.single-post .widget_search { display: none; }
