/*
Theme Name: Mishk Design
Theme URI: https://cicorp.ae/mishkaat
Author: Ci CORP
Author URI: https://cicorp.ae
Description: Part of the Mishk Suite — a lightweight agency WordPress framework that holds the lamp for the client's brand, guiding design consistency, content flexibility, and marketing readiness without the bloat of marketplace themes.
Version: 2.10.21
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 8.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mishkaat
Tags: agency, lightweight, responsive, custom-design, elementor-compatible, gutenberg-compatible

Mishk Design is part of the Mishk Suite — a controlled agency WordPress framework with a visual Header/Footer builder, design tokens, Elementor compatibility, and Gutenberg blocks.
*/

/* Reset and normalize are handled by WordPress and Tailwind */
:root {
  --mk-shell-width: min(1200px, calc(100% - 2rem));
  --mk-shell-narrow-width: min(800px, calc(100% - 2rem));
  --mk-card-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  --mk-card-border: var(--mk-color-border, rgba(255, 255, 255, 0.08));
  --mk-card-shadow:
    0 24px 60px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mk-color-primary, inherit);
  font-size: var(--mk-font-size-body, 16px);
  font-family:
    var(--mk-font-family, "Montserrat"),
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: var(--mk-line-height-body, 1.6);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  letter-spacing: -0.03em;
  /* 2.9.48.5: was `var(--mk-color-white, #ffffff)` — a dark-theme assumption
   * that left every heading invisible on the default white page background.
   * Use the heading design token (`--mk-color-heading`, default #1a1a1a) which
   * the user can customize via Theme Options → Colors. Falls back to
   * --mk-color-primary then to a sane dark value. */
  color: var(--mk-color-heading, var(--mk-color-primary, #1a1a1a));
}

h1 {
  font-size: clamp(2.6rem, 5vw, var(--mk-font-size-h1, 4.6rem));
  line-height: var(--mk-line-height-h1, 1.08);
}

h2 {
  font-size: clamp(2rem, 4vw, var(--mk-font-size-h2, 3.2rem));
  line-height: var(--mk-line-height-h2, 1.12);
}

h3 {
  font-size: clamp(1.6rem, 3vw, var(--mk-font-size-h3, 2.35rem));
  line-height: var(--mk-line-height-h3, 1.14);
}

h4 {
  font-size: clamp(1.3rem, 2vw, var(--mk-font-size-h4, 1.8rem));
  line-height: var(--mk-line-height-h4, 1.16);
}

h5 {
  font-size: clamp(1.12rem, 1.6vw, var(--mk-font-size-h5, 1.45rem));
  line-height: var(--mk-line-height-h5, 1.2);
}

h6 {
  font-size: var(--mk-font-size-h6, 1rem);
  line-height: var(--mk-line-height-h6, 1.24);
}

p,
ul,
ol,
dl,
table,
figure,
blockquote,
pre {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

a {
  color: var(--mk-color-primary-accent, #1a73e8);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

a:hover,
a:focus {
  color: var(--mk-color-white, #ffffff);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.search-submit,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  color: var(--mk-color-white, #ffffff);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.search-submit:hover,
.comment-form input[type="submit"]:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mk-color-primary, #e4e4e4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

input::placeholder,
textarea::placeholder {
  color: var(--mk-color-muted, #7f7f7f);
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 2px solid rgba(26, 115, 232, 0.7);
  outline-offset: 2px;
}

blockquote {
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  border-left: 3px solid var(--mk-color-primary-accent, #1a73e8);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--mk-color-white, #ffffff);
}

code,
pre,
kbd,
samp {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
}

pre {
  overflow: auto;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.34);
  color: var(--mk-color-primary, #e4e4e4);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  overflow: visible;
  background: var(--mk-color-white, #ffffff);
  color: var(--mk-color-black, #0c0c0c);
  z-index: 9999;
}

.mk-container-boxed,
.mk-container-narrow {
  width: var(--mk-shell-width);
  margin-right: auto;
  margin-left: auto;
}

.mk-container-narrow {
  width: var(--mk-shell-narrow-width);
}

.site-header,
.site-footer {
  position: relative;
}

.site {
  position: relative;
  min-height: 100vh;
}

.site-header {
  border-bottom: 1px solid var(--mk-color-border, rgba(0,0,0,0.08));
  color: var(--mk-color-primary, inherit);
}

.site-header a,
.site-header nav a {
  color: var(--mk-color-primary, inherit);
  text-decoration: none;
}

.site-header.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header.site-header--transparent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 110;
  background: transparent;
  border-bottom-color: transparent;
}

.site-footer {
  border-top: 1px solid var(--mk-color-border, rgba(0,0,0,0.08));
}

.mk-header--classic,
.mk-header--modern,
.mk-header--plain,
.mk-header--stack-left,
.mk-header--stack-center,
.mk-header--stack-right,
.mk-header--magazine,
.mk-header--split-menu,
.mk-header--transparent,
.mk-header--simple,
.mk-header--empty,
.mk-header--below-slider,
.mk-footer--default,
.mk-footer--one-col,
.mk-footer--two-equal,
.mk-footer--three-equal,
.mk-footer--four-equal,
.mk-footer--five-equal,
.mk-footer--ratio-1-5-2-5-2-5,
.mk-footer--ratio-2-5-1-5-2-5,
.mk-footer--ratio-1-4-1-2,
.mk-footer--ratio-1-3-2-3,
.mk-footer--ratio-2-3-1-3 {
  --mk-layout-picker-ready: 1;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1rem;
}

.mk-hf-builder {
  /* 2.9.57: builder containers must stack their rows vertically.
   * 2.9.65: gap: 0 so each row controls its own spacing via its
   * Margin and Padding settings. The earlier inherited gap:1.5rem
   * was the "huge gap between row 1 and row 2" users reported with
   * no way to control. */
  display: flex;
  flex-direction: column;
  gap: 0;
  width: var(--mk-shell-width);
}

/* Override the legacy `*__inner` flex-row when it wraps a builder.
 * Keeps backward compat for any other use of `.site-header__inner`.
 * gap:0 here for the same reason as above. */
.site-header__inner:has(> .mk-hf-builder),
.site-footer__inner:has(> .mk-hf-builder) {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.mk-hf-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.mk-hf-column {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 1rem;
}

.mk-hf-column--fill,
.mk-hf-column--full {
  flex: 1 1 auto;
}

/* 2.9.82: text element defaults use inherit so dark/light rows work without
 * fighting. max-width removed — user sets it via the inspector if needed. */
.mk-hf-element--text {
  color: inherit;
}

.mk-hf-element--button .mk-btn {
  min-height: 2.6rem;
}

.mk-hf-element--search .search-form {
  max-width: 22rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Keep input + button side-by-side — never wrap in a header column */
.mk-hf-element--search .search-form__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
}

/* Input: inherits context color, lightweight border, no glow/shadow */
.mk-hf-element--search .search-field {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.4rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 999px;
  color: inherit;
  box-shadow: none;
  font-size: 0.85rem;
}

.mk-hf-element--search .search-field::placeholder {
  color: inherit;
  opacity: 0.55;
}

/* Submit button: compact, no shadow, inherits context via CSS vars */
.mk-hf-element--search .search-submit {
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
  background: var(--mk-hf-search-btn-bg, var(--mk-color-text, #1a1a1a));
  color: var(--mk-hf-search-btn-color, #ffffff);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: opacity .15s;
}

.mk-hf-element--search .search-submit:hover {
  transform: none;
  opacity: 0.82;
  border-color: transparent;
}

/* 2.9.82: social link defaults stripped to layout only. No border, no forced
 * color — both had no inspector control and broke on light-background rows.
 * Background, border, color, radius, padding all set via the Style panel. */
.mk-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mk-social-links a,
.mk-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  transition: opacity .15s;
}

.mk-social-links a:hover,
.mk-social-link:hover {
  opacity: 0.75;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 24rem;
}

.site-title,
.site-description,
.site-info {
  margin: 0;
}

.site-title a,
.custom-logo-link {
  color: inherit;
}

.custom-logo {
  display: block;
  width: auto;
  height: var(--mk-branding-logo-height, 40px);
  max-width: var(--mk-branding-logo-max-width, 200px);
  max-height: var(--mk-branding-logo-max-height, 48px);
}

.site-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-description {
  max-width: 36ch;
  color: var(--mk-color-mid, #929292);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-navigation .menu,
.footer-navigation .menu,
.mobile-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a,
.footer-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--mk-color-primary, #e4e4e4);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.footer-navigation a:hover,
.footer-navigation .current-menu-item > a,
.footer-navigation .current_page_item > a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 3rem;
  min-height: 3rem;
  padding-inline: 1rem;
  border-radius: 1rem;
}

.menu-toggle__line {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.menu-toggle__label {
  display: none;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
  opacity: 0.65;
}

.mobile-navigation {
  display: none;
  padding: 0 1rem 1.1rem;
}

.mobile-navigation.is-open {
  display: block;
}

.mobile-navigation .menu {
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--mk-card-border);
  border-radius: 1.35rem;
  background: var(--mk-card-bg);
  box-shadow: var(--mk-card-shadow);
}

.mobile-navigation a {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mk-color-white, #ffffff);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-footer__inner {
  align-items: flex-start;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer__brand {
  max-width: 34rem;
}

.site-footer__title {
  margin: 0 0 0.5rem;
  color: var(--mk-color-white, #ffffff);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site.has-transparent-header .mk-layout-default,
.site.has-transparent-header .mk-layout-boxed,
.site.has-transparent-header .mk-layout-narrow,
.site.has-transparent-header .mk-layout-sidebar-left,
.site.has-transparent-header .mk-layout-sidebar-right,
.site.has-transparent-header .mk-layout-full-width {
  padding-top: 7rem;
}

.mk-layout-default,
.mk-layout-boxed,
.mk-layout-narrow,
.mk-layout-sidebar-left,
.mk-layout-sidebar-right,
.mk-layout-full-width {
  display: grid;
  gap: 2rem;
  padding: var(--mk-spacing-section, 2.2rem) 1rem 4rem;
}

.site-main,
.mk-content {
  min-width: 0;
}

.page-header {
  position: relative;
  padding: 0 0 1.25rem;
}

.page-header::after {
  content: "";
  display: block;
  width: min(14rem, 28vw);
  height: 1px;
  margin-top: 1.15rem;
  background: linear-gradient(90deg, rgba(26, 115, 232, 0.9), rgba(255, 255, 255, 0));
}

.archive-description,
.page-content,
.search-form,
.post-navigation,
.posts-navigation,
.comments-area,
.no-results,
.comment-respond,
.posts-grid article,
.widget-area > section {
  border: 1px solid var(--mk-card-border);
  border-radius: var(--mk-border-radius-card, 1.6rem);
  background: var(--mk-card-bg);
  box-shadow: var(--mk-card-shadow);
}

/* Single page/post article wrapper — no card chrome; let Elementor/Gutenberg own the styling */
.single article.hentry,
.page article.hentry {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.posts-grid {
  display: grid;
  gap: 1.5rem;
}

.posts-grid article {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: var(--mk-spacing-card, 1.6rem);
}

.page-content,
.archive-description,
.search-form,
.post-navigation,
.posts-navigation,
.comments-area,
.comment-respond,
.no-results,
.widget-area > section {
  padding: var(--mk-spacing-card, 1.6rem);
}

.page-header,
.entry-header,
.entry-thumbnail,
.entry-summary,
.entry-content,
.entry-footer,
.entry-meta {
  margin-bottom: 1rem;
}

.entry-title,
.page-title,
.widget-title {
  margin: 0;
  color: var(--mk-color-white, #ffffff);
}

.entry-title a {
  color: inherit;
}

.entry-title a:hover {
  color: var(--mk-color-accent-hover, var(--mk-color-primary-accent, #1a73e8));
  text-decoration: none;
}

.entry-meta,
.entry-footer,
.site-description,
.site-info {
  color: var(--mk-color-muted, #7f7f7f);
  font-size: 0.9375rem;
}

.entry-footer,
.site-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.entry-meta a,
.entry-footer a,
.site-info a {
  color: inherit;
}

.entry-thumbnail {
  overflow: hidden;
  border-radius: var(--mk-border-radius-card, 1.2rem);
}

.entry-thumbnail img {
  width: 100%;
  transition: transform 0.45s ease;
}

.posts-grid article:hover .entry-thumbnail img {
  transform: scale(1.03);
}

.entry-summary > :last-child,
.entry-content > :last-child,
.archive-description > :last-child,
.page-content > :last-child,
.widget-area > section > :last-child {
  margin-bottom: 0;
}

.entry-content a:not(.wp-block-button__link),
.page-content a:not(.wp-block-button__link) {
  text-decoration: underline;
  text-decoration-color: rgba(26, 115, 232, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.page-links,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.page-links > *,
.nav-links > * {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.post-navigation .nav-links,
.posts-navigation .nav-links {
  justify-content: space-between;
}

.nav-subtitle {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--mk-color-muted, #7f7f7f);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-title {
  color: var(--mk-color-white, #ffffff);
  font-weight: 600;
}

.site-info__sep {
  color: var(--mk-color-faint, #444444);
}

.search-form {
  max-width: 38rem;
}

.search-form__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-form__inner .search-field {
  flex: 1 1 18rem;
}

.widget-area {
  display: grid;
  gap: 1rem;
}

.widget-area .widget-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.widget-area ul,
.widget-area ol {
  padding-left: 1.25rem;
  color: var(--mk-color-primary, #e4e4e4);
}

.widget-area li + li {
  margin-top: 0.45rem;
}

.widget select {
  width: 100%;
}

.wp-caption,
.wp-block-image,
.gallery {
  margin-bottom: 1.5rem;
}

.wp-caption-text,
.gallery-caption {
  margin-top: 0.75rem;
  color: var(--mk-color-muted, #7f7f7f);
  font-size: 0.85rem;
}

.sticky > article,
article.sticky {
  border-color: rgba(26, 115, 232, 0.5);
}

.comments-area,
.comment-respond {
  margin-top: 1.5rem;
}

.comment-list,
.children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list .comment {
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-list > .comment:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment-meta {
  margin-bottom: 0.6rem;
  color: var(--mk-color-muted, #7f7f7f);
  font-size: 0.86rem;
}

.comment-author .fn {
  color: var(--mk-color-white, #ffffff);
  font-style: normal;
  font-weight: 600;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-form label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--mk-color-primary, #e4e4e4);
  font-size: 0.84rem;
  font-weight: 500;
}

.comment-notes,
.logged-in-as {
  color: var(--mk-color-muted, #7f7f7f);
  font-size: 0.9rem;
}

.bypostauthor {
  position: relative;
}

.widget-area {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (min-width: 960px) {
  .mk-layout-sidebar-right,
  .mk-layout-sidebar-left {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .mk-layout-sidebar-left .site-main {
    order: 2;
  }

  .mk-layout-sidebar-left .mk-sidebar {
    order: 1;
  }
}

@media (max-width: 782px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
  }

  .mk-hf-row,
  .mk-hf-column {
    align-items: flex-start;
    width: 100%;
  }

  .mk-hf-row {
    flex-direction: column;
  }

  .mk-hf-column {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-navigation {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-navigation {
    display: block;
  }

  .mobile-navigation[hidden] {
    display: none;
  }

  .site-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-form__inner {
    flex-direction: column;
  }

  .post-navigation .nav-links,
  .posts-navigation .nav-links {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 783px) {
  .mobile-navigation {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .mk-layout-default,
  .mk-layout-boxed,
  .mk-layout-narrow,
  .mk-layout-sidebar-left,
  .mk-layout-sidebar-right,
  .mk-layout-full-width {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .posts-grid article,
  .page-content,
  .archive-description,
  .search-form,
  .post-navigation,
  .posts-navigation,
  .comments-area,
  .comment-respond,
  .no-results,
  .widget-area > section {
    padding: var(--mk-spacing-card, 1.25rem);
  }
}

/* ─── Phone / Email / WhatsApp builder elements ───────────────────────
 * Default frontend styling for the new contact-link elements added to
 * the Header/Footer builder in 2.9.39. Users can override via global
 * styles per device; per-element layout controls land in 2.9.40. */
/* ── 2.9.81: Contact element defaults use `inherit` so the element picks
 * up whatever color the surrounding row/column provides. This means the
 * element looks correct on both dark and light rows without the user
 * having to fight hardcoded black text. The border is also removed from
 * the default — let the user add it via the Style panel if they want
 * the pill-border look. The hover rule no longer forces a white background
 * or a link-blue color; it just reduces opacity slightly. ─────────────── */
.mk-hf-element--phone .mk-hf-contact,
.mk-hf-element--email .mk-hf-contact,
.mk-hf-element--whatsapp .mk-hf-contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.2;
	transition: opacity .15s;
}

.mk-hf-element--phone .mk-hf-contact:hover,
.mk-hf-element--email .mk-hf-contact:hover,
.mk-hf-element--whatsapp .mk-hf-contact:hover {
	opacity: 0.78;
}

/* WhatsApp brand colours — these still apply unless the user overrides */
.mk-hf-element--whatsapp .mk-hf-contact {
	background: #25d366;
	color: #ffffff;
}

.mk-hf-element--whatsapp .mk-hf-contact:hover {
	opacity: 1;
	background: #128c7e;
	color: #ffffff;
}

.mk-hf-contact__icon {
	font-size: 16px;
	line-height: 1;
}

.mk-hf-contact__label {
	font-weight: 500;
}

/* ─── Phase 1 builder elements: Divider / Spacer / Image / Icon / HTML ─
 * Default frontend styling for the new header/footer builder elements
 * added in 2.9.40. Users override via the element's Style tab; the
 * defaults below just ensure each element renders sensibly out of the
 * box. */
.mk-hf-element--divider {
	width: 100%;
	margin: 0;
}
.mk-hf-divider--vertical {
	width: auto;
	min-height: 1em;
	align-self: stretch;
}

.mk-hf-element--spacer {
	display: inline-block;
	flex-shrink: 0;
}

.mk-hf-element--image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mk-hf-element--icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}
.mk-hf-element--icon i {
	font-style: normal;
	line-height: 1;
}
.mk-hf-element--icon a {
	color: inherit;
	text-decoration: none;
}

.mk-hf-element--html {
	display: block;
}

/* ─── Phase 4 builder elements: Breadcrumbs / Login / Cart / Language ─ */
.mk-hf-element--breadcrumbs {
	font-size: 13px;
	line-height: 1.4;
}
.mk-breadcrumbs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mk-breadcrumbs-list a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.mk-breadcrumbs-list a:hover {
	border-bottom-color: currentColor;
}
.mk-breadcrumbs-sep {
	opacity: .55;
}

.mk-hf-element--login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}
.mk-hf-account {
	color: inherit;
	text-decoration: none;
}
.mk-hf-account:hover {
	text-decoration: underline;
}
.mk-hf-account__sep {
	opacity: .4;
}

/* 2.9.82: cart defaults stripped to layout only. Padding, radius, hover bg,
 * icon size, and badge color are all set via the Style panel.
 * CSS custom properties used for badge so render_css() can inject values
 * that override the defaults without fighting specificity. */
.mk-hf-element--cart .mk-hf-cart {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	transition: opacity .15s;
}
.mk-hf-cart:hover {
	opacity: 0.8;
}
.mk-hf-cart__icon {
	font-size: var(--mk-hf-cart-icon-size, 18px);
	line-height: 1;
}
.mk-hf-cart__count {
	font-size: 11px;
	font-weight: 700;
	background: var(--mk-hf-cart-badge-bg, #ef4444);
	color: var(--mk-hf-cart-badge-color, #fff);
	border-radius: 999px;
	padding: 2px 7px;
	min-width: 18px;
	text-align: center;
}
.mk-hf-cart__total {
	font-size: 13px;
	font-weight: 600;
}

.mk-hf-element--language {
	font-size: 13px;
}
.mk-language-switcher {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mk-language-switcher a {
	color: inherit;
	text-decoration: none;
	opacity: .75;
}
.mk-language-switcher li.is-active a,
.mk-language-switcher a:hover {
	opacity: 1;
	border-bottom: 1px solid currentColor;
}
.mk-language-switcher--flags img {
	width: 18px;
	height: 12px;
	object-fit: cover;
	border-radius: 2px;
	vertical-align: middle;
}

/* ─── 2.9.48.5 — sidebar widget title sizing ────────────────────────────
 * WordPress widget titles render as <h2> by default. The global h2 rule
 * above is `clamp(2rem, 4vw, 3.2rem)` which is correct for page section
 * headings but absurd for sidebar widget titles ("Search", "Recent Posts",
 * etc.). Scope a smaller, readable size to widgets. */

.widget-title,
.widget h1,
.widget h2,
.widget h3,
.widget h4,
.widget h5,
.widget h6,
aside .widget-title,
.wp-block-group .widget-title {
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 700;
	margin-bottom: 0.6rem;
	/* heading color token applies via the global heading rule */
}
