/* Miku production site — responsive nav + small enhancements.
   Injected on every page. The design's own styles live inline; this file
   only adds the mobile navigation the prototype lacked and a few guards. */

/* ---- Mobile navigation (added for production; prototype had none) ---- */
.mk-hamburger{
  display:none;
  align-items:center; justify-content:center;
  width:42px; height:42px; padding:0;
  background:transparent; border:1px solid var(--mk-rule); border-radius:10px;
  color:var(--mk-ink); cursor:pointer; flex:0 0 auto;
}
.mk-hamburger svg{ width:22px; height:22px; display:block; }
.mk-mobile-menu{
  display:none;
  position:fixed; left:0; right:0; top:0; z-index:200;
  /* ink-palette fallbacks in case the menu ends up outside the token scope */
  background:var(--mk-canvas,#151217);
  color:var(--mk-ink,#ffffff);
  border-bottom:1px solid var(--mk-rule,#332b3c);
  padding:18px 22px 24px;
  box-shadow:0 30px 60px -30px rgba(0,0,0,0.5);
  max-height:100dvh; overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.mk-mobile-menu[data-open="true"]{ display:block; }
.mk-mobile-menu__head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}
.mk-mobile-menu__close{
  width:40px; height:40px; padding:0; font-size:22px; line-height:1;
  background:transparent; border:1px solid var(--mk-rule); border-radius:10px;
  color:var(--mk-ink); cursor:pointer;
}
.mk-mobile-menu a{
  display:block; padding:13px 4px; font-size:17px; font-weight:600;
  color:var(--mk-ink,#ffffff); border-bottom:1px solid var(--mk-rule,#332b3c);
}
.mk-mobile-menu a.mk-mobile-sub{
  padding-left:16px; font-size:15px; font-weight:500; color:var(--mk-ink-2,#c7bfce);
  border-bottom:1px solid var(--mk-rule,#332b3c);
}
.mk-mobile-menu__label{
  padding:15px 4px 6px; font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--mk-ink-3,#8d8494); font-weight:700;
}
.mk-mobile-menu__cta{
  display:block; margin-top:18px; text-align:center;
  background:var(--mk-magenta); color:#fff !important;
  padding:15px 20px; border-radius:11px; font-weight:700; font-size:16px;
  border-bottom:0 !important;
}
body.mk-menu-open{ overflow:hidden; }

@media (max-width:860px){
  .mk-nav-desktop{ display:none !important; }
  .mk-hamburger{ display:inline-flex; }
}
@media (min-width:861px){
  .mk-mobile-menu{ display:none !important; }
}

/* ---- Responsive content (the prototype only collapsed the hero) ----
   Collapse the designed multi-column grids to a single column and let the
   flex card-rows wrap, so nothing is forced wider than the viewport. */
@media (max-width:860px){
  [data-sec] [style*="grid-template-columns"]{ grid-template-columns:1fr !important; }
  [data-sec] [style*="display:flex"],
  [data-sec] [style*="display: flex"]{ flex-wrap:wrap; }
  /* allow flex/grid children to shrink instead of overflowing */
  [data-sec] *{ min-width:0; }
  [data-sec] img{ max-width:100%; height:auto; }
  /* the tutor-demo iframe keeps its aspect but never exceeds the screen */
  iframe{ max-width:100%; }
}

/* ---- Guards: never let the page scroll sideways on small screens ---- */
@media (max-width:860px){
  html, body{ max-width:100%; overflow-x:hidden; }
}
