/* Magical Healings Blog: layout on top of the main site's site.css */
.mh-blog .blog-main { padding-top: 0; }
/* reset the main site's .post teaser style for WordPress post classes */
.mh-blog article.post { display: block; padding-top: 0; border-top: 0; gap: 0; color: inherit; }
.mh-blog article.post-card { display: flex; flex-direction: column; gap: 0; padding-top: 0; border-top: 1px solid var(--line); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.blog-hero { padding: clamp(36px, 6vw, 72px) 0 28px; background: linear-gradient(180deg, var(--mist, #F5EDF6), var(--ground)); border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: var(--s-2xl); margin-top: 10px; }
.blog-hero h1 em { font-style: italic; color: var(--wine); }
.blog-hero .lede { margin-top: 14px; max-width: 60ch; }
.blog-tools { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 28px; }

.topic-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: var(--s-sm); line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.topic-tabs a:hover { border-color: var(--wine); color: var(--wine); }
.topic-tabs a[aria-current="page"] { background: var(--wine); border-color: var(--wine); color: #fff; }

.blog-search { display: flex; flex: 0 1 340px; min-width: 240px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.blog-search input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: inherit; font-size: var(--s-sm); color: var(--ink); background: transparent; }
.blog-search input:focus { outline: none; }
.blog-search:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(104, 12, 108, .12); }
.blog-search button { border: 0; background: var(--wine); color: #fff; padding: 0 20px; font-family: var(--f-label); font-size: var(--s-xs); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

.blog-list { padding: clamp(36px, 5vw, 64px) 0; }
.blog-list--cta { padding-top: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .35s var(--ease, ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(43, 6, 40, .45); }
.pc-img { display: block; aspect-ratio: 16 / 10; background: var(--wine-deep); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #6d1471, var(--wine-deep)); }
.pc-ph img { width: 72px; height: auto; object-fit: contain; opacity: .9; }
.pc-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: .875rem; color: var(--muted, #6b5670); }
.pc-cat { color: var(--gold-ink); font-family: var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.pc-title { font-size: 1.6rem; line-height: 1.2; }
.pc-title a { color: var(--ink); text-decoration: none; }
.pc-title a:hover { color: var(--wine); }
.pc-excerpt { margin: 0; color: #4a3550; font-size: 1rem; line-height: 1.6; }
.pc-more { margin-top: auto; padding-top: 6px; font-family: var(--f-label); font-size: var(--s-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--wine); text-decoration: none; }
.pc-more:hover { text-decoration: underline; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; }
.nav-links .page-numbers.current { background: var(--wine); color: #fff; border-color: var(--wine); }
.empty { text-align: center; padding: 40px 0; }

/* Single post */
.post-narrow { max-width: 760px; }
.post-head { padding: clamp(32px, 5vw, 64px) 0 22px; }
.post-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin-top: 12px; }
.post-cat { text-decoration: none; }
.post-meta { margin: 16px 0 0; color: #4a3550; font-size: 1rem; }
.post-meta a { color: var(--wine); }
.post-cover { margin: 0 auto 8px; max-width: 1040px; }
.post-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 22px; display: block; }

.mh-blog .post-content { font-size: 1.2rem; line-height: 1.8; color: #2A0B2C; padding: 28px 0 8px; }
.mh-blog .post-content > * { margin-top: 0; margin-bottom: 0; }
.mh-blog .post-content > * + * { margin-top: 1.1em; }
.mh-blog .post-content p, .mh-blog .post-content li { font-size: inherit; color: inherit; line-height: inherit; }
.mh-blog .post-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin-top: 1.8em; color: var(--ink); }
.mh-blog .post-content h3 { font-size: 1.35rem; line-height: 1.25; margin-top: 1.6em; font-family: var(--f-body); font-weight: 600; color: var(--wine-deep); }
.mh-blog .post-content h4 { font-size: 1.1rem; margin-top: 1.4em; font-weight: 600; }
.mh-blog .post-content a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.mh-blog .post-content ul, .mh-blog .post-content ol { padding-left: 1.3em; }
.mh-blog .post-content li + li { margin-top: .4em; }
.mh-blog .post-content strong { color: var(--wine-deep); }
.mh-blog .post-content img, .mh-blog .post-content figure img { max-width: 100%; height: auto; border-radius: 16px; }
.mh-blog .post-content figure { margin: 1.6em 0; }
.mh-blog .post-content figcaption { font-size: var(--s-xs); color: var(--muted, #6b5670); text-align: center; margin-top: 8px; }
.mh-blog .post-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--f-display); font-size: 1.35rem; line-height: 1.4; color: var(--wine-deep); }
.mh-blog .post-content table { width: 100%; border-collapse: collapse; font-size: var(--s-sm); display: block; overflow-x: auto; }
.mh-blog .post-content th, .mh-blog .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.mh-blog .post-content th { background: var(--mist, #F5EDF6); }
.mh-blog .post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.mh-blog .post-content .wp-block-button__link { background: var(--gold); color: var(--wine-deep); border-radius: 999px; text-decoration: none; padding: 12px 22px; }

.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 40px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.author-box h2 { font-size: 1.5rem; margin: 4px 0 6px; }
.author-box p { margin: 0; font-size: var(--s-sm); color: var(--muted, #6b5670); }
.author-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px !important; }
.author-links a { color: var(--wine); font-weight: 600; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: block; margin-top: 6px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.3; }
.post-nav a:hover { color: var(--wine); }
.post-nav-next { text-align: right; }

.related-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.related-head h2 { font-size: var(--s-xl); }
.related-head h2 em { color: var(--wine); }

/* Posts written with their own <article> and <h1> inside the content */
.mh-blog .post-content article, .mh-blog .post-content .blog-article { display: block; padding: 0; border: 0; }
.mh-blog .post-content article > * + * { margin-top: 1.1em; }
.mh-blog .post-content h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.15; margin-top: 1.4em; }
.mh-blog .post-content > article > h1:first-child { display: none; }
.mh-blog .post-content p, .mh-blog .post-content li { color: #2A0B2C; }
.mh-blog .topic-tabs a, .mh-blog .blog-search input { font-size: 1rem; }
.mh-blog .author-box p { font-size: 1rem; color: #4a3550; }

/* Free reading box */
.fr-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: var(--wine-deep); color: #FBF3FB; }
.fr-box .label { color: var(--gold); }
.fr-box h2 { color: #FBF3FB; font-size: var(--s-xl); margin-top: 10px; }
.fr-box h2 em { color: var(--gold); }
.fr-box p { color: rgba(251, 243, 251, .8); margin: 12px 0 0; }

@media (max-width: 760px) {
	.blog-tools { flex-direction: column; align-items: stretch; }
	.blog-search { flex: 1 1 auto; }
	.fr-box { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { text-align: left; }
	.author-box { flex-direction: column; }
}

/* ===== v2: wider two-column layout and readable fonts ===== */
.mh-blog .blog-main { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
.mh-blog .blog-main h1, .mh-blog .blog-main h2, .mh-blog .blog-main h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: 0; }
.mh-blog .blog-main .label { font-family: "Source Sans 3", system-ui, sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .14em; }
.mh-blog .wrap.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 64px); align-items: start; max-width: 1320px; padding-top: clamp(28px, 4vw, 48px); }
.mh-blog .post-main { min-width: 0; }
.mh-blog .post-head { padding: 0 0 22px; }
.mh-blog .post-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.15; }
.mh-blog .post-meta { font-size: 1.05rem; }
.mh-blog .post-cover { margin: 0 0 8px; max-width: none; }
.mh-blog .post-cover img { max-height: 560px; }
.mh-blog .post-content { font-size: 1.25rem; line-height: 1.75; color: #1F0A22; padding-top: 24px; }
.mh-blog .post-content p, .mh-blog .post-content li { color: #1F0A22; }
.mh-blog .post-content h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.2; color: var(--wine-deep); }
.mh-blog .post-content h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; color: var(--wine); }
.mh-blog .post-content ol, .mh-blog .post-content ul { padding-left: 1.4em; }
.mh-blog .post-content a { color: var(--wine); }

.mh-blog .post-side { position: sticky; top: 140px; display: grid; gap: 20px; }
.mh-blog .side-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.mh-blog .side-card p { margin: 6px 0 14px; font-size: 1.05rem; color: #4a3550; }
.mh-blog .side-card--wine { background: var(--wine-deep); border-color: var(--wine-deep); }
.mh-blog .side-card--wine .label { color: var(--gold); }
.mh-blog .side-card--wine h2 { color: #FBF3FB; font-size: 1.5rem; line-height: 1.25; margin: 8px 0 16px; }
.mh-blog .side-title { font-size: 1.25rem; margin: 0 0 10px; color: var(--ink); }
.mh-blog .side-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mh-blog .side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.05rem; line-height: 1.35; }
.mh-blog .side-list li:last-child a { border-bottom: 0; }
.mh-blog .side-list a:hover { color: var(--wine); }
.mh-blog .side-list span { color: var(--muted); font-size: .95rem; }
.mh-blog .side-card .btn { width: 100%; justify-content: center; }

/* listing pages */
.mh-blog .blog-hero .lede { font-size: 1.3rem; color: #4a3550; }
.mh-blog .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mh-blog .pc-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; line-height: 1.25; }
.mh-blog .pc-excerpt { font-size: 1.08rem; color: #3a2540; }
.mh-blog .pc-meta { font-size: .95rem; }
.mh-blog .pc-more { font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: .85rem; }
.mh-blog .fr-box p, .mh-blog .author-box p { font-size: 1.08rem; }

@media (max-width: 1000px) {
	.mh-blog .wrap.post-layout { grid-template-columns: 1fr; }
	.mh-blog .post-side { position: static; }
}
@media (max-width: 600px) {
	.mh-blog .post-content { font-size: 1.15rem; }
}

/* v2.2: bigger reading text, images, videos, CTA boxes */
.mh-blog .post-content { font-size: 1.32rem; line-height: 1.8; }
.mh-blog .post-content p { margin: 0 0 1.15em; }
.mh-blog .post-content h2 { margin-top: 2em; padding-top: .2em; }
.mh-blog .post-content ul, .mh-blog .post-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.mh-blog .post-content li { margin-bottom: .45em; }
.mh-blog .post-content li::marker { color: var(--wine); font-weight: 700; }
.mh-blog .post-content .wp-block-image { margin: 2em 0; }
.mh-blog .post-content .wp-block-image img { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(60, 10, 60, .45); }
.mh-blog .post-content figcaption, .mh-blog .post-content .wp-element-caption { font-size: 1rem; color: #5a4560; text-align: center; margin-top: 10px; font-style: italic; }
.mh-blog .post-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 2em 0; }
.mh-blog .post-content .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-blog .post-content .wp-block-gallery figure.wp-block-image { margin: 0; width: auto !important; }
.mh-blog .post-content .wp-block-gallery img { aspect-ratio: 2 / 3; height: auto; max-height: none; object-fit: cover; border-radius: 12px; }
.mh-blog .post-content .wp-block-gallery > figcaption { grid-column: 1 / -1; }
.mh-blog .post-content .wp-block-embed { margin: 2em 0; }
.mh-blog .post-content .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #1a0b1c; box-shadow: 0 18px 40px -22px rgba(60, 10, 60, .5); }
.mh-blog .post-content .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.mh-blog .post-content .wp-block-embed__wrapper::before { display: none; }
.mh-blog .mh-cta { margin: 2.2em 0; padding: 30px 32px; border-radius: 20px; background: linear-gradient(135deg, #680C6C, #3E0A40); color: #FBF3FB; }
.mh-blog .mh-cta .mh-cta-k { font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: #DEC223; margin: 0 0 6px; }
.mh-blog .mh-cta h3 { color: #fff !important; margin: 0 0 8px !important; font-size: 1.7rem !important; }
.mh-blog .mh-cta p { color: #F3E6F3; margin: 0 0 14px; font-size: 1.15rem; }
.mh-blog .mh-cta .mh-cta-btn { display: inline-block; padding: 13px 24px; border-radius: 999px; background: #DEC223; color: #2A0B2C !important; text-decoration: none !important; font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: 1rem; }
.mh-blog .mh-cta .mh-cta-btn:hover { background: #fff; }
.mh-blog .post-content a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
/* v2.3: Shorts embed and two-column CTA */
.mh-blog .post-content .mh-short { margin: 2em auto; max-width: 340px; }
.mh-blog .mh-short-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #1a0b1c; box-shadow: 0 18px 40px -22px rgba(60, 10, 60, .5); }
.mh-blog .mh-short-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mh-blog .mh-short figcaption { font-size: 1rem; color: #5a4560; text-align: center; margin-top: 10px; font-style: italic; }
.mh-blog .mh-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2.4em 0; }
.mh-blog .mh-cta2-col { padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #680C6C, #3E0A40); color: #FBF3FB; }
.mh-blog .mh-cta2-col h3 { color: #fff !important; margin: 0 0 8px !important; font-size: 1.55rem !important; }
.mh-blog .mh-cta2-col p { color: #F3E6F3; margin: 0 0 14px; font-size: 1.08rem; line-height: 1.55; }
.mh-blog .mh-cta2-light { background: #FBF3E6; border: 1px solid #E9D9B8; color: #2A0B2C; }
.mh-blog .mh-cta2-light h3 { color: #3E0A40 !important; }
.mh-blog .mh-cta2-light p { color: #3a2540; }
.mh-blog .mh-cta2 .mh-cta-k { font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: #DEC223; margin: 0 0 6px; }
.mh-blog .mh-cta2-light .mh-cta-k { color: #8A6A12; }
.mh-blog .mh-cta2 .mh-cta-btn { display: inline-block; margin: 4px 6px 0 0; padding: 12px 20px; border-radius: 999px; background: #DEC223; color: #2A0B2C !important; text-decoration: none !important; font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: .98rem; }
.mh-blog .mh-cta2 .mh-cta-btn--line { background: transparent; border: 2px solid #680C6C; color: #680C6C !important; }
@media (max-width: 760px) { .mh-blog .mh-cta2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
	.mh-blog .post-content { font-size: 1.18rem; }
	.mh-blog .post-content .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-blog .mh-cta { padding: 24px 20px; }
}
