/* Standalone styles for server/MobileMenu.tsx. Load after /site.css. */
.mc-mobile-menu {
  --mc-menu-edge: max(
    16px,
    env(safe-area-inset-right, 0px),
    env(safe-area-inset-left, 0px)
  );
  --mc-menu-top: max(12px, env(safe-area-inset-top, 0px));
  --mc-menu-bottom: 16px;
  display: none;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  color: #222222;
}

.mc-mobile-menu,
.mc-mobile-menu * {
  box-sizing: border-box;
}

.mc-mobile-menu__sr-only,
.mc-mobile-menu__open-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mc-mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f7f8fa;
  color: #222222;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mc-mobile-menu__toggle::-webkit-details-marker {
  display: none;
}

.mc-mobile-menu__toggle::marker {
  content: "";
}

.mc-mobile-menu__toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.mc-mobile-menu__toggle-icon span {
  position: absolute;
  left: 1px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #222222;
}

.mc-mobile-menu__toggle-icon span:nth-child(1) {
  top: 3px;
}
.mc-mobile-menu__toggle-icon span:nth-child(2) {
  top: 9px;
}
.mc-mobile-menu__toggle-icon span:nth-child(3) {
  top: 15px;
}

.mc-mobile-menu__close-label {
  display: none;
}

/* The summary itself becomes the panel's close control, including without JS. */
.mc-mobile-menu[open] .mc-mobile-menu__toggle {
  position: fixed;
  z-index: 2;
  top: calc(var(--mc-menu-top) + 12px);
  right: calc(var(--mc-menu-edge) + 12px);
  width: 76px;
  height: 44px;
  flex-direction: row-reverse;
  gap: 4px;
  background: #f7f8fa;
  font-size: 13px;
  font-weight: 700;
}

.mc-mobile-menu[open] .mc-mobile-menu__open-label {
  display: none;
}

.mc-mobile-menu[open] .mc-mobile-menu__close-label {
  display: inline;
}

.mc-mobile-menu[open] .mc-mobile-menu__toggle-icon span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.mc-mobile-menu[open] .mc-mobile-menu__toggle-icon span:nth-child(2) {
  display: none;
}

.mc-mobile-menu[open] .mc-mobile-menu__toggle-icon span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.mc-mobile-menu__panel {
  position: fixed;
  z-index: 1;
  top: var(--mc-menu-top);
  right: var(--mc-menu-edge);
  width: min(420px, calc(100vw - var(--mc-menu-edge) - var(--mc-menu-edge)));
  max-height: calc(100vh - var(--mc-menu-top) - var(--mc-menu-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 82px;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(34, 34, 34, 0.18);
}

@supports (height: 100dvh) {
  .mc-mobile-menu__panel {
    max-height: calc(100dvh - var(--mc-menu-top) - var(--mc-menu-bottom));
  }
}

.mc-mobile-menu__heading {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 100px 14px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #ffffff;
}

.mc-mobile-menu__eyebrow {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.mc-mobile-menu__eyebrow::before {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin: 0 6px 3px 0;
  border-radius: 2px;
  background: #f4b400;
  content: "";
}

.mc-mobile-menu__brand {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.mc-mobile-menu__content {
  padding: 16px 20px 20px;
}

.mc-mobile-menu__section-label {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mc-mobile-menu__nav {
  display: block;
}

.mc-mobile-menu__link {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  color: #222222;
  text-decoration: none;
}

.mc-mobile-menu__number {
  width: 22px;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mc-mobile-menu__link-label {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.mc-mobile-menu__arrow {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #f7f8fa;
  font-size: 18px;
  line-height: 1;
}

.mc-mobile-menu__link:hover .mc-mobile-menu__arrow {
  background: #f4b400;
}

.mc-mobile-menu__contact {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #f7f8fa;
}

.mc-mobile-menu__contact-kicker,
.mc-mobile-menu__contact-title,
.mc-mobile-menu__contact-description,
.mc-mobile-menu__phone,
.mc-mobile-menu__unavailable {
  margin: 0;
}

.mc-mobile-menu__contact-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.mc-mobile-menu__contact-kicker span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #f4b400;
}

.mc-mobile-menu__contact-title {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mc-mobile-menu__contact-description {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.mc-mobile-menu__phone {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.mc-mobile-menu__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mc-mobile-menu__action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  color: #222222;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mc-mobile-menu__action--phone {
  border-color: #f4b400;
  background: #f4b400;
}

.mc-mobile-menu__action--sms {
  background: #ffffff;
}

.mc-mobile-menu__action span {
  flex: none;
  font-size: 16px;
}

.mc-mobile-menu__unavailable {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.mc-mobile-menu__toggle:focus-visible,
.mc-mobile-menu__link:focus-visible,
.mc-mobile-menu__action:focus-visible {
  outline: 3px solid #222222;
  outline-offset: 3px;
}

.mc-mobile-menu__link:focus-visible,
.mc-mobile-menu__action:focus-visible {
  outline-offset: -3px;
}

@media (max-width: 900px) {
  .mc-mobile-menu {
    display: block;
    flex: none;
  }
}

@media (max-width: 680px) {
  .mc-mobile-menu {
    /* The existing fixed CTA is 67px plus the bottom safe area. JS may measure
       its actual height if text zoom or wrapping makes it taller. */
    --mc-menu-bottom: calc(
      var(--mc-menu-cta-height, calc(67px + env(safe-area-inset-bottom, 0px))) +
        16px
    );
  }
}

@media (max-width: 360px) {
  .mc-mobile-menu__content {
    padding-right: 16px;
    padding-left: 16px;
  }
  .mc-mobile-menu__action {
    font-size: 13px;
  }
}
