/*
Theme Name: Blog Periciales
Description: Blog editorial de Periciales.mx.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: periciales-blog
*/

.editorial-blog { width: min(100% - 2rem, 72rem); margin: 0 auto; padding: clamp(6.25rem, 9vw, 7.25rem) 0 4rem; }
.editorial-heading { margin-bottom: 2rem; }
.editorial-heading h1, .editorial-title { color: #142a45; line-height: 1.15; letter-spacing: -.025em; }
.editorial-heading h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0; overflow-wrap: anywhere; }
.editorial-heading p { margin: .65rem 0 0; color: #475569; }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 19rem); gap: clamp(1.25rem, 3.5vw, 2.75rem); align-items: start; }
.editorial-content { min-width: 0; }
.editorial-card, .editorial-panel { border: 1px solid #dbe4ee; background: #fff; border-radius: .85rem; }
.editorial-card { margin-bottom: 1.15rem; padding: clamp(1rem, 4vw, 2rem); overflow-wrap: anywhere; }
.editorial-entry { margin-bottom: 0; }
.editorial-panel { margin-bottom: 1rem; padding: 1.1rem 1.2rem; }
.editorial-panel h2 { margin: 0 0 .65rem; font-size: 1rem; line-height: 1.4; color: #142a45; }
.editorial-panel ul { list-style: none; margin: 0; padding: 0; }
.editorial-panel li + li { margin-top: .6rem; }
.editorial-panel a, .editorial-meta a, .editorial-back { color: #174d79; }
.editorial-panel a:hover, .editorial-title a:hover, .editorial-back:hover { text-decoration: underline; }
.editorial-search { display: flex; gap: .35rem; }
.editorial-search input { min-width: 0; width: 100%; padding: .5rem .55rem; font: inherit; font-size: .9rem; color: #142a45; background: #fff; border: 1px solid #778ca2; border-radius: .35rem; }
.editorial-search button { cursor: pointer; border: 0; border-radius: .35rem; background: #164a71; color: #fff; padding: .45rem .65rem; font: inherit; font-size: .85rem; font-weight: 700; }
.editorial-title { max-width: 34ch; font-size: clamp(1.45rem, 3vw, 2.05rem); margin: 0 0 .4rem; }
.editorial-title a { color: inherit; text-decoration: none; }
.editorial-entry h1.editorial-title { font-size: clamp(1.85rem, 4vw, 2.85rem); }
.editorial-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .85rem; font-size: .875rem; color: #475569; margin: 0 0 .85rem; }
.editorial-cover { display: block; width: 100%; margin-bottom: 1.1rem; }
.editorial-cover img { display: block; width: 100%; aspect-ratio: 2.45; object-fit: cover; border-radius: .5rem; }
.editorial-card[data-category="eventos"] .editorial-cover,
.editorial-card.category-eventos .editorial-cover {
  display: grid;
  justify-items: center;
  padding: clamp(.4rem, 1.25vw, .8rem);
  border-radius: .5rem;
  background: #f0f4f8;
}
.editorial-card[data-category="eventos"] .editorial-cover img,
.editorial-card.category-eventos .editorial-cover img {
  width: min(100%, 28rem);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.editorial-summary { margin: .65rem 0; }
.editorial-body { color: #24364a; line-height: 1.72; }
.editorial-body h2, .editorial-body h3 { color: #142a45; line-height: 1.25; margin: 1.55em 0 .45em; }
.editorial-body figure { max-width: 100%; margin: 1.25rem auto; }
.editorial-body img { height: auto; max-width: 100%; }
.editorial-body a:not(.wp-block-button__link) { color: #174d79; text-decoration: underline; }
.editorial-body .wp-block-table { overflow-x: auto; }
.editorial-body .wp-block-table td, .editorial-body .wp-block-table th { padding: .55rem; border: 1px solid #c5d3e1; vertical-align: top; }
.editorial-body .wp-block-button__link { background: #164a71; color: #fff; font-weight: 700; text-align: center; }
.editorial-body .event-flyer img { display: block; width: 100%; border-radius: .5rem; }
.editorial-body .event-qr img { display: block; width: min(100%, 16rem); margin: 0 auto; }
.editorial-back { display: inline-block; margin-bottom: 1rem; }
.editorial-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.editorial-pagination .page-numbers { display: inline-block; padding: .35rem .55rem; }
.editorial-pagination [aria-current] { color: #fff; background: #164a71; border-radius: .3rem; }
.editorial-blog :focus-visible { outline: 2px solid #174d79; outline-offset: 4px; }
@media (max-width: 760px) { .editorial-layout { grid-template-columns: minmax(0, 1fr); } }

.editorial-content [hidden] { display: none !important; }
.editorial-body .wp-block-buttons { display: flex; justify-content: center; margin: 1rem 0; }
.editorial-body .wp-block-button__link { display: inline-block; padding: .8rem 1.15rem; border-radius: .65rem; text-decoration: none; }
