/*
Theme Name: Trendora Magazine
Theme URI: https://example.com/trendora
Author: Trendora
Description: A fast, responsive magazine and blog theme with a trending ticker, hero grid, popular posts, category blocks, dark mode, reading progress, share buttons, related posts, a working contact form, newsletter sign-up and an Elementor-ready full-width template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendora
Tags: blog, news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, sticky-post
*/

:root{--tm-accent:#E4145B;--tm-ink:#0E1116;--tm-ink-2:#363C48;--tm-muted:#6B7280;--tm-line:#E6E8EF;--tm-bg:#FFFFFF;--tm-soft:#F4F5F9;--tm-card:#FFFFFF;--tm-top:#0E1116;--tm-radius:14px;--tm-fh:'Epilogue',system-ui,sans-serif;--tm-fb:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;--tm-fs:'Source Serif 4',Georgia,serif;--tm-shadow:0 12px 32px -14px rgba(14,17,22,.22);--tm-w:1240px}
html[data-theme="dark"]{--tm-ink:#F3F4F8;--tm-ink-2:#C9CDD8;--tm-muted:#8E95A6;--tm-line:#232833;--tm-bg:#0C0E13;--tm-soft:#141821;--tm-card:#12151D;--tm-top:#06070A;--tm-shadow:0 12px 32px -14px rgba(0,0,0,.7);color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--tm-bg);color:var(--tm-ink-2);font-family:var(--tm-fb);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased;transition:background-color .3s,color .3s}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color .2s}
a:hover{color:var(--tm-accent)}
h1,h2,h3,h4,h5,h6{font-family:var(--tm-fh);color:var(--tm-ink);line-height:1.2;margin:0 0 .5em;font-weight:800;letter-spacing:-.02em}
p{margin:0 0 1em}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--tm-accent);outline-offset:2px}
.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!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus,.skip-link:focus{background:var(--tm-accent);color:#fff;clip:auto!important;clip-path:none;display:block;height:auto;left:10px;top:10px;padding:12px 20px;width:auto;z-index:100000;border-radius:8px}
.tm-container{width:100%;max-width:var(--tm-w);margin:0 auto;padding:0 20px}
.tm-icon{width:18px;height:18px;flex-shrink:0}
.tm-icon.stroke{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-icon.fill{fill:currentColor}

/* Buttons */
.tm-btn,.comment-form .submit,.tm-content input[type=submit],.wpcf7-submit,.tm-search-form button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:10px;background:var(--tm-accent);color:#fff;font-weight:700;font-size:15px;border:0;cursor:pointer;transition:transform .2s,box-shadow .2s,filter .2s;line-height:1.2;text-decoration:none}
.tm-btn:hover,.comment-form .submit:hover,.tm-content input[type=submit]:hover,.wpcf7-submit:hover,.tm-search-form button:hover{color:#fff;transform:translateY(-2px);box-shadow:0 10px 24px -10px var(--tm-accent);filter:brightness(1.05)}
.tm-btn-outline{background:transparent;border:1.5px solid var(--tm-line);color:var(--tm-ink)}
.tm-btn-outline:hover{border-color:var(--tm-accent);color:var(--tm-accent);box-shadow:none}
.tm-icon-btn{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--tm-line);background:transparent;color:var(--tm-ink);cursor:pointer;transition:border-color .2s,color .2s;padding:0}
.tm-icon-btn:hover{border-color:var(--tm-accent);color:var(--tm-accent)}

/* Forms */
input[type=text],input[type=email],input[type=url],input[type=password],input[type=search],input[type=tel],input[type=number],textarea,select{width:100%;padding:13px 16px;border:1px solid var(--tm-line);border-radius:10px;background:var(--tm-bg);color:var(--tm-ink);outline:0;transition:border-color .2s,box-shadow .2s;font-size:15px}
input:focus,textarea:focus,select:focus{border-color:var(--tm-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--tm-accent) 15%,transparent)}
textarea{min-height:150px;resize:vertical}
::placeholder{color:var(--tm-muted);opacity:1}
.tm-search-form{display:flex;gap:8px}
.tm-search-form input[type=search]{flex:1;min-width:0}
.tm-search-form button{padding:0 16px;flex-shrink:0}
.tm-search-form button .tm-icon{width:20px;height:20px}

/* Top bar */
.tm-topbar{background:var(--tm-top);color:#C4C9D4;font-size:13px}
.tm-topbar .tm-container{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:40px}
.tm-topbar-left{display:flex;align-items:center;gap:20px;min-width:0}
.tm-date{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.tm-date .tm-icon{width:14px;height:14px}
.tm-top-menu{list-style:none;margin:0;padding:0;display:flex;gap:16px;flex-wrap:wrap}
.tm-top-menu a:hover{color:#fff}
.tm-social{display:flex;gap:4px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.tm-social a{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:inherit;transition:background .2s,color .2s}
.tm-social a:hover{background:var(--tm-accent);color:#fff}
.tm-social .tm-icon{width:15px;height:15px}

/* Header */
.tm-header{position:sticky;top:0;z-index:50;background:var(--tm-bg);border-bottom:1px solid var(--tm-line);transition:box-shadow .3s,background-color .3s}
.admin-bar .tm-header{top:32px}
.tm-header.is-stuck{box-shadow:var(--tm-shadow)}
.tm-header-in{display:flex;align-items:center;gap:24px;min-height:76px}
.tm-brand{flex-shrink:0;margin:0;line-height:1}
.tm-brand .custom-logo{max-height:50px;width:auto}
.tm-site-title{font-family:var(--tm-fh);font-weight:800;font-size:28px;letter-spacing:-.045em;color:var(--tm-ink);line-height:1}
.tm-site-title i{font-style:normal;color:var(--tm-accent)}
.tm-site-title:hover{color:var(--tm-ink)}
.tm-nav{margin-left:auto}
.tm-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:2px}
.tm-menu li{position:relative}
.tm-menu>li>a{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:10px 13px;font-weight:600;font-size:15px;color:var(--tm-ink);border-radius:8px}
.tm-menu>li>a:hover,.tm-menu>li.current-menu-item>a,.tm-menu>li.current-menu-ancestor>a,.tm-menu>li.current-menu-parent>a,.tm-menu>li.current-cat>a{color:var(--tm-accent)}
.tm-menu .menu-item-has-children>a::after{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translate(-2px,-2px)}
.tm-menu .sub-menu{position:absolute;top:100%;left:0;min-width:230px;list-style:none;margin:0;padding:8px;background:var(--tm-card);border:1px solid var(--tm-line);border-radius:12px;box-shadow:var(--tm-shadow);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s;z-index:10}
.tm-menu li:hover>.sub-menu,.tm-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.tm-menu .sub-menu .sub-menu{top:-9px;left:100%}
.tm-menu .sub-menu a{display:block;padding:9px 12px;border-radius:8px;font-size:14px;font-weight:500;color:var(--tm-ink-2)}
.tm-menu .sub-menu a:hover{background:var(--tm-soft);color:var(--tm-accent)}
.tm-sub-toggle,.tm-nav-close{display:none}
.tm-header-actions{display:flex;align-items:center;gap:8px}
.tm-header-actions .tm-icon{width:19px;height:19px}
.tm-theme-toggle .tm-sun{display:none}
html[data-theme="dark"] .tm-theme-toggle .tm-sun{display:block}
html[data-theme="dark"] .tm-theme-toggle .tm-moon{display:none}
.tm-burger{display:none!important}
.tm-overlay{position:fixed;inset:0;background:rgba(5,7,12,.55);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;z-index:90}

/* Search overlay */
.tm-search-overlay{position:fixed;inset:0;z-index:200;background:rgba(8,10,15,.94);backdrop-filter:blur(6px);display:flex;align-items:flex-start;justify-content:center;padding:18vh 20px 20px;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.tm-search-open .tm-search-overlay{opacity:1;visibility:visible}
.tm-search-inner{width:100%;max-width:720px;text-align:center}
.tm-search-overlay .tm-search-form input[type=search]{font-size:22px;padding:18px 22px;background:#fff;color:#0E1116;border:0}
.tm-search-overlay .tm-search-form button{padding:0 22px}
.tm-search-overlay p{color:#8E95A6;margin-top:16px;font-size:14px}
.tm-search-close{position:absolute;top:24px;right:24px;color:#fff;border-color:rgba(255,255,255,.2)}

/* Ticker */
.tm-ticker{border-bottom:1px solid var(--tm-line)}
.tm-ticker .tm-container{display:flex;align-items:center;gap:16px;min-height:52px}
.tm-ticker-label{flex-shrink:0;display:inline-flex;align-items:center;gap:8px;background:var(--tm-accent);color:#fff;font-size:13px;font-weight:700;padding:6px 12px;border-radius:8px}
.tm-ticker-label i{width:7px;height:7px;border-radius:50%;background:#fff;animation:tmPulse 1.4s infinite}
@keyframes tmPulse{50%{opacity:.3}}
.tm-ticker-track{overflow:hidden;flex:1;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.tm-ticker-list{display:flex;width:max-content;list-style:none;margin:0;padding:0;animation:tmTicker 45s linear infinite}
.tm-ticker-track:hover .tm-ticker-list,.tm-ticker-track:focus-within .tm-ticker-list{animation-play-state:paused}
.tm-ticker-list li{padding-right:40px}
.tm-ticker-list a{font-size:14px;font-weight:600;color:var(--tm-ink);white-space:nowrap;display:flex;align-items:center;gap:10px}
.tm-ticker-list a::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--tm-accent)}
.tm-ticker-list a:hover{color:var(--tm-accent)}
@keyframes tmTicker{to{transform:translateX(-50%)}}

/* Sections */
.tm-section{padding:44px 0}
.tm-band{background:var(--tm-soft);padding:56px 0;margin:20px 0}
.tm-sec-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px;padding-bottom:14px;border-bottom:2px solid var(--tm-line);position:relative}
.tm-sec-head::after{content:"";position:absolute;left:0;bottom:-2px;width:64px;height:2px;background:var(--c,var(--tm-accent))}
.tm-sec-title{font-size:24px;margin:0;display:flex;align-items:center;gap:10px}
.tm-sec-title .tm-icon{width:22px;height:22px;color:var(--c,var(--tm-accent))}
.tm-sec-title a{color:var(--tm-ink)}
.tm-sec-title a:hover{color:var(--c,var(--tm-accent))}
.tm-sec-link{font-size:14px;font-weight:700;color:var(--c,var(--tm-accent));display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.tm-sec-link .tm-icon{width:15px;height:15px;transition:transform .2s}
.tm-sec-link:hover{color:var(--c,var(--tm-accent))}
.tm-sec-link:hover .tm-icon{transform:translateX(3px)}
.tm-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.tm-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.tm-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 28px}
.tm-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;align-items:start}
.tm-center{text-align:center;margin-top:36px}

/* Hero */
.tm-hero{padding:28px 0 16px}
.tm-hero-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,255px);gap:14px}
.tm-hero-grid>:first-child{grid-column:span 2;grid-row:span 2}

/* Badge & meta */
.tm-badge{display:inline-block;padding:5px 10px;border-radius:6px;background:var(--c,var(--tm-accent));color:#fff;font-size:12px;font-weight:700;line-height:1.2;position:relative;z-index:2}
.tm-badge:hover{color:#fff;filter:brightness(1.12)}
.tm-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:13px;color:var(--tm-muted)}
.tm-meta>span{display:inline-flex;align-items:center;gap:6px}
.tm-meta .tm-icon{width:14px;height:14px}
.tm-meta .avatar{width:26px;height:26px;border-radius:50%}
.tm-meta a{color:var(--tm-ink);font-weight:600;position:relative;z-index:2}
.tm-meta a:hover{color:var(--tm-accent)}

/* Thumbs */
.tm-thumb{position:relative;overflow:hidden;background:var(--tm-soft);display:block}
.tm-thumb img,.tm-ph{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.tm-ph{display:grid;place-items:center;background:linear-gradient(135deg,var(--c,var(--tm-accent)),#1E1B4B);color:rgba(255,255,255,.92);font-family:var(--tm-fh);font-size:clamp(32px,5vw,64px);font-weight:800}

/* Card titles with animated underline */
.tm-card-title{margin:0;line-height:1.35}
.tm-card-title a{background-image:linear-gradient(currentColor,currentColor);background-size:0 2px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .35s,color .2s}
.tm-card-title a:hover{background-size:100% 2px}

/* Grid card */
.tm-card{display:flex;flex-direction:column;gap:14px;position:relative;min-width:0}
.tm-card .tm-thumb{border-radius:var(--tm-radius);aspect-ratio:16/10}
.tm-card .tm-thumb>a:not(.tm-badge){display:block;height:100%}
.tm-card .tm-badge{position:absolute;top:12px;left:12px}
.tm-card:hover .tm-thumb img,.tm-card:hover .tm-ph{transform:scale(1.05)}
.tm-card-body{display:flex;flex-direction:column;gap:10px}
.tm-card .tm-card-title{font-size:19px}
.tm-excerpt{font-size:15px;color:var(--tm-muted);margin:0}

/* Overlay card */
.tm-card-overlay{position:relative;border-radius:var(--tm-radius);overflow:hidden;background:#111;isolation:isolate;display:flex;align-items:flex-end;min-height:250px}
.tm-card-overlay .tm-thumb{position:absolute;inset:0;z-index:-2}
.tm-card-overlay::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.88) 100%)}
.tm-card-overlay:hover .tm-thumb img,.tm-card-overlay:hover .tm-ph{transform:scale(1.05)}
.tm-card-overlay .tm-card-body{padding:22px;width:100%;gap:10px;align-items:flex-start}
.tm-card-overlay .tm-card-title{font-size:18px;color:#fff}
.tm-card-overlay.is-big .tm-card-body{padding:32px}
.tm-card-overlay.is-big .tm-card-title{font-size:clamp(24px,2.6vw,36px);line-height:1.2}
.tm-card-overlay .tm-card-title a{color:#fff}
.tm-card-overlay .tm-meta,.tm-card-overlay .tm-meta a{color:rgba(255,255,255,.85)}
.tm-stretch::after{content:"";position:absolute;inset:0;z-index:1}

/* List card */
.tm-card-list{display:grid;grid-template-columns:290px minmax(0,1fr);gap:26px;align-items:center;position:relative;padding-bottom:28px;border-bottom:1px solid var(--tm-line)}
.tm-card-list:last-child{border-bottom:0;padding-bottom:0}
.tm-card-list .tm-thumb{border-radius:var(--tm-radius);aspect-ratio:4/3}
.tm-card-list .tm-thumb>a:not(.tm-badge){display:block;height:100%}
.tm-card-list:hover .tm-thumb img,.tm-card-list:hover .tm-ph{transform:scale(1.05)}
.tm-card-list .tm-card-body{align-items:flex-start}
.tm-card-list .tm-card-title{font-size:23px}
.tm-posts-list{display:flex;flex-direction:column;gap:28px}

/* Mini card */
.tm-card-mini{display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px;align-items:center;position:relative}
.tm-card-mini .tm-thumb{aspect-ratio:1/1;border-radius:10px}
.tm-card-mini .tm-thumb .tm-ph{font-size:26px}
.tm-card-mini .tm-card-title{font-size:15px;line-height:1.4;margin-bottom:4px}
.tm-card-mini:hover .tm-thumb img{transform:scale(1.07)}
.tm-mini-list{display:flex;flex-direction:column;gap:16px;list-style:none;margin:0;padding:0}
.tm-popular{counter-reset:pop}
.tm-popular .tm-card-mini .tm-thumb::after{counter-increment:pop;content:counter(pop);position:absolute;top:6px;left:6px;width:24px;height:24px;border-radius:50%;background:var(--tm-accent);color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;border:2px solid var(--tm-card)}

/* Category columns */
.tm-cat-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}
.tm-cat-col .tm-card{margin-bottom:22px}
.tm-cat-col .tm-mini-list{padding-top:20px;border-top:1px solid var(--tm-line)}

/* Newsletter band */
.tm-newsletter{border-radius:24px;background:radial-gradient(circle at 90% 0%,color-mix(in srgb,var(--tm-accent) 45%,transparent),transparent 45%),#10131B;color:#fff;padding:56px;display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;border:1px solid rgba(255,255,255,.06)}
.tm-newsletter h2{color:#fff;font-size:clamp(26px,3vw,38px);margin-bottom:10px}
.tm-newsletter p{color:#AEB4C3;margin:0}
.tm-nl-form{display:flex;gap:10px;flex-wrap:wrap}
.tm-nl-form input[type=email]{flex:1;min-width:200px;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#fff}
.tm-nl-form input[type=email]::placeholder{color:#8E95A6}
.tm-nl-note{font-size:13px;color:#8E95A6;margin-top:10px!important}
.tm-notice{padding:12px 16px;border-radius:10px;font-size:14px;font-weight:600;margin-bottom:16px}
.tm-notice.ok{background:#DCFCE7;color:#166534}
.tm-notice.err{background:#FEE2E2;color:#991B1B}

/* Sidebar & widgets */
.tm-sidebar{display:flex;flex-direction:column;gap:28px;min-width:0}
.widget{background:var(--tm-card);border:1px solid var(--tm-line);border-radius:var(--tm-radius);padding:24px}
.widget-title,.widget .wp-block-heading{font-size:18px;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--tm-line);position:relative}
.widget-title::after{content:"";position:absolute;left:0;bottom:-1px;width:40px;height:2px;background:var(--tm-accent)}
.widget ul{list-style:none;margin:0;padding:0}
.widget>ul>li,.widget .wp-block-latest-posts li,.widget_categories li,.widget_archive li,.widget_pages li,.widget_meta li,.widget_recent_entries li,.widget_nav_menu li{padding:9px 0;border-bottom:1px dashed var(--tm-line);font-size:15px}
.widget li:last-child{border-bottom:0}
.widget_categories li,.widget_archive li{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.widget_categories .children{width:100%;padding-left:14px}
.tm-count{background:var(--tm-soft);padding:1px 10px;border-radius:20px;font-size:12px;font-weight:700;color:var(--tm-muted)}
.tagcloud a,.tm-tags a,.wp-block-tag-cloud a{display:inline-block;padding:6px 12px;border-radius:8px;background:var(--tm-soft);font-size:13px!important;font-weight:600;margin:0 6px 8px 0;color:var(--tm-ink-2)}
.tagcloud a:hover,.tm-tags a:hover,.wp-block-tag-cloud a:hover{background:var(--tm-accent);color:#fff}
.tm-widget-nl{background:#10131B;border-color:#10131B;color:#AEB4C3}
.tm-widget-nl .widget-title{color:#fff;border-color:rgba(255,255,255,.1)}
.tm-widget-nl .tm-nl-form{flex-direction:column}
.tm-widget-nl .tm-nl-form input[type=email]{min-width:0}

/* Block widgets */
.widget .wp-block-search__label{display:block;font-family:var(--tm-fh);font-weight:800;color:var(--tm-ink);font-size:18px;margin-bottom:12px}
.widget .wp-block-search__inside-wrapper{display:flex;gap:8px}
.widget .wp-block-search__input{flex:1;min-width:0}
.widget .wp-block-search__button{background:var(--tm-accent);color:#fff;border:0;border-radius:10px;padding:0 16px;font-weight:700;cursor:pointer;margin:0}
.widget .wp-block-latest-comments{padding:0;margin:0}
.widget .wp-block-latest-comments__comment{font-size:14px;margin:0;padding:9px 0;border-bottom:1px dashed var(--tm-line);line-height:1.5}
.widget .wp-block-latest-posts__post-title{font-weight:600;color:var(--tm-ink)}
.widget .wp-block-group__inner-container>*:last-child{margin-bottom:0}

/* Page head */
.tm-page-head{padding:48px 0 40px;background:var(--tm-soft);border-bottom:1px solid var(--tm-line);margin-bottom:44px}
.tm-page-head h1{font-size:clamp(30px,4vw,48px);margin:12px 0 10px}
.tm-page-head p,.tm-archive-desc{max-width:680px;color:var(--tm-muted);margin:0}
.tm-page-head .tm-search-form{max-width:560px;margin-top:20px}
.tm-archive-count{display:inline-block;margin-top:14px;font-size:14px;font-weight:600;color:var(--tm-ink)}
.tm-author-head{display:flex;gap:22px;align-items:center}
.tm-author-head .avatar{width:96px;height:96px;border-radius:50%;flex-shrink:0}
.tm-breadcrumbs{font-size:13px;color:var(--tm-muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tm-breadcrumbs a:hover{color:var(--tm-accent)}
.tm-breadcrumbs [aria-current]{color:var(--tm-ink);font-weight:600}
.tm-blog-grid>.tm-card-overlay:first-child{grid-column:1/-1;min-height:430px}

/* Single */
.tm-single-head{padding:40px 0 32px}
.tm-single-head-in{max-width:880px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.tm-single-head .tm-breadcrumbs{justify-content:center}
.tm-single-title{font-size:clamp(30px,4.6vw,52px);line-height:1.12;margin:0}
.tm-single-excerpt{font-size:19px;color:var(--tm-muted);margin:0;max-width:720px}
.tm-single-head .tm-meta{justify-content:center;gap:8px 20px}
.tm-single-thumb{border-radius:20px;overflow:hidden;margin:0 0 44px}
.tm-single-thumb img{width:100%;max-height:640px;object-fit:cover}
.tm-single-thumb figcaption{font-size:13px;color:var(--tm-muted);text-align:center;padding:10px}
.tm-article{min-width:0}
.tm-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tm-share-label{font-weight:700;font-size:14px;color:var(--tm-ink);margin-right:4px}
.tm-share a,.tm-share button{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--tm-soft);color:var(--tm-ink);border:0;cursor:pointer;transition:background .2s,color .2s,transform .2s;padding:0}
.tm-share a:hover,.tm-share button:hover{background:var(--c,var(--tm-accent));color:#fff;transform:translateY(-2px)}
.tm-share .tm-icon{width:17px;height:17px}
.tm-copy-link.copied{background:#16A34A;color:#fff}
.tm-share-top{margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--tm-line)}

/* Post content typography */
.tm-content{font-family:var(--tm-fs);font-size:19px;line-height:1.8;color:var(--tm-ink-2);overflow-wrap:break-word}
.tm-content>*{margin-top:0;margin-bottom:1.35em}
.tm-content h1,.tm-content h2,.tm-content h3,.tm-content h4,.tm-content h5,.tm-content h6{font-family:var(--tm-fh);margin:1.7em 0 .6em;line-height:1.25}
.tm-content h2{font-size:30px}.tm-content h3{font-size:24px}.tm-content h4{font-size:20px}
.tm-content a{color:var(--tm-accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.tm-content ul,.tm-content ol{padding-left:1.3em}
.tm-content li{margin-bottom:.5em}
.tm-content li::marker{color:var(--tm-accent)}
.tm-content blockquote,.tm-content .wp-block-quote{margin:1.8em 0;padding:6px 0 6px 26px;border-left:4px solid var(--tm-accent);font-size:22px;font-style:italic;color:var(--tm-ink)}
.tm-content blockquote p:last-of-type{margin-bottom:0}
.tm-content blockquote cite{display:block;font-size:14px;font-style:normal;color:var(--tm-muted);margin-top:10px;font-family:var(--tm-fb)}
.tm-content .wp-block-pullquote{border-top:4px solid var(--tm-accent);border-bottom:4px solid var(--tm-accent);padding:30px 0;text-align:center}
.tm-content .wp-block-pullquote blockquote{border:0;padding:0;margin:0}
.tm-content img{border-radius:12px}
.tm-content figure{margin-left:0;margin-right:0}
.tm-content figcaption,.wp-caption-text,.gallery-caption{font-family:var(--tm-fb);font-size:14px;color:var(--tm-muted);text-align:center;margin-top:10px}
.tm-content pre{background:var(--tm-soft);padding:20px;border-radius:12px;overflow-x:auto;font-size:15px;line-height:1.6}
.tm-content code{font-size:.85em;background:var(--tm-soft);padding:2px 6px;border-radius:5px}
.tm-content pre code{padding:0;background:none}
.tm-content table{width:100%;border-collapse:collapse;font-family:var(--tm-fb);font-size:15px;display:block;overflow-x:auto}
.tm-content th,.tm-content td{border:1px solid var(--tm-line);padding:10px 14px;text-align:left}
.tm-content th{background:var(--tm-soft);color:var(--tm-ink)}
.tm-content hr{border:0;height:1px;background:var(--tm-line);margin:2.4em 0}
.tm-content iframe,.tm-content video{max-width:100%}
.tm-content .wp-block-button__link{background:var(--tm-accent);color:#fff;border-radius:10px;text-decoration:none;padding:12px 24px;font-family:var(--tm-fb);font-weight:700;font-size:16px}
.tm-content .wp-block-image,.tm-content .wp-block-embed{margin-bottom:1.6em}
.alignleft{float:left;margin:.4em 1.6em 1em 0}
.alignright{float:right;margin:.4em 0 1em 1.6em}
.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}
.wp-caption{max-width:100%}
.sticky{position:relative}
.bypostauthor>.comment-body .fn::after{content:"Author";margin-left:8px;font-size:11px;font-weight:700;background:var(--tm-accent);color:#fff;padding:2px 7px;border-radius:5px;font-style:normal}
.tm-page-links{clear:both;font-family:var(--tm-fb);font-weight:700;display:flex;gap:8px;align-items:center}
.tm-page-links a,.tm-page-links>span:not(:first-child){display:grid;place-items:center;min-width:36px;height:36px;border-radius:8px;border:1px solid var(--tm-line);text-decoration:none}

.tm-post-footer{margin-top:40px;padding-top:28px;border-top:1px solid var(--tm-line);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px;clear:both}
.tm-tags{display:flex;flex-wrap:wrap;align-items:center}
.tm-tags-label{font-weight:700;font-size:14px;color:var(--tm-ink);margin:0 10px 8px 0}
.tm-author-box{display:flex;gap:22px;padding:28px;border-radius:var(--tm-radius);background:var(--tm-soft);margin-top:40px;align-items:flex-start}
.tm-author-box .avatar{width:88px;height:88px;border-radius:50%;flex-shrink:0}
.tm-author-box small{display:block;color:var(--tm-muted);font-size:13px;font-weight:600;margin-bottom:2px}
.tm-author-box h3{font-size:21px;margin:0 0 8px}
.tm-author-box p{color:var(--tm-muted);margin:0 0 10px;font-size:15px}
.tm-author-box .tm-sec-link{font-size:14px}
.tm-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:40px}
.tm-post-nav a{display:block;padding:20px 22px;border:1px solid var(--tm-line);border-radius:var(--tm-radius);transition:border-color .2s,transform .2s;height:100%}
.tm-post-nav a:hover{border-color:var(--tm-accent);transform:translateY(-2px)}
.tm-post-nav small{display:block;color:var(--tm-muted);font-size:13px;margin-bottom:6px}
.tm-post-nav strong{font-family:var(--tm-fh);color:var(--tm-ink);font-size:16px;line-height:1.35;display:block}
.tm-post-nav .tm-next{text-align:right;grid-column:2}
.tm-related{margin-top:56px}
.tm-progress{position:fixed;top:0;left:0;height:3px;background:var(--tm-accent);width:0;z-index:300;transition:width .1s linear}
.admin-bar .tm-progress{top:32px}

/* Comments */
.tm-comments{margin-top:56px}
.tm-comments-title{margin-bottom:10px}
.comment-list,.comment-list .children{list-style:none;padding:0;margin:0}
.comment-list{margin-bottom:40px}
.comment-list .children{padding-left:40px}
.comment-body{position:relative;padding:22px 0 22px 72px;border-bottom:1px solid var(--tm-line)}
.comment-author .avatar{position:absolute;left:0;top:22px;width:56px;height:56px;border-radius:50%}
.comment-author .fn{font-weight:700;color:var(--tm-ink);font-style:normal}
.comment-author .says{display:none}
.comment-metadata{font-size:13px;color:var(--tm-muted);margin:2px 0 10px}
.comment-content p{margin-bottom:.8em}
.reply a{font-size:13px;font-weight:700;color:var(--tm-accent)}
.comment-respond{padding:30px;border-radius:var(--tm-radius);background:var(--tm-soft)}
.comment-reply-title{font-size:22px}
.comment-reply-title small{margin-left:10px;font-size:14px}
.comment-form p{margin:0 0 16px}
.comment-form label{display:block;font-weight:600;font-size:14px;margin-bottom:6px;color:var(--tm-ink)}
.comment-form-cookies-consent{display:flex;gap:10px;align-items:flex-start}
.comment-form-cookies-consent label{font-weight:400;margin:0}
.comment-notes,.logged-in-as{font-size:14px;color:var(--tm-muted)}

/* Pagination */
.navigation.pagination{margin-top:48px}
.nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.page-numbers{min-width:44px;height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--tm-line);font-weight:700;color:var(--tm-ink)}
.page-numbers.current,a.page-numbers:hover{background:var(--tm-accent);border-color:var(--tm-accent);color:#fff}
.page-numbers.dots{border:0}
.page-numbers .tm-icon{width:16px;height:16px}
.comment-navigation .nav-links{justify-content:space-between}

/* Pages & contact */
.tm-page-content{max-width:860px;margin:0 auto 20px}
.tm-contact{display:grid;grid-template-columns:1fr 1.45fr;gap:40px;align-items:start;padding-bottom:30px}
.tm-contact-cards{display:grid;gap:14px}
.tm-contact-card{display:flex;gap:16px;align-items:center;padding:20px;border:1px solid var(--tm-line);border-radius:var(--tm-radius);background:var(--tm-card);transition:border-color .2s}
a.tm-contact-card:hover{border-color:var(--tm-accent)}
.tm-contact-card i{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--tm-accent) 12%,transparent);color:var(--tm-accent);flex-shrink:0}
.tm-contact-card small{display:block;color:var(--tm-muted);font-size:13px}
.tm-contact-card strong{color:var(--tm-ink);word-break:break-word}
.tm-contact-social{padding:20px;border:1px solid var(--tm-line);border-radius:var(--tm-radius)}
.tm-contact-social h3{font-size:16px;margin-bottom:12px}
.tm-contact-social .tm-social a{background:var(--tm-soft);color:var(--tm-ink)}
.tm-contact-social .tm-social a:hover{background:var(--tm-accent);color:#fff}
.tm-contact-form{padding:34px;border:1px solid var(--tm-line);border-radius:18px;background:var(--tm-card)}
.tm-contact-form h2{font-size:26px;margin-bottom:6px}
.tm-contact-form>p{color:var(--tm-muted)}
.tm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}
.tm-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--tm-ink)}
.tm-full{grid-column:1/-1}
.tm-hp{position:absolute!important;left:-9999px!important}

/* Homepage bottom paragraph */
.tm-front-bottom{padding-top:10px}
.tm-front-bottom-in{max-width:860px;margin:0 auto;text-align:center;padding:36px 28px;border:1px solid var(--tm-line);border-radius:var(--tm-radius);background:var(--tm-card)}
.tm-front-bottom-in h2{font-size:clamp(24px,2.6vw,32px);margin-bottom:14px}
.tm-front-bottom-in p{color:var(--tm-muted);margin:0 0 1em}
.tm-front-bottom-in p:last-child{margin-bottom:0}
.tm-front-bottom-in a{color:var(--tm-accent);font-weight:600}

/* 404 & empty */
.tm-404{text-align:center;padding:70px 0 40px;max-width:640px;margin:0 auto}
.tm-404-num{font-family:var(--tm-fh);font-size:clamp(96px,16vw,180px);font-weight:800;line-height:1;letter-spacing:-.06em;background:linear-gradient(135deg,var(--tm-accent),#7C3AED);-webkit-background-clip:text;background-clip:text;color:transparent}
.tm-404 h1{font-size:clamp(26px,3vw,36px)}
.tm-404 p{color:var(--tm-muted)}
.tm-404 .tm-search-form{margin:26px 0 20px}
.tm-none{padding:40px;border:1px dashed var(--tm-line);border-radius:var(--tm-radius);text-align:center}
.tm-none .tm-search-form{max-width:480px;margin:18px auto 0}

/* Footer */
.tm-footer{background:#0A0C11;color:#9CA2B1;margin-top:60px;font-size:15px}
.tm-footer-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.4fr;gap:44px;padding:70px 0 50px}
.tm-footer h4{color:#fff;font-size:17px;margin-bottom:20px}
.tm-footer .tm-site-title{color:#fff;font-size:26px}
.tm-footer .custom-logo,.tm-footer-logo{max-height:50px;width:auto}
.tm-footer-about p{margin:18px 0 22px;max-width:340px}
.tm-footer ul{list-style:none;margin:0;padding:0}
.tm-footer-links li{margin-bottom:10px}
.tm-footer-links a{display:inline-flex;gap:8px;align-items:center}
.tm-footer a:hover{color:#fff}
.tm-footer .tm-social a{background:rgba(255,255,255,.06);color:#fff}
.tm-footer .tm-social a:hover{background:var(--tm-accent)}
.tm-footer .tm-card-mini .tm-card-title a{color:#E6E8EF}
.tm-footer .tm-card-mini .tm-meta{color:#8E95A6}
.tm-footer .tm-card-mini .tm-thumb{background:#1A1E28}
.tm-footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:22px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:14px}
.tm-footer-bottom p{margin:0}
.tm-footer-bottom .tm-footer-menu{display:flex;gap:18px;flex-wrap:wrap}
.tm-to-top{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border-radius:12px;background:var(--tm-accent);color:#fff;border:0;display:grid;place-items:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .3s,transform .3s,visibility .3s;z-index:60;box-shadow:0 10px 24px -8px var(--tm-accent)}
.tm-to-top.show{opacity:1;visibility:visible;transform:none}

/* Responsive */
@media (max-width:1180px){
.tm-header-btn{display:none!important}
.tm-menu>li>a{padding:10px 10px}
.tm-layout{grid-template-columns:minmax(0,1fr) 300px;gap:34px}
.tm-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-footer-top{grid-template-columns:1fr 1fr}
.tm-card-list{grid-template-columns:240px minmax(0,1fr)}
}
@media (max-width:1024px){
.tm-burger{display:grid!important}
.tm-header-btn{display:none!important}
.tm-nav{position:fixed;top:0;right:0;bottom:0;width:min(340px,86vw);background:var(--tm-bg);z-index:100;padding:76px 20px 30px;overflow-y:auto;transform:translateX(100%);transition:transform .35s cubic-bezier(.2,.8,.2,1);box-shadow:-20px 0 40px rgba(0,0,0,.2);margin:0}
.tm-menu-open .tm-nav{transform:none}
.tm-menu-open .tm-header{z-index:120}
.tm-menu-open .tm-overlay{opacity:1;visibility:visible}
.tm-menu-open{overflow:hidden}
.tm-nav-close{display:grid;position:absolute;top:18px;right:18px}
.tm-menu{flex-direction:column;align-items:stretch;gap:0}
.tm-menu>li>a{padding:14px 44px 14px 6px;border-bottom:1px solid var(--tm-line);border-radius:0;font-size:16px}
.tm-menu .menu-item-has-children>a::after{display:none}
.tm-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;display:none;padding:4px 0 8px 12px;background:transparent;min-width:0}
.tm-menu li.is-open>.sub-menu{display:block}
.tm-sub-toggle{display:grid;place-items:center;position:absolute;right:0;top:7px;width:38px;height:38px;border-radius:8px;border:1px solid var(--tm-line);background:transparent;color:var(--tm-ink);cursor:pointer;transition:transform .25s}
.tm-menu li.is-open>.tm-sub-toggle{transform:rotate(180deg);color:var(--tm-accent)}
.tm-menu .sub-menu .tm-sub-toggle{top:2px}
.tm-cat-cols{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
.tm-hero-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto}
.tm-hero-grid>:first-child{grid-column:1/-1;grid-row:auto;min-height:420px}
.tm-layout{grid-template-columns:1fr}
.tm-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-newsletter{grid-template-columns:1fr;padding:40px 28px}
.tm-contact{grid-template-columns:1fr}
.tm-sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}
@media (max-width:782px){.admin-bar .tm-header,.admin-bar .tm-progress{top:46px}}
@media (max-width:600px){.admin-bar .tm-header{top:0}}
@media (max-width:640px){
body{font-size:15px}
.tm-container{padding:0 16px}
.tm-top-menu{display:none}
.tm-header-in{min-height:66px;gap:12px}
.tm-site-title{font-size:23px}
.tm-brand .custom-logo{max-height:40px}
.tm-header-actions{gap:6px}
.tm-icon-btn{width:40px;height:40px}
.tm-hero-grid{grid-template-columns:1fr}
.tm-hero-grid>*{min-height:240px}
.tm-hero-grid>:first-child{min-height:360px}
.tm-card-overlay.is-big .tm-card-body{padding:22px}
.tm-grid-4,.tm-grid-3,.tm-grid-2,.tm-cat-cols{grid-template-columns:1fr}
.tm-card-list{grid-template-columns:118px minmax(0,1fr);gap:14px;align-items:start;padding-bottom:20px}
.tm-card-list .tm-card-title{font-size:16px}
.tm-card-list .tm-excerpt,.tm-card-list .tm-badge{display:none}
.tm-card-list .tm-meta .tm-author{display:none}
.tm-posts-list{gap:20px}
.tm-content{font-size:17.5px}
.tm-content h2{font-size:25px}.tm-content h3{font-size:21px}
.tm-post-nav{grid-template-columns:1fr}
.tm-post-nav .tm-next{grid-column:auto}
.tm-author-box,.tm-author-head{flex-direction:column}
.tm-footer-top{grid-template-columns:1fr;gap:34px}
.tm-form-grid{grid-template-columns:1fr}
.tm-contact-form{padding:24px}
.tm-blog-grid>.tm-card-overlay:first-child{min-height:340px}
.tm-single-thumb{border-radius:14px}
.comment-list .children{padding-left:16px}
.alignleft,.alignright{float:none;margin:0 0 1em}
.tm-ticker-label span{display:none}
.tm-topbar .tm-social{flex-wrap:nowrap}
.tm-topbar .tm-social a{width:28px;height:28px}
.tm-date{font-size:12px}
.tm-hscroll{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;padding-bottom:10px;margin-right:-16px;padding-right:16px;scrollbar-width:none}
.tm-hscroll::-webkit-scrollbar{display:none}
.tm-hscroll>*{scroll-snap-align:start}
.tm-hero-grid>:not(:first-child){min-height:210px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
