/* ==========================================================================
   M2 Blog / News hub — V3.1 (loaded only on /blog/, /ms/blog/, /zh/blog/ views
   by mu-plugins/m2-blog.php, after m2-site.css). Uses the V3 orange tokens of
   m2-site.css (.m2-v3). No new fonts, no JS.
   ========================================================================== */
.m2-blog .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m2-blog { --m2-blog-narrow: 760px; --m2-blog-wide: 1040px; }

/* hero: editorial, calmer than product pages (orange light, no subject art) */
.m2-blog__hero { position: relative; isolation: isolate; padding: 28px 0 36px; background: #0a0807 url("/wp-content/uploads/m2/img/flagship/bg-blog-mobile.webp") 50% 0 / cover no-repeat; }
.m2-blog__hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: -1; background: linear-gradient(180deg, transparent, #0a0807); }
@media (min-width: 768px) { .m2-blog__hero { padding: 40px 0 52px; background-image: url("/wp-content/uploads/m2/img/flagship/bg-blog-desktop.webp"); background-position: 70% 0; } }
.m2-blog__hero .m2-crumbs { margin-bottom: 26px; }
.m2-blog__hero .m2-eyebrow { margin-bottom: 12px; }
.m2-blog__hero .m2-h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4rem); line-height: 1.02; max-width: 18ch; }
.m2-blog__paged { font-size: .45em; font-stretch: 100%; color: var(--m2-muted); letter-spacing: 0; white-space: nowrap; }
.m2-blog__intro { max-width: 60ch; margin-top: 16px; color: var(--m2-text-2); }
.m2-blog__cats { margin-top: 26px; }
.m2-blog__cats .m2-chips { flex-wrap: wrap; gap: 8px; }
@media (max-width: 599px) { .m2-blog__cats .m2-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--m2-gutter) * -1); padding-inline: var(--m2-gutter); scroll-padding-inline: var(--m2-gutter); } .m2-blog__cats .m2-chips::-webkit-scrollbar { display: none; } }

/* list */
.m2-blog__list { padding-top: 8px; }
.m2-blog__empty { padding: 40px 24px; border: 1px dashed rgba(255, 170, 110, .25); border-radius: var(--m2-r-lg); text-align: center; color: var(--m2-muted); }
.m2-blog .m2-postgrid { gap: 18px; }
@media (min-width: 1024px) { .m2-blog .m2-postgrid { gap: 24px; } }
.m2-blog .m2-postcard { background: linear-gradient(180deg, #1a1411, #110d0b); border-color: rgba(255, 170, 110, .1); }
.m2-blog .m2-postcard:hover { border-color: rgba(255, 138, 61, .45); box-shadow: 0 30px 60px -34px rgba(255, 107, 44, .45); }
.m2-blog .m2-postcard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(70% 90% at 70% 20%, rgba(255, 122, 44, .35), transparent 70%), linear-gradient(135deg, #24170f, #0f0b09); }
.m2-blog .m2-postcard__media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--m2-ease); }
.m2-blog .m2-postcard:hover .m2-postcard__media img { transform: scale(1.03); }
.m2-postcard__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 190, 140, .55); }
.m2-postcard__ph .m2-icon { width: 44px; height: 44px; }
.m2-blog .m2-postcard__body { gap: 10px; padding: 18px 20px 22px; }
.m2-blog .m2-postcard__body > .m2-tag { position: relative; z-index: 2; justify-self: start; }
.m2-blog .m2-postcard__title { font-size: 1.125rem; line-height: 1.3; font-weight: 700; color: var(--m2-text); }
.m2-blog .m2-postcard__title a { color: inherit; text-decoration: none; }
.m2-blog .m2-postcard__title a:focus-visible { outline: none; }
.m2-blog .m2-postcard:focus-within { outline: 2px solid #ff9a52; outline-offset: 3px; }
.m2-postcard__excerpt { color: var(--m2-text-2); font-size: .9375rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m2-blog .m2-postmeta { margin-top: 2px; font-size: .8125rem; }
.m2-blog .m2-tag { color: #ffb27a; background: rgba(255, 122, 44, .1); border-color: rgba(255, 138, 61, .32); text-decoration: none; letter-spacing: .08em; }
.m2-blog a.m2-tag:hover { background: rgba(255, 122, 44, .2); }

/* featured (newest article on the hub's first page) */
.m2-blog__feature { margin-bottom: 24px; }
.m2-postcard--feature .m2-postcard__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-stretch: 108%; letter-spacing: -.015em; line-height: 1.12; }
@media (min-width: 900px) {
  .m2-postcard--feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .m2-postcard--feature .m2-postcard__media { aspect-ratio: auto; min-height: 100%; }
  .m2-postcard--feature .m2-postcard__body { align-content: center; padding: 36px 40px; gap: 14px; }
  .m2-postcard--feature .m2-postcard__excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
}

/* pagination */
.m2-pagination { margin-top: 40px; }
.m2-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; padding: 0; }
.m2-pagination__num, .m2-pagination__step, .m2-pagination__gap { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--m2-r-pill); font-weight: 700; font-size: .9375rem; color: var(--m2-text); text-decoration: none; border: 1px solid rgba(255, 170, 110, .18); background: rgba(255, 200, 150, .03); }
.m2-pagination a:hover { border-color: #ffb27a; color: #ffd1a8; }
.m2-pagination [aria-current="page"] { background: var(--m2-grad-cta); color: #2b1400; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.m2-pagination__gap { border: 0; background: none; min-width: 24px; padding: 0; color: var(--m2-muted); }
.m2-pagination .m2-icon { width: 16px; height: 16px; }
@media (max-width: 479px) { .m2-pagination__step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .m2-pagination__step { padding: 0; width: 44px; } }

/* CTA band */
.m2-blog__cta { margin-top: 56px; }
.m2-blog .m2-ctaband__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 800; font-stretch: 110%; color: var(--m2-text); }

/* single article */
.m2-blog__narrow { max-width: calc(var(--m2-blog-narrow) + var(--m2-gutter) * 2); }
.m2-blog__wide { max-width: calc(var(--m2-blog-wide) + var(--m2-gutter) * 2); }
.m2-blog__hero--article { padding-bottom: 30px; }
.m2-blog__hero--article .m2-tag { margin-bottom: 14px; }
.m2-blog__title.m2-h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); line-height: 1.08; max-width: none; font-stretch: 108%; }
.m2-blog__dek { margin-top: 14px; color: var(--m2-text-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.m2-blog__meta { margin-top: 18px; color: var(--m2-muted); }
.m2-blog__meta a { color: #ffb27a; text-decoration: none; }
.m2-blog .m2-article__cover { margin: 0 0 8px; border-color: rgba(255, 170, 110, .12); background: #120d0a; }
.m2-blog .m2-article__cover img { display: block; width: 100%; height: auto; }
.m2-blog .m2-article__cover figcaption { padding: 10px 14px; font-size: .8125rem; color: var(--m2-muted); }
.m2-blog__content { max-width: none; padding-top: 28px; font-size: 1.0625rem; line-height: 1.75; color: #e6ddd5; }
.m2-blog__content :where(h2) { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.2; font-stretch: 108%; margin-top: 52px; }
.m2-blog__content :where(h3) { font-size: 1.25rem; margin-top: 32px; }
.m2-blog__content :where(h2, h3, h4) { color: var(--m2-text); scroll-margin-top: calc(var(--m2-header-h, 72px) + 20px); }
.m2-blog__content a { color: #ffb27a; text-decoration: underline; text-decoration-color: rgba(255, 178, 122, .45); text-underline-offset: 3px; }
.m2-blog__content a:hover { color: #ffd1a8; text-decoration-color: currentColor; }
.m2-blog__content ul li::before { background: #ff8a3d; }
.m2-blog__content ol { padding-left: 1.4em; display: grid; gap: 8px; }
.m2-blog__content ol li::marker { color: #ff9a52; font-weight: 800; }
.m2-blog__content blockquote, .m2-blog__content .wp-block-quote { border-left-color: #ff8a3d; background: rgba(255, 122, 44, .07); }
.m2-blog__content img { max-width: 100%; height: auto; }
.m2-blog__content code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: .9em; }
.m2-blog__content .wp-block-table { overflow-x: auto; }
.m2-blog__content hr { border: 0; height: 1px; background: var(--m2-grad-gold-line); margin: 40px 0; }
.m2-pagination--post ul { justify-content: flex-start; }
.m2-blog__author { display: flex; gap: 16px; align-items: center; margin: 48px 0 8px; padding: 20px 22px; border-radius: var(--m2-r-lg); border: 1px solid rgba(255, 170, 110, .12); background: radial-gradient(90% 120% at 0% 0%, rgba(255, 122, 44, .12), transparent 60%), #15100d; }
.m2-blog__avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.m2-blog__author-name { font-weight: 800; color: var(--m2-text); }
.m2-blog__related .m2-sechead { margin-bottom: 22px; }
.m2-blog__related .m2-h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }

@media (prefers-reduced-motion: reduce) { .m2-blog .m2-postcard__media img { transition: none; } .m2-blog .m2-postcard:hover .m2-postcard__media img { transform: none; } }
.m2-blog .m2-pagination__step { display: inline-flex; flex-direction: row; }
.m2-blog .m2-postcard__title a, .m2-blog .m2-crumbs a, .m2-blog .m2-chip, .m2-blog .m2-pagination a { font: inherit; }
.m2-blog .m2-postcard__title a { font-size: inherit; line-height: inherit; }
.m2-blog__content :where(h2, h3, h4) { font-family: inherit; font-weight: 800; letter-spacing: -.01em; }
.m2-blog__content :where(p, li, td, th, figcaption) { font-family: inherit; }
/* author monogram (no external avatar service is requested) */
.m2-blog__avatar { display: grid; place-items: center; background: var(--m2-grad-cta); color: #2b1400; font-weight: 800; font-size: 1.375rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
