@charset "utf-8";

/* 최상단 유틸리티 바. 이 파일 아래쪽에 .site-topbar 선언이 여러 번 있었는데
   값이 서로 달라 무엇이 적용되는지 알 수 없었다. 전부 여기로 모았다. */
.site-topbar {
  height: 34px;
  padding-top: 0;
  color: var(--secondary);
  background: var(--surface-pink);
  border-bottom: 1px solid rgba(242, 106, 75, 0.16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.site-topbar .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.topbar-summary {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  color: var(--primary-dark);
  background: rgba(242, 106, 75, 0.16);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 17px;
}

.topbar-links a {
  position: relative;
}

.topbar-links a + a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(122, 45, 24, 0.32);
  transform: translateY(-50%);
}

.font-size-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(122, 45, 24, 0.22);
  border-radius: var(--radius-pill);
  color: var(--secondary);
  font-weight: 800;
  font-family: var(--font-base);
  line-height: 1;
  letter-spacing: 0;
}

.font-size-button[data-font-size="small"] {
  font-size: 12px;
}

.font-size-button[data-font-size="medium"] {
  font-size: 14px;
}

.font-size-button[data-font-size="large"] {
  font-size: 16px;
}

.font-size-button.is-active,
.font-size-button:hover {
  color: var(--primary-dark);
  background: var(--surface-coral);
  border-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 79px;
  border-bottom: 1px solid rgba(236, 226, 207, 0.8);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo-image {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.gnb {
  margin-left: 22px;
}

.gnb-list {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gnb-link {
  display: flex;
  align-items: center;
  height: 38px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
}

.gnb-link:hover,
.gnb-link:focus-visible {
  color: var(--accent-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.header-search {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: var(--white);
  font-size: 0;
}

.header-search::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.header-search::after {
  content: "";
  position: relative;
  display: block;
  width: 7px;
  height: 2px;
  margin: -2px 0 0 22px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 104px;
  padding: 0 18px;
  color: var(--primary);
  background: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent-pale);
  color: var(--accent-ink);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.header-print {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.mobile-nav {
  display: none;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--primary-dark);
}

.footer-family {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.family-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.family-title {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.family-select {
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.family-select option {
  color: var(--primary);
}

.footer-main {
  display: grid;
  grid-template-columns: 330px 1fr;
  padding: 54px 0 48px;
}

.footer-logo {
  width: 245px;
  height: 38px;
  margin-bottom: 28px;
  background: url("../images/common/logo.png") no-repeat 0 50% / contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-info {
  max-width: 270px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.footer-nav strong {
  display: block;
  margin-bottom: 17px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.footer-nav li + li {
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.policy-links {
  display: flex;
  gap: 20px;
}

/* 우측 하단 도구 묶음. 데스크톱에서는 지금까지처럼 퀵바가 항상 펼쳐져 있고
   토글 버튼은 쓰지 않는다. 모바일에서만 접어서 챗봇과 나란히 둔다. */
.floating-dock-toggle {
  display: none;
}

/* 퀵바·챗봇·맨 위로를 한 묶음으로 세워 서로 떨어져 보이지 않게 한다. */
.floating-dock {
  position: fixed;
  right: 21px;
  top: 48%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.floating-nav {
  position: static;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 80px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.floating-nav > a,
.floating-nav-flyout-toggle,
.floating-nav-sns-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-align: center;
}

.floating-nav > a > span,
.floating-nav-flyout-toggle > span,
.floating-nav-sns-toggle > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.floating-nav > a > strong,
.floating-nav-flyout-toggle strong,
.floating-nav-sns-toggle strong {
  display: block;
  max-width: 74px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  word-break: keep-all;
}
.floating-nav > a .lucide-icon,
.floating-nav-flyout-toggle .lucide-icon,
.floating-nav-sns-toggle .lucide-icon,
.floating-nav-flyout-channel .lucide-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-nav-flyout,
.floating-nav-sns {
  position: relative;
}

.floating-nav-flyout-toggle,
.floating-nav-sns-toggle {
  width: 100%;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.floating-nav-flyout-menu {
  position: absolute;
  right: calc(100% + 12px);
  top: 32px;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -50%);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-nav-flyout-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.floating-nav-flyout-menu li {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-nav-flyout-menu.is-open li {
  opacity: 1;
  transform: translateX(0);
}

.floating-nav-flyout-menu.is-open li:nth-child(2) {
  transition-delay: 50ms;
}

.floating-nav-flyout-menu.is-open li:nth-child(3) {
  transition-delay: 100ms;
}

.floating-nav-flyout-menu.is-open li:nth-child(4) {
  transition-delay: 150ms;
}

.floating-nav-flyout-channel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: var(--white);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.floating-nav-flyout-channel::before,
.floating-nav-flyout-channel::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  visibility: hidden;
}

.floating-nav-flyout-channel::before {
  content: "";
  bottom: calc(100% + 3px);
  border: 5px solid transparent;
  border-top-color: var(--primary);
}

.floating-nav-flyout-channel::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 12px);
  z-index: 1;
  max-width: calc(100vw - 24px);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.floating-nav-flyout-channel:hover,
.floating-nav-flyout-channel:focus-visible {
  border-color: currentColor;
  transform: translateY(-3px) scale(1.03);
}

.floating-nav-flyout-channel:hover::before,
.floating-nav-flyout-channel:hover::after,
.floating-nav-flyout-channel:focus-visible::before,
.floating-nav-flyout-channel:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}







.floating-nav-education-toggle:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  .floating-nav-flyout-menu,
  .floating-nav-flyout-menu li,
  .floating-nav-flyout-channel,
  .floating-nav-flyout-channel::before,
  .floating-nav-flyout-channel::after,
  .chatbot-bubble {
    transition: none;
  }
}

/* 챗봇과 맨 위로 버튼은 한 묶음으로 우측 하단에 세로로 쌓는다.
   맨 위로가 가장 아래에 온다. */
.floating-dock-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chatbot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chatbot-bubble {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  display: flex;
  align-items: center;
  visibility: hidden;
  padding: 6px 9px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(4px, -50%);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.chatbot-bubble::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  border: 5px solid transparent;
  border-left-color: var(--primary);
  transform: translateY(-50%);
}

.chatbot:hover .chatbot-bubble,
.chatbot:focus-within .chatbot-bubble,
.chatbot .chatbot-button:hover + .chatbot-bubble,
.chatbot .chatbot-button:focus + .chatbot-bubble,
.chatbot .chatbot-button:focus-visible + .chatbot-bubble {
  visibility: visible;
  opacity: 1;
  transform: translate(0, -50%);
}

.chatbot-bubble small {
  margin-left: 3px;
  color: var(--white);
  font-size: inherit;
}

.chatbot-button {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--accent);
  font-size: 28px;
}

@media screen and (max-width: 1200px) {
  .gnb-list {
    gap: 12px;
  }

  .gnb-link {
    font-size: 13px;
  }

  .header-cta {
    display: none;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .gnb,
  .header-cta,
  .topbar-links {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .header-print {
    display: block;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* 플로팅 묶음의 맨 아래 항목이다. 위치는 묶음이 정한다. */
.scroll-top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  width: 66px;
  height: 66px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-size: 26px;
  font-weight: 800;
}

@media screen and (max-width: 767px) {
  .site-topbar {
    display: none;
  }

  .site-header {
    height: 64px;
  }

  .header-search {
    display: none;
  }

  .family-inner {
    display: block;
    padding: 28px 0;
  }

  .family-select {
    width: 100%;
    margin-top: 16px;
  }

  .footer-main {
    padding: 34px 0;
  }

  .footer-nav {
    display: none;
  }

  .footer-bottom {
    display: block;
    line-height: 1.6;
  }

  .policy-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .chatbot-bubble {
    display: none;
  }

  .chatbot-bubble {
    right: 0;
    top: auto;
    bottom: calc(100% + 10px);
    max-width: calc(100vw - 40px);
    transform: translateY(4px);
  }

  .chatbot-bubble::before {
    left: auto;
    right: 18px;
    top: 100%;
    border-color: transparent;
    border-top-color: var(--primary);
    transform: none;
  }

  .chatbot:hover .chatbot-bubble,
  .chatbot:focus-within .chatbot-bubble,
  .chatbot .chatbot-button:hover + .chatbot-bubble,
  .chatbot .chatbot-button:focus + .chatbot-bubble,
  .chatbot .chatbot-button:focus-visible + .chatbot-bubble {
    transform: translateY(0);
  }

  .chatbot-button {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .scroll-top-btn {
    display: flex;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* Small-type rendering guard for chrome */
.site-topbar,
.topbar-links,
.font-size-button,
.gnb-link,
.mega-depth2,
.mega-depth3 a,
.mobile-depth2,
.mobile-depth3 a,
.family-select,
.footer-info,
.footer-nav strong,
.footer-nav a,
.footer-bottom,
.policy-links a,
.floating-nav a,
.chatbot-bubble,
.chatbot-bubble small {
  letter-spacing: 0;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeSpeed;
}

.footer-info,
.footer-nav a,
.footer-bottom,
.policy-links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 2em;
}

.font-size-button,
.family-title,
.footer-nav strong {
  font-weight: 700;
}

.floating-nav a,
.chatbot-bubble small {
  font-size: 12px;
}

/* Header final polish: public-sector warmth with modern navigation */
.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-links .lucide-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.site-header {
  height: 76px;
  overflow: visible;
  border-bottom: 1px solid rgba(227, 215, 192, 0.9);
  background: rgba(255, 255, 255, 0.97);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 178px;
  align-items: center;
  width: min(calc(100% - 40px), 1440px);
  height: 100%;
}

.gnb-link {
  justify-content: center;
  height: 76px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  word-break: keep-all;
  white-space: normal;
}

.gnb-link::after {
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 4px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.96);
}

.lucide-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 99;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  width: min(calc(100% - 40px), 1440px);
  padding: 30px 0 34px;
}

.site-header .mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  width: min(calc(100% - 40px), 1440px);
  height: auto;
}

.mega-column {
  min-width: 0;
  min-height: 260px;
  padding: 0 20px;
  border-left: 1px solid var(--border);
}

.mega-title {
  display: block;
  min-height: 46px;
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.mega-depth2-list > li + li {
  margin-top: 10px;
}

.mega-depth2 {
  display: block;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
}

.mega-depth3 {
  margin-top: 4px;
  padding-left: 0;
  border-left: 0;
}

.mega-depth3 li + li {
  margin-top: 0;
}

.mega-depth3 a {
  display: block;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  word-break: keep-all;
}

.mega-title:hover,
.mega-title:focus-visible,
.mega-depth2:hover,
.mega-depth2:focus-visible,
.mega-depth3 a:hover,
.mega-depth3 a:focus-visible {
  color: var(--accent-strong);
}

.mobile-nav-head,
.mobile-menu-group,
.mobile-depth3 {
  display: none;
}

@media screen and (max-width: 1320px) {
  .site-header .header-inner {
    grid-template-columns: 238px minmax(0, 1fr) 96px;
    gap: 18px;
  }

  .gnb-link {
    padding: 0 5px;
    font-size: 13.5px;
  }

  .header-cta {
    display: none;
  }

  .site-header .mega-menu-inner {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: min(calc(100% - 40px), 1440px);
  }

  .mega-column {
    padding: 0 12px;
  }

  .mega-title {
    font-size: 16px;
  }

  .mega-depth2,
  .mega-depth3 a {
    font-size: 14px;
  }
}

@media screen and (max-width: 1024px) {
  .site-header .header-inner {
    display: flex;
    width: min(calc(100% - 40px), var(--header-container));
    gap: 0;
  }

  .gnb,
  .mega-menu,
  .topbar-links,
  .header-cta {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-print,
  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1001;
    display: block;
    width: min(420px, 100%);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.22s ease;
  }

  body.is-menu-open .mobile-nav {
    transform: translateX(0);
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(30, 26, 20, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  body.is-menu-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .mobile-nav-panel {
    height: 100%;
    overflow-y: auto;
    padding: 24px 24px 40px;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-head strong {
    display: flex;
    min-width: 0;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    word-break: keep-all;
  }

  /* 헤더 로고와 별도 규칙이다. 패널 폭에 맞춰 줄여 쓴다. */
  .mobile-nav-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
  }

  .mobile-nav-member {
    display: grid;
    gap: 10px;
    margin: 18px 0 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-warm);
  }

  .mobile-nav-member.is-signed-in {
    gap: 12px;
  }

  .mobile-nav-user {
    margin: 0;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    word-break: keep-all;
  }

  .mobile-member-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-member-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    word-break: keep-all;
  }

  .mobile-member-button-primary {
    border-color: var(--accent);
    color: var(--accent-ink);
    background: var(--accent);
  }

  .mobile-member-button-outline {
    color: var(--primary);
    background: var(--white);
  }

  .mobile-member-button:focus-visible {
    outline: 3px solid rgba(122, 45, 24, 0.28);
    outline-offset: 2px;
  }
  .mobile-menu-group {
    display: block;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu-group summary::-webkit-details-marker {
    display: none;
  }

  /* 메뉴명이 span이라 전역 span 규칙(font-weight:100)에 눌려
     summary에 준 굵기가 닿지 않았다. 이 자리만 상속받게 한다. */
  .mobile-menu-group summary > span {
    font-weight: inherit;
  }

  .mobile-chevron {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--muted);
    transition: transform 0.2s ease;
  }

  .mobile-menu-group[open] .mobile-chevron {
    transform: rotate(180deg);
  }

  .mobile-menu-group > ul {
    padding: 0 0 18px;
  }

  /* 1뎁스와 굵기가 같아 보여 위계가 드러나지 않았다.
     본문 굵기로 낮춰 상위 항목과 구분한다. */
  .mobile-depth2 {
    display: block;
    padding: 8px 0;
    color: var(--secondary);
    font-size: 15px;
    font-weight: 500;
  }

  .mobile-depth3 {
    display: block;
    padding: 0 0 8px 14px;
  }

  .mobile-depth3 a {
    display: block;
    padding: 5px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }
}

/* A option visual refinement: global chrome */

.topbar-links {
  gap: 20px;
}

.topbar-links a:hover {
  color: var(--primary-dark);
}

.font-size-button {
  border-color: rgba(122, 45, 24, 0.22);
  background: rgba(255, 255, 255, 0.6);
}

.site-header {
  border-bottom-color: rgba(227, 215, 192, 0.72);
  background: rgba(255, 255, 255, 0.94);
}

.gnb-link {
  position: relative;
  font-size: 16px;
  font-weight: 800;
}

.gnb-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gnb-link:hover::after,
.gnb-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-search,
.header-print,
.mobile-menu-button {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.header-search:hover,
.header-print:hover,
.mobile-menu-button:hover {
  border-color: var(--accent);
  background: var(--surface-warm);
}

.header-cta {
  color: var(--accent-ink);
  background: var(--accent);
}

.header-cta:hover {
  transform: translateY(-2px);
}

.floating-nav > .floating-nav-participation > span {
  color: var(--primary-dark);
  background: var(--surface-coral);
}

.floating-nav > .floating-nav-location > span {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.floating-nav-sns-toggle > span {
  color: var(--accent-ink);
  background: var(--accent);
}

.floating-nav > a:hover > span,
.floating-nav > a:focus-visible > span,
.floating-nav-flyout-toggle:hover > span,
.floating-nav-flyout-toggle:focus-visible > span,
.floating-nav-sns-toggle:hover > span,
.floating-nav-sns-toggle:focus-visible > span {
  border-color: currentColor;
  transform: translateY(-3px) scale(1.03);
}

.chatbot-bubble {
  background: var(--primary);
}

.chatbot-button {
  color: var(--accent-ink);
  background: var(--accent);
}

/* UI QA ratio pass 01: Figma section geometry */
@media screen and (min-width: 1201px) {
  .topbar-badge {
    height: 20px;
    padding: 0 10px;
  }

  .font-size-button {
    min-width: 20px;
    height: 20px;
    padding: 4px;
  }

  .site-header {
    height: 70px;
  }

  .gnb {
    margin-left: 18px;
  }

  .gnb-list {
    gap: 14px;
  }

  .gnb-link {
    height: 34px;
    font-size: 13.5px;
  }

  .header-search {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    height: 40px;
    min-width: 98px;
    padding: 0 17px;
    font-size: 13px;
  }

  .family-inner {
    min-height: 82px;
  }

  .footer-main {
    padding: 70px 0;
  }

  .footer-bottom {
    min-height: 92px;
  }
}

/* Header QA pass: balanced grid, Lucide icons, mega menu, search layer */
.site-topbar .header-inner,
.site-header .header-inner {
  width: min(calc(100% - 40px), 1440px);
}

.site-header {
  height: 76px;
  overflow: visible;
}


.gnb {
  margin-left: 0;
  min-width: 0;
}

.gnb-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
}

.gnb-link {
  justify-content: center;
  height: 76px;
  padding: 0 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.gnb-link::after {
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 4px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
}

.lucide-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--surface-warm);
  transform: translateY(-1px);
}

.header-search,
.mobile-menu-button {
  font-size: 0;
}

.header-print,
.mobile-menu-button {
  display: none;
}


.header-search::before,
.header-search::after {
  content: none;
}

.header-cta {
  height: 40px;
  min-width: 105px;
  padding: 0 16px;
  font-size: 13px;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 99;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-strong);
  background: #fff;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-header:hover .mega-menu,
.site-header:focus-within .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 26px 0 30px;
}

.mega-column {
  min-height: 230px;
  padding: 0 18px;
  border-left: 1px solid var(--border);
}

.mega-column:last-child {
  border-right: 1px solid var(--border);
}

.mega-title {
  display: block;
  min-height: 44px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.mega-depth2-list {
}

.mega-depth2-list > li + li {
  margin-top: 9px;
}

.mega-depth2 {
  display: block;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.mega-title:hover,
.mega-depth2:hover,
.mega-depth2:focus-visible,
.mega-depth3 a:hover,
.mega-depth3 a:focus-visible {
  color: var(--accent-strong);
}

.mega-depth3 {
  margin-top: 7px;
  padding: 8px 0 2px 10px;
  border-left: 2px solid var(--border);
}

.mega-depth3 li + li {
  margin-top: 6px;
}

.mega-depth3 a {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

/* 마크업 클래스는 .search-modal 이다(common.js 도 이 이름으로 찾는다).
   .all-menu-modal 과 같은 규칙 구조를 쓴다. */
.search-modal[hidden] {
  display: none;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-20);
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 20, 0.46);
}

.search-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 720px);
  padding: 34px 38px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.search-panel h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
}

.search-panel p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-20);
  color: var(--secondary);
  line-height: 1.6;
  text-align: center;
}

.search-panel p::before {
  content: "!";
  flex: none;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--point-strong);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.search-close {
  position: absolute;
  right: 22px;
  top: 22px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  margin-top: 26px;
}

.search-form input {
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: var(--surface-bright);
  font-size: 16px;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  border-radius: var(--radius-sm);
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 800;
}

.search-submit .lucide-icon {
  width: 18px;
  height: 18px;
}

body.is-search-open {
  overflow: hidden;
}

@media screen and (max-width: 1320px) {
  .site-header .header-inner {
    grid-template-columns: 238px minmax(0, 1fr) 142px;
    gap: 18px;
  }

  .gnb-link {
    font-size: 13.5px;
    padding: 0 5px;
  }

  .header-cta {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .site-header .header-inner {
    display: flex;
    width: min(calc(100% - 40px), var(--header-container));
    gap: 0;
  }

  .mega-menu {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .header-print {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media screen and (max-width: 767px) {
  .site-header {
    height: 64px;
  }

  .header-search {
    display: inline-flex;
  }

  .search-modal {
    padding: var(--space-12);
  }

  .search-panel {
    padding: 28px 22px 26px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }
}

/* Final navigation layout guard: keep mega menu independent from header grid */
.site-header > .mega-menu > .mega-menu-inner.header-inner,
.site-header > .mega-menu > .mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  width: min(calc(100% - 40px), 1440px);
  height: auto;
  margin: 0 auto;
  padding: 30px 0 34px;
}

.site-header > .mega-menu .mega-column {
  min-width: 0;
  min-height: 260px;
  padding: 0 20px;
}

@media screen and (max-width: 1320px) and (min-width: 1025px) {
  .site-header > .mega-menu > .mega-menu-inner.header-inner,
  .site-header > .mega-menu > .mega-menu-inner {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: min(calc(100% - 40px), 1440px);
    padding: 26px 0 30px;
  }

  .site-header > .mega-menu .mega-column {
    padding: 0 12px;
  }
}

@media screen and (max-width: 1024px) {
  .site-header > .mega-menu {
    display: none;
  }
}

/* Header renewal */
/* 이 프로젝트에서 그림자를 쓰는 곳은 상단 고정 네비뿐이다.
   본문 위로 겹쳐 지나가므로 경계를 만들어 준다. */
.site-header {
  top: 0;
  height: 82px;
  overflow: visible;
  border-bottom: 1px solid rgba(47, 42, 33, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  column-gap: 44px;
  height: 100%;
}

.gnb {
  min-width: 0;
  justify-self: center;
}

.gnb-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  gap: 0;
}

.gnb-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
}

.gnb-item + .gnb-item {
  margin-left: 40px;
}

.gnb-item + .gnb-item::before {
  content: "|";
  position: absolute;
  left: -22px;
  top: 50%;
  color: #d7d7d7;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
}

.gnb-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  border-radius: 0;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -1px;
  white-space: nowrap;
}

.gnb-item:hover .gnb-link,
.gnb-item:focus-within .gnb-link {
  color: var(--accent-strong);
}

.gnb-submenu {
  position: absolute;
  left: 53%;
  top: calc(100% + 27px);
  z-index: 110;
  display: grid;
  min-width: 230px;
  text-align: center;
  padding: 14px;
  border: 1px solid rgba(227, 215, 192, 0.9);
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.gnb-item:hover .gnb-submenu,
.gnb-item:focus-within .gnb-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.gnb-submenu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--secondary);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.gnb-submenu a:hover,
.gnb-submenu a:focus-visible {
  color: var(--primary);
  background: var(--surface-warm);
}

.site-header .mega-menu {
  display: none !important;
}

.header-actions {
  flex: 0 0 auto;
  gap: 8px;
  justify-self: end;
  min-width: max-content;
  margin-left: 0;
}

.header-search,
.all-menu-button,
.mobile-menu-button {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--white);
}

.mobile-menu-button {
  display: none;
}

.header-search svg,
.all-menu-button svg,
.mobile-menu-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.header-cta {
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

.all-menu-modal[hidden] {
  display: none;
}

.all-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.all-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 20, 0.45);
  backdrop-filter: blur(6px);
}

.all-menu-panel {
  position: relative;
  width: min(calc(100% - 56px), 1180px);
  max-height: calc(100vh - 80px);
  margin: 40px auto;
  overflow: auto;
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffdf8 0%, #ffffff 60%, #fff4df 100%);
}

.all-menu-head {
  position: relative;
  padding-right: 60px;
  margin-bottom: 28px;
}

.all-menu-head .eyebrow{
  text-align:left;
}
.all-menu-head h2 {
  margin-top: 6px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
}

.all-menu-close {
  position: absolute;
  right: 0;
  top: 0;
}

.all-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.all-menu-grid section {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.all-menu-grid h3 {
  margin-bottom: 14px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 26px;
}

.all-menu-grid a {
  display: block;
  padding: 5px 0;
  color: var(--secondary);
  font-size: 17px;
  font-weight: 500;
}

.all-menu-grid a:hover {
  color: var(--accent-strong);
}

@media screen and (max-width: 1320px) {
  .site-header .header-inner {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    column-gap: 28px;
  }

  .brand-logo-image {
    width: 238px;
  }

  .gnb-item + .gnb-item {
    margin-left: 24px;
  }

  .gnb-item + .gnb-item::before {
    left: -13px;
  }

  .gnb-link {
    padding: 0;
    font-size: 15px;
  }
}

@media screen and (max-width: 1200px) {
  .site-header .header-inner {
    column-gap: 14px;
  }

  .brand-logo-image {
    width: 210px;
  }

  .gnb-item + .gnb-item {
    margin-left: 10px;
  }

  .gnb-item + .gnb-item::before {
    left: -7px;
  }

  .gnb-link {
    font-size: 14px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-search,
  .all-menu-button {
    width: 42px;
    height: 42px;
  }
}

@media screen and (max-width: 1024px) {
  .site-header {
    height: 68px;
  }

  .site-header .header-inner {
    display: flex;
  }

  .gnb {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .all-menu-button {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .all-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .site-footer {
    padding: 0 20px;
  }

  .site-header .header-inner {
    width: min(calc(100% - 28px), var(--header-container));
  }

  .header-search,
  .all-menu-button,
  .mobile-menu-button {
    width: 40px;
    height: 40px;
  }

  .all-menu-panel {
    width: min(calc(100% - 24px), 620px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    padding: 26px 20px;
    border-radius: 22px;
  }

  .all-menu-head h2 {
    font-size: 32px;
  }

  .all-menu-grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 1200px) {
  /* 챗봇(66px), 토글(48px), 퀵바(60px)로 폭이 제각각이다.
     오른쪽 끝에 맞추면 세로 중심선이 어긋나 보이므로 가운데로 모은다. */
  /* 오른쪽 끝을 기준으로 놓이므로 폭이 변하면 가운데가 움직인다.
     펼쳐진 퀵바 폭으로 고정해 접고 펴도 아이콘이 제자리에 있게 한다. */
  .floating-dock {
    position: fixed;
    right: 20px;
    top: auto;
    bottom: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 60px;
    transform: none;
  }

  .floating-dock-bar {
    position: static;
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .floating-dock-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
  }

  .floating-dock-toggle > span {
    display: inline-flex;
    color: var(--primary);
  }

  .floating-dock-toggle .lucide-icon {
    width: 20px;
    height: 20px;
  }

  .floating-dock-toggle[aria-expanded="true"] {
    color: var(--white);
    background: var(--point-strong);
    border-color: transparent;
  }

  .floating-dock-toggle[aria-expanded="true"] > span {
    color: var(--white);
  }

  /* 퀵바는 토글로 여닫는다. 접힌 상태에서는 화면을 가리지 않는다. */
  .floating-nav {
    position: static;
    right: auto;
    top: auto;
    bottom: auto;
    display: none;
    box-sizing: border-box;
    width: 60px;
    padding: 5px;
    gap: 8px;
    transform: none;
  }

  .floating-nav.is-open {
    display: flex;
  }

  .chatbot {
    position: relative;
    right: auto;
    bottom: auto;
  }

  .floating-nav > a,
  .floating-nav-flyout-toggle,
  .floating-nav-sns-toggle {
    position: relative;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    gap: 0;
  }

  .floating-nav > a > span,
  .floating-nav-flyout-toggle > span,
  .floating-nav-sns-toggle > span {
    width: 48px;
    height: 48px;
  }

  .floating-nav > a > strong,
  .floating-nav-flyout-toggle strong,
  .floating-nav-sns-toggle strong {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .floating-nav-flyout,
  .floating-nav-sns {
    width: 48px;
  }

  .floating-nav-flyout-menu {
    right: calc(100% + 8px);
    top: 24px;
    gap: 6px;
    max-width: calc(100vw - 88px);
    padding: 6px;
  }

  .floating-nav-flyout-channel {
    width: 48px;
    height: 48px;
  }


}

@media screen and (max-width: 767px) {
  .floating-dock {
    right: 14px;
    bottom: 16px;
  }

}

.floating-nav > a > span,
.floating-nav-flyout-toggle > span,
.floating-nav-sns-toggle > span,
.floating-nav-flyout-channel {
  border: 0;
  transition: transform 0.18s ease;
}

.floating-nav > .floating-nav-participation,
.floating-nav > .floating-nav-participation > strong,
.floating-nav > .floating-nav-participation > span {
  color: var(--primary-dark);
}

.floating-nav > .floating-nav-participation > span {
  background: var(--surface-coral);
}

.floating-nav-education-toggle,
.floating-nav-education-toggle strong,
.floating-nav-education-toggle > span {
  color: var(--primary-dark);
}

.floating-nav-education-toggle > span {
  background: color-mix(in srgb, var(--ring-accent) 24%, var(--white));
}

/* 항목 색은 클래스로 지정한다. 나의 교육은 로그인 회원에게만 렌더되므로
   위치 기반 선택자를 쓰면 로그인 여부에 따라 색이 밀린다. */
.floating-nav > .floating-nav-location,
.floating-nav > .floating-nav-location > strong,
.floating-nav > .floating-nav-location > span {
  color: color-mix(in srgb, var(--green) 85%, var(--primary-dark));
}

.floating-nav > .floating-nav-location > span {
  background: var(--green-soft);
}

.floating-nav-sns-toggle,
.floating-nav-sns-toggle strong,
.floating-nav-sns-toggle > span {
  color: var(--accent-ink);
}

.floating-nav-sns-toggle > span {
  background: var(--surface-warm);
}

/* SNS 하위는 브랜드 SVG 가 원을 꽉 채운다. 나의 교육 하위는 선 아이콘이라
   흰 원 위에 놓이면 옆의 SNS 보다 비어 보인다. 원을 채워 무게를 맞춘다. */
.floating-nav-education .floating-nav-flyout-channel {
  color: var(--white);
  /* 앰버에 먹색을 섞은 값이라 올리브(#976c14)로 떨어졌다.
     같은 앰버 계열을 유지하면서 흰 아이콘 대비 3.78:1 인 값으로 바꾼다. */
  background: var(--accent-strong);
}

/* SNS 브랜드 아이콘은 배경색을 자체 포함한 정사각 SVG 다.
   원형 버튼을 채우도록 늘리고 원형으로 잘라낸다. */
.floating-sns-channel .sns-brand-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* SNS 버튼 배경이 거의 흰색이라 흰 패널 위에서 묻혔다.
   도민의견(연분홍)과 같은 계열의 진한 톤으로 올려 구분한다. */
.floating-nav-sns-toggle > span {
  color: var(--primary-dark);
  background: var(--point-strong);
}

.floating-nav > .floating-nav-participation > span,
.floating-nav > .floating-nav-labor > span,
.floating-nav > .floating-nav-location > span,
.floating-nav-sns-toggle > span,
.floating-nav-education-toggle > span {
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--secondary);
}

.floating-nav > a:hover > span,
.floating-nav > a:focus-visible > span,
.floating-nav-flyout-toggle:hover > span,
.floating-nav-flyout-toggle:focus-visible > span,
.floating-nav-sns-toggle:hover > span,
.floating-nav-sns-toggle:focus-visible > span {
  border-color: var(--point);
  background: var(--surface-pink);
  color: var(--point-strong);
}

.floating-nav > a:hover > span,
.floating-nav > a:focus-visible > span,
.floating-nav-flyout-toggle:hover > span,
.floating-nav-flyout-toggle:focus-visible > span,
.floating-nav-sns-toggle:hover > span,
.floating-nav-sns-toggle:focus-visible > span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.floating-nav .lucide-icon {
  stroke-width: 1.5;
}

.floating-nav > a .lucide-icon,
.floating-nav-flyout-toggle .lucide-icon,
.floating-nav-sns-toggle .lucide-icon,
.floating-nav-flyout-channel .lucide-icon {
  stroke-width: 1.5;
}

/* 나의 교육 하위도 다른 아이콘과 같은 무채색 라인형으로 둔다. */
.floating-nav-education .floating-nav-flyout-channel {
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--secondary);
}

.floating-nav-education .floating-nav-flyout-channel:hover,
.floating-nav-education .floating-nav-flyout-channel:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* 플로팅바 항목 글자색을 하나로 맞춘다. */
.floating-nav > a > strong,
.floating-nav > .floating-nav-participation > strong,
.floating-nav > .floating-nav-location > strong,
.floating-nav-flyout-toggle > strong,
.floating-nav-sns-toggle > strong,
.floating-nav-education-toggle > strong {
  color: var(--primary-dark);
}

/* 상단에 있던 글자크기 조절을 SNS와 같은 우측 플라이아웃으로 옮긴다. */
.floating-nav-font-toggle > .floating-font-symbol {
  border: 1px solid var(--border-strong);
  color: var(--secondary);
  background: var(--white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.floating-font-size-button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-strong);
  color: var(--secondary);
  background: var(--white);
  font-family: var(--font-base);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.floating-font-size-button[data-font-size="small"] {
  font-size: 14px;
}

.floating-font-size-button[data-font-size="medium"] {
  font-size: 17px;
}

.floating-font-size-button[data-font-size="large"] {
  font-size: 20px;
}

.floating-font-size-button:hover,
.floating-font-size-button:focus-visible,
.floating-font-size-button.is-active {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.floating-font-size-button.is-active {
  box-shadow: inset 0 0 0 2px var(--accent);
}
