/* ============================================================
 * EZ Lettering — blog (list + single). Ported from Blog.html +
 * Blog Post.html. Loaded on blog/archive/single-post views.
 * ============================================================ */

body.blog .site-main,
body.archive .site-main,
body.single-post .site-main,
body.search .site-main { max-width: none; margin: 0; background: #f5f8fc; }
body.blog, body.archive, body.single-post, body.search { background: #f5f8fc; }

/* covers (shared look) */
.cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; overflow: hidden; min-height: 200px; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 0, rgba(255,255,255,.14), transparent 60%); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover-chip { position: absolute; top: 16px; left: 16px; font-size: 10.5px; font-weight: 800; color: #0a2c54; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 20px; z-index: 2; }
.cover-title { position: relative; z-index: 2; line-height: 1.05; font-weight: 400; text-wrap: balance; }
.cover-mark { position: relative; z-index: 2; margin-top: 12px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: rgba(255,255,255,.55); }

/* intro */
.intro { background: #fff; border-bottom: 1px solid var(--line); }
.intro .wrap { padding: 36px 28px 30px; }
.intro h1 { margin: 6px 0 8px; font-size: 38px; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.intro p { margin: 0; color: var(--muted); font-weight: 600; font-size: 16px; max-width: 620px; }

/* category filter */
.filters { display: flex; flex-wrap: wrap; gap: 9px; padding: 22px 0 4px; }
.chip { font-family: inherit; font-size: 12.5px; font-weight: 800; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 30px; padding: 9px 16px; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; transition: .12s; text-decoration: none; }
.chip:hover { border-color: #bcd1ee; }
.chip.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* featured */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin: 8px 0 34px; text-decoration: none; }
.featured .cover { min-height: 340px; }
.featured .fbody { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.featured .ftag { font-size: 11px; font-weight: 800; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.featured h2 { margin: 0 0 14px; font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.12; letter-spacing: -.3px; }
.featured p { margin: 0 0 20px; color: var(--muted); font-weight: 600; font-size: 15px; line-height: 1.6; }
.meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 700; color: #8b97a3; flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c2ccd6; }
.meta a { color: inherit; }
.meta .cat { color: var(--brand-blue); }
.readlink { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .03em; margin-top: 22px; }
.readlink svg { width: 16px; height: 16px; }

/* grid */
.grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcardb { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: .18s; text-decoration: none; }
.pcardb:hover { box-shadow: 0 16px 34px rgba(16,78,158,.14); transform: translateY(-4px); border-color: #cfe0f4; }
.pcardb .cover { min-height: 188px; }
.pcardb .cb { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcardb .cat { font-size: 11px; font-weight: 800; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 9px; }
.pcardb h3 { margin: 0 0 10px; font-size: 18px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.pcardb h3 a { color: inherit; }
.pcardb .ex { margin: 0 0 16px; color: var(--muted); font-weight: 500; font-size: 13.5px; line-height: 1.55; flex: 1; }
.pcardb .meta { margin-top: auto; }

/* blog wrap padding */
.blog-wrap { max-width: var(--maxw); margin: 0 auto; padding: 26px 28px 10px; }

/* pagination */
.blog-wrap .pagination, .pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 42px 0 6px; }
.blog-wrap .pagination .page-numbers, .pager button { min-width: 42px; height: 42px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--navy); cursor: pointer; transition: .12s; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.blog-wrap .pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.blog-wrap .pagination .page-numbers:hover:not(.current), .pager button:hover:not([disabled]):not(.active) { border-color: var(--brand-blue); color: var(--brand-blue); }
.blog-wrap .pagination .page-numbers.current, .pager button.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

@media (max-width: 960px) {
	.featured { grid-template-columns: 1fr; }
	.featured .cover { min-height: 240px; }
	.grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) { .grid, .post-grid { grid-template-columns: 1fr; } .intro h1 { font-size: 30px; } }

/* ============================================================
 * Single post
 * ============================================================ */
.article { max-width: 760px; margin: 0 auto; padding: 30px 28px 0; }
.a-head { margin-bottom: 22px; }
.a-cat { font-size: 12px; font-weight: 800; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .06em; }
.a-title { font-size: clamp(30px,4.4vw,46px); font-weight: 900; color: var(--navy); line-height: 1.1; letter-spacing: -.5px; margin: 12px 0 16px; text-wrap: balance; }
.a-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; color: #8b97a3; flex-wrap: wrap; }
.a-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c2ccd6; }
.a-meta .author { display: flex; align-items: center; gap: 9px; }
.a-meta .av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
.a-meta .av img { width: 100%; height: 100%; border-radius: 50%; }
.hero-cover { border-radius: 14px; overflow: hidden; min-height: 300px; margin: 8px 0 30px; }
.hero-cover .cover { min-height: 300px; }
.a-body { font-size: 17.5px; line-height: 1.75; color: #2a3744; }
.a-body p { margin: 0 0 22px; }
.a-body h2 { font-size: 25px; font-weight: 900; color: var(--navy); margin: 34px 0 14px; letter-spacing: -.2px; }
.a-body h3 { font-size: 20px; font-weight: 900; color: var(--navy); margin: 28px 0 12px; }
.a-body em { color: var(--navy); font-style: italic; }
.a-body strong { color: var(--navy); font-weight: 800; }
.a-body img { border-radius: 10px; margin: 1.4em 0; }
.a-body ul, .a-body ol { margin: 0 0 22px; padding-left: 22px; }
.a-body blockquote, blockquote { margin: 30px 0; padding: 20px 26px; background: var(--sky); border-left: 4px solid var(--brand-blue); border-radius: 0 10px 10px 0; font-size: 19px; line-height: 1.6; font-weight: 700; color: var(--navy); font-style: italic; }

.share { display: flex; align-items: center; gap: 12px; margin: 36px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 760px; }
.share b { font-size: 12px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; }
.share .icons { display: flex; gap: 10px; }
.share a { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: .12s; }
.share a:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.share svg { width: 16px; height: 16px; }
.backlink { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 7px; }
.backlink svg { width: 15px; height: 15px; }

.post-cta { background: var(--footer); border-radius: 14px; padding: 32px 36px; display: flex; align-items: center; gap: 26px; margin: 10px auto 50px; max-width: 760px; color: #fff; }
.post-cta .t { flex: 1; }
.post-cta h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; color: #fff; }
.post-cta p { margin: 0; color: #cdddf2; font-weight: 600; font-size: 14px; }
@media (max-width: 560px) { .post-cta { flex-direction: column; text-align: center; align-items: stretch; } }

.related { padding: 0 28px 30px; max-width: var(--maxw); margin: 0 auto; }
.related h2 { text-align: center; font-size: 24px; font-weight: 900; color: var(--navy); margin: 0 0 26px; }
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rgrid .pcardb .cover { min-height: 160px; }
@media (max-width: 880px) { .rgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rgrid { grid-template-columns: 1fr; } }

.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--green); z-index: 80; width: 0; transition: width .1s; }
.progress-fill { display: block; height: 100%; background: var(--green); }
