/* Blog: the posts page, category archives and single posts. Scoped under .aeri-blog-* / .aeri-post-*.
 * Tokens come from base.css; the Load more button reuses the .aeri-load-more rule from commerce.css. */

.aeri-blog-main{max-width:none;padding:0 0 80px}

/* Title band: black plate with the page/category/post heading. */
.aeri-blog-hero{background:var(--aeri-black);color:#fff;padding:46px var(--aeri-gutter) 42px}
.aeri-blog-hero-inner{max-width:var(--aeri-max);margin:0 auto;display:flex;flex-direction:column;gap:14px}
.aeri-blog-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font:700 11px/1 Jost,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#b9b9b9}
.aeri-blog-crumb a{color:#b9b9b9;text-decoration:none}
.aeri-blog-crumb a:hover{color:var(--aeri-lime)}
.aeri-blog-crumb [aria-current=page]{color:var(--aeri-lime)}
.aeri-blog-hero h1{color:#fff;font-size:52px;max-width:1100px;margin:0}
.aeri-blog-intro{max-width:720px;margin:0;color:#d6d6d6;font-size:16px}

/* Sections: one per category, never mixed. */
.aeri-blog-sections{max-width:var(--aeri-max);margin:0 auto;padding:52px var(--aeri-gutter) 0;display:flex;flex-direction:column;gap:60px}
.aeri-blog-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:18px;border-bottom:2px solid var(--aeri-black);padding-bottom:14px;margin-bottom:26px}
.aeri-blog-section-head h2{margin:0;font-size:32px}
.aeri-blog-section-head h2 a{color:inherit;text-decoration:none}
.aeri-blog-section-head h2 a:hover{color:var(--aeri-lime)}
.aeri-blog-count{font:700 12px/1 Jost,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--aeri-muted)}

.aeri-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}

/* Card: picture (or category wordmark plate), chip, title, summary, date. */
.aeri-blog-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #cfcfcf;height:100%}
.aeri-blog-card-media{display:block;height:230px;padding:22px;background:#fff;overflow:hidden}
.aeri-blog-card-media img{display:block;width:100%;height:100%;object-fit:contain}
.aeri-blog-card-mark{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--aeri-black)}
.aeri-blog-card-mark span{font:900 30px/1 Jost,Arial,sans-serif;letter-spacing:-.02em;text-transform:uppercase;color:var(--aeri-lime);text-align:center;padding:0 14px}
.aeri-blog-card-body{display:flex;flex-direction:column;gap:10px;padding:22px;flex:1}
.aeri-blog-chip{align-self:flex-start;display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;background:#fff;border:1px solid var(--aeri-black);color:var(--aeri-black);font:700 10px/1 Roboto,Arial,sans-serif;text-transform:uppercase;letter-spacing:.04em;text-decoration:none}
.aeri-blog-chip:hover{background:var(--aeri-lime);border-color:var(--aeri-lime);color:var(--aeri-black)}
.aeri-blog-card h3{margin:0;font-size:20px;line-height:1.2}
.aeri-blog-card h3 a{color:inherit;text-decoration:none}
.aeri-blog-card h3 a:hover{color:#5c5c00}
.aeri-blog-excerpt{margin:0;color:var(--aeri-muted);font-size:14px;line-height:1.55}
.aeri-blog-date{margin:auto 0 0;padding-top:8px;font:700 11px/1 Jost,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--aeri-muted)}

.aeri-blog-more-wrap{margin-top:30px;display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.aeri-blog-more-status{margin:0;font-size:13px;color:var(--aeri-muted)}
.aeri-blog-empty{max-width:var(--aeri-max);margin:0 auto;padding:60px var(--aeri-gutter);text-align:center}
.aeri-blog-empty h2{margin:0 0 12px}
.aeri-blog-empty p{margin:0;color:var(--aeri-muted)}

/* Single post. */
.aeri-post{max-width:860px;margin:0 auto;padding:44px var(--aeri-gutter) 0}
.aeri-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:0 0 26px;font:700 11px/1 Jost,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--aeri-muted)}
.aeri-post-meta a{color:var(--aeri-muted);text-decoration:none}
.aeri-post-meta a:hover{color:var(--aeri-black)}
.aeri-post-image{margin:0 0 34px}
.aeri-post-image img{display:block;width:100%;height:auto}
.aeri-post-body{font-size:17px;line-height:1.7}
.aeri-post-body h2{font-size:32px;margin:44px 0 14px;max-width:none}
.aeri-post-body h3{font-size:24px;margin:34px 0 12px;max-width:none}
.aeri-post-body h4{font-size:19px;margin:28px 0 10px;max-width:none}
.aeri-post-body p{margin:0 0 20px}
.aeri-post-body ul,.aeri-post-body ol{margin:0 0 20px;padding-left:22px}
.aeri-post-body li{margin-bottom:8px}
.aeri-post-body a{color:#5c5c00;text-decoration:underline;text-underline-offset:3px}
.aeri-post-body blockquote{margin:26px 0;padding:6px 0 6px 20px;border-left:3px solid var(--aeri-lime);font-size:19px;color:var(--aeri-ink)}
.aeri-post-body img{height:auto}
.aeri-table-scroll{overflow-x:auto;margin:0 0 24px;-webkit-overflow-scrolling:touch}
.aeri-post-body table{width:100%;border-collapse:collapse;font-size:15px}
.aeri-post-body th,.aeri-post-body td{border:1px solid #ddd;padding:12px 14px;text-align:left;vertical-align:top}
.aeri-post-body thead th{background:#f3f3f3;font-weight:700}
.aeri-post-body hr{border:0;border-top:1px solid var(--aeri-line);margin:38px 0}
/* Core gives `.wp-block-table` its own `overflow-x:auto`, so the <figure> is a scroll container and
   anything inside it is a block formatting context: a margin on the wrapper below cannot collapse out
   and become the gap. The figure therefore owns the outside spacing, and the two inner margins have to
   go — Astra's `table{margin:0 0 1.5em}` plus the wrapper's 24px stacked into a 46.5px gap against a
   20px paragraph rhythm. Core's `thead{border-bottom:3px solid}` stacked on the cells' own 1px too. */
.aeri-post-body .wp-block-table{margin:0 0 24px}
.aeri-post-body .wp-block-table table{margin:0}
.aeri-post-body .aeri-table-scroll{margin:0}
.aeri-post-body .wp-block-table thead{border-bottom:0}
/* Astra ships `.wp-block-separator:not(.is-style-wide):not(.is-style-dots){margin:20px auto}` (0-3-0),
   which outranks the bare two-class rule and silently flattened the 38px rhythm to 20px. Matching the
   depth keeps our declaration, and blog.css loads after Astra so the tie is ours. */
.aeri-storefront .aeri-post-body .wp-block-separator{max-width:120px;margin:38px auto;border-top:2px solid var(--aeri-black)}

.aeri-post-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px;align-items:center;border-top:1px solid var(--aeri-line);border-bottom:1px solid var(--aeri-line);margin:52px 0 0;padding:24px 0}
.aeri-post-nav-prev,.aeri-post-nav-next{display:flex;flex-direction:column;gap:6px;min-width:0}
.aeri-post-nav-next{text-align:right;align-items:flex-end}
.aeri-post-nav span{font:700 10px/1 Jost,Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--aeri-muted)}
.aeri-post-nav a{font:700 15px/1.25 Jost,Arial,sans-serif;text-transform:uppercase;color:var(--aeri-black);text-decoration:none}
.aeri-post-nav a:hover{color:#5c5c00}
.aeri-post-back{white-space:nowrap;font:800 12px/1 Jost,Arial,sans-serif;letter-spacing:.08em;padding:12px 18px;background:var(--aeri-black);color:var(--aeri-lime)!important}

.aeri-post-related{margin:56px 0 0}
.aeri-post-related h2{font-size:28px;margin:0 0 24px}
.aeri-post .comment-respond,.aeri-post .comments-area{margin-top:56px}
.aeri-post .comments-title,.aeri-post .comment-reply-title{font:800 22px/1.2 Jost,Arial,sans-serif;text-transform:uppercase;margin-bottom:18px}

@media(max-width:1279px){
.aeri-blog-hero h1{font-size:44px}
.aeri-blog-grid{gap:24px}
.aeri-blog-card-media{height:205px}
}
@media(max-width:1023px){
.aeri-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.aeri-blog-hero{padding:34px var(--aeri-gutter) 32px}
.aeri-blog-hero h1{font-size:38px}
.aeri-blog-section-head h2{font-size:27px}
.aeri-post{padding-top:34px}
.aeri-post-nav{grid-template-columns:minmax(0,1fr);gap:16px;text-align:left}
.aeri-post-nav-next{text-align:left;align-items:flex-start}
}
@media(max-width:767px){
.aeri-blog-hero{padding:26px var(--aeri-gutter) 26px}
.aeri-blog-hero h1{font-size:30px}
.aeri-blog-intro{font-size:14px}
.aeri-blog-sections{padding-top:34px;gap:44px}
.aeri-blog-grid{grid-template-columns:minmax(0,1fr);gap:18px}
.aeri-blog-card-media{height:190px;padding:16px}
.aeri-blog-card-body{padding:18px}
.aeri-blog-card h3{font-size:18px}
.aeri-blog-section-head{flex-direction:column;align-items:flex-start;gap:8px}
.aeri-blog-section-head h2{font-size:24px}
.aeri-post-body{font-size:16px}
.aeri-post-body h2{font-size:26px;margin-top:34px}
.aeri-post-body h3{font-size:21px}
.aeri-blog-more-wrap{flex-direction:column;align-items:stretch;text-align:center}
}
