/*
Theme Name: Monamo
Theme URI: https://monamo.ru/
Version: 0.7.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: monamo-fcook-rebuild
*/
:root { --accent:#729345; --ink:#262d2b; --muted:#78817d; --line:#e7ebe5; --paper:#fff; --bg:#f5f6f4; --content:1180px; }
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{height:auto;max-width:100%;vertical-align:middle}
a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,input,textarea{font:inherit}button{cursor:pointer}p{margin-top:0}figure{margin:0}
.page-wrap{min-height:100vh;display:flex;flex-direction:column}.container{width:min(var(--content),calc(100% - 40px));margin-inline:auto}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#fff;clip:auto;clip-path:none;color:#222;display:block;height:auto;left:15px;padding:14px;top:15px;width:auto;z-index:100000}
.site-header{background:var(--paper)}.header-inner{min-height:132px;display:flex;align-items:center;justify-content:space-between;gap:32px;padding-block:28px}
.site-branding{min-width:0}.site-title{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:38px;line-height:1.1;letter-spacing:-.9px;color:#424e2e;margin:0 0 5px}.site-title a:hover{color:var(--accent)}
.custom-logo{max-width:450px;max-height:125px;width:auto}.site-description{font-size:14px;color:#8b928e;margin:6px 0 0}.header-search{width:245px;flex-shrink:0}
.search-form{display:flex;position:relative}.search-field{width:100%;border:1px solid #dfe3dc;border-radius:2px;background:#fff;height:42px;padding:8px 45px 8px 13px;font-size:14px;outline:none}.search-field:focus{border-color:var(--accent)}.search-submit{position:absolute;right:0;top:0;border:0;background:transparent;color:#778073;height:42px;width:43px;font-size:29px;line-height:1}
.nav-bar{background:#465d35;color:#fff}.nav-inner{position:relative}.primary-navigation>.menu{display:flex;flex-wrap:wrap;gap:0;list-style:none;margin:0;padding:0}
.primary-navigation .menu li{position:relative;list-style:none}.primary-navigation .menu>li>a{display:block;font-size:14px;font-weight:600;letter-spacing:.1px;padding:15px 20px;color:#fff}.primary-navigation .menu>li:first-child>a{padding-left:0}.primary-navigation .menu li a:hover,.primary-navigation .current-menu-item>a,.primary-navigation .current-cat>a{color:#fff;background:rgba(255,255,255,.12)}.primary-navigation .sub-menu{display:none;background:#465d35;position:absolute;z-index:20;top:100%;left:0;min-width:210px;margin:0;padding:6px 0;box-shadow:0 6px 15px #0002}.primary-navigation li:hover>.sub-menu,.primary-navigation li:focus-within>.sub-menu{display:block}.primary-navigation .sub-menu a{display:block;padding:9px 17px;color:#fff;font-size:14px}.menu-toggle{display:none;color:#fff;background:none;border:none;font-weight:bold;padding:12px 0;font-size:15px}
.homepage{padding-block:32px 58px}.page-layout{padding-block:28px 65px;flex:1}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:28px;align-items:start}.main-column{min-width:0}.home-feature,.single-article,.comments-area,.post-navigation,.not-found{background:#fff;padding:25px 28px}.section-heading{font-size:22px;line-height:1.25;font-weight:700;margin:0 0 20px;padding:0 0 13px;border-bottom:2px solid var(--accent)}.section-headline{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:21px;border-bottom:2px solid var(--accent)}.section-headline .section-heading{border:0;padding:0;margin:0 0 12px}
.feature-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:24px}.feature-image{display:block;aspect-ratio:1.45;overflow:hidden;background:#e6eadd}.feature-image img,.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.feature-image:hover img,.card-image:hover img{transform:scale(1.035)}.feature-primary h3{font-size:23px;line-height:1.28;margin:11px 0}.post-meta{color:#99a29a;font-size:12px;letter-spacing:.2px;margin-top:10px}.meta-dot{padding:0 7px}.feature-excerpt,.card-excerpt{font-size:14px;color:#67716c;line-height:1.6}.feature-excerpt p,.card-excerpt p{margin:0}.feature-list{display:flex;flex-direction:column;justify-content:start}.feature-small{font-size:15px;line-height:1.46;font-weight:600;padding:14px 0;border-bottom:1px solid var(--line)}.feature-small:first-child{padding-top:0}.feature-small:last-child{border:0}
.sidebar .widget{background:#fff;margin:0 0 23px;padding:22px}.widget-title{font-size:18px;line-height:1.3;margin:0 0 18px;padding-bottom:12px;border-bottom:2px solid var(--accent)}.sidebar ul{list-style:none;padding:0;margin:0}.sidebar ul li{border-bottom:1px solid var(--line);padding:7px 0;font-size:14px}.sidebar ul li:last-child{border:0}.popular-posts{list-style:none;counter-reset:rank;margin:0;padding:0}.popular-posts li{counter-increment:rank;display:flex;align-items:start;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.45}.popular-posts li:last-child{border:0}.popular-posts li:before{content:counter(rank);font:700 21px/1 Georgia,serif;color:var(--accent);min-width:20px}.popular-posts a{flex:1}.popular-comments{font-size:11px;color:#9ea6a1}
.category-section{margin-top:37px}.see-more{font-size:13px;color:var(--accent);white-space:nowrap}.cards-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:21px}.post-card{background:#fff;min-width:0}.card-image{display:block;aspect-ratio:1.5;overflow:hidden;background:#e6eadd}.card-body{padding:10px 14px 18px}.card-title{font-size:16px;line-height:1.42;margin:8px 0;font-weight:700}.no-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(130deg,#eef0e9,#d9e0ce);color:#aabb90;font-size:55px}
.breadcrumbs{font-size:12px;color:#99a29a;display:flex;gap:9px;flex-wrap:wrap;margin:0 0 18px}.breadcrumbs [aria-current]{display:inline-block;max-width:58ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.post-category{font-size:13px;color:var(--accent);font-weight:700;margin-bottom:7px}.entry-title{font-size:32px;line-height:1.28;letter-spacing:-.45px;margin:0 0 14px;font-weight:700}.single-article>.post-meta{margin:0 0 24px}.entry-image{margin:0 0 26px}.entry-image img{width:100%;height:auto}.entry-content{font-size:17px;line-height:1.83;overflow-wrap:break-word}.entry-content h2,.entry-content h3,.entry-content h4{line-height:1.35;scroll-margin-top:30px;margin:1.5em 0 .7em}.entry-content h2{font-size:25px}.entry-content h3{font-size:21px}.entry-content p{margin-bottom:1.12em}.entry-content ul,.entry-content ol{padding-left:26px}.entry-content li{margin-bottom:7px}.entry-content a,.post-tags a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}.entry-content blockquote{margin:1.5em 0;padding:13px 22px;border-left:4px solid var(--accent);background:#f6f8f3;font-style:italic}.entry-content table{border-collapse:collapse;display:block;overflow-x:auto;max-width:100%;font-size:15px}.entry-content td,.entry-content th{border:1px solid #dce2d6;padding:10px 13px}.entry-content th{background:#f2f6ed}.entry-content img{max-width:100%}.entry-content .aligncenter{display:block;margin-left:auto;margin-right:auto}.entry-content .alignleft{float:left;margin:4px 20px 14px 0}.entry-content .alignright{float:right;margin:4px 0 14px 20px}.post-tags{margin-top:24px;font-size:13px;color:#8c968f}.article-toc{border:1px solid #e2e8dc;background:#f8faf5;padding:15px 18px;margin:0 0 25px;font-size:14px}.article-toc[hidden]{display:none}.toc-toggle{border:0;background:transparent;font-weight:700;padding:0;color:var(--ink);width:100%;display:flex;justify-content:space-between;text-align:left}.article-toc ol{padding-left:19px;margin:10px 0 0}.article-toc li{margin:5px 0}.article-toc .toc-sublevel{margin-left:19px}.article-toc a{color:#4c6841}.article-toc a:hover{text-decoration:underline}
.post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:20px}.post-navigation span{display:block;font-size:12px;color:#9aa39c;margin-bottom:8px}.post-navigation a{display:block;font-size:14px;font-weight:700;line-height:1.4}.next-post{text-align:right}.comments-area{margin-top:20px}.comments-title{font-size:20px;margin-top:0}.comment-list{padding-left:25px}.comment-list li{margin-bottom:18px}.comment-body{padding-bottom:14px;border-bottom:1px solid var(--line)}.comment-form label{display:block;font-size:14px;margin-bottom:7px}.comment-form textarea,.comment-form input:not([type=checkbox]){width:100%;border:1px solid #dfe3dc;padding:10px;font:inherit;max-width:100%}.comment-form .submit{background:var(--accent);color:#fff;border:none!important;padding:12px 20px!important;width:auto!important;cursor:pointer}.comment-form-cookies-consent label{display:inline;margin-left:7px}
.page-heading{font-size:28px;margin:0 0 21px}.archive-description{font-size:15px;margin:0 0 24px;color:#717b73}.archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.archive-grid .card-title{font-size:18px}.pagination{text-align:center;margin-top:28px}.pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.pagination .page-numbers{background:#fff;padding:7px 13px}.pagination .current{background:var(--accent);color:#fff}
.site-footer{background:#fff;border-top:1px solid var(--line);margin-top:auto;padding:28px 0 22px;text-align:center;font-size:13px;color:#7d8780}.footer-menu{margin:0 0 17px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;list-style:none;gap:20px;color:#45513e}.footer-copyright a{color:var(--accent)}.footer-notice{margin:8px 0 0}.footer-widgets{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px;text-align:left}
@media (max-width:1060px){.content-grid{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-feature,.single-article,.comments-area,.post-navigation{padding:22px}.site-title{font-size:34px}}
@media (max-width:760px){.container{width:min(100% - 26px,var(--content))}.header-inner{min-height:105px;gap:15px;flex-direction:column;align-items:flex-start;padding-block:20px}.header-search{width:100%}.site-title{font-size:30px}.site-description{font-size:13px}.menu-toggle{display:flex;align-items:center;gap:10px}.primary-navigation{display:none}.primary-navigation.is-open{display:block;padding-bottom:12px}.primary-navigation>.menu{display:block}.primary-navigation .menu>li>a,.primary-navigation .menu>li:first-child>a{padding:11px 0}.primary-navigation .sub-menu{display:block;position:static;box-shadow:none;padding-left:18px}.content-grid{grid-template-columns:1fr}.home-lead-grid .sidebar{display:none}.feature-layout{grid-template-columns:1fr}.feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.feature-small:nth-child(-n+2){border-top:1px solid var(--line);padding-top:13px}.sidebar{display:block}.entry-title{font-size:27px}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-widgets{grid-template-columns:1fr}.page-layout{padding-bottom:36px}}
@media (max-width:500px){.home-feature,.single-article,.comments-area,.post-navigation{padding:18px}.homepage{padding-top:20px}.feature-list{grid-template-columns:1fr}.feature-small:nth-child(2){border-top:0}.cards-grid,.archive-grid{grid-template-columns:1fr}.category-section{margin-top:27px}.entry-title{font-size:25px}.entry-content{font-size:16px}.post-navigation{gap:10px}.post-navigation a{font-size:12px}.site-title{font-size:29px}}

/* =========================================================
   Monamo 0.3 — independent FCook-inspired Gutenberg homepage
   Every module is a self-contained block with independent query.
   ========================================================= */
.monamo-home-blocks.entry-content{font-size:inherit;line-height:inherit;overflow:visible}
.monamo-home-blocks.entry-content>p,.monamo-home-blocks.entry-content>h2{margin-block:22px}
.monamo-category-section{margin:0 0 39px;min-width:0}
.monamo-category-section:first-child{margin-top:0}
.monamo-section-headline{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:2px solid var(--accent);padding-bottom:11px;margin-bottom:19px}
.monamo-home-blocks.entry-content .monamo-section-headline{margin:0 0 19px}
.monamo-section-title,.monamo-home-blocks.entry-content .monamo-section-title{font-size:23px;line-height:1.25;font-weight:700;color:#34402f;letter-spacing:-.25px;margin:0;padding:0;scroll-margin-top:32px}
.monamo-section-more,.monamo-home-blocks.entry-content .monamo-section-more{font-size:13px;line-height:1.4;color:var(--accent);white-space:nowrap;text-decoration:none;font-weight:600}
.monamo-section-items{display:grid;gap:22px;min-width:0}
.monamo-section-post{min-width:0;background:#fff;overflow:hidden}
.monamo-section-image{display:block;background:#e7eadf;overflow:hidden;aspect-ratio:1.48}
.monamo-section-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.monamo-section-image:hover img{transform:scale(1.035)}
.monamo-section-post__content{padding:12px 14px 17px}
.monamo-section-post .post-meta{margin:0 0 6px;font-size:12px}
.monamo-section-post__title,.monamo-home-blocks.entry-content .monamo-section-post__title{font-size:16px;font-weight:700;line-height:1.39;letter-spacing:0;margin:0 0 8px;padding:0;overflow-wrap:anywhere}
.monamo-section-post__title a,.monamo-home-blocks.entry-content .monamo-section-post__title a{color:var(--ink);text-decoration:none}
.monamo-section-post__title a:hover,.monamo-home-blocks.entry-content .monamo-section-post__title a:hover{color:var(--accent)}
.monamo-section-post__excerpt{font-size:14px;line-height:1.55;color:#69756b;margin:0}
.monamo-category-section--grid4 .monamo-section-items{grid-template-columns:repeat(4,minmax(0,1fr))}
.monamo-category-section--grid3 .monamo-section-items{grid-template-columns:repeat(3,minmax(0,1fr))}
/* First block: FCook style. Large story at left; short text links on the right. */
.monamo-section-layout--with-sidebar{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:27px;align-items:start}
.monamo-section-layout--with-sidebar .monamo-section-side{min-width:0}
.monamo-section-layout--with-sidebar .sidebar .widget{margin-bottom:18px}
.monamo-category-section--feature .monamo-section-items{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:0 24px;align-content:start}
.monamo-category-section--feature .monamo-section-post--hero{grid-row:1 / span 12;grid-column:1;background:#fff}
.monamo-category-section--feature .monamo-section-post--hero .monamo-section-image{aspect-ratio:1.45}
.monamo-category-section--feature .monamo-section-post--hero .monamo-section-post__content{padding:13px 0 8px}
.monamo-category-section--feature .monamo-section-post--hero .monamo-section-post__title{font-size:23px;line-height:1.3}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero){grid-column:2;background:transparent;border-bottom:1px solid var(--line);padding:12px 0}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero):nth-child(2){padding-top:0}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero):last-child{border:0}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-post__content{padding:0}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-post__title{font-size:15px;line-height:1.47;margin:0}
/* Editorial mosaic: first tile tall, four cards around it. */
.monamo-category-section--mosaic .monamo-section-items{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;gap:18px}
.monamo-category-section--mosaic .monamo-section-post--hero{grid-column:span 2;grid-row:span 2}
.monamo-category-section--mosaic .monamo-section-post--hero .monamo-section-image{aspect-ratio:1.35}
.monamo-category-section--mosaic .monamo-section-post--hero .monamo-section-post__title{font-size:21px}
.monamo-category-section--mosaic .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-image{aspect-ratio:1.65}
.monamo-category-section--mosaic .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-post__content{padding:9px 11px 13px}
.monamo-category-section--mosaic .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-post__excerpt{display:none}
/* One wide lead card plus a two-column assortment. */
.monamo-category-section--split .monamo-section-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}
.monamo-category-section--split .monamo-section-post--hero{grid-column:span 2;grid-row:span 2}
.monamo-category-section--split .monamo-section-post--hero .monamo-section-image{aspect-ratio:1.52}
.monamo-category-section--split .monamo-section-post--hero .monamo-section-post__title{font-size:22px}
.monamo-category-section--split .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-post__excerpt{display:none}
.monamo-category-section--split .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-image{aspect-ratio:1.8}
/* News/list view. */
.monamo-category-section--list .monamo-section-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 23px}
.monamo-category-section--list .monamo-section-post{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:10px}
.monamo-category-section--list .monamo-section-image{aspect-ratio:1;min-height:115px}
.monamo-category-section--list .monamo-section-post__content{padding:1px 0 0}
.monamo-category-section--list .monamo-section-post__title{font-size:17px}
.monamo-category-section--list .monamo-section-post__excerpt{font-size:13px}
.monamo-category-section--compact .monamo-section-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 25px}
.monamo-category-section--compact .monamo-section-post{background:transparent;border-bottom:1px solid var(--line);padding:13px 0}
.monamo-category-section--compact .monamo-section-post__content{padding:0}
.monamo-category-section--compact .monamo-section-post__title{font-size:16px;line-height:1.5;margin:0}
.monamo-category-section--no-images .monamo-section-post{border-top:2px solid #dfe6d8}
.monamo-category-section--no-images .monamo-section-post__content{padding:15px}
.monamo-category-section--feature.monamo-category-section--no-images .monamo-section-post--hero{padding:5px 0}
.monamo-category-section--feature.monamo-category-section--no-images .monamo-section-post--hero .monamo-section-post__content{padding:0}
.monamo-category-section--feature.monamo-category-section--no-images .monamo-section-post:not(.monamo-section-post--hero){border-top:0}
.monamo-category-section--list.monamo-category-section--no-images .monamo-section-post{display:block}
.monamo-category-section--list.monamo-category-section--no-images .monamo-section-post__content{padding:0}
@media(max-width:1080px){
  .monamo-section-layout--with-sidebar{grid-template-columns:minmax(0,1fr) 250px;gap:20px}
  .monamo-category-section--grid4 .monamo-section-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .monamo-category-section--mosaic .monamo-section-items,.monamo-category-section--split .monamo-section-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .monamo-category-section--mosaic .monamo-section-post--hero,.monamo-category-section--split .monamo-section-post--hero{grid-row:auto;grid-column:span 2}
  .monamo-category-section--list .monamo-section-post{grid-template-columns:120px minmax(0,1fr)}
}
@media(max-width:780px){
  .monamo-section-layout--with-sidebar{grid-template-columns:1fr}
  .monamo-section-layout--with-sidebar .monamo-section-side{display:none}
  .monamo-category-section--grid3 .monamo-section-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .monamo-category-section--list .monamo-section-items{grid-template-columns:1fr}
  .monamo-category-section--compact .monamo-section-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .monamo-section-title,.monamo-home-blocks.entry-content .monamo-section-title{font-size:21px}
}
@media(max-width:560px){
  .monamo-category-section{margin-bottom:30px}
  .monamo-category-section--feature .monamo-section-items{grid-template-columns:1fr;gap:0}
  .monamo-category-section--feature .monamo-section-post--hero{grid-row:auto;grid-column:1}
  .monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero){grid-column:1}
  .monamo-category-section--feature .monamo-section-post--hero .monamo-section-post__title{font-size:21px}
  .monamo-category-section--grid4 .monamo-section-items,.monamo-category-section--grid3 .monamo-section-items{grid-template-columns:1fr 1fr;gap:13px}
  .monamo-category-section--grid4 .monamo-section-post__excerpt,.monamo-category-section--grid3 .monamo-section-post__excerpt{display:none}
  .monamo-category-section--grid4 .monamo-section-post__title,.monamo-category-section--grid3 .monamo-section-post__title{font-size:14px}
  .monamo-category-section--grid4 .monamo-section-post__content,.monamo-category-section--grid3 .monamo-section-post__content{padding:9px}
  .monamo-category-section--mosaic .monamo-section-items,.monamo-category-section--split .monamo-section-items{gap:13px}
  .monamo-category-section--mosaic .monamo-section-post__title,.monamo-category-section--split .monamo-section-post__title{font-size:14px}
  .monamo-category-section--mosaic .monamo-section-post--hero .monamo-section-post__title,.monamo-category-section--split .monamo-section-post--hero .monamo-section-post__title{font-size:19px}
  .monamo-category-section--compact .monamo-section-items{grid-template-columns:1fr}
  .monamo-category-section--list .monamo-section-post{grid-template-columns:100px minmax(0,1fr);gap:10px}
  .monamo-category-section--list .monamo-section-post__title{font-size:15px}
  .monamo-category-section--list .monamo-section-post__excerpt{display:none}
  .monamo-section-headline{align-items:baseline}
  .monamo-section-more{font-size:12px}
}

/* 0.3: keep the homepage sidebar independent from long post/archive sidebars. */
.sidebar--home .widget{padding:17px 18px;margin-bottom:13px}
.sidebar--home .widget-title{font-size:17px;margin-bottom:11px;padding-bottom:9px}
.sidebar--home .popular-posts li{padding:7px 0;font-size:13px;line-height:1.4}
.sidebar--home .popular-posts li:before{font-size:17px;min-width:16px}
.sidebar--home .popular-comments{font-size:10px}
.sidebar--home .sidebar-home-note{font-size:12px;color:var(--muted)}
.monamo-category-section--feature .monamo-section-post--hero{grid-row:1 / span 5}

/* 0.4: view counters in the reading list; no comment-count labels. */
.popular-views{font-size:11px;color:#8c9a85;white-space:nowrap;align-self:baseline}
.sidebar--home .popular-views{font-size:10px}


/* 0.5 — configurable photographs in «Сейчас читают». */
.popular-posts .popular-post-info{display:block;min-width:0;flex:1}
.popular-posts .popular-post-link{display:block;min-width:0;overflow-wrap:anywhere}
.popular-posts .popular-post-image{display:block;flex:none;overflow:hidden;background:#ecf0e7;border-radius:2px}
.popular-posts .popular-post-image img{display:block;width:100%;height:100%;object-fit:cover}
.popular-posts .popular-views{display:block;margin-top:4px}
.widget-popular--small-left .popular-post-image,
.widget-popular--small-right .popular-post-image{width:58px;height:58px}
.widget-popular--large-left .popular-post-image{width:88px;height:72px}
.widget-popular--small-right .popular-post-info{order:1}
.widget-popular--small-right .popular-post-image{order:2}
.widget-popular--top .popular-posts li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px 9px}
.widget-popular--top .popular-post-image{grid-column:1/-1;grid-row:1;aspect-ratio:16/9;width:100%;max-height:185px}
.widget-popular--top .popular-post-info{grid-column:2;grid-row:2}
.widget-popular--top .popular-posts li::before{grid-column:1;grid-row:2}
.sidebar--home .widget-popular--large-left .popular-post-image{width:72px;height:62px}
.sidebar--home .widget-popular--small-left .popular-post-image,
.sidebar--home .widget-popular--small-right .popular-post-image{width:52px;height:52px}
.article-toc .toc-sublevel-1{margin-left:16px}
.article-toc .toc-sublevel-2{margin-left:32px}

/* ------------------------------------------
   v0.6: visual settings (all defaults preserve v0.5 appearance)
   Values are sanitized and provided by inc/design-settings.php.
   ------------------------------------------ */
:root {
  --sidebar-width:280px;
  --section-space:39px;
  --card-space:22px;
  --card-radius:0px;
  --card-image-ratio:1.48;
  --card-text-size:16px;
  --heading-font:Arial,'Helvetica Neue',Helvetica,sans-serif;
  --body-reading-size:17px;
  --nav-background:#465d35;
}
.nav-bar,.primary-navigation .sub-menu{background:var(--nav-background)}
.content-grid{grid-template-columns:minmax(0,1fr) var(--sidebar-width)}
.monamo-section-layout--with-sidebar{grid-template-columns:minmax(0,1fr) var(--sidebar-width)}
.monamo-category-section{margin-bottom:var(--section-space)}
.monamo-section-items{gap:var(--card-space)}
.monamo-category-section--grid4 .monamo-section-items,.monamo-category-section--grid3 .monamo-section-items{gap:var(--card-space)}
.monamo-section-post,.post-card{border-radius:var(--card-radius)}
.monamo-section-image,.card-image{aspect-ratio:var(--card-image-ratio)}
.monamo-section-post__title,.monamo-home-blocks.entry-content .monamo-section-post__title{font-size:var(--card-text-size)}
.monamo-section-title,.monamo-home-blocks.entry-content .monamo-section-title,
.section-heading,.widget-title,.entry-title,.entry-content h2,.entry-content h3{font-family:var(--heading-font)}
.entry-content{font-size:var(--body-reading-size)}
.monamo-cards-bordered .monamo-section-post{border:1px solid #e4e9e0}
.monamo-cards-shadow .monamo-section-post{box-shadow:0 3px 15px rgba(43,57,38,.075)}
.monamo-cards-bordered .monamo-section-post--hero,.monamo-cards-shadow .monamo-section-post--hero{overflow:hidden}
.monamo-cards-bordered .monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero),
.monamo-cards-shadow .monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero),
.monamo-cards-bordered .monamo-category-section--compact .monamo-section-post,
.monamo-cards-shadow .monamo-category-section--compact .monamo-section-post{border:0;box-shadow:none}
@media(max-width:1080px){
  .content-grid,.monamo-section-layout--with-sidebar{grid-template-columns:minmax(0,1fr) minmax(225px,calc(var(--sidebar-width) * .89))}
}
@media(max-width:780px){
  .content-grid,.monamo-section-layout--with-sidebar{grid-template-columns:1fr}
}

/* ============================================================
   MONAMO v0.7 — reference FCook layout (2026 user screenshot)
   A wallpapered page + transparent logo header + centred white
   1080px frame. Keep all homepage/module logic unchanged.
   ============================================================ */
:root {
  --content:1080px;
  --nav-background:#88a27f;
  --sidebar-width:290px;
  --fcook-horizontal-padding:48px;
  --fcook-ink:#414141;
}
body {
  background-color:#f5f5f5;
  background-image:url('assets/images/wallpaper-tile.jpg');
  background-position:left top;
  background-repeat:repeat;
  color:var(--fcook-ink);
}
.page-wrap { background:transparent; }
.container { width:min(100%,var(--content)); max-width:100%; margin-inline:auto; }
.site-header { background:transparent; }
.header-inner {
  min-height:113px;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px 8px;
  gap:0;
  background:transparent;
}
.site-branding { width:100%; display:flex;justify-content:center;align-items:center;text-align:center; }
.site-branding .custom-logo-link,.site-branding .monamo-default-logo { display:inline-flex;justify-content:center;align-items:center;max-width:100%;line-height:0; }
.site-branding .custom-logo,.site-branding .monamo-default-logo img {
  display:block;width:auto;max-width:min(465px,100%);height:auto;max-height:93px;object-fit:contain;
}
.site-header .site-description, .site-header .header-search { display:none; }
.nav-bar {
  width:min(100%,var(--content));
  margin:0 auto;
  background:var(--nav-background);
  color:#fff;
}
.nav-inner { width:100%;padding:0 var(--fcook-horizontal-padding); }
.primary-navigation .menu>li>a {font-size:14px;font-weight:400;padding:9px 17px;color:#fff;line-height:1.35;}
.primary-navigation .menu>li:first-child>a {padding-left:17px;}
.primary-navigation .sub-menu {background:var(--nav-background);}
.primary-navigation .menu>li>a:hover,.primary-navigation .current-menu-item>a {background:rgba(255,255,255,.14);}
/* Keep the white site itself below the wallpapered header. */
.homepage,.page-layout {
  background:#fff;
  padding:24px var(--fcook-horizontal-padding) 58px;
  flex:1 0 auto;
  min-height:0;
}
.site-footer {
  width:min(100%,var(--content));
  margin-inline:auto;
  margin-top:0;
  background:#fff;
  padding:20px var(--fcook-horizontal-padding) 24px;
}
/* Reference: flat white cards, muted headings, fine horizontal rules. */
.monamo-category-section { margin-bottom:42px; }
.monamo-section-headline { border-bottom:2px solid #d9e4e1; padding-bottom:9px; margin-bottom:17px; }
.monamo-category-section--feature .monamo-section-headline {border-bottom-color:#9e4949;}
.monamo-section-title,.monamo-home-blocks.entry-content .monamo-section-title {
  font-size:20px;line-height:1.3;font-weight:400;color:#7f907c;text-transform:uppercase;letter-spacing:0;
}
.monamo-section-more,.monamo-home-blocks.entry-content .monamo-section-more {color:#8b918a;font-size:11px;font-weight:400;text-transform:uppercase;}
.monamo-section-layout--with-sidebar {gap:50px;}
.monamo-category-section--feature .monamo-section-items {gap:0 23px;}
.monamo-category-section--feature .monamo-section-post--hero .monamo-section-post__content {padding:8px 0 0;}
.monamo-category-section--feature .monamo-section-post--hero .monamo-section-post__title {font-size:20px;line-height:1.18;}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero) {border-bottom:0;padding:9px 0;}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero):first-of-type {padding-top:0;}
.monamo-category-section--feature .monamo-section-post:not(.monamo-section-post--hero) .monamo-section-post__title {font-size:14px;line-height:1.19;}
.monamo-section-post__title,.monamo-home-blocks.entry-content .monamo-section-post__title {line-height:1.27;}
.monamo-section-post__excerpt {color:#575757;line-height:1.45;}
.monamo-section-post__content {padding:8px 0 5px;}
.monamo-section-image {background:#fafafa;}
.monamo-section-post--hero,.monamo-section-post {background:transparent;}
/* Reference right column is unboxed, not floating white cards. */
.sidebar .widget,.sidebar--home .widget {background:transparent;padding:0;margin-bottom:23px;}
.sidebar .widget-title,.sidebar--home .widget-title {
  font-size:19px;color:#343434;line-height:1.3;border-bottom:1px solid #b86a6a;
  font-weight:700;padding-bottom:8px;margin-bottom:11px;
}
.sidebar--home .popular-posts li {padding:9px 0;}
.sidebar .popular-posts li:before {color:#9dad92;}
.sidebar--home .widget-popular--small-left .popular-post-image,
.sidebar--home .widget-popular--small-right .popular-post-image {width:65px;height:55px;}
/* Article column: no independently framed white islands. */
.single-article,.comments-area,.post-navigation,.not-found,.home-feature {background:#fff;padding:0;}
.comments-area,.post-navigation {padding-top:22px;}
.page-heading,.entry-title {color:#444;}
@media (max-width:1100px) {
  :root {--fcook-horizontal-padding:36px;}
  .monamo-section-layout--with-sidebar {gap:26px;}
}
@media (max-width:780px) {
  :root {--fcook-horizontal-padding:24px;}
  .header-inner {min-height:94px;padding:13px 18px;align-items:center;flex-direction:row;}
  .site-branding {justify-content:center;}
  .nav-inner {padding:0 var(--fcook-horizontal-padding);}
  .menu-toggle {display:flex;}
  .monamo-section-layout--with-sidebar {grid-template-columns:1fr;}
  .homepage,.page-layout {padding-bottom:35px;}
  .site-footer {padding:20px var(--fcook-horizontal-padding);}
}
@media (max-width:560px) {
  :root {--fcook-horizontal-padding:15px;}
  .header-inner {min-height:83px;}
  .site-branding .custom-logo,.site-branding .monamo-default-logo img{max-height:72px;}
  .monamo-section-title,.monamo-home-blocks.entry-content .monamo-section-title {font-size:18px;}
  .monamo-category-section--feature .monamo-section-post--hero .monamo-section-post__title {font-size:19px;}
}

/* v0.7.1 — paginate_links(type=list) emits ul.page-numbers.
   Only anchors/spans are buttons; the ul itself must not be padded as a button.
   Applies to custom latest.php and core archive/search pagination alike. */
nav.pagination {
  display:flex;
  justify-content:center;
  width:100%;
  clear:both;
  margin:30px 0 0;
  padding:0;
  text-align:center;
}
nav.pagination .nav-links,
nav.pagination ul.page-numbers {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  max-width:100%;
  margin:0;
  padding:0;
  list-style:none;
  background:transparent;
}
nav.pagination ul.page-numbers > li {
  list-style:none;
  padding:0;
  margin:0;
  border:0;
}
nav.pagination a.page-numbers,
nav.pagination span.page-numbers {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:35px;
  min-height:35px;
  padding:7px 11px;
  border:1px solid #d9e4e1;
  background:#fff;
  color:#4f6247;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
}
nav.pagination a.page-numbers:hover,
nav.pagination a.page-numbers:focus-visible {
  border-color:#88a27f;
  color:#354d34;
  background:#eef4ec;
}
nav.pagination span.page-numbers.current {
  border-color:var(--nav-background,#88a27f);
  background:var(--nav-background,#88a27f);
  color:#fff;
}
@media (max-width:500px) {
  nav.pagination .nav-links,
  nav.pagination ul.page-numbers {gap:5px;}
  nav.pagination a.page-numbers,
  nav.pagination span.page-numbers {min-width:32px;min-height:32px;padding:6px 9px;font-size:13px;}
}
