
/*
Theme Name: Media X
Theme URI: https://example.com/
Author: Media X
Description: Simple, fast WordPress news theme designed around the Media X layout.
Version: 0.8.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: media-x
*/

:root{
  --mx-red:#e10000;
  --mx-red-dark:#b90000;
  --mx-pink:#ffecec;
  --mx-text:#333;
  --mx-muted:#8d8d8d;
  --mx-border:#ededed;
  --mx-bg:#fff;
  --mx-soft:#f7f7f7;
  --mx-container:1100px;
  --mx-mobile-gutter:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--mx-text);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(calc(100% - 32px),var(--mx-container));margin-inline:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{background:#fff}
.header-top{height:68px;display:flex;align-items:center;gap:22px}
.menu-toggle{border:0;background:none;font-size:18px;cursor:pointer;color:#555;display:flex;gap:7px;align-items:center}
.menu-toggle span{font-size:10px}
.site-branding{display:flex;align-items:center;gap:10px;min-width:0}
.site-logo{max-height:42px;width:auto}
.site-title{font-size:27px;line-height:1;font-weight:800;color:var(--mx-red);margin:0}
.site-tagline{display:none}
.header-search{margin-left:auto;display:flex;align-items:center;border:1px solid #eee;border-radius:22px;height:34px;width:210px;padding:0 12px;background:#fff}
.header-search input{border:0;outline:0;width:100%;font-size:11px}
.header-search button{border:0;background:none;cursor:pointer;color:#aaa}
.rss-link{color:#ef6c2f;font-size:18px}
.main-nav{background:var(--mx-red);color:#fff}
.main-nav > .container > ul{margin:0;padding:0;list-style:none;display:flex;gap:0;overflow:visible;white-space:nowrap}.main-nav .sub-menu{display:none!important;position:absolute;top:100%;left:0;min-width:190px;margin:0;padding:4px 0;list-style:none;flex-direction:column!important;overflow:visible!important;background:#fff;color:#333;box-shadow:0 8px 24px rgba(0,0,0,.16);z-index:50;border-radius:0 0 6px 6px}.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{display:flex!important}
.main-nav > .container > ul{position:relative}.main-nav li{position:relative}.main-nav li a{display:block;padding:9px 13px;font-size:12px;font-weight:700}.main-nav li a:hover{background:var(--mx-red-dark)}.main-nav .sub-menu li a{padding:9px 12px;font-size:11px;font-weight:600;white-space:nowrap;background:#fff;color:#333}.main-nav .sub-menu li a:hover{background:#f7f7f7;color:var(--mx-red)}.main-nav .menu-item-has-children>a:after{content:" ▾";font-size:9px}
.ad-slot{background:#fafafa;min-height:120px;display:flex;align-items:center;justify-content:center;color:#888;margin:16px 0 22px;overflow:hidden}
.ad-slot.top{min-height:170px;margin-top:16px;margin-bottom:26px}.ad-slot.top.is-empty{min-height:68px;background:transparent;margin-top:14px;margin-bottom:28px}
.ad-label{font-size:10px;color:#aaa;text-transform:uppercase;letter-spacing:.08em}
.layout{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(270px,1fr);gap:28px}
.sidebar{min-width:0}
.section-heading{font-size:14px;margin:0 0 10px;font-weight:800;display:flex;align-items:center;gap:8px}
.section-heading:before{content:"";width:4px;height:15px;background:var(--mx-red);border-radius:3px}
.hero-slider{position:relative;min-height:360px}
.hero-card{position:relative;border-radius:8px;overflow:hidden;background:#222;min-height:360px}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease;pointer-events:none}
.hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.hero-card img{width:100%;height:360px;object-fit:cover;opacity:.92}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,rgba(0,0,0,.82) 100%);display:flex;align-items:flex-end;padding:22px}
.hero-copy{color:#fff}
.kicker{display:inline-block;font-size:9px;background:#fff;color:#333;padding:3px 7px;border-radius:2px;margin-bottom:8px;font-weight:700}
.hero-copy .category{font-size:9px;text-transform:uppercase;letter-spacing:.12em}
.hero-copy h1{font-size:22px;line-height:1.2;margin:5px 0 5px;max-width:620px}
.meta{font-size:9px;color:#aaa}
.hero-copy .meta{color:#ddd}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.92);cursor:pointer;z-index:2}
.slider-arrow.prev{left:10px}.slider-arrow.next{right:10px}
.hero-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:5px;z-index:4}
.hero-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer}
.hero-dot.is-active{background:#fff;transform:scale(1.2)}
.tag-strip{display:flex;align-items:center;gap:10px;padding:11px 0 18px;font-size:13px;color:#666;white-space:nowrap;min-width:0}
.tag-strip-label{flex:0 0 auto;color:#333;font-size:14px;font-weight:800}
.tag-strip-nav{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.tag-strip-track{position:relative;flex:1 1 auto;min-width:0;overflow:hidden}
.tag-strip-list{display:flex;align-items:center;gap:14px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;white-space:nowrap;padding:1px 2px}
.tag-strip-list::-webkit-scrollbar{display:none}
.tag-strip-list a{font-size:12px;color:#555;flex:0 0 auto}
.tag-strip-button{width:24px;height:24px;border:1px solid #eee;background:#fff;border-radius:50%;color:#777;cursor:pointer;display:grid;place-items:center;padding:0;line-height:1}
.tag-strip-button:hover{border-color:#ddd;color:var(--mx-red)}
.popular-box{border:1px solid var(--mx-border);border-radius:8px;overflow:hidden}
.popular-item{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:10px 12px;border-bottom:1px solid #f1f1f1}
.popular-item:last-child{border-bottom:0}
.popular-number{font-size:25px;color:var(--mx-red);font-weight:800;line-height:1}
.popular-title{font-weight:700;font-size:12px;line-height:1.35}
.popular-meta{font-size:8px;color:#aaa;margin-top:3px}
.latest-list{display:flex;flex-direction:column;gap:10px}
.latest-item{display:grid;grid-template-columns:155px 1fr;gap:14px;align-items:center}
.latest-item img{width:155px;height:88px;object-fit:cover;border-radius:5px}
.latest-item>div{min-width:0}
.latest-title{font-size:13px;line-height:1.35;margin:3px 0 5px;font-weight:600;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.latest-title a{display:block;overflow-wrap:anywhere}
.category-pill{font-size:10px;background:#eee;border-radius:2px;padding:2px 5px;color:#666;display:inline-block}
.recommended{position:relative;background:linear-gradient(135deg,#d60000,#9e0000);padding:0 10px 12px;border-radius:8px;margin:10px 0 14px;color:#fff;overflow:hidden}
.recommended-head{font-size:12px;font-weight:800;padding:9px 0}
.recommended-viewport{position:relative;overflow:hidden}
.recommended-grid{display:flex;gap:8px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;padding:0 0 1px}
.recommended-grid::-webkit-scrollbar{display:none}
.rec-card{background:#fff;color:#333;border-radius:6px;overflow:hidden;flex:0 0 calc((100% - 16px)/3);min-width:0}
.rec-card img{width:100%;height:110px;object-fit:cover}
.rec-card .rec-copy{padding:7px}
.rec-card h3{font-size:10px;line-height:1.3;margin:3px 0}
.rec-card .meta{font-size:7px}
.disclaimer{font-size:9px;color:#777;line-height:1.5;margin-top:24px}
.site-footer{margin-top:50px;background:var(--mx-pink);border-top:3px solid var(--mx-red);padding:34px 0 18px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:28px}
.footer-title{font-size:20px;color:var(--mx-red);margin:0 0 10px}
.footer-heading{font-size:11px;font-weight:800;margin:0 0 7px}
.footer-list{margin:0;padding:0;list-style:none;font-size:12px;color:#555;line-height:1.8}
.socials{display:flex;gap:8px;margin-top:12px}
.socials a{width:24px;height:24px;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;font-size:9px}
.copyright{text-align:center;font-size:8px;color:#888;margin-top:30px}
.post-header{margin:0 0 12px}.breadcrumbs{display:flex;align-items:center;gap:7px;min-width:0;font-size:10px;color:#999;margin-bottom:16px;padding:7px 0;border-bottom:1px solid #f0f0f0;line-height:1.4}.breadcrumbs a{color:#888}.breadcrumbs a:hover{color:var(--mx-red)}.breadcrumb-home{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.breadcrumb-home-icon{font-size:11px;color:#999}.breadcrumb-sep{color:#ccc;font-size:12px}.breadcrumb-current{color:#aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-title{font-size:27px;line-height:1.18;margin:0 0 8px}
.author-row{display:flex;align-items:center;gap:8px;font-size:9px;color:#777;margin-bottom:12px}
.author-avatar{width:26px;height:26px;border-radius:50%;object-fit:cover;background:#eee}
.featured-image{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;border-radius:7px}
.caption{font-size:8px;color:#888;margin:4px 0 16px}
.article-body{font-size:13px;line-height:1.75;min-width:0;overflow:hidden}.article-body img,.article-body figure,.article-body video,.article-body iframe,.article-body table{max-width:100%!important;box-sizing:border-box}.article-body img{display:block;width:auto!important;height:auto!important}.article-body figure{margin-left:0!important;margin-right:0!important}.article-body .alignwide,.article-body .alignfull{width:auto!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
.article-body p{margin:0 0 14px}.article-body h2{font-size:19px}.article-body h3{font-size:16px}
.article-body blockquote{border-left:3px solid var(--mx-red);padding-left:14px;margin-left:0;color:#555}
.in-content-ad{margin:22px 0}
.follow-box{background:#fafafa;border:1px solid #eee;border-radius:7px;padding:16px;text-align:center;font-size:11px;margin:18px 0}
.reaction-box{background:#fafafa;border-radius:8px;padding:14px;margin:15px 0}
.reaction-title{text-align:center;font-weight:700;font-size:11px}
.reactions{display:flex;justify-content:center;gap:18px;margin-top:10px}
.reaction{font-size:25px;text-align:center}.reaction small{display:block;font-size:8px;color:#888}
.related-box{border:1px solid #eee;border-radius:7px;padding:10px;margin:14px 0}
.related-title{font-size:13px;color:var(--mx-red);font-weight:800;margin-bottom:5px}
.related-link{font-size:13px;font-weight:700;line-height:1.45}
.other-latest{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;margin-top:15px}
.other-latest a{font-size:10px;padding:7px 0;border-bottom:1px solid #eee}
.most-viewed-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.most-card{border:1px solid #eee;border-radius:6px;overflow:hidden}
.most-card img{height:105px;width:100%;object-fit:cover}
.most-card .copy{padding:7px}.most-card h3{font-size:10px;line-height:1.3;margin:3px 0}
.media-x-drawer{position:fixed;inset:0;z-index:9999;visibility:hidden;pointer-events:none}.media-x-drawer.is-open{visibility:visible;pointer-events:auto}.drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.18);opacity:0;transition:opacity .2s}.media-x-drawer.is-open .drawer-backdrop{opacity:1}.drawer-panel{position:absolute;top:58px;left:50%;margin-left:calc(-1 * var(--mx-container) / 2);width:450px;max-width:calc(100vw - 24px);height:calc(100vh - 58px);background:#fff;transform:translateX(-115%);transition:transform .25s ease;box-shadow:0 10px 28px rgba(0,0,0,.16);overflow:auto}.media-x-drawer.is-open .drawer-panel{transform:translateX(0)}.drawer-topbar{position:absolute;left:0;top:-50px;height:50px;display:flex;align-items:center}.drawer-close{border:0;background:#fff;cursor:pointer;height:44px;padding:0 14px;font-size:12px;color:#444;box-shadow:0 -2px 18px rgba(0,0,0,.04)}.close-x{font-size:30px;line-height:1;color:var(--mx-red);vertical-align:-3px;margin-right:6px}.drawer-inner{padding:24px}.drawer-search{height:36px;border:1px solid #eee;border-radius:22px;display:flex;align-items:center;padding:0 12px;margin-bottom:18px}.drawer-search input{border:0;outline:0;flex:1;font-size:11px}.drawer-search button{border:0;background:none;color:#aaa}.drawer-section{border-top:1px dashed #e5e5e5;padding:18px 0 2px}.drawer-section h3{font-size:13px;margin:0 0 10px;color:#555}.drawer-links{display:grid;gap:7px 26px}.drawer-links.two-col{grid-template-columns:1fr 1fr}.drawer-links a{font-size:11px;color:#555}.drawer-links a:hover{color:var(--mx-red)}.widget{margin:0 0 22px}.widget a{font-size:12px}.widget ul li{font-size:12px;line-height:1.8}
.media-core-latest-widget{display:flex;flex-direction:column;gap:10px}
.latest-widget-item{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;align-items:center}
.latest-widget-thumb img{width:92px;height:60px;object-fit:cover;border-radius:5px}
.latest-widget-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px!important;line-height:1.35;font-weight:700}
.latest-widget-meta{font-size:9px;color:#999;line-height:1.35;margin-top:3px}
.latest-widget-meta a{font-size:9px;color:inherit}.footer-logo{max-width:180px;max-height:60px;object-fit:contain;margin-bottom:10px}.footer-widget{margin:0 0 18px}.footer-widget ul{margin:0;padding:0;list-style:none}.footer-widget li{font-size:13px;line-height:1.8}.footer-widget a{font-size:13px}.footer-widget a:hover{color:var(--mx-red)}
.pagination{display:flex;justify-content:center;margin:22px 0}.pagination a,.pagination span{padding:7px 11px;border:1px solid #eee;font-size:10px;margin:0 2px}.pagination .current{background:var(--mx-red);color:#fff}
@media(max-width:800px){
  .layout{grid-template-columns:1fr}.sidebar{order:2}.header-top{height:58px}.header-search{width:160px}.hero-slider,.hero-card,.hero-card img{min-height:300px;height:300px}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .container{width:min(calc(100% - 22px),var(--mx-container))}
  .site-title{font-size:22px}.header-search{display:none}.main-nav li a{padding:8px 10px;font-size:10px}
  .latest-item{grid-template-columns:105px 1fr}.latest-item img{width:105px;height:75px}.latest-title{font-size:11px}
  .recommended-grid{grid-template-columns:1fr 1fr 1fr}.rec-card img{height:85px}.rec-card h3{font-size:9px}
  .footer-grid{grid-template-columns:1fr 1fr}.post-title{font-size:23px}.most-viewed-grid{grid-template-columns:1fr 1fr 1fr}
}

@media(max-width:560px){.drawer-panel{left:0;margin-left:0;width:min(450px,92vw)}.drawer-links.two-col{grid-template-columns:1fr 1fr}}

/* Media X 0.6.0: article author, font controls, reactions, Google follow and footer icons */
.menu-toggle span{display:none}
.author-row{align-items:center;gap:12px;font-size:inherit}
.author-avatar{width:44px;height:44px;border-radius:50%}
.author-info{display:flex;flex-direction:column;gap:2px}
.author-name-line{display:flex;align-items:center;gap:6px}
.author-name{font-size:15px;font-weight:800;color:#333;line-height:1.2}
.verified-badge{width:16px;height:16px;border-radius:50%;background:#1689e5;color:#fff;display:inline-grid;place-items:center;font-size:10px;font-weight:800;line-height:1;border:2px solid #fff;box-shadow:0 0 0 1px #1689e5}
.author-meta{display:flex;align-items:center;gap:9px;color:#999;font-size:10px;line-height:1.4}
.author-meta span+span:before{content:"•";margin-right:9px;color:#ccc}
.font-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:12px 0 4px;color:#999;font-size:9px}
.font-control{border:1px solid #eee;background:#fff;color:#777;border-radius:14px;min-width:31px;height:27px;padding:0 8px;cursor:pointer;font-weight:700}
.font-control:hover,.font-control.active{border-color:#ddd;color:var(--mx-red)}
.article-body{font-size:var(--mx-article-font,13px)}
.article-body p,.article-body li{font-size:inherit}
.google-follow{display:inline-flex;align-items:center;gap:8px;margin-top:10px;color:#777;font-size:10px}
.google-follow svg{width:16px;height:16px;fill:currentColor;display:block}
.reaction-box{padding:18px;margin:18px 0}
.reaction-title{font-size:14px}
.reactions{gap:24px;margin-top:14px}
.reaction{border:0;background:none;cursor:pointer;padding:2px 5px;color:#777;transition:transform .15s ease,opacity .15s ease}
.reaction:hover{transform:translateY(-2px)}
.reaction.selected{transform:scale(1.08);opacity:.85}
.reaction-icon{display:block;font-size:34px;line-height:1.15}
.reaction small{font-size:10px;margin-top:4px}
.socials{display:flex;gap:7px;margin-top:12px}
.socials a{width:28px;height:28px;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center}
.socials svg{width:15px;height:15px;fill:currentColor;stroke:currentColor;stroke-width:1.5}
.footer-description{font-size:12px;color:#777;line-height:1.65;max-width:240px}
.copyright{font-size:10px}
.footer-widget-col .widget-title,.footer-widget-col .footer-heading{font-size:12px}
@media(max-width:700px){.author-name{font-size:14px}.author-meta{font-size:9px}.reactions{gap:10px}.reaction-icon{font-size:29px}.font-controls{justify-content:flex-start}.footer-description{font-size:11px}}


/* Media X 0.6.0: article controls, sharing and comments */
.author-row{gap:13px;margin-bottom:15px}
.author-avatar{width:52px;height:52px}
.author-name{font-size:17px}
.author-meta{display:block;font-size:10px;line-height:1.5;color:#999}
.author-meta span+span:before{display:none}
.font-controls{justify-content:flex-end;margin:8px 0 18px;padding:0}
.font-controls>span{font-size:9px;color:#999;margin-right:2px}
.font-control{min-width:30px;height:26px;font-size:12px}
.article-body{transition:font-size .15s ease}
.google-follow{display:flex;justify-content:center;align-items:center;width:max-content;max-width:100%;margin:11px auto 0;padding:9px 14px;border:1px solid #e8e8e8;border-radius:5px;background:#fff;color:#555;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.03);font-size:10px;line-height:1.2}
.google-follow svg{width:17px;height:17px;flex:0 0 17px;fill:#4285f4}
.follow-box{padding:18px 12px;background:#fafafa;border:1px solid #eee}
.share-box{margin:20px 0;padding:15px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
.share-title{text-align:left;font-size:12px;font-weight:800;margin-bottom:10px}
.share-buttons{display:flex;flex-wrap:wrap;gap:7px}
.share-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 11px;border:1px solid #e8e8e8;border-radius:5px;background:#fff;color:#555;text-decoration:none;font-size:10px;font-weight:700;cursor:pointer}
.share-button:hover{border-color:#ddd;color:var(--mx-red);background:#fafafa}
.share-button svg{width:15px;height:15px;fill:currentColor;stroke:currentColor;stroke-width:1.2}
.other-latest a{font-size:12px;line-height:1.45}
.most-card .copy{padding:8px}.most-card h3{font-size:12px;line-height:1.4}
.most-card .category-pill{font-size:9px}
.comments-section{margin:24px 0}
.comments-section .comments-title,.comments-section .comment-reply-title{font-size:14px;font-weight:800;border-left:3px solid var(--mx-red);padding-left:8px}
.comments-section .comment-list{margin:0;padding:0;list-style:none}
.comments-section .comment{margin:0 0 14px;padding:12px;border:1px solid #eee;border-radius:6px}
.comments-section .comment-meta{font-size:9px;color:#999}
.comments-section .comment-content{font-size:12px;line-height:1.7}
.comments-section label{font-size:10px;font-weight:700}
.comments-section textarea,.comments-section input[type=text],.comments-section input[type=email],.comments-section input[type=url]{width:100%;box-sizing:border-box;border:1px solid #e5e5e5;border-radius:5px;padding:9px;font:inherit;font-size:11px}
.comments-section .form-submit input{border:0;background:var(--mx-red);color:#fff;border-radius:5px;padding:9px 16px;font-size:10px;font-weight:700;cursor:pointer}
@media(max-width:700px){.font-controls{justify-content:flex-start}.share-button{flex:1 1 calc(50% - 7px)}.author-name{font-size:16px}.other-latest a{font-size:11px}.most-card h3{font-size:11px}}

/* Media X 0.7.0: media sizing, article image containment, spacing and breadcrumbs */
.layout>article,.layout>section{min-width:0}.article-body p,.article-body ul,.article-body ol,.article-body h1,.article-body h2,.article-body h3,.article-body h4,.article-body h5,.article-body h6{max-width:100%;box-sizing:border-box}.article-body .wp-block-image{max-width:100%!important}.article-body .wp-block-image img{max-width:100%!important}.article-body .wp-block-embed{max-width:100%!important}.article-body .wp-block-table{overflow-x:auto;max-width:100%}.breadcrumbs a,.breadcrumbs .breadcrumb-current{font-size:10px}.related-box{padding:13px 14px}.related-box .related-title{font-size:13px}.related-box .related-link{font-size:13px}@media(max-width:560px){.breadcrumbs{font-size:9px;gap:5px}.breadcrumbs a,.breadcrumbs .breadcrumb-current{font-size:9px}.ad-slot.top.is-empty{min-height:54px;margin-bottom:22px}}


/* Media X 0.8.0: mobile layout, horizontal navigation and balanced top spacing */
html,body{max-width:100%;overflow-x:hidden}
.main-nav{width:100%;overflow:hidden}
.main-nav > .container{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain}
.main-nav > .container::-webkit-scrollbar{display:none}
.main-nav > .container > ul{width:max-content;min-width:max-content;flex-wrap:nowrap}
.main-nav li{flex:0 0 auto}

/* Keep the content comfortably separated from the header when the top ad is disabled. */
.ad-slot.top.is-empty{min-height:0;height:1px;margin-top:0;margin-bottom:32px;background:transparent;color:transparent}

.custom-logo-link{display:flex;align-items:center;min-width:0;max-width:100%}
.custom-logo{display:block;max-width:100%;height:auto;width:auto}

@media(max-width:800px){
  .header-top{height:62px;gap:12px}
  .menu-toggle{flex:0 0 30px;width:30px;height:38px;padding:0;justify-content:center;font-size:22px}
  .site-branding{min-width:0;flex:1}
  .site-logo,.custom-logo{max-height:44px;max-width:min(235px,72vw)}
  .rss-link{flex:0 0 auto}
  .main-nav li a{font-size:11px;padding:10px 13px}
}

@media(max-width:560px){
  .container{width:calc(100% - (var(--mx-mobile-gutter) * 2));max-width:none}
  .header-top{height:60px;gap:10px}
  .menu-toggle{flex-basis:30px;width:30px;font-size:21px}
  .site-logo,.custom-logo{max-height:40px;max-width:min(235px,calc(100vw - 125px))}
  .rss-link{font-size:17px}
  .main-nav > .container{width:100%;margin:0;padding:0 8px}
  .main-nav > .container > ul{min-width:max-content}
  .main-nav li a{font-size:12px;padding:10px 13px}
  .ad-slot.top.is-empty{height:1px;margin-bottom:26px}
}


/* Media X 0.8.2: incremental homepage polish from stable 0.8.0 baseline */
.recommended-controls{position:absolute;top:6px;right:7px;display:flex;gap:5px;z-index:5}
.recommended-button{width:25px;height:25px;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:#777;cursor:pointer;display:grid;place-items:center;padding:0;line-height:1}
.recommended-button:hover{color:var(--mx-red)}
@media(max-width:560px){
  .tag-strip{gap:8px;padding-bottom:16px}
  .tag-strip-label{font-size:13px}
  .tag-strip-list{gap:12px}
  .tag-strip-list a{font-size:11px}
  .tag-strip-button{width:23px;height:23px}
  .recommended-grid{gap:8px}
  .rec-card{flex-basis:calc((100% - 16px)/3)}
  .rec-card img{height:85px}
  .rec-card h3{font-size:9px}
  .latest-item{grid-template-columns:105px minmax(0,1fr)}
  .latest-item img{width:105px;height:75px}
  .latest-title{font-size:11px}
}
@media(min-width:561px){.latest-item{grid-template-columns:155px minmax(0,1fr)}}


/* Media X 0.8.4: ad slot modes + core WordPress templates */
.ad-slot{width:100%;}
.media-x-ad-image{display:block;width:auto;max-width:100%;height:auto;max-height:none;margin:0 auto;object-fit:contain}
.below-article-ad{margin-top:22px;margin-bottom:24px;min-height:90px}
.below-article-ad.is-empty{min-height:0;height:1px;margin:0;background:transparent;color:transparent}
.page-content,.archive-header{min-width:0}
.archive-description{font-size:13px;color:#777;margin:-2px 0 18px}
.archive-description p{margin:0 0 10px}
@media(max-width:560px){.media-x-ad-image{max-width:100%;height:auto}.below-article-ad{margin-top:18px;margin-bottom:20px}}


/* Media X 0.8.5: primary-menu dropdown visibility and click support. */
@media (min-width: 561px){
  .main-nav{overflow:visible;position:relative;z-index:20}
  .main-nav > .container{overflow:visible;position:relative}
  .main-nav > .container > ul{overflow:visible}
  .main-nav li{position:relative}
  .main-nav .sub-menu{display:none!important;visibility:hidden;opacity:0;pointer-events:none;position:absolute;top:100%;left:0;z-index:9999;min-width:190px;margin:0;padding:4px 0;list-style:none;flex-direction:column!important;overflow:visible!important;background:#fff;color:#333;box-shadow:0 8px 24px rgba(0,0,0,.16);border-radius:0 0 6px 6px}
  .main-nav li:hover>.sub-menu,
  .main-nav li:focus-within>.sub-menu,
  .main-nav li.is-open>.sub-menu{display:flex!important;visibility:visible;opacity:1;pointer-events:auto}
}
