/* ======================================================================
   WordPress-only additions on top of main.css (the React stylesheet).
   ====================================================================== */

/* [hidden] must win over component display rules (.modal, .panel, .cur-menu …) */
[hidden] { display: none !important; }

/* Location dropdown: one city list visible at a time (React rendered only the active one) */
.loc__list:not(.on) { display: none; }
a.loc__city { text-decoration: none; }

/* homepage "about" chips are links now */
a.feat { color: inherit; text-decoration: none; transition: transform .2s ease; }
a.feat:hover { transform: translateY(-2px); }

/* ---------- blog list ---------- */
.mk-blog-hero { padding-bottom: clamp(30px, 4vw, 50px); }
.mk-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mk-post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s; }
.mk-post:hover { transform: translateY(-6px); box-shadow: 0 30px 56px -34px rgba(20,20,20,.45); }
.mk-post__img { display: block; aspect-ratio: 16 / 10; background: #ddd center / cover no-repeat; }
.mk-post__b { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.mk-post__meta { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a6410; }
.mk-post__t { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.28; letter-spacing: -.01em; margin-top: 10px; }
.mk-post__t a { color: var(--ink); text-decoration: none; }
.mk-post__t a:hover { color: #8a6410; }
.mk-post__d { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1; }
.mk-post__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.mk-post__more svg { width: 15px; height: 15px; transition: transform .25s; }
.mk-post__more:hover svg { transform: translateX(4px); }
.mk-pager { margin-top: 40px; display: flex; justify-content: center; }
.mk-pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.mk-pager a, .mk-pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.mk-pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.mk-pager a:hover { border-color: var(--ink); }
.mk-empty { max-width: 620px; margin: 0 auto; text-align: center; }
.mk-empty .sx-p { margin: 14px auto 22px; text-align: center; }

/* ---------- single article ---------- */
.mk-article__hero { padding-bottom: clamp(26px, 4vw, 44px); }
.mk-article__h { max-width: 22ch; margin-left: auto; margin-right: auto; font-size: clamp(2.1rem, 1rem + 3.4vw, 3.4rem); }
.mk-article__cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; }
.mk-article__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: clamp(34px, 5vw, 60px); padding-bottom: clamp(40px, 6vw, 80px); align-items: start; }
.mk-article__body--full { grid-template-columns: minmax(0, 760px); justify-content: center; }
.mk-article__side { position: sticky; top: 110px; }
.mk-prose { font-size: 16.5px; line-height: 1.75; color: #2c2c2c; }
.mk-prose > * + * { margin-top: 1.1em; }
.mk-prose h2, .mk-prose h3, .mk-prose h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.015em; line-height: 1.2; margin-top: 1.8em; }
.mk-prose h2 { font-size: 1.7rem; } .mk-prose h3 { font-size: 1.3rem; } .mk-prose h4 { font-size: 1.1rem; }
.mk-prose a { color: #8a6410; text-decoration: underline; text-underline-offset: 3px; }
.mk-prose ul, .mk-prose ol { padding-left: 1.3em; }
.mk-prose li + li { margin-top: .4em; }
.mk-prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.mk-prose img, .mk-prose figure { max-width: 100%; height: auto; border-radius: 16px; }
.mk-prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.mk-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mk-prose th, .mk-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.mk-prose th { background: #f4f3ee; }
.mk-prose code { background: #f1f0ea; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.mk-prose .alignwide, .mk-prose .alignfull { max-width: 100%; }
.mk-article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(40px, 6vw, 70px); }
.mk-article__nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.mk-article__nav a:hover { border-color: var(--ink); }
.mk-article__nav a.is-next { text-align: right; }
.mk-article__nav small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mk-article__nav b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 16px; line-height: 1.3; }
.mk-comments { padding-bottom: 60px; max-width: 820px; }

@media (max-width: 960px) {
	.mk-posts { grid-template-columns: 1fr 1fr; }
	.mk-article__body { grid-template-columns: 1fr; gap: 30px; }
	.mk-article__side { position: static; }
}
@media (max-width: 640px) {
	.mk-posts { grid-template-columns: 1fr; }
	.mk-article__nav { grid-template-columns: 1fr; }
	.mk-article__nav a.is-next { text-align: left; }
}

/* ---------- comments ---------- */
.mk-cmts { border-top: 1px solid var(--line); padding-top: 34px; }
.mk-cmts__h { font-size: clamp(1.5rem, 3vw, 2rem); }
.mk-cmts__list { list-style: none; padding: 0; margin: 20px 0 0; }
.mk-cmts__list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.mk-cmts__list .children { list-style: none; padding-left: 28px; }
.mk-cmts__list .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.mk-cmts__reply { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 26px; }
.comment-form p { margin-top: 12px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15px; background: #fff; }
.comment-form textarea { min-height: 130px; }

/* ======================================================================
   Elementor
   ====================================================================== */
.mk-w { width: 100%; }
/* "Use parent Container for background & spacing" */
.mk-bare { padding-top: 0 !important; padding-bottom: 0 !important; background: none !important; }
.mk-bare > .wrap { max-width: none; padding-left: 0; padding-right: 0; }
/* chart cards and badges are meant to poke out of their photo; keep them inside the page */
.mk-bare, .mk-part { overflow-x: clip; }
/* "Show part": one half of a two-column section inside an Elementor column */
.mk-part { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.about--part, .exp--part, .why--part, .contact--part { grid-template-columns: 1fr !important; }
.exp--part .estack { margin-top: 0; }
/* editor preview: show everything that normally waits for a scroll reveal */
.elementor-editor-active .reveal,
.elementor-editor-active .band .r,
.elementor-editor-active .wfeat,
.elementor-editor-active .pcard,
.elementor-editor-active .scard,
.elementor-editor-active .sx-card__bg { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.elementor-editor-active .hero.has-scroll { min-height: 100vh; }
/* Elementor containers: theme sections handle their own width */
.elementor .mk-w .wrap { box-sizing: border-box; }

/* logged-in admins: keep the mobile drawer below the WordPress admin bar */
body.admin-bar .mnav, body.admin-bar .mnav__overlay { top: 46px; }
@media (min-width: 783px) { body.admin-bar .mnav, body.admin-bar .mnav__overlay { top: 32px; } }
