/* blog.css — agent blogs (2026-11-24): /{agent}/blog and /{agent}/blog/{post} (blog.php).
   Loaded after main.css through $page_css, and by MH Send's editor preview (its inc/blog.php,
   blog_preview_page()), which draws a post with these same rules. The classes inside
   .mhb-body are written by Send's blog_render_html(): a change to that markup is made in both.
   Colours and type come from main.css's tokens, so a scheme change carries over. */

.mhb-page { padding: calc(var(--nav-h, 104px) + 3rem) 0 4.5rem; }
.mhb-preview .mhb-page { padding: 2.25rem 1.5rem 3rem; }           /* the editor's preview: no site menu above it */
.mhb-preview .mhb-post { margin: 0 auto; }

.mhb-eyebrow { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1rem; }
.mhb-eyebrow a { color: inherit; text-decoration: none; }
.mhb-eyebrow a:hover { color: var(--cream); }
.mhb-meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-6); margin: 0; }
.mhb-meta a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.mhb-meta a:hover { color: var(--gold-soft); }

/* ── the blog's own page: its name, then the posts beside the sign-up ── */
.mhb-head { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--ink-line); }
.mhb-head .section-title { margin: 0; }
.mhb-intro { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--text-3); margin: 0.9rem 0 0; max-width: 46rem; }
.mhb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
.mhb-filter { font-family: var(--sans); font-size: 0.9rem; color: var(--text-3); margin: 0 0 1.75rem; }
.mhb-empty { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.55; color: var(--text-3); margin: 0; }
.mhb-filter a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--line-2); }

.mhb-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.75rem; padding: 0 0 2.25rem; margin: 0 0 2.25rem; border-bottom: 1px solid var(--ink-line); }
.mhb-item--plain { grid-template-columns: minmax(0, 1fr); }
.mhb-item:last-of-type { border-bottom: 0; }
.mhb-item-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel-2); }
.mhb-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.mhb-item-img:hover img { transform: scale(1.03); }
.mhb-item h2 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1.2; margin: 0.55rem 0 0.6rem; }
.mhb-item h2 a { color: var(--text-4); text-decoration: none; }
.mhb-item h2 a:hover { color: var(--gold-soft); }
.mhb-item-x { font-family: var(--sans); font-size: 1rem; line-height: 1.7; color: var(--text-2); margin: 0 0 0.9rem; }
.mhb-item-more { margin: 0; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.mhb-item-more a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 0.15rem; }
.mhb-item-more a:hover { color: var(--cream); }

/* ── one post ── */
.mhb-post { max-width: 760px; min-width: 0; }
.mhb-post-head { margin-bottom: 2rem; }
.mhb-post-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.12; color: var(--text-4); margin: 0 0 0.8rem; }
.mhb-ghost { color: var(--muted); }
.mhb-sub { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--text-3); margin: 0 0 1.1rem; }
.mhb-hero { margin: 0 0 2.25rem; }
.mhb-hero img { width: 100%; height: auto; display: block; }
.mhb-body figcaption, .mhb-hero figcaption { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-6); text-align: center; margin-top: 0.6rem; }

.mhb-body { font-family: var(--sans); font-size: 1.08rem; line-height: 1.85; color: var(--text-2); overflow-wrap: break-word; }
.mhb-body > * { margin: 0 0 2rem; }
.mhb-body > *:last-child { margin-bottom: 0; }
.mhb-text p { margin: 0 0 1.15rem; }
.mhb-text > *:last-child { margin-bottom: 0; }
.mhb-text h1, .mhb-text h2, .mhb-text h3, .mhb-text h4 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.25; color: var(--text-4); margin: 2rem 0 0.8rem; }
.mhb-text h1:first-child, .mhb-text h2:first-child, .mhb-text h3:first-child { margin-top: 0; }
.mhb-text ul, .mhb-text ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.mhb-text li { margin-bottom: 0.35rem; }
.mhb-text blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.4rem; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--text-3); }
.mhb-text a { color: var(--gold-deep) !important; text-decoration: underline; text-underline-offset: 0.18em; }
.mhb-text a:hover { color: var(--cream) !important; }
.mhb-text strong, .mhb-text b { font-weight: 500; color: var(--text-4); }
.mhb-text .ql-align-center { text-align: center; }
.mhb-text .ql-align-right { text-align: right; }
.mhb-text .ql-align-justify { text-align: justify; }
.mhb-text .ql-indent-1 { padding-left: 2em; } .mhb-text .ql-indent-2 { padding-left: 4em; } .mhb-text .ql-indent-3 { padding-left: 6em; }

.mhb-headline { text-align: center; padding-top: 0.5rem; }
.mhb-headline h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.2; color: var(--text-4); margin: 0; }
.mhb-headline p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--text-3); margin: 0.4rem 0 0; }

.mhb-photo img { width: 100%; height: auto; display: block; }
.mhb-photo a { display: block; }

.mhb-video-frame { position: relative; aspect-ratio: 16 / 9; background: #14171c; overflow: hidden; }
.mhb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mhb-video-still { background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; }
.mhb-play { width: 68px; height: 68px; border-radius: 50%; background: rgba(20, 23, 28, 0.72); position: relative; }
.mhb-play::after { content: ''; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.mhb-video-note { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(20, 23, 28, 0.72); padding: 0.35rem 0.8rem; }

.mhb-file a { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; border: 1px solid var(--ink-line); background: var(--ink-soft); color: var(--text-4); text-decoration: none; transition: border-color 0.2s; }
.mhb-file a:hover { border-color: var(--gold); }
.mhb-file-ic { flex: 0 0 26px; height: 32px; border: 1.5px solid var(--gold); border-radius: 2px; position: relative; }
.mhb-file-ic::before { content: ''; position: absolute; left: 5px; right: 5px; top: 9px; height: 1.5px; background: var(--gold); box-shadow: 0 6px 0 var(--gold), 0 12px 0 var(--gold); }
.mhb-file-t { flex: 1; min-width: 0; font-size: 1.02rem; line-height: 1.4; border-bottom: 1px solid transparent; }
.mhb-file small { flex: none; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-6); }

.mhb-btn-row { text-align: center; }
.mhb-btn { display: inline-block; font-family: var(--sans); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: #fff; background: #55637a; padding: 1rem 2.2rem; text-decoration: none; transition: opacity 0.2s; }
.mhb-btn:hover { color: #fff; opacity: 0.86; }
.mhb-btn--blue { background: #33445e; } .mhb-btn--charcoal { background: #2b3038; } .mhb-btn--black { background: #111111; }

.mhb-band { text-align: center; padding: 2.6rem 1.75rem; background: #eceff3; color: #1f242c; }
.mhb-band-l { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.25; margin: 0; }
.mhb-band-n { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; margin: 0.7rem 0 0; color: #55637a; }
.mhb-band--blue { background: #33445e; color: #fff; } .mhb-band--blue .mhb-band-n { color: #c9d4e3; }
.mhb-band--slate { background: #55637a; color: #fff; } .mhb-band--slate .mhb-band-n { color: #e6eaef; }
.mhb-band--charcoal { background: #2b3038; color: #fff; } .mhb-band--charcoal .mhb-band-n { color: #c2c8d1; }

.mhb-listings h2, .mhb-market h2 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.2; color: var(--text-4); margin: 0 0 1.25rem; }
.mhb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.mhb-card { display: block; color: inherit; text-decoration: none; }
.mhb-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel-2); }
.mhb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhb-card-b { display: block; padding-top: 0.8rem; line-height: 1.5; }
.mhb-card-b > * { display: block; }
.mhb-card-b b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.25; color: var(--text-4); }
.mhb-card-loc { font-size: 0.92rem; color: var(--text-3); }
.mhb-card-price { font-size: 1rem; color: var(--text-4); margin-top: 0.15rem; }
.mhb-card-blurb { font-size: 0.92rem; color: var(--text-3); margin-top: 0.3rem; }
.mhb-card-cta { margin-top: 0.6rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
a.mhb-card:hover b { color: var(--gold-soft); }

.mhb-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; text-align: center; padding-top: 2rem; border-top: 1px solid var(--ink-line); }
.mhb-person { display: flex; flex-direction: column; align-items: center; font-size: 0.92rem; line-height: 1.6; color: var(--text-3); overflow-wrap: anywhere; }
.mhb-person img { width: 96px; height: 96px; object-fit: cover; margin-bottom: 0.8rem; }
.mhb-person b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--text-4); }
.mhb-person-t { font-size: 0.76rem; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.mhb-person a { color: var(--text-5); text-decoration: none; }
.mhb-person a:hover { color: var(--gold-soft); }

.mhb-market { text-align: center; padding: 2.2rem 0 1.6rem; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.mhb-market .mhb-eyebrow { margin-bottom: 0.5rem; }
.mhb-market h2 { margin-bottom: 0.3rem; }
.mhb-market-pt { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--text-3); margin: 1.4rem 0 0; }
.mhb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem 0.5rem; margin: 1.2rem 0 0; }
.mhb-tile { display: flex; flex-direction: column; align-items: center; padding: 0 0.6rem; border-left: 1px solid var(--ink-line); }
.mhb-tile:first-child { border-left: 0; }
.mhb-tile b { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.15; color: var(--text-4); }
.mhb-tile span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-6); margin-top: 0.4rem; line-height: 1.4; }
.mhb-tile i { font-family: var(--serif); font-size: 0.9rem; color: var(--text-6); }
.mhb-tile small { font-size: 0.76rem; line-height: 1.4; color: var(--text-3); margin-top: 0.3rem; }
.mhb-chart { margin: 1.75rem 0 0; text-align: left; }
.mhb-chart figcaption { text-align: left; margin: 0 0 0.5rem; }
.mhb-chart img { width: 100%; height: auto; display: block; }
.mhb-table-wrap { overflow-x: auto; margin-top: 1.75rem; }
.mhb-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; line-height: 1.4; text-align: right; }
.mhb-table th, .mhb-table td { padding: 0.55rem 0 0.55rem 0.8rem; border-top: 1px solid var(--ink-line); font-weight: 300; color: var(--text-2); white-space: nowrap; }
.mhb-table thead th { border-top: 0; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-6); font-weight: 400; }
.mhb-table th:first-child { text-align: left; padding-left: 0; white-space: normal; }
.mhb-market-link { margin: 1.6rem 0 0; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.mhb-market-link a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 0.15rem; }
.mhb-credit { font-size: 0.68rem; line-height: 1.5; color: var(--text-6); text-align: left; margin: 0.9rem 0 0; }
.mhb-credit + .mhb-credit { margin-top: 0.25rem; }

/* ── under a post, and between pages of the list ── */
.mhb-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--ink-line); }
.mhb-pager a { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--text-4); text-decoration: none; }
.mhb-pager a:hover { color: var(--gold-soft); }
.mhb-pager a span { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-6); margin-bottom: 0.35rem; }
.mhb-pager-newer { text-align: right; grid-column: 2; }
.mhb-back { margin: 2rem 0 0; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.mhb-back a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 0.15rem; }

/* ── the side column: sign up, the author, the archive ── */
.mhb-side { position: sticky; top: calc(var(--nav-h, 104px) + 1.5rem); display: flex; flex-direction: column; gap: 2rem; }
.mhb-side h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--text-4); margin: 0 0 0.5rem; }
.mhb-signup { background: var(--ink-soft); border: 1px solid var(--ink-line); padding: 1.6rem 1.5rem; scroll-margin-top: calc(var(--nav-h, 104px) + 1rem); }
.mhb-signup > p { font-family: var(--sans); font-size: 0.92rem; line-height: 1.6; color: var(--text-3); margin: 0 0 1rem; }
.mhb-signup-form label { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-6); margin: 0.8rem 0 0.3rem; }
.mhb-signup-form input[type=text], .mhb-signup-form input[type=email] { width: 100%; border: 1px solid var(--line-2); background: var(--white); color: var(--cream); font-family: var(--sans); font-size: 1rem; font-weight: 300; padding: 0.6rem 0.75rem; border-radius: 0; }
.mhb-signup-form input:focus { outline: none; border-color: var(--gold); }
.mhb-signup-form .btn-gold { width: 100%; margin-top: 1.1rem; }
.mhb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mhb-signup-msg { font-family: var(--sans); font-size: 0.92rem; line-height: 1.55; margin: 0.9rem 0 0; color: var(--text-3); }
.mhb-signup-msg:empty { display: none; }
.mhb-signup-msg.ok { color: var(--text-4); margin-top: 0; }
.mhb-signup-msg.err { color: #9b2c2c; }
.mhb-signup-fine { font-family: var(--sans); font-size: 0.72rem; line-height: 1.5; color: var(--text-6); margin: 0.9rem 0 0; }

.mhb-author { display: flex; gap: 1rem; align-items: flex-start; }
.mhb-author-photo { flex: 0 0 84px; width: 84px; height: 84px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--text-3); font-family: var(--serif); font-size: 1.6rem; text-decoration: none; }
.mhb-author-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhb-author-info { min-width: 0; overflow-wrap: anywhere; }
.mhb-author-info p { margin: 0; font-family: var(--sans); font-size: 0.88rem; line-height: 1.6; color: var(--text-3); }
.mhb-author-info a { color: var(--text-5); text-decoration: none; }
.mhb-author-info a:hover { color: var(--gold-soft); }
.mhb-author-info .mhb-author-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; color: var(--text-4); }
.mhb-author-info .mhb-author-title { font-size: 0.76rem; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.mhb-author-links { margin-top: 0.5rem !important; font-size: 0.7rem !important; letter-spacing: 0.18em; text-transform: uppercase; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.mhb-author-links a { color: var(--gold-deep); border-bottom: 1px solid var(--line-2); padding-bottom: 0.1rem; }

.mhb-archive ul { list-style: none; margin: 0; padding: 0; }
.mhb-archive li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--ink-line); font-family: var(--sans); font-size: 0.92rem; color: var(--text-6); }
.mhb-archive a { color: var(--text-5); text-decoration: none; }
.mhb-archive a:hover { color: var(--gold-soft); }

@media (max-width: 991.98px) {
    .mhb-cols { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .mhb-side { position: static; max-width: 520px; }
    .mhb-post { max-width: none; }
}
@media (max-width: 575.98px) {
    .mhb-page { padding: calc(var(--nav-h, 89px) + 2rem) 0 3.5rem; }
    .mhb-preview .mhb-page { padding: 1.5rem 1rem 2rem; }
    .mhb-head { padding-bottom: 1.5rem; margin-bottom: 2rem; }
    .mhb-intro { font-size: 1.15rem; }
    .mhb-item { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .mhb-item h2 { font-size: 1.6rem; }
    .mhb-body { font-size: 1.02rem; line-height: 1.75; }
    .mhb-sub { font-size: 1.2rem; }
    .mhb-cards { grid-template-columns: minmax(0, 1fr); }
    .mhb-band { padding: 2rem 1.2rem; } .mhb-band-l { font-size: 1.55rem; }
    .mhb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mhb-tile:nth-child(odd) { border-left: 0; }
    .mhb-table .mhb-x { display: none; }                        /* the two comparison columns do not fit a phone */
    .mhb-file a { flex-wrap: wrap; } .mhb-file small { flex-basis: 100%; padding-left: calc(26px + 0.9rem); }
    .mhb-pager { grid-template-columns: minmax(0, 1fr); } .mhb-pager-newer { grid-column: 1; text-align: left; }
    .mhb-signup-form input[type=text], .mhb-signup-form input[type=email] { font-size: 16px; }   /* smaller makes iOS zoom */
}
