/**
 * K-POPSTAY — shared base (nav, buttons, wrap, footer, a11y)
 * SSOT: toss.md · craft.md · a11y.md · travel.md §1b
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--wh-ff);
  background: var(--wh-bg);
  color: var(--wh-tx2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: var(--wh-lh-body);
  letter-spacing: var(--wh-tracking-body);
}
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--wh-focus-ring);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.wrap {
  max-width: min(var(--wh-max-page), calc(100% - 36px));
  margin: 0 auto;
  padding: 0 18px;
}

/* ── Press ── */
.wh-pressable {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform var(--wh-motion-base) var(--wh-ease-spring),
    opacity var(--wh-motion-fast) var(--wh-ease-out-smooth),
    background-color var(--wh-motion-fast) var(--wh-ease-out-smooth),
    box-shadow var(--wh-motion-base) var(--wh-ease-out-smooth),
    border-color var(--wh-motion-fast) var(--wh-ease-out-smooth);
}
.wh-pressable:active {
  transform: scale(var(--wh-scale-press));
  transition-duration: var(--wh-motion-fast);
  transition-timing-function: var(--wh-ease-press);
}

@media (hover: hover) and (pointer: fine) {
  .wh-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-shadow-listing-hover);
  }
}

/* ── Buttons ── */
.kps-btn-primary,
.hero-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta);
  padding: 12px 20px;
  background: var(--wh-brand);
  color: #fff;
  font-size: var(--wh-text-sm);
  font-weight: 700;
  border: none;
  border-radius: var(--wh-radius-btn);
  cursor: pointer;
  text-decoration: none;
}
.kps-btn-primary:hover,
.hero-search-btn:hover {
  background: var(--wh-brand-hover);
  color: #fff;
  text-decoration: none;
}

.kps-btn-accent,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-min);
  padding: 8px 14px;
  background: var(--wh-brand-tint);
  color: var(--wh-brand);
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  border-radius: var(--wh-radius-btn);
  cursor: pointer;
  text-decoration: none;
}
.kps-btn-accent:hover,
.nav-cta:hover {
  background: var(--wh-info-bd);
  color: var(--wh-brand);
  filter: none;
  text-decoration: none;
}

.kps-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-min);
  padding: 10px 18px;
  background: transparent;
  color: var(--wh-tx);
  font-size: var(--wh-text-sm);
  font-weight: 700;
  border: 1.5px solid var(--wh-bd-input);
  border-radius: var(--wh-radius-btn);
  cursor: pointer;
  text-decoration: none;
}
.kps-btn-ghost:hover {
  background: var(--wh-card);
  border-color: var(--wh-tx3);
  text-decoration: none;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: var(--wh-z-sticky);
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wh-bd);
}
nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--wh-bd);
}
.nav-inner {
  max-width: min(var(--wh-max-page), calc(100% - 36px));
  margin: 0 auto;
  padding: 0 18px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--wh-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--wh-ff-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--wh-tx);
  letter-spacing: var(--wh-tracking-title);
}
.nav-logo-sub {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--wh-brand);
  background: var(--wh-brand-tint);
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wh-tx);
  padding: 8px 10px;
  border-radius: 10px;
  min-height: var(--wh-touch-min);
  display: inline-flex;
  align-items: center;
}
.nav-link:hover {
  color: var(--wh-brand);
  background: var(--wh-brand-tint);
  text-decoration: none;
}
.nav-lang { position: relative; }
.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--wh-card);
  border: 1px solid var(--wh-bd-input);
  color: var(--wh-tx);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  min-height: var(--wh-touch-min);
}
.nav-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--wh-card);
  border: 1px solid var(--wh-bd);
  border-radius: var(--wh-radius-xs);
  box-shadow: var(--wh-shadow-listing);
  min-width: 140px;
  z-index: 999;
  overflow: hidden;
}
.nav-lang-dropdown.open { display: block; }
.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.78rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--wh-tx);
  min-height: var(--wh-touch-min);
}
.lang-option:hover { background: var(--wh-brand-tint); color: var(--wh-brand); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: var(--wh-touch-min);
  min-height: var(--wh-touch-min);
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--wh-tx);
  border-radius: 1px;
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: var(--wh-card);
  border-top: 1px solid var(--wh-bd);
  padding: 12px 16px 18px;
  flex-direction: column;
  gap: 4px;
  z-index: 890;
  box-shadow: var(--wh-shadow-listing);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  min-height: var(--wh-touch-min);
  color: var(--wh-tx);
}
.mobile-link:hover {
  background: var(--wh-brand-tint);
  color: var(--wh-brand);
  text-decoration: none;
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Section titles ── */
.sec-kicker {
  font-size: var(--wh-text-xs);
  font-weight: 700;
  color: var(--wh-brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-title {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--wh-tx);
  letter-spacing: var(--wh-tracking-title);
  margin-bottom: 8px;
  line-height: 1.25;
}
.sec-sub {
  font-size: var(--wh-text-sm);
  color: var(--wh-tx2);
  margin-bottom: 22px;
  max-width: 48ch;
  line-height: 1.6;
}

/* ── CTA strip (soft tint band) ── */
.cta-strip {
  background: var(--wh-brand-tint);
  padding: var(--wh-space-5xl) 0;
  text-align: center;
  border-top: 1px solid var(--wh-bd);
  border-bottom: 1px solid var(--wh-bd);
}
.cta-strip h2 {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--wh-tx);
  margin-bottom: 10px;
  letter-spacing: var(--wh-tracking-title);
}
.cta-strip p {
  color: var(--wh-tx2);
  margin-bottom: 22px;
  font-size: 0.9rem;
}
.cta-strip .btn-white,
.cta-strip .kps-btn-primary {
  display: inline-flex;
  background: var(--wh-brand);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--wh-radius-btn);
  font-size: 0.88rem;
  margin: 0 6px 8px;
  min-height: var(--wh-touch-cta);
  align-items: center;
}
.cta-strip .btn-white:hover,
.cta-strip .kps-btn-primary:hover {
  background: var(--wh-brand-hover);
  color: #fff;
  text-decoration: none;
}
.cta-strip .btn-outline,
.cta-strip .kps-btn-ghost {
  display: inline-flex;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  color: var(--wh-tx);
  background: transparent;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--wh-radius-btn);
  font-size: 0.88rem;
  margin: 0 6px 8px;
  min-height: var(--wh-touch-cta);
  align-items: center;
}
.cta-strip .btn-outline:hover,
.cta-strip .kps-btn-ghost:hover {
  background: var(--wh-card);
  text-decoration: none;
}
/* Home bottom: Search = accent tint, Host = outline (solid violet only on hero Search) */
.cta-strip .btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta);
  margin: 0 6px 8px;
  padding: 12px 22px;
  background: var(--wh-card);
  color: var(--wh-brand);
  border: 1.5px solid var(--wh-info-bd);
  border-radius: var(--wh-radius-btn);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}
.cta-strip .btn-accent:hover {
  background: var(--wh-info-bd);
  color: var(--wh-brand);
  text-decoration: none;
}

/* ── Footer ── */
footer {
  background: var(--wh-tx);
  color: rgba(255, 255, 255, 0.65);
  padding: 40px 0 28px;
}
.footer-top {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-logo-text {
  font-family: var(--wh-ff-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: 0.72rem;
  line-height: 1.55;
  max-width: 220px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-left: auto;
}
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.5);
  min-height: 28px;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.72rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-disclaimer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
  max-width: 720px;
}

/* ── Guide / hub shared ── */
.guide-hero {
  padding: 40px 0 28px;
  background: var(--wh-card);
  border-bottom: 1px solid var(--wh-bd);
}
.guide-hero h1 {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: var(--wh-tracking-title);
  color: var(--wh-tx);
  margin: 10px 0 10px;
  max-width: 22ch;
  line-height: 1.25;
}
.guide-hero .lead {
  font-size: 0.92rem;
  color: var(--wh-tx2);
  line-height: 1.6;
  max-width: 48ch;
}
.guide-body { padding: 36px 0 64px; }
.guide-prose { max-width: 680px; }
.guide-prose h2 {
  font-family: var(--wh-ff-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wh-tx);
  margin: 28px 0 10px;
}
.guide-prose h2:first-child { margin-top: 0; }
.guide-prose p,
.guide-prose li {
  font-size: 0.9rem;
  color: var(--wh-tx2);
  line-height: 1.7;
}
.guide-prose ul { margin: 8px 0 16px 1.15em; }
.guide-prose li { margin-bottom: 7px; }
.guide-cta {
  margin-top: 28px;
  padding: 20px;
  background: var(--wh-card);
  border: 1px solid var(--wh-bd);
  border-radius: var(--wh-radius-md);
  box-shadow: var(--wh-shadow-listing);
}
.guide-cta a {
  display: inline-flex;
  margin-top: 10px;
  margin-right: 8px;
  background: var(--wh-brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--wh-radius-btn);
  min-height: var(--wh-touch-min);
  align-items: center;
}
.guide-cta a:hover {
  background: var(--wh-brand-hover);
  color: #fff;
  text-decoration: none;
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
  max-width: 560px;
}
.hub-card {
  background: var(--wh-card);
  border: 1px solid var(--wh-bd);
  border-radius: var(--wh-radius-md);
  padding: 18px 18px 16px;
  display: block;
  box-shadow: var(--wh-shadow-listing);
  text-decoration: none;
}
.hub-card:hover {
  border-color: var(--wh-info-bd);
  box-shadow: var(--wh-shadow-listing-hover);
  text-decoration: none;
}
.hub-card .tag {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--wh-brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hub-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--wh-tx);
}
.hub-card p {
  font-size: 0.82rem;
  color: var(--wh-tx2);
  line-height: 1.55;
  margin-bottom: 8px;
}
.hub-card .go {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wh-brand);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wh-pressable,
  .wh-lift,
  .nav-link,
  .story,
  .live-cta,
  .live-official-card {
    transition: none !important;
  }
  .wh-pressable:active,
  .wh-lift:hover {
    transform: none !important;
  }
}
