/* Shared chrome lock.
   Page-local CSS (especially /leah/ Pretendard resets) may not restyle
   the homepage masthead or footer. Load AFTER page-local <style> blocks. */

header.masthead {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 40 !important;
  height: auto !important;
  border-bottom: 1px solid var(--rule, #E3DFD5) !important;
  background: var(--paper, #FBFAF7) !important;
  backdrop-filter: blur(8px);
  color: var(--ink-2, #4A463E);
  font-family: var(--font-ui, "DM Sans", sans-serif);
}

header.masthead nav,
header.masthead .nav {
  position: static !important;
  inset: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
}

header.masthead .nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s4, 1rem);
}

header.masthead a {
  color: var(--ink-2, #4A463E);
  text-decoration: none;
}

header.masthead .nav a {
  font-size: var(--t-small, 0.9375rem);
  font-weight: 500;
  padding: var(--s2, 0.5rem) 0;
  border-bottom: 2px solid transparent;
}

header.masthead .nav a:hover {
  color: var(--ink, #1A1815);
  border-bottom-color: var(--accent, #A8621B);
}

header.masthead .license-plate {
  font-size: var(--t-micro, 0.8125rem);
  line-height: 1.35;
  color: var(--ink-3, #6E6961);
  padding-left: var(--s4, 1rem);
  border-left: 2px solid var(--accent, #A8621B);
  margin: 0;
}

header.masthead .nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule-strong, #CFC9BB);
  border-radius: var(--r-sm, 6px);
  padding: var(--s2, 0.5rem) var(--s3, 0.75rem);
  font: inherit;
  font-size: var(--t-small, 0.9375rem);
  color: var(--ink, #1A1815);
  cursor: pointer;
  min-height: 44px;
}

.nav-logo {
  width: 260px !important;
  max-width: none !important;
  min-width: 0;
  flex: 0 0 auto !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.nav-logo img,
.footer-standard-brand img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain;
}

.nav-logo picture,
.footer-standard-brand picture {
  display: block;
  width: 100%;
}

@media (max-width: 900px) {
  .nav-logo { width: 220px !important; }
}

@media (max-width: 560px) {
  .nav-logo { width: 180px !important; }
}

@media (max-width: 1080px) {
  header.masthead .nav-toggle { display: block !important; }
  header.masthead .nav {
    display: none !important;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s1, 0.25rem);
    padding-bottom: var(--s4, 1rem);
  }
  header.masthead .nav.is-open { display: flex !important; }
  header.masthead .masthead-inner { flex-wrap: wrap; }
  header.masthead .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
  }
}

footer.footer {
  display: block !important;
  background: var(--paper-sunk, #F4F2EC) !important;
  color: var(--ink-2, #4A463E);
  border-top: 1px solid var(--rule, #E3DFD5);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-ui, "DM Sans", sans-serif);
}

footer.footer a {
  color: var(--ink-2, #4A463E);
  text-decoration: none;
}

footer.footer .footer-h {
  font-family: var(--font-ui, "DM Sans", sans-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--t-micro, 0.8125rem);
  color: var(--ink-3, #6E6961);
  margin: 0 0 0.75rem;
}

footer.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

footer.footer .footer-standard-brand img {
  width: 220px !important;
  height: auto !important;
}

footer.footer p,
footer.footer li {
  max-width: none;
}
