/*
Theme Name: Dynamic Magazine
Description: A general-purpose editorial magazine theme for any WordPress site. It reads your categories, posts and authors automatically, header, colors, fonts and homepage layout are controlled from Appearance > Customize > Magazine Theme Options, and the footer plus extra sections are built with widgets in Appearance > Widgets.
Version: 1.2.2
Requires at least: 5.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: egm
*/

/* ---------- Base (colors/fonts come from Customizer via --egm-* variables) ---------- */
:root{
	--egm-accent:#b91c1c;--egm-bg:#fbf9f6;--egm-text:#1c1c1e;--egm-muted:#5c5852;--egm-border:#e2dfda;
	--egm-dark:#121316;--egm-dark-text:#e5e7eb;
	--egm-heading:'Bodoni Moda',Georgia,serif;
	--egm-body:'Plus Jakarta Sans',system-ui,sans-serif;
	--egm-base:18px;--egm-container:1280px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--egm-bg);color:var(--egm-text);font-family:var(--egm-body);font-size:var(--egm-base);line-height:1.7;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
img,video,iframe{max-width:100%}
img{height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--egm-accent)}
:focus-visible{outline:2px solid var(--egm-accent);outline-offset:3px}
h1,h2,h3,h4,h5,h6{font-family:var(--egm-heading);font-weight:600;line-height:1.2;margin:0 0 .5em;color:var(--egm-text)}
p{margin:0 0 1em}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.skip-link:focus{clip:auto;width:auto;height:auto;background:#fff;padding:12px 18px;z-index:100000;top:8px;left:8px}
.egm-container{width:100%;max-width:var(--egm-container);margin:0 auto;padding:0 24px}
.egm-narrow{max-width:740px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
.egm-main{min-height:50vh;padding-bottom:40px}

/* ---------- Top bar ---------- */
.egm-topbar{background:var(--egm-dark);color:var(--egm-dark-text);font-size:.78rem;letter-spacing:.04em}
.egm-topbar__in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;padding-top:9px;padding-bottom:9px}
.egm-topbar__left,.egm-topbar__right{display:flex;flex-wrap:wrap;gap:4px 20px;align-items:center}
.egm-topbar__label{color:#f87171;font-weight:700;text-transform:uppercase;letter-spacing:.12em}
.egm-clock b{font-weight:600;font-variant-numeric:tabular-nums;margin-left:4px}
.egm-topbar__right{opacity:.8}

/* ---------- Masthead & menu ---------- */
.egm-masthead{text-align:center;padding:34px 0 22px}
.egm-title{font-family:var(--egm-heading);font-size:clamp(2.1rem,6vw,4.2rem);font-weight:600;line-height:1.05;margin:0;letter-spacing:-.01em;text-transform:uppercase}
.egm-logo img{margin:0 auto;max-height:90px;width:auto}
.egm-tagline{margin:12px 0 0;color:var(--egm-muted);font-size:.85rem;letter-spacing:.14em;text-transform:uppercase}
.egm-nav{background:var(--egm-bg);border-top:1px solid var(--egm-border);border-bottom:1px solid var(--egm-border);z-index:50}
.egm-nav.is-sticky{position:sticky;top:0}
.admin-bar .egm-nav.is-sticky{top:32px}
.egm-nav__in{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 28px}
.egm-menu,.egm-menu ul{list-style:none;margin:0;padding:0}
.egm-menu{display:flex;flex-wrap:wrap;justify-content:center;gap:0 6px}
.egm-menu a{display:block;padding:15px 12px;font-size:.82rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.egm-menu li{position:relative}
.egm-menu .current-menu-item>a,.egm-menu .current-cat>a{color:var(--egm-accent)}
.egm-menu ul{display:none;position:absolute;left:0;top:100%;min-width:220px;background:var(--egm-bg);border:1px solid var(--egm-border);box-shadow:0 8px 24px rgba(0,0,0,.08);z-index:20}
.egm-menu li:hover>ul,.egm-menu li:focus-within>ul{display:block}
.egm-menu ul a{padding:11px 16px;text-transform:none;letter-spacing:0;font-size:.95rem;font-weight:500}
.egm-search input{font:inherit;font-size:.9rem;padding:8px 14px;border:1px solid var(--egm-border);background:#fff;color:var(--egm-text);width:170px}
.egm-burger{display:none;font:inherit;font-weight:600;background:none;border:1px solid var(--egm-border);padding:8px 16px;cursor:pointer;color:var(--egm-text)}

/* ---------- Shared bits ---------- */
.egm-label{margin:0 0 .8em;font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--egm-muted)}
.egm-kicker{display:inline-block;margin-bottom:.5em;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--egm-accent)}
.egm-kicker:hover{text-decoration:underline}
.egm-meta{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:.85rem;color:var(--egm-muted)}
.egm-meta a{color:var(--egm-text);font-weight:600}
.egm-meta a:hover{color:var(--egm-accent)}
.egm-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(135deg,var(--egm-dark),#3a3a42);color:rgba(255,255,255,.85);font-family:var(--egm-heading);font-size:4rem}
.egm-btn{display:inline-block;background:var(--egm-text);color:var(--egm-bg);padding:12px 24px;font-weight:600;font-size:.95rem}
.egm-btn:hover{background:var(--egm-accent);color:#fff}
.egm-empty{padding:40px 0;color:var(--egm-muted)}

/* ---------- Grid & cards ---------- */
.egm-grid{display:grid;gap:36px 28px}
.egm-grid--4{grid-template-columns:repeat(4,1fr)}
.egm-grid--3{grid-template-columns:repeat(3,1fr)}
.egm-card{display:flex;flex-direction:column}
.egm-card__media{display:block;aspect-ratio:16/11;overflow:hidden;background:#e9e6e1;margin-bottom:16px}
.egm-card__media img{width:100%;height:100%;object-fit:cover}
.egm-card__title{font-size:1.25rem;line-height:1.3;margin-bottom:.45em}
.egm-card__title a:hover{color:var(--egm-accent)}
.egm-card__excerpt{font-size:.95rem;color:var(--egm-muted);line-height:1.65;margin-bottom:.8em}

/* ---------- Home sections ---------- */
.egm-section{padding:44px 0;border-bottom:1px solid var(--egm-border)}
.egm-section:last-of-type{border-bottom:0}
.egm-section__head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:2px solid var(--egm-text);padding-bottom:12px;margin-bottom:30px}
.egm-section-title{font-size:clamp(1.5rem,3vw,2rem);margin:0}
.egm-more{font-size:.85rem;font-weight:600;color:var(--egm-muted);white-space:nowrap}

/* ---------- Hero ---------- */
.egm-hero{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:48px;padding:44px 0;border-bottom:1px solid var(--egm-border)}
.egm-hero__media{display:block;aspect-ratio:16/9;overflow:hidden;background:#e9e6e1;margin-bottom:22px}
.egm-hero__media img{width:100%;height:100%;object-fit:cover}
.egm-hero__title{font-size:clamp(1.9rem,4.2vw,3.1rem);line-height:1.15;margin-bottom:.45em}
.egm-hero__title a:hover{color:var(--egm-accent)}
.egm-hero__excerpt{font-size:1.1rem;line-height:1.75;color:var(--egm-muted);max-width:62ch}
.egm-hero__side{border-left:1px solid var(--egm-border);padding-left:40px;display:flex;flex-direction:column;gap:28px}
.egm-hero__side .egm-label{padding-bottom:10px;border-bottom:1px solid var(--egm-border);margin:0}
.egm-card--side .egm-card__title{font-size:1.15rem}

/* ---------- Archive header ---------- */
.egm-archive-head{padding:48px 0 30px;border-bottom:2px solid var(--egm-text);margin-bottom:40px}
.egm-archive-title{font-size:clamp(2rem,5vw,3.2rem);margin:0}
.egm-archive-desc{margin-top:14px;max-width:62ch;color:var(--egm-muted)}
.egm-author-head{display:flex;gap:24px;align-items:center}
.egm-author-head img,.egm-authorbox img,.egm-byline img{border-radius:50%}

/* ---------- Pagination ---------- */
.egm-pagination{margin-top:48px;display:flex;justify-content:center}
.egm-pagination .page-numbers{display:inline-block;padding:10px 16px;margin:0 3px;border:1px solid var(--egm-border);font-weight:600;font-size:.95rem;background:#fff}
.egm-pagination .current,.egm-pagination a.page-numbers:hover{background:var(--egm-text);color:var(--egm-bg);border-color:var(--egm-text)}

/* ---------- Single post (reading experience) ---------- */
.egm-single__head{padding-top:56px;text-align:left}
.egm-single__title{font-size:clamp(2rem,5vw,3.2rem);line-height:1.15;margin-bottom:.5em}
.egm-single__lead{font-size:1.2rem;line-height:1.7;color:var(--egm-muted)}
.egm-byline{display:flex;align-items:center;gap:14px;padding:16px 0;border-top:1px solid var(--egm-border);border-bottom:1px solid var(--egm-border);margin-top:22px}
.egm-single__figure{max-width:1000px;margin:36px auto;padding:0 24px}
.egm-single__figure figcaption{font-size:.85rem;color:var(--egm-muted);margin-top:10px}
.entry-content{font-size:1.08rem;line-height:1.9;padding-top:12px}
.entry-content>*{margin-top:0;margin-bottom:1.4em}
.entry-content h2{font-size:1.9rem;margin-top:2em}
.entry-content h3{font-size:1.5rem;margin-top:1.8em}
.entry-content h4{font-size:1.25rem;margin-top:1.6em}
.entry-content a{color:var(--egm-accent);text-decoration:underline;text-underline-offset:3px}
.entry-content a:hover{text-decoration-thickness:2px}
.entry-content ul,.entry-content ol{padding-left:1.4em}
.entry-content li{margin-bottom:.5em}
.entry-content blockquote{margin-left:0;margin-right:0;padding:6px 0 6px 24px;border-left:4px solid var(--egm-accent);font-family:var(--egm-heading);font-size:1.35rem;line-height:1.55}
.entry-content blockquote cite{display:block;margin-top:.6em;font-family:var(--egm-body);font-size:.9rem;font-style:normal;color:var(--egm-muted)}
.entry-content figure{margin-left:0;margin-right:0}
.entry-content figcaption,.wp-caption-text{font-size:.85rem;color:var(--egm-muted);margin-top:8px}
.entry-content img{margin:0 auto}
.entry-content table{width:100%;border-collapse:collapse;font-size:.95rem}
.entry-content th,.entry-content td{padding:10px 12px;border:1px solid var(--egm-border);text-align:left}
.entry-content pre,.entry-content code{background:#efece7;font-size:.9em}
.entry-content pre{padding:16px;overflow:auto}
.entry-content code{padding:2px 5px}
.entry-content hr{border:0;border-top:1px solid var(--egm-border);margin:2.4em 0}
.entry-content .alignwide{width:min(1000px,100vw - 48px);max-width:none;margin-left:50%;transform:translateX(-50%)}
.alignleft{float:left;margin:6px 24px 12px 0}
.alignright{float:right;margin:6px 0 12px 24px}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.egm-tags{font-size:.9rem;display:flex;flex-wrap:wrap;gap:8px}
.egm-tags a{border:1px solid var(--egm-border);padding:4px 12px;background:#fff}
.egm-tags a:hover{border-color:var(--egm-accent)}
.egm-authorbox{display:flex;gap:20px;align-items:flex-start;margin:40px 0;padding:26px;background:#fff;border:1px solid var(--egm-border)}
.egm-authorbox__name{font-size:1.4rem;margin-bottom:.3em}
.egm-authorbox p:last-child{margin:0;color:var(--egm-muted);font-size:.98rem}
.post-navigation .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}
.post-navigation a{display:block;padding:16px;border:1px solid var(--egm-border);background:#fff}
.post-navigation .nav-next{text-align:right;grid-column:2}
.post-navigation .egm-label{display:block;margin-bottom:4px}
.post-navigation span{font-family:var(--egm-heading);font-size:1.05rem}
.egm-related{margin-top:56px;padding:48px 0;border-top:1px solid var(--egm-border)}
.egm-related .egm-section-title{margin-bottom:28px}

/* ---------- Comments & forms ---------- */
.egm-comments{padding-top:20px;padding-bottom:30px}
.egm-comment-list{list-style:none;padding:0;margin:0 0 30px}
.egm-comment-list .comment-body{padding:20px 0;border-bottom:1px solid var(--egm-border)}
.egm-comment-list .children{list-style:none;padding-left:28px}
.comment-meta{font-size:.85rem;color:var(--egm-muted);margin-bottom:8px}
.comment-meta img{border-radius:50%;float:left;margin-right:12px}
input[type=text],input[type=email],input[type=url],input[type=search],textarea{font:inherit;width:100%;padding:12px 14px;border:1px solid var(--egm-border);background:#fff;color:var(--egm-text)}
.egm-nav .egm-search input{width:170px}
input[type=submit],button[type=submit]{font:inherit;font-weight:600;background:var(--egm-text);color:var(--egm-bg);border:0;padding:12px 26px;cursor:pointer}
input[type=submit]:hover{background:var(--egm-accent);color:#fff}
.egm-404{padding-top:70px;padding-bottom:70px}

/* ---------- Footer ---------- */
.egm-footer{position:relative;background:var(--egm-dark);color:var(--egm-dark-text);padding:72px 0 26px;margin-top:56px;border-top:4px solid var(--egm-accent)}
.egm-footer a{transition:color .2s}
.egm-footer a:hover{color:#fff;text-decoration:none}
.egm-footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:48px;padding-bottom:44px;border-bottom:1px solid rgba(255,255,255,.14)}
.egm-footer__grid.egm-footer__grid--widgets{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.egm-footer__grid--widgets.egm-cols-4{grid-template-columns:1.4fr 1fr 1fr 1fr}
.egm-footer__brand{font-family:var(--egm-heading);font-size:1.8rem;color:#fff;text-transform:uppercase;margin:0 0 .5em;letter-spacing:.02em}
.egm-footer__h,.egm-footer .widget-title,.egm-footer .wp-block-heading{position:relative;font-family:var(--egm-body);font-size:.82rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff;margin:0 0 1.4em;padding-bottom:12px}
.egm-footer__h::after,.egm-footer .widget-title::after,.egm-footer .wp-block-heading::after{content:"";position:absolute;left:0;bottom:0;width:34px;height:2px;background:var(--egm-accent)}
.egm-footer__text,.egm-footer .widget p{font-size:.95rem;line-height:1.85;opacity:.82;max-width:46ch}
.egm-footer__links,.egm-footer .widget ul,.egm-footer .wp-block-navigation__container,.egm-footer .wp-block-page-list,.egm-footer .wp-block-categories,.egm-footer .wp-block-latest-posts{list-style:none;margin:0;padding:0;font-size:.95rem}
.egm-footer__links li,.egm-footer .widget li{margin:0 0 .15em;padding:0}
.egm-footer__links a,.egm-footer .widget li>a{display:inline-block;padding:5px 0;opacity:.85;transition:opacity .2s,transform .2s,color .2s}
.egm-footer__links a::before,.egm-footer .widget li>a::before{content:"\203A";color:var(--egm-accent);font-weight:700;margin-right:9px;display:inline-block;transition:transform .2s}
.egm-footer__links a:hover,.egm-footer .widget li>a:hover{opacity:1;transform:translateX(3px)}
.egm-footer .widget{margin-bottom:28px}
.egm-footer .widget:last-child{margin-bottom:0}
.egm-footer .widget ul ul{margin-left:14px}
.egm-footer .wp-block-latest-posts__post-date,.egm-footer .post-date{display:block;font-size:.8rem;opacity:.6}
.egm-footer .widget input[type=search],.egm-footer .widget input[type=text],.egm-footer .widget input[type=email],.egm-footer .widget textarea{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:6px}
.egm-footer .widget input::placeholder{color:rgba(255,255,255,.5)}
.egm-footer .widget input[type=submit],.egm-footer .widget button[type=submit],.egm-footer .wp-block-button__link{background:var(--egm-accent);color:#fff;border-radius:6px;border:0}
.egm-footer .widget_search form{display:flex;gap:8px}
.egm-footer .widget_search label{flex:1}
.egm-footer .widget_search .search-submit{padding:12px 18px}
.egm-footer .widget_nav_menu li a,.egm-footer .widget_pages li a,.egm-footer .widget_categories li a{width:auto}
.egm-footer .wp-block-group,.egm-footer .wp-block-columns{margin:0}
.egm-footer .widget img{border-radius:6px}
.egm-social{list-style:none;display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:22px 0 0;font-size:.85rem}
.egm-social a{display:inline-block;padding:7px 16px;border:1px solid rgba(255,255,255,.25);border-radius:999px;font-weight:600;transition:background .2s,border-color .2s,color .2s}
.egm-footer .egm-social a:hover{background:var(--egm-accent);border-color:var(--egm-accent);color:#fff}
.egm-social--bar{justify-content:center;margin:32px 0 0}
.egm-footer__bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding-top:26px;font-size:.85rem;opacity:.7}
.egm-footer__bottom p{margin:0}
/* ---------- Footer: Important Pages (minimal) ---------- */
.egm-imp{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 32px;padding:22px 0;border-bottom:1px solid rgba(255,255,255,.14)}
.egm-imp__h.egm-footer__h{margin:0;padding:0;font-size:.72rem;letter-spacing:.18em;opacity:.55;font-weight:600}
.egm-imp__h.egm-footer__h::after{display:none}
.egm-imp__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 0;font-size:.9rem}
.egm-imp__list li{margin:0;padding:0}
.egm-imp__list li+li::before{content:"/";margin:0 14px;opacity:.28}
.egm-imp__list a{display:inline;padding:0;opacity:.8;transition:opacity .2s,color .2s}
.egm-imp__list a:hover,.egm-imp__list .current-menu-item>a{opacity:1;color:#fff;text-decoration:underline;text-decoration-color:var(--egm-accent);text-underline-offset:5px;text-decoration-thickness:2px}
@media (max-width:600px){.egm-imp{flex-direction:column;align-items:flex-start;gap:12px}.egm-imp__list li+li::before{margin:0 10px}}

.egm-top{position:fixed;right:22px;bottom:22px;width:46px;height:46px;border:0;border-radius:50%;background:var(--egm-accent);color:#fff;font-size:1.3rem;line-height:1;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);z-index:60;transition:transform .2s,opacity .2s}
.egm-top:hover{transform:translateY(-3px)}
.egm-top[hidden]{display:none}

/* ---------- Widget areas: homepage extra + above-footer ---------- */
.egm-hw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:28px}
.egm-hw{background:#fff;border:1px solid var(--egm-border);border-top:3px solid var(--egm-accent);padding:26px;border-radius:4px;box-shadow:0 2px 14px rgba(0,0,0,.04)}
.egm-hw ul{list-style:none;margin:0;padding:0}
.egm-hw li{padding:9px 0;border-bottom:1px solid var(--egm-border)}
.egm-hw li:last-child{border-bottom:0}
.egm-widget-title{font-size:1.35rem;margin:0 0 .8em}
.egm-hw p:last-child{margin-bottom:0}
.egm-abovefooter{margin-top:48px;background:linear-gradient(135deg,var(--egm-dark),#2a2a33);color:var(--egm-dark-text);padding:46px 0;text-align:center}
.egm-abovefooter .egm-widget-title{color:#fff;font-size:clamp(1.5rem,3vw,2.2rem)}
.egm-abovefooter a{text-decoration:underline;text-underline-offset:3px}
.egm-abovefooter input[type=email],.egm-abovefooter input[type=text]{max-width:420px;border-radius:6px}
.egm-abovefooter input[type=submit],.egm-abovefooter button[type=submit],.egm-abovefooter .wp-block-button__link{background:var(--egm-accent);color:#fff;border-radius:6px;border:0}
.egm-footer{margin-top:0}
.egm-abovefooter+.egm-footer{margin-top:0}
.egm-main+.egm-footer{margin-top:56px}

/* ---------- Polish ---------- */
html{scroll-behavior:smooth}
::selection{background:var(--egm-accent);color:#fff}
.egm-title{letter-spacing:.01em}
.egm-tagline{display:flex;align-items:center;justify-content:center;gap:16px}
.egm-tagline::before,.egm-tagline::after{content:"";height:1px;width:clamp(24px,8vw,90px);background:var(--egm-border)}
.egm-menu a{position:relative;transition:color .2s}
.egm-menu>li>a::after{content:"";position:absolute;left:12px;right:12px;bottom:8px;height:2px;background:var(--egm-accent);transform:scaleX(0);transform-origin:left;transition:transform .25s}
.egm-menu>li:hover>a::after,.egm-menu>.current-menu-item>a::after,.egm-menu>.current-cat>a::after{transform:scaleX(1)}
.egm-search input{border-radius:999px;transition:border-color .2s,box-shadow .2s}
.egm-search input:focus{outline:0;border-color:var(--egm-accent);box-shadow:0 0 0 3px rgba(185,28,28,.12)}
.egm-section__head{position:relative}
.egm-section__head::after{content:"";position:absolute;left:0;bottom:-2px;width:80px;height:2px;background:var(--egm-accent)}
.egm-more::after{content:" \2192";transition:margin .2s}
.egm-more:hover::after{margin-left:4px}
.egm-label{position:relative}
.egm-hero__main>.egm-label{display:inline-block;background:var(--egm-accent);color:#fff;padding:4px 12px;border-radius:2px;letter-spacing:.12em}
.egm-card{transition:transform .25s}
.egm-card:hover{transform:translateY(-4px)}
.egm-card__media,.egm-hero__media{border-radius:4px}
.egm-card__media img,.egm-hero__media img{transition:transform .5s ease}
.egm-card:hover .egm-card__media img,.egm-hero__main:hover .egm-hero__media img{transform:scale(1.05)}
.egm-card__title a,.egm-hero__title a{background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;transition:background-size .3s,color .2s}
.egm-card__title a:hover,.egm-hero__title a:hover{background-size:100% 2px}
.egm-kicker{padding:2px 9px;background:rgba(185,28,28,.08);border-radius:2px;font-size:.72rem}
.egm-kicker:hover{text-decoration:none;background:var(--egm-accent);color:#fff}
.egm-hero__side{background:rgba(0,0,0,.02);padding:26px 28px;border:1px solid var(--egm-border);border-left:1px solid var(--egm-border);border-radius:4px}
.egm-btn,input[type=submit],button[type=submit]{border-radius:4px;transition:background .2s,transform .2s}
.egm-btn:hover{transform:translateY(-2px)}
.egm-pagination .page-numbers{border-radius:4px;transition:background .2s,color .2s}
.egm-authorbox,.post-navigation a{border-radius:6px;box-shadow:0 2px 14px rgba(0,0,0,.04)}
.post-navigation a{transition:border-color .2s,transform .2s}
.post-navigation a:hover{border-color:var(--egm-accent);transform:translateY(-2px)}
.egm-single__figure img{border-radius:6px}
input:focus,textarea:focus{outline:0;border-color:var(--egm-accent)}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
	.egm-grid--4{grid-template-columns:repeat(2,1fr)}
	.egm-grid--3{grid-template-columns:repeat(2,1fr)}
	.egm-hero{grid-template-columns:1fr;gap:36px}
	.egm-hero__side{border-left:0;padding-left:0;border-top:1px solid var(--egm-border);padding-top:30px}
	.egm-footer__grid,.egm-footer__grid--widgets.egm-cols-4{grid-template-columns:1fr 1fr}
	.egm-hero__side{padding:22px}
}
@media (max-width:782px){
	.admin-bar .egm-nav.is-sticky{top:46px}
	.egm-burger{display:block}
	.egm-nav__in{justify-content:space-between}
	.egm-menu{display:none;width:100%;flex-direction:column}
	.egm-nav.is-open .egm-menu{display:flex}
	.egm-menu a{padding:12px 4px;border-top:1px solid var(--egm-border)}
	.egm-menu ul{display:block;position:static;border:0;box-shadow:none;padding-left:14px}
	.egm-search{width:100%}
	.egm-search input,.egm-nav .egm-search input{width:100%}
}
@media (max-width:600px){
	.egm-grid--4,.egm-grid--3{grid-template-columns:1fr}
	.egm-container{padding:0 18px}
	.egm-footer__grid,.egm-footer__grid--widgets.egm-cols-4{grid-template-columns:1fr}
	.egm-footer{padding-top:54px}
	.egm-tagline::before,.egm-tagline::after{display:none}
	.egm-author-head,.egm-authorbox{flex-direction:column;align-items:flex-start}
	.post-navigation .nav-links{grid-template-columns:1fr}
	.post-navigation .nav-next{grid-column:auto;text-align:left}
	.egm-section{padding:34px 0}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media (max-width:600px){