/*
Theme Name: Mackenzie Law Blog
Description: The Mackenzie Mediation & Law blog theme, designed to match the main website.
Version: 1.1.5
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: mackenzie-law-blog
*/

.hero-image.blog-hero { position: relative; isolation: isolate; background-image: none; }
.blog-hero-photo, .blog-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog-hero-photo { z-index: -2; object-fit: cover; object-position: center; }
.blog-hero::before {
    content: "";
    z-index: -1;
    background: linear-gradient(90deg, rgb(13 22 17 / 91%), rgb(13 22 17 / 80%) 58%, rgb(13 22 17 / 35%));
}
.blog-hero .hero-copy { max-width: 49rem; }
.blog-columns { display: grid; align-items: start; gap: 2rem; }
.blog-primary, .blog-sidebar { min-width: 0; }
.blog-sidebar { display: grid; gap: 1rem; overflow-wrap: anywhere; }
.blog-sidebar .widget-title, .blog-sidebar .wp-block-heading { font-size: 1.5rem; }
.blog-sidebar .wp-block-search__input { min-width: 0; }
.blog-sidebar :is(.wp-block-latest-posts__list, .widget_recent_entries ul) {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-sidebar :is(.wp-block-latest-posts__list, .widget_recent_entries ul) > li {
    margin: 0;
    padding-block: .3rem;
}
.blog-sidebar :is(.wp-block-latest-posts__list, .widget_recent_entries ul) > li + li {
    border-block-start: 1px solid var(--line);
}
.blog-sidebar :is(.wp-block-latest-posts__list, .widget_recent_entries ul) > li > a {
    display: block;
    padding: .55rem .65rem;
    border-radius: .35rem;
    font-weight: 600;
    line-height: 1.45;
}
.blog-sidebar :is(.wp-block-latest-posts__list, .widget_recent_entries ul) > li > a:is(:hover, :focus-visible) {
    background-color: var(--tint);
    color: var(--green-dark);
    text-decoration-thickness: 2px;
}
@media (min-width: 55rem) {
    .blog-columns { grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); }
}
@media (max-width: 47.99rem) {
    .blog-hero::before { background: rgb(13 22 17 / 80%); }
}
.blog-list-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.blog-list-header h2 { margin: 0; }
@media (min-width: 55rem) {
    .blog-home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.post-card { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.post-card h2, .post-card h3 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
.post-card-image, .featured-image { margin: 0 0 1.25rem; }
.post-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .65rem; }
.post-meta { color: var(--muted); font-size: .92rem; }
.hero-copy .post-meta { font-size: .95rem; }
.featured-image img { width: 100%; height: auto; border-radius: var(--radius); }
.entry-content .inline-featured-image { margin: 1.5rem 0; }
.entry-content { overflow-wrap: anywhere; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { max-width: 100%; }
.entry-content pre, .entry-content .wp-block-table { overflow-x: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 3px solid var(--accent); }
.entry-content figcaption { color: var(--muted); font-size: .9rem; }
.article-footer, .blog-pagination, .blog-comments { margin-top: 2rem; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.blog-pagination .page-numbers { display: inline-block; padding: .25rem .65rem; }
.blog-pagination [aria-current] { background: var(--tint); border-radius: .3rem; }
.blog-search { display: flex; flex-wrap: wrap; gap: .5rem; }
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.blog-search input, .blog-comments :is(input:not([type="submit"], [type="checkbox"]), textarea) {
    color: var(--ink); background: var(--white); border: 1px solid #819085;
    border-radius: .35rem; padding: .55rem .65rem; font: inherit; max-width: 100%;
}
.blog-comments label { display: block; }
.blog-comments .comment-list { padding-inline-start: 1.5rem; }
.blog-comments .comment-body { margin-bottom: 1.25rem; }
.blog-comments .comment-form-cookies-consent label { display: inline; }

