/* One typographic system across the home, guide hub and their shared header. */
body.page-id-484 .eventmoa-header,
body.page-id-16177 .eventmoa-header,
#boss-main-v4.bm-reference-exact,
#boss-guides-canvas {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#boss-main-v4.bm-reference-exact button,
#boss-main-v4.bm-reference-exact input,
#boss-guides-canvas button,
#boss-guides-canvas input { font-family: inherit; }

/* Replace the mixed bitmap/icon-test quick menu with six consistent line icons. */
#boss-main-v4.bm-reference-exact .ref-quick { align-items: stretch; }
#boss-main-v4.bm-reference-exact .ref-quick a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #e5ece7;
  box-shadow: none;
  white-space: nowrap;
  line-height: 1.2;
}
#boss-main-v4.bm-reference-exact .ref-quick-symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf6ef;
  color: #176449;
}
#boss-main-v4.bm-reference-exact .ref-quick-symbol svg { display: block; width: 19px; height: 19px; }
#boss-main-v4.bm-reference-exact .ref-quick-symbol .accent { stroke: #e87821; }
#boss-main-v4.bm-reference-exact .ref-quick-label { display: block; min-width: 0; text-align: center; }
#boss-main-v4.bm-reference-exact .ref-search button,
#boss-guides-canvas .hero-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

/* Keep the approved desktop visual; the picture swaps to a 1px source on mobile. */
#boss-main-v4.bm-reference-exact .ref-proof-picture,
#boss-main-v4.bm-reference-exact .ref-proof-picture img {
  display: block;
  width: 100%;
  height: 100%;
}
#boss-main-v4.bm-reference-exact .ref-proof-picture img { object-fit: cover; object-position: center; }

/* The category sprite is one 21 KB asset. A versioned URL avoids stale CSS/image pairs. */
#boss-guides-canvas .guide-topic-sprite {
  background-image: url('/wp-content/uploads/eventmoa-assets/guide-topic-icons-20260926.webp?v=20260927-1') !important;
  background-repeat: no-repeat !important;
  background-size: 500% 400% !important;
  background-position: var(--sprite-x) var(--sprite-y) !important;
}
#boss-guides-canvas .guides-aside--categories .guide-topic-sprite { filter: grayscale(1); }
/* The latest guides are an editorial reading list, not a wall of tiny cards. */
#boss-guides-canvas #guide-list .guides-heading { margin-bottom: 17px; }
#boss-guides-canvas #guide-list .guides-heading .section-title { font-size: 22px; line-height: 1.3; }
#boss-guides-canvas #guide-list .heading-count { margin-left: 7px; font-size: 13px; font-weight: 650; color: #687b70; white-space: nowrap; }
#boss-guides-canvas #guide-list .sort-tabs { padding: 0; border: 0; border-bottom: 1px solid #dce8df; border-radius: 0; background: transparent; box-shadow: none; }
#boss-guides-canvas #guide-list .sort-tab { min-height: 36px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none !important; color: #687b70; font-size: 12px; font-weight: 650; }
#boss-guides-canvas #guide-list .sort-tab.is-active { border-bottom-color: #076246; color: #075e45; font-weight: 760; }
#boss-guides-canvas #guide-list .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; row-gap: 0; }
#boss-guides-canvas #guide-list .guide-card,
#boss-guides-canvas #guide-list .guide-card:nth-child(-n + 2) {
  display: block;
  min-height: 134px;
  padding: 19px 26px 18px 0;
  border: 0 !important;
  border-top: 1px solid #e3eae5 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  transform: none;
}
#boss-guides-canvas #guide-list .guide-card:hover { padding-left: 0; border-top-color: #9fbdab !important; background: transparent; box-shadow: none !important; }
#boss-guides-canvas #guide-list .guide-card::after { top: 54px; right: 2px; bottom: auto; color: #789c85; font-size: 18px; transform: none; }
#boss-guides-canvas #guide-list .guide-card:hover::after { color: #075e45; transform: translateX(3px); }
#boss-guides-canvas #guide-list .guide-card-art { display: none !important; }
#boss-guides-canvas #guide-list .guide-meta { gap: 9px; margin-bottom: 8px; }
#boss-guides-canvas #guide-list .guide-badge { min-height: 23px; padding: 2px 8px; border-radius: 5px; background: #eaf5ed; color: #176a4c; font-size: 11px; line-height: 1.3; }
#boss-guides-canvas #guide-list .guide-updated { color: #84928a; font-size: 11px; }
#boss-guides-canvas #guide-list .guide-title { max-width: none; color: #17382a; font-size: 16px; line-height: 1.42; font-weight: 750; }
#boss-guides-canvas #guide-list .guide-desc { max-width: none; margin-top: 7px; color: #63746a; font-size: 12.5px; line-height: 1.5; white-space: normal; -webkit-line-clamp: 2; }

@media (min-width: 761px) {
  body.admin-bar.page-id-484 .eventmoa-header,
  body.admin-bar.page-id-16177 .eventmoa-header {
    margin-top: 32px !important;
    top: 32px !important;
  }
}

@media (max-width: 760px) {
  body.page-id-484 .rank-math-analytics-stats-wrapper,
  body.page-id-16177 .rank-math-analytics-stats-wrapper { display: none !important; }
  /* The WP toolbar is absolute on phones; it must not cover the site logo. */
  body.admin-bar.page-id-484 .eventmoa-header,
  body.admin-bar.page-id-16177 .eventmoa-header { margin-top: 46px !important; }
  body.page-id-484 .eventmoa-header .eventmoa-top,
  body.page-id-16177 .eventmoa-header .eventmoa-top {
    height: 42px !important;
    min-height: 42px !important;
    padding-block: 0 !important;
  }
  body.page-id-484 .eventmoa-header .eventmoa-mobile-primary-nav,
  body.page-id-16177 .eventmoa-header .eventmoa-mobile-primary-nav {
    height: 32px !important;
    min-height: 32px !important;
    padding-block: 0 !important;
  }
  body.page-id-484 .eventmoa-header .eventmoa-logo-text,
  body.page-id-16177 .eventmoa-header .eventmoa-logo-text { font-size: 16px; }

  #boss-main-v4.bm-reference-exact,
  #boss-guides-canvas { font-size: 14px; letter-spacing: -.035em; }

  #boss-main-v4.bm-reference-exact .ref-hero { min-height: 0; height: auto; }
  #boss-main-v4.bm-reference-exact .ref-hero-inner { padding: 23px 0 26px; }
  #boss-main-v4.bm-reference-exact .ref-hero h1 { font-size: 27px; line-height: 1.25; }
  #boss-main-v4.bm-reference-exact .ref-hero-description { font-size: 13.5px; line-height: 1.5; }
  #boss-main-v4.bm-reference-exact .ref-search { height: 52px; margin: 18px 0 13px; padding: 4px; }
  #boss-main-v4.bm-reference-exact .ref-search input { font-size: 13px; }
  #boss-main-v4.bm-reference-exact .ref-search button { height: 42px; width: 60px; font-size: 13px; }
  #boss-main-v4.bm-reference-exact .ref-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  #boss-main-v4.bm-reference-exact .ref-quick a {
    height: 48px;
    padding: 5px 6px;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
  }
  #boss-main-v4.bm-reference-exact .ref-quick-symbol { width: 26px; height: 26px; border-radius: 8px; }
  #boss-main-v4.bm-reference-exact .ref-quick-symbol svg { width: 17px; height: 17px; }
  #boss-main-v4.bm-reference-exact .ref-quick-label { white-space: nowrap; }
  #boss-main-v4.bm-reference-exact .ref-main { padding: 25px 0 42px; }
  #boss-main-v4.bm-reference-exact .ref-section + .ref-section { margin-top: 31px; }
  #boss-main-v4.bm-reference-exact .ref-section-head { margin-bottom: 12px; }
  #boss-main-v4.bm-reference-exact .ref-section-head h2 { font-size: 20px; }
  #boss-main-v4.bm-reference-exact .ref-section-head p { font-size: 12px; line-height: 1.45; }
  #boss-main-v4.bm-reference-exact .ref-topic-grid { gap: 7px; }
  #boss-main-v4.bm-reference-exact .ref-directory .ref-topic-grid > a {
    min-height: 48px;
    height: auto;
    padding: 7px 9px;
    gap: 7px;
  }
  #boss-main-v4.bm-reference-exact .ref-topic-grid > a > span:not(.ref-sprite) { font-size: 12px; }

  /* Mobile keeps the live counts, without showing or fetching the large visual. */
  #boss-main-v4.bm-reference-exact .ref-proof-image-live {
    display: block !important;
    width: 100%;
    margin-top: 15px;
  }
  #boss-main-v4.bm-reference-exact .ref-proof-image-stage {
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 7px;
    overflow: visible;
    border: 1px solid #e4eee6;
    border-radius: 13px;
    background: #f5faf6;
    box-shadow: none;
  }
  #boss-main-v4.bm-reference-exact .ref-proof-picture { display: none; }
  #boss-main-v4.bm-reference-exact .ref-proof-image-live-stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 68px;
    margin: 0;
    padding: 8px 2px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
  }
  #boss-main-v4.bm-reference-exact .ref-proof-image-live-stats > div { min-width: 0; }
  #boss-main-v4.bm-reference-exact .ref-proof-image-live-stats strong { font-size: 18px; line-height: 1.1; }
  #boss-main-v4.bm-reference-exact .ref-proof-image-live-stats span { font-size: 10px; line-height: 1.3; }

  #boss-guides-canvas .container { width: calc(100% - 24px); padding-bottom: 36px; }
  #boss-guides-canvas .hero { padding: 22px 15px; }
  #boss-guides-canvas .hero h1 { font-size: 28px; line-height: 1.2; }
  #boss-guides-canvas .hero-copy { font-size: 13px; line-height: 1.5; }
  #boss-guides-canvas .hero-search { min-height: 52px; }
  #boss-guides-canvas .hero-search .input { height: 50px; min-height: 50px; font-size: 13px; }
  #boss-guides-canvas .hero-search-button { min-height: 42px; height: 42px; font-size: 13px; }
  #boss-guides-canvas .quick-searches { gap: 6px; }
  #boss-guides-canvas .quick-label { font-size: 11px; }
  #boss-guides-canvas .quick-chip { min-height: 25px; padding: 3px 8px; font-size: 10px; }
  #boss-guides-canvas .content-section[aria-labelledby="bossGuidesTopicsTitle"] { padding: 13px 0; }
  #boss-guides-canvas .content-section[aria-labelledby="bossGuidesTopicsTitle"] .topic-grid { gap: 7px; }
  #boss-guides-canvas .topic-card { min-height: 78px; padding: 7px 2px; }
  #boss-guides-canvas .topic-card .topic-visual.guide-topic-sprite {
    --guide-icon-size: 42px;
    width: 42px;
    height: 42px;
  }
  #boss-guides-canvas .topic-name { font-size: 10px; line-height: 1.25; }

  #boss-guides-canvas .guide-workspace { gap: 15px; }
  #boss-guides-canvas .guides-aside--categories { padding: 15px 0 8px; border: 0; border-bottom: 1px solid #e3ebe5; border-radius: 0; background: transparent; }
  #boss-guides-canvas .guides-aside--categories .guides-aside__head { margin-bottom: 4px; padding: 0 2px; }
  #boss-guides-canvas .guides-aside--categories .guides-aside__head h2 { font-size: 16px; line-height: 1.4; }
  #boss-guides-canvas .guides-aside--categories .topic-rail-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 17px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  #boss-guides-canvas .guides-aside--categories .topic-rail-list::-webkit-scrollbar { display: none; }
  #boss-guides-canvas .guides-aside--categories .topic-rail-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 43px;
    width: auto;
    margin: 0;
    padding: 8px 1px 9px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #53665a;
    font-size: 13px;
    font-weight: 680;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  #boss-guides-canvas .guides-aside--categories .topic-rail-link.is-active,
  #boss-guides-canvas .guides-aside--categories .topic-rail-all { border-bottom-color: #075e45; background: transparent; color: #075e45; font-weight: 800; }
  #boss-guides-canvas .guides-aside--categories .topic-rail-icon { display: none; }
  #boss-guides-canvas .guides-aside--categories .topic-rail-count { display: none; }
  #boss-guides-canvas .guide-feature-grid { gap: 8px; margin-bottom: 18px; }
  #boss-guides-canvas .guide-feature { min-height: 64px; padding: 10px 12px; }
  #boss-guides-canvas .guide-feature-copy strong { font-size: 13px; line-height: 1.35; }
  #boss-guides-canvas #guide-list .guides-heading { display: block; margin-bottom: 13px; }
  #boss-guides-canvas #guide-list .guides-heading .section-title { font-size: 22px; }
  #boss-guides-canvas #guide-list .sort-tabs { display: flex; justify-content: space-between; margin-top: 12px; }
  #boss-guides-canvas #guide-list .sort-tab { flex: 1; min-width: 0; padding: 0 5px; font-size: 12px; white-space: nowrap; }
  #boss-guides-canvas #guide-list .guide-grid { display: block; }
  #boss-guides-canvas #guide-list .guide-card,
  #boss-guides-canvas #guide-list .guide-card:nth-child(-n + 2) { min-height: 0; padding: 17px 28px 18px 1px; }
  #boss-guides-canvas #guide-list .guide-card::after { top: 50%; right: 3px; transform: translateY(-50%); }
  #boss-guides-canvas #guide-list .guide-card:hover::after { transform: translate(3px,-50%); }
  #boss-guides-canvas #guide-list .guide-meta { margin-bottom: 7px; }
  #boss-guides-canvas #guide-list .guide-title { font-size: 15.5px; line-height: 1.43; }
  #boss-guides-canvas #guide-list .guide-desc { margin-top: 7px; font-size: 12.5px; line-height: 1.5; }
}

@media (max-width: 360px) {
  #boss-main-v4.bm-reference-exact .ref-quick a { font-size: 10px; padding-inline: 3px; }
  #boss-main-v4.bm-reference-exact .ref-quick-symbol { width: 24px; height: 24px; }
  #boss-guides-canvas .topic-name { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  #boss-main-v4.bm-reference-exact .ref-quick a,
  #boss-guides-canvas .topic-card { transition: none; }
}
