/* ==========================================================
   Studio Mobility and Memory — LIVE layer: header, menu, footer only
   Extracted from smm-design.css (sections 2, 7 and the header/footer
   lines of 1, 9, 10) on 2026-11-16. Loaded for all visitors by
   mu-plugins/smm-design-live.php. Delete that file to roll back.
   ========================================================== */

:root {
  --smm-rust: #b33e00;
  --smm-ink: #1f1f1f;
  --smm-steel: #5d6168;
  --smm-rule: #b9b9b9;
  --smm-cream: #fbeee6;
  --smm-serif: "Inria Serif", Georgia, "IBM Plex Sans KR", serif;
  --smm-sans: Montserrat, "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  --smm-gutter: clamp(20px, 3.4vw, 48px);
}

/* ---------- Footer type ---------- */
body .site-footer { font-family: var(--smm-sans); }
body .site-footer .widget-title,
body .site-footer h2 { font-family: var(--smm-serif) !important; }

/* ---------- Header & navigation ---------- */
body .ast-primary-header-bar .ast-container,
body .ast-primary-header-bar .site-primary-header-wrap {
  padding-left: var(--smm-gutter) !important;
  padding-right: var(--smm-gutter) !important;
}
body #ast-hf-menu-1 > .menu-item > .menu-link {
  position: relative;
  transition: color .2s ease;
}
body #ast-hf-menu-1 > .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 18px;
  height: 1px;
  background: currentColor;
  transition: left .25s ease, right .25s ease;
}
body #ast-hf-menu-1 > .menu-item > .menu-link:hover,
body #ast-hf-menu-1 > .current-menu-item > .menu-link,
body #ast-hf-menu-1 > .current-menu-ancestor > .menu-link {
  color: var(--smm-rust) !important;
}
body #ast-hf-menu-1 > .menu-item > .menu-link:hover::after,
body #ast-hf-menu-1 > .current-menu-item > .menu-link::after,
body #ast-hf-menu-1 > .current-menu-ancestor > .menu-link::after {
  left: 1.6em; right: calc(1.6em + 4px);
}

/* Language switch: current language reads as selected, others recede */
body #ast-hf-menu-2 { align-items: center; }
body #ast-hf-menu-2 > .lang-item > .menu-link {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 10px !important;
  color: var(--smm-steel) !important;
  font-family: var(--smm-sans) !important;
  font-weight: 500;
  letter-spacing: 0.08em;
}
body #ast-hf-menu-2 > .lang-item + .lang-item { position: relative; }
body #ast-hf-menu-2 > .lang-item + .lang-item::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 1px; height: 10px; margin-top: -5px;
  background: var(--smm-rule);
}
body #ast-hf-menu-2 > .current-lang > .menu-link {
  color: var(--smm-rust) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
body #ast-hf-menu-2 > .lang-item > .menu-link:hover { color: var(--smm-ink) !important; }

/* ---------- Footer ---------- */
/* Rust links on a rust ground were ~1.3:1; footer text now reads in cream */
body .site-footer .site-above-footer-wrap,
body .site-footer .site-primary-footer-wrap {
  padding-top: clamp(48px, 5vw, 72px) !important;
  padding-bottom: clamp(40px, 4.5vw, 64px) !important;
}
body .site-footer .widget-title,
body .site-footer h2 {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: 0.02em;
}
body .site-primary-footer-wrap a,
body .site-above-footer-wrap a,
body .site-primary-footer-wrap .widget,
body .site-primary-footer-wrap p {
  color: var(--smm-cream) !important;
}
body .site-primary-footer-wrap .menu a,
body .site-primary-footer-wrap .widget a:not(:has(img)) {
  text-decoration: none;
  line-height: 2;
}
body .site-primary-footer-wrap a:hover,
body .site-primary-footer-wrap a:focus-visible {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Keyboard focus (menu, footer) ---------- */
body .menu-link:focus-visible {
  outline: 2px solid var(--smm-rust) !important;
  outline-offset: 3px;
}
body .site-footer a:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
}

/* ---------- Small screens (footer) ---------- */
@media (max-width: 767px) {
  body .site-footer .widget { text-align: left; }
  body .site-footer .widget_media_image img { max-width: 120px !important; }
  body .site-footer .social-icons, body .site-footer [class*="social"] { justify-content: flex-start !important; text-align: left !important; }
}
