/* Escape a centered theme's narrow content column, with a 1280px desktop cap. */
.mpo-article-section.mpo-article-section {
    box-sizing: border-box;
    width: min(1280px, calc(100vw - 40px)) !important;
    max-width: none !important;
    margin: 40px calc((100% - min(1280px, 100vw - 40px)) / 2) !important;
    clear: both;
}
.mpo-article-section *, .mpo-single * { box-sizing: border-box; }
.mpo-article-grid { display: grid; gap: 24px; align-items: stretch; }
.mpo-columns-1 { --mpo-visible: 1; }
.mpo-columns-2 { --mpo-visible: 2; }
.mpo-columns-3 { --mpo-visible: 3; }
.mpo-article-grid.mpo-desktop-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.mpo-desktop-slider > .mpo-article-card { flex: 0 0 calc((100% + 24px) / var(--mpo-visible) - 24px); scroll-snap-align: start; }
.mpo-columns-1 { grid-template-columns: minmax(0, 1fr); }
.mpo-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mpo-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mpo-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mpo-article-section .mpo-article-card { min-width: 0; margin: 0; padding: 0; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; display: flex; flex-direction: column; color: #334155; }
.mpo-article-cover { display: block; aspect-ratio: 16 / 9; background: #f1f5f9; overflow: hidden; }
.mpo-article-card .mpo-article-cover img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .2s; }
.mpo-article-cover:hover img { transform: scale(1.025); }
.mpo-article-card-body { min-width: 0; padding: 20px; flex: 1; display: flex; flex-direction: column; }
.mpo-article-card time { font-size: 13px; color: #64748b; }
.mpo-article-section .mpo-article-card h2 { font-size: 23px; line-height: 1.35; margin: 10px 0 12px; padding: 0; min-height: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.mpo-article-card h2 a { color: #0f172a; text-decoration: none; }
.mpo-article-section .mpo-article-card p { font-size: 15px; line-height: 1.7; margin: 0 0 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.mpo-read-more { margin-top: auto; padding-top: 4px; font-weight: 600; text-decoration: none; }
.mpo-article-card a:focus-visible, .mpo-gallery a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mpo-article-pagination { margin: 28px 0; }
.mpo-article-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.mpo-article-pagination .page-numbers { display: block; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 6px; text-decoration: none; }
.mpo-article-pagination .current { background: #0f172a; color: #fff; }
/* Only managed single articles use this template; theme header/footer are retained. */
.mpo-single-main.mpo-single-main { box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 48px 20px 72px; }
.mpo-single { width: 100%; max-width: 1080px; margin: 0 auto; color: inherit; }
.mpo-single-header { margin: 0 0 32px; }
.mpo-single-header time { font-size: 14px; color: #64748b; }
.mpo-single .mpo-single-header h1 { margin: 12px 0 0; padding: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; }
.mpo-gallery { width: 100%; max-width: 840px; margin: 0 auto 32px; clear: both; }
.mpo-gallery-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.mpo-gallery-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; scroll-snap-align: start; scroll-snap-stop: always; }
.mpo-single .mpo-gallery-item { min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.mpo-gallery-item a { display: block; }
.mpo-single .mpo-gallery-item img, .mpo-single .mpo-gallery-item video { display: block; width: 100%; height: 280px; max-height: none; object-fit: contain; float: none; margin: 0; }
.mpo-gallery-item audio { display: block; width: 100%; margin: 24px 0; }
.mpo-gallery-item figcaption { padding: 10px 12px; font-size: 13px; line-height: 1.5; color: #64748b; }
.mpo-slider .mpo-slider-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 16px 0 0; }
.mpo-slider .mpo-slider-controls[hidden] { display: none !important; }
.mpo-slider .mpo-slider-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; color: #0f172a; font: inherit; font-size: 21px; line-height: 1; cursor: pointer; box-shadow: none; }
.mpo-slider .mpo-slider-button:hover:not(:disabled) { background: #f1f5f9; }
.mpo-slider .mpo-slider-button:disabled { opacity: .35; cursor: default; }
.mpo-slider-status { min-width: 120px; text-align: center; font-size: 13px; line-height: 1.4; color: #64748b; }
.mpo-slider-track:focus-visible, .mpo-slider-button:focus-visible { outline: 2px solid #334155; outline-offset: -3px; }
.mpo-single .mpo-article-content { display: flow-root; width: 100%; max-width: none; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.mpo-single .mpo-article-content p { display: block; float: none; margin: 0 0 1.35em !important; line-height: 1.85; }
.mpo-single .mpo-article-content h2, .mpo-single .mpo-article-content h3, .mpo-single .mpo-article-content h4 { margin: 1.65em 0 .65em; line-height: 1.35; }
.mpo-single .mpo-article-content ul, .mpo-single .mpo-article-content ol { margin: 0 0 1.35em; padding-inline-start: 1.6em; }
.mpo-single .mpo-article-content li { margin: 0 0 .45em; }
.mpo-single .mpo-article-content blockquote { margin: 1.5em 0; padding-inline-start: 24px; border-inline-start: 3px solid #cbd5e1; }
.mpo-article-content img { max-width: 100%; height: auto; }
.mpo-article-content img.emoji { display: inline !important; width: 1em !important; height: 1em !important; }
.mpo-article-content table { display: block; max-width: 100%; overflow-x: auto; }
.mpo-article-content pre { overflow-x: auto; }
/* Jetpack may append these through content hooks or asynchronous inserts. */
.mpo-single .sharedaddy, .mpo-single .sd-sharing-enabled, .mpo-single .jetpack-likes-widget-wrapper, .mpo-single .sd-like, .mpo-single #jp-post-flair { display: none !important; }
@media (max-width: 960px) {
    .mpo-columns-3, .mpo-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); --mpo-visible: 2; }
}
@media (max-width: 640px) {
    .mpo-article-section.mpo-article-section { margin-block: 24px !important; }
    .mpo-article-grid, .mpo-article-grid.mpo-desktop-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
    .mpo-article-grid > .mpo-article-card { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
    .mpo-article-card .mpo-article-cover { aspect-ratio: auto; height: 160px; }
    .mpo-article-card-body { padding: 16px; }
    .mpo-article-card time { font-size: 12px; }
    .mpo-article-section .mpo-article-card h2 { font-size: 20px; line-height: 1.3; margin: 8px 0 10px; min-height: 0; }
    .mpo-article-section .mpo-article-card p { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
    .mpo-read-more { font-size: 14px; }
    .mpo-gallery-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .mpo-single .mpo-gallery-item img, .mpo-single .mpo-gallery-item video { height: 150px; }
    .mpo-gallery-item figcaption { padding: 8px; font-size: 11px; }
    .mpo-single-main.mpo-single-main { padding-top: 28px; padding-bottom: 48px; }
    .mpo-single .mpo-article-content { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mpo-article-cover img { transition: none; } }
