/*
Theme Name: MasterPress Pro
Author: Janak Singh Karki
Author URI: https://janaksinghkarki.com.np
Description: An original modular responsive WordPress block theme for news, education, business and portfolio websites. Product by Try for Learn. Designed by Janak Singh Karki. Early development release.
Version: 0.3.3
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masterpress-pro
Tags: blog, news, education, full-site-editing, block-patterns, custom-colors, editor-style, wide-blocks
*/
:root{--mpp-radius:14px;--mpp-shadow:0 8px 28px rgba(22,34,55,.07)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;overflow-wrap:break-word}
img{max-width:100%;height:auto}
a{text-underline-offset:.18em}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid var(--wp--preset--color--accent,#d73b43);outline-offset:3px}
.mpp-shell{min-height:100vh}
.mpp-header{border-bottom:1px solid var(--wp--preset--color--border,#e4e8ef);background:var(--wp--preset--color--base,#fff)}
.mpp-header a{text-decoration:none}
.mpp-header .wp-block-site-title{font-weight:800;letter-spacing:-.045em;line-height:1.15}
.mpp-header .wp-block-navigation{font-size:.9rem;font-weight:600}
.mpp-header-inner,.mpp-footer-inner{padding-top:1.1rem;padding-bottom:1.1rem}
.mpp-topbar{background:var(--wp--preset--color--contrast,#162438);color:var(--wp--preset--color--base,#fff);font-size:.78rem;padding:.45rem 0}
.mpp-topbar a{color:inherit}
.mpp-header--news .mpp-nav-band{background:var(--wp--preset--color--primary,#b32032);color:#fff;padding:.72rem 0}
.mpp-header--news .mpp-nav-band a,.mpp-header--news .mpp-nav-band .wp-block-navigation-item__content{color:#fff}
.mpp-header--center .mpp-header-inner{text-align:center}
.mpp-header--dark{background:var(--wp--preset--color--contrast,#162438);color:#fff}
.mpp-header--dark a,.mpp-header--dark .wp-block-site-title a{color:inherit}
.mpp-header--outline{border-top:5px solid var(--wp--preset--color--primary,#b32032)}
.mpp-header--rounded .mpp-header-inner{border-radius:20px;background:var(--wp--preset--color--surface,#f5f7fa);margin-block:.7rem}
.mpp-header--split .wp-block-site-title{text-align:center}
.mpp-header--sidebar{border-left:6px solid var(--wp--preset--color--accent,#d73b43)}
.mpp-footer{background:var(--wp--preset--color--contrast,#162438);color:#fff;margin-top:3rem}
.mpp-footer a{color:inherit;text-decoration:none}
.mpp-footer .wp-block-site-title a{color:inherit}
.mpp-footer--light{background:var(--wp--preset--color--surface,#f5f7fa);color:var(--wp--preset--color--contrast,#162438)}
.mpp-footer--accent{background:var(--wp--preset--color--primary,#b32032)}
.mpp-footer-rule{border-top:1px solid rgba(255,255,255,.2);margin-top:1.5rem;padding-top:1rem}
.mpp-hero{padding:clamp(3.5rem,7vw,7rem) clamp(1.4rem,4vw,4rem);background:linear-gradient(125deg,var(--wp--preset--color--contrast,#162438),#344d68);color:white;border-radius:var(--mpp-radius)}
.mpp-hero a{color:inherit}
.mpp-hero .wp-block-button__link{background:var(--wp--preset--color--accent,#d73b43);color:#fff}
.mpp-kicker{font-weight:750;text-transform:uppercase;letter-spacing:.14em;font-size:.76rem}
.mpp-section{padding-top:clamp(2rem,4vw,4rem);padding-bottom:clamp(2rem,4vw,4rem)}
.mpp-section-title{border-bottom:2px solid var(--wp--preset--color--border,#e4e8ef);padding-bottom:.65rem;margin-bottom:1.5rem}
.mpp-section-title::first-letter{color:var(--wp--preset--color--primary,#b32032)}
.mpp-card{background:var(--wp--preset--color--base,#fff);border:1px solid var(--wp--preset--color--border,#e4e8ef);border-radius:var(--mpp-radius);padding:1.2rem;box-shadow:var(--mpp-shadow);height:100%}
.mpp-card .wp-block-post-featured-image img,.mpp-post-grid img{border-radius:10px;object-fit:cover}
.mpp-card :is(h2,h3,h4){margin-top:.65rem}
.mpp-small-meta{font-size:.78rem;color:var(--wp--preset--color--muted,#64748b)}
.mpp-pill{display:inline-flex;border-radius:99px;padding:.3rem .7rem;background:var(--wp--preset--color--surface,#f5f7fa);font-size:.75rem}
.mpp-notice{background:var(--wp--preset--color--surface,#f5f7fa);border-left:4px solid var(--wp--preset--color--accent,#d73b43);padding:1rem 1.3rem;border-radius:5px}
.mpp-featured .wp-block-post-template{gap:1.5rem}
.mpp-post-grid .wp-block-post-template{gap:1.35rem}
.mpp-featured .wp-block-post-template>li,.mpp-post-grid .wp-block-post-template>li{border:1px solid var(--wp--preset--color--border,#e4e8ef);border-radius:12px;padding:1rem;background:var(--wp--preset--color--base,#fff)}
.mpp-featured .wp-block-post-title a,.mpp-post-grid .wp-block-post-title a{text-decoration:none}
.mpp-archive-head{background:var(--wp--preset--color--surface,#f5f7fa);padding:2rem;border-radius:14px;margin-block:2rem}
.mpp-article-header{text-align:left;margin-top:2rem;margin-bottom:2rem}
.mpp-article-header--center{text-align:center}
.mpp-article-header .wp-block-post-title{line-height:1.22;letter-spacing:-.025em}
.mpp-article-content{font-size:1.04rem;line-height:1.85}
.mpp-article-content p{margin-bottom:1.3em}
.mpp-article-content figure{margin-block:1.6rem}
.mpp-article-content blockquote{border-left:4px solid var(--wp--preset--color--accent,#d73b43);padding-left:1.3rem}
.mpp-article--tech .mpp-article-header{border-top:5px solid var(--wp--preset--color--primary,#b32032);padding-top:1.5rem}
.mpp-article--editorial .mpp-article-content{font-family:Georgia,'Noto Serif Devanagari',serif;font-size:1.12rem}
.mpp-article--minimal .mpp-article-header{max-width:720px;margin-inline:auto}
.mpp-article--story .mpp-article-header .wp-block-post-title{font-size:clamp(2.5rem,5vw,4.8rem)}
.mpp-article--education .mpp-article-content{background:var(--wp--preset--color--surface,#f5f7fa);padding:clamp(1rem,3vw,2.5rem);border-radius:16px}
.mpp-page--landing>.wp-block-post-content{max-width:none}
.mpp-stats .wp-block-column{padding:1.4rem;border-radius:12px;background:var(--wp--preset--color--surface,#f5f7fa)}
.mpp-price{border:1px solid var(--wp--preset--color--border,#e4e8ef);padding:1.7rem;border-radius:14px}
.mpp-download-table{width:100%;border-collapse:collapse}
.mpp-download-table td,.mpp-download-table th{padding:.8rem;border:1px solid var(--wp--preset--color--border,#e4e8ef);text-align:left}
.mpp-ticker{display:flex;align-items:baseline;gap:1rem;border-bottom:1px solid var(--wp--preset--color--border,#e4e8ef);padding:1rem 0}
.mpp-ticker>strong{white-space:nowrap;background:var(--wp--preset--color--primary,#b32032);color:#fff;border-radius:5px;padding:.35rem .65rem}
.mpp-ticker ul{list-style:none;margin:0;padding:0;display:flex;gap:1.5rem;flex-wrap:wrap}
.mpp-ticker a{text-decoration:none;font-weight:600}
.mpp-plugin-grid{display:grid;grid-template-columns:repeat(var(--mpp-grid-cols,3),minmax(0,1fr));gap:1.3rem}
.mpp-plugin-grid article{border:1px solid var(--wp--preset--color--border,#e4e8ef);background:var(--wp--preset--color--base,#fff);border-radius:12px;overflow:hidden}
.mpp-plugin-grid article .mpp-grid-body{padding:1.1rem}
.mpp-plugin-grid img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.mpp-plugin-grid a{text-decoration:none}
.mpp-plugin-grid h3{font-size:1.15rem;line-height:1.4;margin:.2rem 0 .6rem}
.mpp-slider{position:relative;border-radius:var(--mpp-radius);overflow:hidden;background:#142335;color:#fff}
.mpp-slider .mpp-slide{min-height:360px;padding:clamp(2rem,5vw,5rem);display:none;align-items:flex-end;background:linear-gradient(125deg,#152339,#385571)}
.mpp-slider .mpp-slide.is-active{display:flex}
.mpp-slider .mpp-slide-content{max-width:720px;position:relative;z-index:1}
.mpp-slider .mpp-slide h2{font-size:clamp(1.7rem,3.4vw,3.5rem);line-height:1.15}
.mpp-slider .mpp-slide a{color:inherit}
.mpp-slider .mpp-slide-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25}
.mpp-slider .mpp-slide-controls{position:absolute;right:1rem;bottom:1rem;display:flex;gap:.5rem;z-index:2}
.mpp-slider .mpp-slide-controls button{border:1px solid #fff;background:rgba(0,0,0,.3);color:#fff;min-width:36px;min-height:36px;border-radius:6px;cursor:pointer}
.mpp-slider .mpp-slide-controls button:focus-visible{outline-color:#fff}
@media(max-width:800px){.mpp-header-inner,.mpp-footer-inner{padding-inline:1rem}.mpp-plugin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mpp-ticker{display:block}.mpp-ticker>strong{display:inline-block;margin-bottom:.6rem}}
@media(max-width:600px){.mpp-plugin-grid{grid-template-columns:1fr}.mpp-section{padding-top:1.6rem;padding-bottom:1.6rem}.mpp-header-inner .wp-block-columns{gap:.6rem}.mpp-hero{border-radius:0}.mpp-slider .mpp-slide{min-height:270px;padding:2rem 1.3rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* v0.1.3: per-page & per-post layout overrides; scoped to MasterPress templates. */
.mpp-layout-narrow .mpp-article,.mpp-layout-narrow .mpp-page{--wp--style--global--content-size:640px}
.mpp-layout-wide .mpp-article,.mpp-layout-wide .mpp-page{--wp--style--global--content-size:1040px}
.mpp-layout-full .mpp-article,.mpp-layout-full .mpp-page{--wp--style--global--content-size:min(calc(100% - 2rem),1440px);--wp--style--global--wide-size:min(calc(100% - 2rem),1600px)}
.mpp-title-center :is(.mpp-article-header,.mpp-page) .wp-block-post-title{text-align:center}
.mpp-title-left :is(.mpp-article-header,.mpp-page) .wp-block-post-title{text-align:left}
.mpp-hide-featured :is(.mpp-article,.mpp-page) .wp-block-post-featured-image{display:none}
.mpp-hide-date .mpp-article-header .wp-block-post-date{display:none}

/* v0.1.3: editable core Navigation block design variations. */
.wp-block-navigation:is(.is-style-mpp-underline,.is-style-mpp-tabs,.is-style-mpp-pills,.is-style-mpp-bar,.is-style-mpp-outline,.is-style-mpp-minimal){--mpp-nav-highlight:var(--wp--preset--color--primary,#b32032)}
.wp-block-navigation.is-style-mpp-underline .wp-block-navigation-item__content{border-bottom:2px solid transparent;padding:.35rem .1rem;transition:border-color .15s}
.wp-block-navigation.is-style-mpp-underline .wp-block-navigation-item__content:is(:hover,:focus-visible){border-bottom-color:var(--mpp-nav-highlight)}
.wp-block-navigation.is-style-mpp-pills .wp-block-navigation-item__content{padding:.55rem .85rem;border-radius:99px;background:transparent}
.wp-block-navigation.is-style-mpp-pills .wp-block-navigation-item__content:is(:hover,:focus-visible){background:var(--wp--preset--color--surface,#edf2f7);color:var(--wp--preset--color--primary,#b32032)}
.wp-block-navigation.is-style-mpp-tabs .wp-block-navigation-item__content{padding:.65rem .85rem;border-bottom:3px solid transparent}
.wp-block-navigation.is-style-mpp-tabs .wp-block-navigation-item__content:is(:hover,:focus-visible){border-bottom-color:var(--mpp-nav-highlight)}
.wp-block-navigation.is-style-mpp-bar{background:var(--mpp-nav-highlight);color:#fff;border-radius:6px;padding:.4rem .75rem}
.wp-block-navigation.is-style-mpp-bar a,.wp-block-navigation.is-style-mpp-bar .wp-block-navigation-item__content{color:inherit}
.wp-block-navigation.is-style-mpp-outline .wp-block-navigation-item__content{border:1px solid var(--wp--preset--color--border,#ddd);padding:.5rem .75rem;border-radius:7px}
.wp-block-navigation.is-style-mpp-outline .wp-block-navigation-item__content:is(:hover,:focus-visible){border-color:var(--mpp-nav-highlight)}
.wp-block-navigation.is-style-mpp-minimal{font-size:.85rem;font-weight:400;gap:1.4rem}
.mpp-menu-topbar{background:var(--wp--preset--color--contrast,#15263d);color:#fff;padding:.4rem max(1rem,calc((100% - 1240px)/2));font-size:.8rem}
.mpp-menu-topbar .wp-block-navigation-item__content,.mpp-menu-topbar a{color:inherit}
.mpp-menu-utility .wp-block-navigation-item__content{font-size:.8rem}
.mpp-menu-header-main{padding:1rem clamp(1rem,3vw,2rem)}
.mpp-menu-category-row{padding:.55rem 1rem;border-top:1px solid var(--wp--preset--color--border,#e4e8ef)}
.mpp-menu-header--service{border-top:4px solid var(--wp--preset--color--primary,#b32032)}
.mpp-menu-header--education .mpp-menu-category-row{background:var(--wp--preset--color--surface,#f4f7fb)}
/* Avoid overriding native overlay's open/closed states; color contrast stays usable. */
.mpp-header .wp-block-navigation__responsive-container.is-menu-open{background:var(--wp--preset--color--base,#fff);color:var(--wp--preset--color--contrast,#15263d);padding:1.2rem}
.mpp-header .wp-block-navigation__responsive-container.is-menu-open a{color:inherit}
@media(max-width:781px){.mpp-menu-header-main{gap:.8rem}.mpp-menu-topbar{padding:.6rem 1rem}.mpp-menu-header-main .wp-block-navigation{max-width:100%}}
/* Category-only presentation, does not modify WordPress queries or pagination. */
body.mpp-category-layout-list .mpp-post-grid .wp-block-post-template,body.mpp-category-layout-editorial .mpp-post-grid .wp-block-post-template{display:grid;grid-template-columns:1fr}
body.mpp-category-layout-list .mpp-post-grid .mpp-post-card{display:grid;grid-template-columns:minmax(110px,26%) minmax(0,1fr);gap:0.8rem 1.5rem;align-items:start}
body.mpp-category-layout-list .mpp-post-card .wp-block-post-featured-image{grid-row:span 4}
body.mpp-category-layout-editorial .mpp-post-grid .wp-block-post-featured-image,body.mpp-category-layout-editorial .mpp-post-grid .wp-block-post-excerpt{display:none}
body.mpp-category-layout-editorial .mpp-post-grid .mpp-post-card{padding:.8rem 1rem;box-shadow:none}
body.mpp-category-layout-grid .mpp-post-grid .wp-block-post-template{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:800px){body.mpp-category-layout-grid .mpp-post-grid .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.mpp-category-layout-list .mpp-post-grid .mpp-post-card{grid-template-columns:1fr}body.mpp-category-layout-grid .mpp-post-grid .wp-block-post-template{grid-template-columns:1fr}}

/* v0.1.3 — slot-based menus and mobile Navigation block overlay variations. */
.wp-block-navigation.is-style-mpp-buttons .wp-block-navigation-item__content{display:inline-flex;padding:.6rem 1rem;border-radius:7px;background:var(--wp--preset--color--primary,#b32032);color:#fff;line-height:1.25;text-decoration:none}
.wp-block-navigation.is-style-mpp-buttons .wp-block-navigation-item__content:is(:hover,:focus-visible){filter:brightness(.89);color:#fff}
.mpp-nav-slot--primary,.mpp-nav-slot--secondary{flex-wrap:wrap;gap:clamp(.4rem,1vw,1.2rem)}
.mpp-nav-slot--utility{justify-content:flex-end}
.mpp-nav-slot--mobile{display:none!important}
.mpp-header--quickmenu .mpp-menu-topbar:not(:has(.wp-block-navigation)),.mpp-header--quickmenu .mpp-menu-category-row:not(:has(.wp-block-navigation)){display:none}
.mpp-menu-category-row .wp-block-navigation{width:100%}
.mpp-menu-category-row .wp-block-navigation-item__content{font-size:.9rem}
.mpp-header--quickmenu .mpp-header-inner{min-height:76px}
@media(max-width:781px){
  .mpp-nav-slot--utility,.mpp-nav-slot--secondary{display:none!important}
  .mpp-header:has(.mpp-nav-slot--mobile) .mpp-nav-slot--primary{display:none!important}
  .mpp-header .mpp-nav-slot--mobile{display:flex!important}
  .mpp-header .mpp-nav-slot--mobile .wp-block-navigation__responsive-container-open{display:flex!important}
  .mpp-header .mpp-nav-slot--mobile .wp-block-navigation__container{display:none}
  body.mpp-mobile-fullscreen .mpp-nav-slot--mobile .wp-block-navigation__responsive-container.is-menu-open{width:100vw;max-width:none;inset:0;min-height:100dvh}
  body.mpp-mobile-drawer-right .mpp-nav-slot--mobile .wp-block-navigation__responsive-container.is-menu-open{left:auto;right:0;width:min(88vw,400px);max-width:400px;min-height:100dvh;box-shadow:-6px 0 30px rgba(0,0,0,.2)}
  body.mpp-mobile-drawer-left .mpp-nav-slot--mobile .wp-block-navigation__responsive-container.is-menu-open{left:0;right:auto;width:min(88vw,400px);max-width:400px;min-height:100dvh;box-shadow:6px 0 30px rgba(0,0,0,.2)}
  body.mpp-mobile-compact .mpp-nav-slot--mobile .wp-block-navigation__responsive-container.is-menu-open{left:auto;right:.5rem;top:3.5rem;width:min(92vw,360px);max-width:360px;bottom:auto;height:auto;max-height:calc(100dvh - 4rem);min-height:0;overflow-y:auto;border-radius:12px;box-shadow:0 8px 36px rgba(0,0,0,.22)}
}
@media(min-width:782px){.mpp-nav-slot--mobile{display:none!important}}
@media(prefers-reduced-motion:reduce){.mpp-header .wp-block-navigation__responsive-container{transition:none!important}}
/* v0.1.3 — menu active colors, gaps, opt-in sticky header. */
.mpp-header .wp-block-navigation{--mpp-nav-highlight:var(--mpp-header-accent,var(--wp--preset--color--primary,#b32032));gap:var(--mpp-menu-gap,1rem)}
.mpp-header .wp-block-navigation:not(.is-style-mpp-bar):not(.is-style-mpp-buttons) .current-menu-item>.wp-block-navigation-item__content,.mpp-header .wp-block-navigation:not(.is-style-mpp-bar):not(.is-style-mpp-buttons) .current_page_item>.wp-block-navigation-item__content{color:var(--mpp-header-accent,#b32032);font-weight:700}
.mpp-header .wp-block-navigation.is-style-mpp-buttons .current-menu-item>.wp-block-navigation-item__content,.mpp-header .wp-block-navigation.is-style-mpp-buttons .current_page_item>.wp-block-navigation-item__content{filter:brightness(.86);text-decoration:underline;color:#fff}
.mpp-header .wp-block-navigation.is-style-mpp-bar .current-menu-item>.wp-block-navigation-item__content{color:#fff;text-decoration:underline}
body.mpp-sticky-header .mpp-header{position:sticky;top:0;z-index:1000}
body.admin-bar.mpp-sticky-header .mpp-header{top:32px}
@media(max-width:782px){body.admin-bar.mpp-sticky-header .mpp-header{top:46px}}
/* Keep the header template-part container sticky, not only its inner group. */
body.mpp-sticky-header header.wp-block-template-part:has(.mpp-header),body.mpp-sticky-header .wp-block-template-part:has(.mpp-header){position:sticky;top:0;z-index:1000}
body.admin-bar.mpp-sticky-header header.wp-block-template-part:has(.mpp-header),body.admin-bar.mpp-sticky-header .wp-block-template-part:has(.mpp-header){top:32px}
@media(max-width:782px){body.admin-bar.mpp-sticky-header header.wp-block-template-part:has(.mpp-header),body.admin-bar.mpp-sticky-header .wp-block-template-part:has(.mpp-header){top:46px}}

/* v0.2.0 comment and reaction keyboard accessibility improvements. */
.jcrc-comments-panel :is(button,input,textarea,select):focus-visible,
.jcrc-reaction-row :is(button,a):focus-visible,
.juim-component :is(button,a):focus-visible{outline:3px solid #1768b5!important;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.juim-component *, .jcrc-comments-panel *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* v0.2.0 Page/Post Visual Presets: opt-in and scoped to MasterPress block templates. */
.mpp-page,.mpp-article{--mpp-ui-radius:16px;--mpp-ui-section-gap:clamp(1.5rem,3vw,3.5rem)}
.mpp-page .mpp-section,.mpp-article .mpp-article-content{margin-block:var(--mpp-ui-section-gap);min-width:0}
.mpp-page .wp-block-post-title,.mpp-article .wp-block-post-title{text-wrap:balance;overflow-wrap:anywhere;line-height:1.22}
.mpp-article-content :where(p,ul,ol){line-height:1.75}
.mpp-page :where(p,li),.mpp-article :where(p,li){overflow-wrap:anywhere}
.mpp-page :where(table),.mpp-article :where(table){display:block;max-width:100%;overflow-x:auto}
.mpp-page :where(img,video,iframe),.mpp-article :where(img,video,iframe){max-width:100%}
.mpp-page .wp-block-buttons .wp-block-button__link,.mpp-article .wp-block-button__link{min-height:42px;display:inline-flex;align-items:center;justify-content:center}
.mpp-page .wp-block-separator,.mpp-article .wp-block-separator{opacity:.6}
body.mpp-visual-gap-compact .mpp-page{--mpp-ui-section-gap:1rem}
body.mpp-visual-gap-spacious .mpp-page{--mpp-ui-section-gap:clamp(2.5rem,5vw,5rem)}
body.mpp-visual-reading-compact .mpp-article-content :where(p,li){line-height:1.55}
body.mpp-visual-reading-relaxed .mpp-article-content :where(p,li){line-height:1.95;font-size:1.07em}
body.mpp-visual-page-clean .mpp-page .mpp-section{padding-block:clamp(1.4rem,3vw,2.5rem)}
body.mpp-visual-page-editorial .mpp-page .wp-block-post-title{font-family:Georgia,'Noto Serif Devanagari',serif;font-weight:550;letter-spacing:-.02em}
body.mpp-visual-page-editorial .mpp-page{max-width:860px;margin-inline:auto}
body.mpp-visual-page-card .mpp-page .mpp-section{background:var(--wp--preset--color--base,#fff);border:1px solid var(--wp--preset--color--border,#e5eaf0);border-radius:18px;padding:clamp(18px,3vw,42px);box-shadow:0 12px 34px rgba(20,40,58,.07)}
body.mpp-visual-page-full-bleed .mpp-page{max-width:none!important;width:100%;}
body.mpp-visual-page-full-bleed .mpp-page>.wp-block-group{max-width:none}
body.mpp-visual-page-full-bleed .mpp-page .alignfull{max-width:none;width:100%}
body.mpp-visual-post-classic .mpp-article-header{padding-block:clamp(1rem,2.4vw,2.4rem)}
body.mpp-visual-post-reading .mpp-article-content{max-width:760px;margin-inline:auto;font-family:Georgia,'Noto Serif Devanagari',serif}
body.mpp-visual-post-reading .mpp-article-content :where(p,li){font-size:clamp(1rem,1.25vw,1.14rem);line-height:1.9}
body.mpp-visual-post-magazine .mpp-article-header .wp-block-post-title{font-size:clamp(2rem,4.4vw,3.8rem);letter-spacing:-.035em}
body.mpp-visual-post-magazine .mpp-article-header .wp-block-post-featured-image img{border-radius:15px}
body.mpp-visual-post-feature .mpp-article-header{background:var(--wp--preset--color--contrast,#15263d);color:var(--wp--preset--color--base,#fff);padding:clamp(20px,5vw,64px);border-radius:18px}
body.mpp-visual-post-feature .mpp-article-header :where(a,p){color:inherit}
body.mpp-visual-post-feature .mpp-article-header .wp-block-post-featured-image img{border-radius:9px}
.mpp-post-card,.mpp-news-card{transition:box-shadow .16s ease,transform .16s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.mpp-post-card:hover,.mpp-news-card:hover{box-shadow:0 12px 32px rgba(26,43,62,.11);transform:translateY(-2px)}}
.mpp-post-grid .wp-block-post-title a{text-decoration:none}
.mpp-post-grid .wp-block-post-title a:hover{text-decoration:underline}
.mpp-post-grid .wp-block-query-pagination{gap:.65rem;flex-wrap:wrap;margin-top:2rem}
.mpp-post-grid .wp-block-query-pagination a{padding:.5rem .7rem;border-radius:8px}
.mpp-post-grid .wp-block-query-pagination a:focus-visible{outline:3px solid var(--wp--preset--color--primary,#b32032)}
@media(max-width:782px){body.mpp-visual-page-card .mpp-page .mpp-section{padding:18px;border-radius:10px}body.mpp-visual-post-feature .mpp-article-header{border-radius:0}body.mpp-visual-page-full-bleed .mpp-page .mpp-section{padding-inline:16px}.mpp-page :where(h1),.mpp-article :where(h1){font-size:clamp(1.85rem,6vw,2.5rem)}}
@media(prefers-reduced-motion:reduce){.mpp-post-card,.mpp-news-card{transition:none!important;transform:none!important}}

/* v0.2.4 editable Site Editor header/footer patterns. */
.mpp-header-demo-news .mpp-header-demo-brand{padding-block:18px}
.mpp-header-demo-news .mpp-demo-ticker{padding-block:8px;border-top:1px solid #dbe5ea}
.mpp-header-demo-business>.wp-block-group{margin-block:0}
.mpp-header-demo-news .wp-block-navigation a:focus-visible,.mpp-header-demo-business .wp-block-navigation a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.mpp-footer-demo-business .wp-block-columns{gap:clamp(18px,3vw,48px)}
@media(max-width:780px){.mpp-header-demo-news .mpp-header-demo-brand{gap:10px}.mpp-header-demo-news .mpp-ad-placeholder{max-width:100%}.mpp-header-demo-news .wp-block-columns{flex-wrap:wrap}}

/* Organizer-generated per-device visibility, without JS-driven content deletion. */
@media (max-width:767px){.mpp-organized-section.mpp-hidden-mobile{display:none!important}}
@media (min-width:768px) and (max-width:1023px){.mpp-organized-section.mpp-hidden-tablet{display:none!important}}

/* v0.2.5: screenshot-driven spacing, optional menu rows and readable cards. */
.mpp-menu-category-row:empty,.mpp-menu-topbar:empty{display:none!important}
.mpp-menu-category-row:not(:has(.wp-block-navigation a)),.mpp-menu-topbar:not(:has(.wp-block-navigation a)){display:none}
.mpp-header .mpp-header-inner{padding-block:clamp(.6rem,1.3vw,1rem);min-height:0}
.mpp-header--quickmenu .mpp-header-inner{min-height:0}
.wp-site-blocks > .wp-block-template-part + .mpp-section,
.wp-site-blocks > .wp-block-template-part + .mpp-page,
.wp-site-blocks > .wp-block-template-part + .mpp-article {margin-block-start:0!important}
.wp-site-blocks > .wp-block-template-part + .mpp-section{padding-top:var(--mpp-header-content-gap,16px)!important}
.mpp-page .mpp-section{padding-top:var(--mpp-header-content-gap,16px)}
.mpp-article>.mpp-article-header{padding-top:var(--mpp-header-content-gap,16px)}
.mpp-post-grid .wp-block-post-template.is-layout-grid,
.mpp-post-grid ul.wp-block-post-template {grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:clamp(12px,1.6vw,22px)}
.mpp-post-grid :is(.wp-block-post-title,.wp-block-post-title.has-large-font-size),
.mpp-featured :is(.wp-block-post-title,.wp-block-post-title.has-large-font-size){font-size:clamp(16px,1.5vw,var(--mpp-card-title-size,21px))!important;line-height:1.36;overflow-wrap:anywhere;word-break:normal;margin-block:8px 5px}
.mpp-post-grid .wp-block-post-title a,.mpp-featured .wp-block-post-title a{color:inherit;text-decoration:none}
.mpp-post-grid .wp-block-post-featured-image{margin:0 0 10px}
.mpp-post-grid .wp-block-post-template>li{min-width:0;align-self:stretch}
.mpp-post-grid .wp-block-post-template>li :is(.wp-block-post-excerpt,.wp-block-post-date){font-size:clamp(12px,1vw,15px)}
.mpp-social-links{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px 16px}
.mpp-social-link{display:inline-flex;align-items:center;justify-content:center;min-width:33px;min-height:33px;padding:5px 9px;border:1px solid currentColor;border-radius:7px;color:var(--mpp-social-accent,#176da4);font-weight:650;text-decoration:none;font-size:13px}
.mpp-social-link:hover,.mpp-social-link:focus-visible{background:var(--mpp-social-accent,#176da4);color:#fff}
@media(max-width:782px){.mpp-header .mpp-header-inner{padding-block:8px}.mpp-post-grid .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important}}

/* v0.2.7 — native Site Editor template library, five families / five compositions each. */
.mpp-lib-header,.mpp-lib-footer{--mpp-lib-tone:#1f5795;--mpp-lib-soft:#eef5ff;--mpp-lib-ink:#1b293c}
.mpp-lib-header.mpp-lib-business,.mpp-lib-footer.mpp-lib-business{--mpp-lib-tone:#146b64;--mpp-lib-soft:#e8f7f3}
.mpp-lib-header.mpp-lib-news,.mpp-lib-footer.mpp-lib-news{--mpp-lib-tone:#a91e2b;--mpp-lib-soft:#fff1f1}
.mpp-lib-header.mpp-lib-blog,.mpp-lib-footer.mpp-lib-blog{--mpp-lib-tone:#6b4293;--mpp-lib-soft:#f6f0ff}
.mpp-lib-header.mpp-lib-portfolio,.mpp-lib-footer.mpp-lib-portfolio{--mpp-lib-tone:#b35c21;--mpp-lib-soft:#fff4e8}
.mpp-lib-header{border-bottom:2px solid var(--mpp-lib-tone);padding:.75rem clamp(1rem,4vw,3rem);background:white;color:var(--mpp-lib-ink)}
.mpp-lib-header .mpp-lib-primary-row,.mpp-lib-header .mpp-lib-logo-row{gap:1.1rem;align-items:center}
.mpp-lib-header .mpp-lib-brand-title{min-width:8rem}
.mpp-lib-header .wp-block-navigation{font-size:.94rem;gap:.9rem}
.mpp-lib-header .mpp-lib-topbar{padding:.35rem 1rem;font-size:.76rem;gap:1rem;background:var(--mpp-lib-soft);border-radius:.35rem}
.mpp-lib-header .mpp-lib-topbar p{margin:0}
.mpp-lib-header .mpp-lib-ad-slot{min-height:65px;border:1px dashed var(--mpp-lib-tone);display:grid;place-content:center;background:var(--mpp-lib-soft);text-align:center}
.mpp-lib-header .mpp-lib-color-nav{background:var(--mpp-lib-tone);padding:.8rem 1rem;color:white;border-radius:.4rem}
.mpp-lib-header .mpp-lib-color-nav a{color:white}
.mpp-lib-header .mpp-lib-ticker{padding:.45rem .75rem;font-size:.83rem;background:var(--mpp-lib-soft)}
.mpp-lib-header .mpp-lib-banner{padding:1rem 1.25rem;background:var(--mpp-lib-soft);border-radius:.6rem}
.mpp-lib-header .mpp-lib-hero{padding:1rem 1.4rem;background:var(--mpp-lib-soft);border-radius:.9rem}
.mpp-lib-header .wp-block-button__link,.mpp-lib-footer .wp-block-button__link{background:var(--mpp-lib-tone);color:white}
.mpp-lib-header.mpp-lib-centered .mpp-lib-center-brand,.mpp-lib-header.mpp-lib-centered .mpp-lib-center-nav{text-align:center;display:flex;justify-content:center}
.mpp-lib-header.mpp-lib-centered .mpp-lib-center-nav{margin:.6rem auto}
.mpp-lib-header .mpp-lib-subline{color:var(--mpp-lib-tone);font-size:.8rem}
.mpp-lib-footer{padding:clamp(1.3rem,3vw,3rem) clamp(1rem,4vw,3rem);background:#152b3f;color:#eef5ff}
.mpp-lib-footer .wp-block-columns{gap:clamp(1rem,3vw,2rem)}
.mpp-lib-footer a{color:inherit}
.mpp-lib-footer .wp-block-heading{color:#fff;font-size:clamp(1rem,2vw,1.35rem)}
.mpp-lib-footer .wp-block-navigation{font-size:.85rem}
.mpp-lib-footer .mpp-lib-copyright{margin-top:1.5rem;border-top:1px solid rgba(255,255,255,.25);font-size:.78rem;padding:.6rem 0}
.mpp-lib-footer.mpp-lib-footer-centered .mpp-lib-footer-center-intro{text-align:center;max-width:760px;margin:0 auto 1.5rem}
.mpp-lib-footer.mpp-lib-footer-split{background:var(--mpp-lib-soft);color:#1b293c}
.mpp-lib-footer.mpp-lib-footer-split .wp-block-heading{color:var(--mpp-lib-tone)}
.mpp-lib-footer.mpp-lib-footer-layered{background:var(--mpp-lib-tone)}
.mpp-lib-footer.mpp-lib-footer-showcase .mpp-lib-footer-cta{background:var(--mpp-lib-soft);color:#1b293c;padding:1.3rem;margin-bottom:1.5rem;border-radius:.65rem}
.mpp-lib-footer.mpp-lib-footer-showcase .mpp-lib-footer-cta .wp-block-heading{color:var(--mpp-lib-tone)}
@media(max-width:782px){.mpp-lib-header .wp-block-columns,.mpp-lib-footer .wp-block-columns{gap:1rem}.mpp-lib-header .mpp-lib-topbar{flex-wrap:wrap}.mpp-lib-header .mpp-lib-color-nav{padding:.7rem}.mpp-lib-footer .wp-block-columns{flex-wrap:wrap}}
/* Individual post/page layout overrides, Site Editor-owned sidebar part. */
.mpp027-canvas-full-width main:where(.mpp-page,.mpp-article),.mpp027-canvas-full-width :where(.mpp-page,.mpp-article) .wp-block-post-content{max-width:none!important;width:100%}
.mpp027-content-with-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,29%);gap:clamp(1rem,3vw,2.5rem);align-items:start;max-width:1280px;margin:0 auto}
.mpp027-side-left-sidebar>.mpp027-sidebar{grid-row:1;grid-column:1}.mpp027-side-left-sidebar>.mpp027-content-main{grid-column:2}
.mpp027-side-left-sidebar{grid-template-columns:minmax(210px,29%) minmax(0,1fr)}
.mpp027-content-with-sidebar>.mpp027-content-main{min-width:0}
.mpp027-sidebar-part{background:var(--wp--preset--color--surface,#f5f7fa);padding:1.3rem;border-radius:12px;font-size:.92rem}
.mpp027-sidebar-part .wp-block-heading{font-size:1.05rem;margin:1rem 0 .65rem}
.mpp027-bottom-none :where(.mpp-page,.mpp-article){padding-bottom:0!important}
.mpp027-bottom-compact :where(.mpp-page,.mpp-article){padding-bottom:1rem}
.mpp027-bottom-normal :where(.mpp-page,.mpp-article){padding-bottom:2rem}
.mpp027-bottom-spacious :where(.mpp-page,.mpp-article){padding-bottom:5rem}
.mpp027-canvas-blank :where(main.mpp-page,main.mpp-article){margin-top:0!important;padding-top:0!important}
@media(max-width:780px){.mpp027-content-with-sidebar,.mpp027-side-left-sidebar{display:flex;flex-direction:column}.mpp027-content-with-sidebar>.mpp027-sidebar{width:100%}.mpp027-content-with-sidebar>.mpp027-content-main{width:100%}}
/* v0.2.8: content presets and related links — scoped, responsive and keyboard friendly. */
.mpp028-template{min-width:0}.mpp028-template .mpp028-hero{padding:clamp(1.4rem,4vw,3.75rem);border-radius:18px;background:var(--wp--preset--color--surface,#eff4f8);margin-block:clamp(1rem,3vw,2rem)}.mpp028-template .mpp028-kicker,.mpp028-kicker{font-weight:750;letter-spacing:.12em;text-transform:uppercase;font-size:.75rem;color:var(--wp--preset--color--primary,#b32032)}.mpp028-hero h1{font-size:clamp(1.9rem,4vw,3.6rem);line-height:1.15;margin-block:.5rem}.mpp028-hero--split{background:#ebf3fc;border-left:5px solid #2a648d}.mpp028-hero--magazine{background:#1d3446;color:#fff}.mpp028-hero--magazine .mpp028-kicker{color:#ffcc93}.mpp028-hero--layered{background:linear-gradient(125deg,#eff6f1,#deebff)}.mpp028-hero--showcase{background:#f5ebec;border-radius:30px}.mpp028-home-content{margin-block:2rem}.mpp028-feature-card{border:1px solid var(--wp--preset--color--border,#dde5ec);border-radius:12px;padding:1.1rem;height:100%}.mpp028-feature-card h3{margin-top:0}.mpp028-cta{background:var(--wp--preset--color--surface,#f3f7fa);text-align:center;border-radius:16px;padding:clamp(1rem,4vw,3rem);margin-block:2rem}.mpp028-post-head--reading,.mpp028-post-head--notes{max-width:850px;text-align:center;margin-inline:auto}.mpp028-post-head--visual,.mpp028-post-head--case{max-width:1200px;margin-inline:auto}.mpp028-story-body{max-width:850px;margin-inline:auto}.mpp028-story-body--notes{background:var(--wp--preset--color--surface,#f4f8fc);border-radius:14px;padding:clamp(1rem,4vw,2rem)}.mpp028-post-navigation{display:flex;gap:1.5rem;justify-content:space-between;margin-block:2rem}.mpp028-related{max-width:var(--wp--style--global--wide-size,1200px);margin:2.5rem auto;padding-inline:clamp(1rem,2vw,2rem)}.mpp028-related h2{font-size:clamp(1.25rem,2vw,1.7rem)}.mpp028-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:1rem}.mpp028-related-item{border:1px solid var(--wp--preset--color--border,#d9e3ed);border-radius:12px;padding:1rem;min-width:0}.mpp028-related-item img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:6px}.mpp028-related-item a{color:inherit;text-decoration:none}.mpp028-related-item h3{font-size:clamp(.95rem,1.5vw,1.15rem);overflow-wrap:anywhere;line-height:1.35}.mpp028-related-item a:hover h3{text-decoration:underline}.mpp028-related-item small{color:var(--wp--preset--color--muted,#627184)}@media(max-width:700px){.mpp028-hero .wp-block-columns,.mpp028-home-content .wp-block-columns{gap:.9rem}.mpp028-related{margin-block:1.25rem}}
.mpp028-hero--split .wp-block-columns{padding-block:1rem;border-top:1px solid #b4ccdd;margin-top:1.25rem}.mpp028-hero--layered .wp-block-columns{gap:1.25rem;margin-top:1.5rem}.mpp028-hero--layered .wp-block-column{background:#fff;border-radius:10px;padding:1rem}.mpp028-highlight-note{background:#fff1;border:1px solid #fff5;padding:1.2rem;border-radius:12px;margin-top:1rem}.mpp028-hero--showcase{text-align:center}.mpp028-hero--showcase .wp-block-buttons{justify-content:center}.mpp028-hero--showcase blockquote{max-width:650px;margin-inline:auto;border-left:4px solid #c78090;text-align:left;padding-left:1rem}

/* v0.2.9 Sidebar Widgets & Post Feed Styling */
/* v0.3.0 compact article rhythm and flexible editing zones. */
:root{--mpp030-post-title-gap:var(--mpp030-title-gap,12px);--mpp030-article-gap:var(--mpp030-body-gap,16px)}
.mpp-article .mpp-article-header{margin-block:clamp(8px,1.2vw,18px)!important;padding-block:clamp(6px,1.2vw,16px)!important}
.mpp-article .mpp-article-header .wp-block-post-title{margin-block:var(--mpp030-post-title-gap)!important}
.mpp-article :where(.mpp-small-meta,.mpp-ui-author,.mpp-author-card,.mpp-ui-counts,.mpp-share-buttons,.mpp-ui-share,.mpp-ui-meta){margin-block:clamp(4px,1vw,12px)!important}
.mpp-article .mpp-article-content{margin-block:var(--mpp030-article-gap)!important}
.mpp-article .mpp-article-content>:first-child{margin-top:0}
.mpp-article .mpp-article-header+ .mpp-article-content{margin-top:12px!important}
.mpp030-widget-zone:empty{display:none!important}.mpp030-widget-zone{margin-block:clamp(4px,1vw,14px)}
.mpp030-quick-links ul,.mpp030-category-latest ul{list-style:none;padding:0;margin:.7rem 0;display:grid;gap:.55rem}
.mpp030-quick-links a,.mpp030-category-latest a{overflow-wrap:anywhere}
.mpp030-category-latest time{display:block;font-size:.78rem;opacity:.7}
.mpp030-category-grid ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.mpp030-slider{position:relative;max-width:100%;overflow:hidden;border-radius:12px}.mpp030-slider figure{margin:0}.mpp030-slider .mpp030-slide[hidden]{display:none}.mpp030-slider img{display:block;max-height:540px;width:100%;object-fit:cover}.mpp030-slider figcaption{padding:.6rem .9rem;background:var(--wp--preset--color--surface,#f5f7fa)}
.mpp030-slider-controls{display:flex;justify-content:space-between;position:absolute;top:42%;left:0;right:0;pointer-events:none}.mpp030-slider-controls button{pointer-events:auto;background:#111b;color:#fff;border:0;border-radius:50%;font-size:23px;padding:.4rem .8rem;cursor:pointer}
.mpp030-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:18px 0}.mpp030-template-choice{background:#fff;border:1px solid #dce5ee;border-radius:9px;padding:12px}.mpp030-template-choice strong{display:block;margin-bottom:9px}
@media(max-width:650px){.mpp-article .mpp-article-header{margin-block:6px!important}.mpp030-slider img{max-height:320px}}
.mpp030-footer-credit{padding:8px 16px;border-top:1px solid #dce4ee;font-size:.78rem}.mpp030-credit-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;color:inherit}.mpp030-ad{min-height:90px;margin:18px 0}.mpp030-ad-label{display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.62;text-align:center;margin-bottom:6px}

.mpp030-slider--fade .mpp030-slide.is-active{animation:mpp030Fade .3s ease-out}@keyframes mpp030Fade{from{opacity:.2}to{opacity:1}}.mpp030-slider--cards{background:#f3f6fa;padding:10px;border:1px solid #d9e1e9}.mpp030-slider--cards img{border-radius:10px}.mpp030-testimonial{border:1px solid #e0e5ec;border-radius:12px;padding:20px}.mpp030-profile-card{gap:14px}.mpp030-profile-card img{border-radius:50%}

.mpp-article .mpp-article-header+.mpp-article-content{margin-top:var(--mpp030-body-gap,16px)!important}.mpp-article :where(.mpp-ui-counts,.mpp-ui-meta,.mpp-ui-share,.mpp-share-buttons,.mpp-author-card,.mpp-ui-author){margin-block:var(--mpp030-meta-gap,8px)!important}
/* v0.3.2: multiple-slide controls */
.mpp032-slider-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;gap:6px;justify-content:center}.mpp032-slider-dots button{background:#122f45dd;color:white;border:1px solid #fff9;border-radius:99px;min-width:29px;min-height:29px;cursor:pointer}.mpp032-slider-dots [aria-current=true]{background:#b32032}.mpp030-slider:focus-visible{outline:3px solid #2477aa}.mpp030-slider--fade .mpp030-slide{transition:opacity .3s ease}.mpp030-slider--cards{max-width:940px;margin-inline:auto;border:1px solid #d3dce8;background:#f7f9fc;padding:16px}.mpp030-slider--cards .mpp030-slide{background:white;box-shadow:0 8px 30px #152d4420;border-radius:14px;padding:10px}.mpp030-slider--cards img{max-height:440px}.mpp030-slider--cards figcaption{font-size:1.05rem;font-weight:600;text-align:center}
@media(prefers-reduced-motion:reduce){.mpp030-slider--fade .mpp030-slide{transition:none!important;animation:none!important}}
/* v0.3.2 author profiles and multi-style testimonials */
.mpp032-author{display:flex;align-items:center;gap:15px;max-width:720px;padding:15px;border:1px solid #dce3eb;border-radius:10px}.mpp032-author img{width:72px;height:72px;border-radius:50%;object-fit:cover}.mpp032-author-info p{margin:.3rem 0 0}.mpp032-author--row{border:0;border-bottom:1px solid #e0e6ee;border-radius:0}.mpp032-author--compact{display:inline-flex;padding:5px 8px;border:0}.mpp032-author--compact img{width:38px;height:38px}
.mpp032-testimonials--grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.mpp032-testimonials--list{display:grid;gap:10px}.mpp032-testimonials--slider{max-width:790px;margin-inline:auto}.mpp032-testimonial{margin:0;padding:20px;border:1px solid #dae2eb;background:#fafbfd;border-radius:12px}.mpp032-testimonial img{height:68px;width:68px;object-fit:cover;border-radius:50%}.mpp032-testimonial blockquote{margin:14px 0}.mpp032-testimonial blockquote p{margin:0}.mpp032-testimonial-stars{color:#b37812}.mpp032-testimonials--slider .mpp032-testimonial[hidden]{display:none}.mpp032-testimonial-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:14px}.mpp032-testimonial-controls button{background:white;border:1px solid #cad5e0;border-radius:8px;padding:4px 14px;cursor:pointer;font-size:21px}
