/* ==========================================================================
   Full-screen menu on phones and tablets (inc/mobile-nav.php, js/mobile-nav.js).
   Cream page, navy type, the homepage's tan blob and stripe mark; destinations
   big enough to choose with a thumb. Divi's dropdown is no longer used.
   ========================================================================== */

.mkm {
  --mkm-cream: #fbf7f1;
  --mkm-ink: #25344a;
  --mkm-ink-2: #56627a;
  --mkm-navy: #324256;
  --mkm-line: #e7dfd3;
  --mkm-gold: #c39d63;
  --mkm-tan: #cfa77f;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--mkm-cream);
  color: var(--mkm-ink);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity .22s ease;
}
.mkm[hidden], .mkm [hidden] { display: none !important; }
.mobile_menu_bar:focus-visible { outline: 2px solid #324256; outline-offset: 4px; }
.mkm.is-open { opacity: 1; }
.mkm *, .mkm *::before, .mkm *::after { box-sizing: border-box; }
.mkm a { color: inherit; text-decoration: none; }
.mkm button { font: inherit; color: inherit; }
.mkm svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mkm :focus-visible { outline: 2px solid var(--mkm-navy); outline-offset: 3px; border-radius: 10px; }
.mkm:focus { outline: none; }
html.mkm-open, html.mkm-open body { overflow: hidden !important; }

/* ---------- top row: the header, closed with the round button ---------- */
.mkm-bar {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--mkm-line);
  /* White like the site's own header, which the logo image is made for. */
  background: #fff;
}
.mkm-logo { display: block; font-weight: 700; font-size: 20px; }
.mkm-logo img { display: block; width: auto; height: 38px; }
.mkm-close {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mkm-line);
  cursor: pointer;
}
.mkm-close span::before,
.mkm-close span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--mkm-ink);
}
.mkm-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.mkm-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- screens: the list, and a section's own screen over it ---------- */
.mkm-screens { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mkm-blob { position: absolute; right: -90px; bottom: -70px; width: 300px; height: 280px; opacity: .22; pointer-events: none; }
.mkm-blob path { fill: var(--mkm-tan); stroke: none; }
.mkm-stripes { position: absolute; top: 0; right: 24px; display: flex; gap: 5px; pointer-events: none; }
.mkm-stripes i { display: block; width: 9px; height: 46px; }
.mkm-stripes i:nth-child(1) { background: #d7c7b7; }
.mkm-stripes i:nth-child(2) { background: #cfa77f; }
.mkm-stripes i:nth-child(3) { background: #d78b58; }
.mkm-stripes i:nth-child(4) { background: #af6a29; }

.mkm-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 28px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}
.mkm.is-sub .mkm-root { transform: translateX(-18%); opacity: 0; pointer-events: none; }
.mkm-sub { z-index: 2; background: var(--mkm-cream); transform: translateX(100%); }
.mkm-sub.is-active { transform: none; }

/* ---------- destinations ---------- */
.mkm-list { list-style: none; margin: 0; padding: 0; }
.mkm-item {
  border-bottom: 1px solid var(--mkm-line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 38ms + 40ms);
}
.mkm.is-open .mkm-item { opacity: 1; transform: none; }
.mkm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 14px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.mkm-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mkm-title { font-weight: 700; font-size: 27px; line-height: 1.1; letter-spacing: -.025em; }
.mkm-note { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--mkm-ink-2); }
.mkm-faces { display: inline-flex; flex: none; }
.mkm-faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 0 0 2px var(--mkm-cream); }
.mkm-faces img + img { margin-left: -8px; }
.mkm-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--mkm-line); color: var(--mkm-ink); transition: background-color .15s, color .15s; }
.mkm-arrow svg { width: 18px; height: 18px; }
.mkm-link:active .mkm-arrow { background: var(--mkm-navy); color: var(--mkm-cream); }
.mkm-item.is-current .mkm-title { text-decoration: underline; text-decoration-color: var(--mkm-gold); text-decoration-thickness: 3px; text-underline-offset: 7px; }
/* The first destination is the reason most people came: a touch larger. */
.mkm-item:first-child .mkm-title { font-size: 31px; }

/* ---------- a section's own screen ---------- */
.mkm-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 10px 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mkm-line);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.mkm-back svg { width: 18px; height: 18px; }
.mkm-sub-title { margin: 20px 0 0; padding: 0; font-family: inherit; font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; color: var(--mkm-ink); }
.mkm-all { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 18px; padding-bottom: 4px; border-bottom: 1.5px solid var(--mkm-gold); font-weight: 700; font-size: 14.5px; line-height: 1; }
.mkm-all svg { width: 16px; height: 16px; }
.mkm-sub-title + .mkm-sublist { margin-top: 20px; }
.mkm-sublist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mkm-line); }
.mkm-sublist a { display: flex; flex-direction: column; gap: 3px; min-height: 56px; justify-content: center; padding: 13px 2px; border-bottom: 1px solid var(--mkm-line); }
.mkm-sublist b { font-weight: 700; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.mkm-sublist span { font-weight: 500; font-size: 13px; line-height: 1.3; color: var(--mkm-ink-2); }
.mkm-sublist a:active b { color: #af6a29; }
.mkm-sublist .is-current b { text-decoration: underline; text-decoration-color: var(--mkm-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* „Pamokos“: the lesson pages in the groups of /paslaugos/ (inc/nav-order.php
   mkn_lessons()) — grades and goals as rows with who each is for, subjects two
   to a row, then the price list and the calendar. */
.mkm-group { margin-top: 26px; }
.mkm-all + .mkm-group { margin-top: 8px; }
.mkm-kick { margin: 0 0 10px; padding: 0; font-weight: 700; font-size: 11.5px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: #af6a29; }
.mkm-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.mkm-tiles a { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--mkm-line); transition: box-shadow .15s; }
.mkm-tiles b { font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.mkm-tiles a:active { box-shadow: inset 0 0 0 1.5px var(--mkm-navy); }
.mkm-tiles .is-current a { box-shadow: inset 0 0 0 2px var(--mkm-gold); }
.mkm-aux { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 18px 0 0; padding: 0; }
.mkm-aux a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--mkm-ink-2); text-decoration: underline; text-decoration-color: var(--mkm-line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.mkm-aux a[aria-current] { color: var(--mkm-ink); text-decoration-color: var(--mkm-gold); }

/* ---------- pinned bottom: account and contacts ---------- */
.mkm-foot {
  position: relative;
  z-index: 3;
  flex: none;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--mkm-line);
  background: var(--mkm-cream);
}
.mkm-acts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.mkm-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 10px; background: var(--mkm-navy); color: #fbf7f1 !important; font-weight: 700; font-size: 15.5px; line-height: 1.1; text-align: center; }
.mkm-btn--line { background: #fff; color: var(--mkm-ink) !important; box-shadow: inset 0 0 0 1px #d7c7b7; }
.mkm-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; padding: 0; font-weight: 600; font-size: 13px; line-height: 1.4; }
.mkm-contact a { color: var(--mkm-ink-2); }

/* Only phones and tablets have the menu button; wider screens never show this. */
@media (min-width: 981px) {
  .mkm { display: none !important; }
}
@media (max-width: 360px) {
  .mkm-title { font-size: 24px; }
  .mkm-item:first-child .mkm-title { font-size: 27px; }
  .mkm-acts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mkm, .mkm-item, .mkm-screen { transition: none; }
  .mkm-item { opacity: 1; transform: none; }
}
