/*
 Theme Name: Twenty Twenty-Five Child – Myths
 Theme URI: https://example.com/tt5-child-myths
 Description: Child theme adding a "Myth" custom post type, taxonomy, and templates.
 Author: You
 Template: twentytwentyfive
 Version: 1.0.0
 License: GPL-2.0-or-later
 Text Domain: twentytwentyfive-child
*/

/* Layout helpers */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.myth-card {
  border: 1px solid var(--wp--preset--color--contrast-3, #e6e6e6);
  border-radius: 10px;
  overflow: hidden;
  background: var(--wp--preset--color--base, #fff);
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}

.myth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.myth-thumb, .placeholder-thumb {
  display: block;
  aspect-ratio: 16/9;
  background: var(--wp--preset--color--contrast-3, #ececec);
}

.myth-card-body {
  padding: 1rem;
}

.entry-title {
  margin: 0 0 .5rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.entry-excerpt {
  color: var(--wp--preset--color--contrast, #444);
  font-size: .95rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: .75rem 0 0 0;
}

.chip {
  background: var(--wp--preset--color--contrast-3, #eee);
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .85rem;
}

.chip a {
  text-decoration: none;
}

.taxonomy-filter {
  margin-top: .75rem;
}

.taxonomy-filter .myth-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  list-style: none;
  padding: 0;
  margin: .5rem 0 0 0;
}

.taxonomy-filter a {
  text-decoration: none;
  padding: .25rem .5rem;
  border: 1px solid var(--wp--preset--color--contrast-3, #e6e6e6);
  border-radius: 6px;
}

/* Single myth */
.single-myth .featured-media {
  margin: 1rem 0 1.25rem;
}

.single-myth .myth-details {
  border-top: 1px solid var(--wp--preset--color--contrast-3, #e6e6e6);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.single-myth .post-navigation {
  margin-top: 1.25rem;
  border-top: 1px solid var(--wp--preset--color--contrast-3, #e6e6e6);
  padding-top: 1rem;
}