@charset "UTF-8";

@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');

body {
  font-family: "NanumSquare", sans-serif;
}

:focus-visible {
  outline: 3px solid #ff9800;
  /* 원하는 색 */
  outline-offset: 4px;
  /* 요소와 간격 */
  border-radius: 4px;
  /* 선택 가능 */
}

/* Safari 링크/버튼 파란색 방지 */

button {
  color: inherit !important;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.accordion-header .accordion-button {
  color: #fff !important;
}

/* 버튼 안 텍스트 */
button span {
  color: inherit !important;
}

.link-unstyled {
  color: inherit;
  text-decoration: none;
}

.link-unstyled:hover {
  color: inherit;
  text-decoration: none;
}

.fw-bold-extra {
  font-weight: 900;
}


/* 기본값 */
#mainContent .row {
  font-size:  1.125rem;
}

/* 작게 */
html[data-font-size="small"] #mainContent .row {
  font-size: 0.875rem;
  /* 14px */
}

/* 보통 */
html[data-font-size="normal"] #mainContent .row {
  font-size:  1.125rem;
  /* 16px */
}

/* 크게 */
html[data-font-size="large"] #mainContent .row {
  font-size: 1.25rem;
  /* 18px */
}

/* 아주 크게 */
html[data-font-size="xlarge"] #mainContent .row {
  font-size: 1.32rem;
  /* 20px */
}

/* 주메뉴/본문 바로가기 */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 100000;
  font-size: 18px;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-nav:focus {
  top: 0;
}

.btn-reset {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

/* 접근성 포커스 유지 */
.btn-reset:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* ------------------------------
   상단 네비 고정 스타일
------------------------------ */
.header-nav {
  position: relative;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 9999;
}

/* 스크롤 후 적용되는 고정 상태 */
.header-nav.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] #openFullMenu {
  content: url(../images/common/icon_menulist_w.png);
}

[data-bs-theme="dark"] .header-nav {
  background: #212529;
}

/* 다크모드 기본 로고 변경 */
[data-bs-theme="dark"] .logo-img {
  content: url(../images/common/logo_kead_w.png);
}

/* 네비 고정 상태일 때도 적용 (nav-fixed 사용 시) */
[data-bs-theme="dark"] .header-nav.nav-fixed .logo-img {
  content: url(../images/common/logo_kead_w.png);
}

/* 다크모드 대응 */
[data-bs-theme="dark"] .header-nav.nav-fixed {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}


/* 네비 안의 텍스트 색상 반전 */
[data-bs-theme="dark"] .header-nav a,
[data-bs-theme="dark"] .header-nav .nav-link,
[data-bs-theme="dark"] .header-nav .menu-text {
  color: #fff !important;
}


.quickmenu {
  position: fixed;
  right: 20px;
  bottom: 20px;
  /* top: calc(50% - 100px);
  transform: translateY(-50%); */
  z-index: 9999;
  width: 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.quickmenu button {
  background: none;
  border: none;
}

.quickmenu img {
  width: 100%;
  height: auto;
  display: block;
}

[data-bs-theme="dark"] .quickmenu .icon_q_tts img {
  content: url(../images/common/icon_q_tts_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_reader img {
  content: url(../images/common/icon_q_reader_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_dark img {
  content: url(../images/common/icon_q_dark_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_font img {
  content: url(../images/common/icon_q_font_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_share img {
  content: url(../images/common/icon_q_share_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_print img {
  content: url(../images/common/icon_q_print_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_event img {
  content: url(../images/common/icon_gift_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_trophy img {
  content: url(../images/common/icon_trophy_w.png);
}

[data-bs-theme="dark"] .quickmenu .icon_q_bell img {
  content: url(../images/common/icon_bell_w.png);
}

.quickmenu .item {
  width: 76px;
  height: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* 나타날 때 */
.quickmenu.show {
  opacity: 1;
  pointer-events: auto;
}

/* 모바일 퀵메뉴 숨김 */
@media (max-width: 768px) {
  .quickmenu {
    display: block;
  }
}

/* 상단 네비 */
.kead-header {
  background: #fff;
  padding: 30px 0;
}

/* 로고 이미지 크기 */
.logo-img {
  height: 60px;
  /* 원하면 40~60px 조정 */
  width: auto;
  display: block;
}

/* 발행 정보 */
.kead-issue {
  line-height: 1;
  font-size: 1rem;
  font-weight: 900;
}

.kead-issue .issue-month {
  font-size: 1rem;
  opacity: 0.85;
}

.kead-issue .issue-vol {
  font-size: 1rem;
  opacity: 0.65;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }

  .kead-issue {
    font-size: 0.8rem;
  }
}

.icon-btn {
  width: 70px;
  height: 70px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 다크모드 기본 로고 변경 */
[data-bs-theme="dark"] .icon-btn img.icon-tts {
  content: url("../images/common/icon_q_tts_w.png");
}

[data-bs-theme="dark"] .icon-btn img.icon-mode {
  content: url("../images/common/icon_q_dark_w.png");
}

[data-bs-theme="dark"] .icon-btn img.icon-font {
  content: url("../images/common/icon_q_font_w.png");
}

[data-bs-theme="dark"] .icon-btn img.icon-menulist {
  content: url("../images/common/icon_menulist_w.png");
}


.icon-btn img {
  width: 70px;
  height: auto;
}

@media (max-width: 768px) {

  /* 상단 네비 */
  .kead-header {
    background: #fff;
    padding: 20px 0;
  }


  .kead-issue {
    font-size: 0.8rem;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
  }

  .icon-list .icon-btn {
    width: 80px;
    height: 80px;
  }

  .icon-btn img {
    width: 50px;
    height: auto;
  }



}

/* 헤더 패널용 */
.header-panel {
  position: absolute;
  display: none;
  z-index: 99999;
  left: 0;
  top: 0;
}

.header-panel.active {
  display: block;
}

/* ===== 화면표시 패널 디자인 ===== */
.mode-panel-box {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-family: 'Pretendard', sans-serif;
}

.mode-panel-box .title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

[data-bs-theme="dark"] .mode-panel-box .title {
  color: #fff;
}

[data-bs-theme="dark"] .label {
  color: #fff;
}



.mode-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.mode-item:hover {
  background: #f2f2f2;
}

/* 아이콘 공통 원형 */
.icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

/* 밝은 배경 아이콘 */
.icon-wrap.light {
  background-image: url("../images/common/icon_mode_light.png");
}

/* 어두운 배경 아이콘 */
.icon-wrap.dark {
  background-image: url("../images/common/icon_mode_dark.png");
}

.label {
  font-size: 15px;
  color: #333;
}

/* ================================
   글자설정 패널 디자인
================================ */
.font-panel-box {
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-family: 'Pretendard', sans-serif;
}

.font-panel-box .title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.font-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s;
}

.font-item:hover {
  background: #f4f4f4;
}

.font-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #efefef;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.font-label {
  font-size: 15px;
  color: #222;
}

[data-bs-theme="dark"] .font-label {
  color: #fff;
}


/* ================================
   공유 패널 디자인
================================ */
.share-panel-box {
  background: #fff;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-family: 'Pretendard', sans-serif;
}

.share-item {
  display: flex;
  align-items: center;
  gap: 26px;
  cursor: pointer;
  padding: 10px 4px;
  border-radius: 12px;
  transition: background 0.2s;
}

.share-title {
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.share-url {
  font-size: 15px;
  color: #777;
}

.share-icon {
  font-size: 22px;
  color: #000;
}

/* 닫기 버튼 스타일 */
.panel-close {
  position: absolute;
  top: -12px;
  /* 패널 밖으로 살짝 걸치기 */
  right: -12px;
  width: 30px;
  height: 30px;

  background-color: #000;
  /* 버튼 배경 */
  background-image: url('../images/common/icon_panel_close.png');
  /* ← 여기에 이미지 넣기 */
  /* 이미지 크기 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;

  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);

  cursor: pointer;
  z-index: 20;
  transition: 0.2s ease;
}

.panel-close:hover {
  background-color: #000;
}

/* 전체 박스 */
.tts-box {
  width: 100%;
  padding: 24px 32px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: inline-block;
  font-family: 'Pretendard', sans-serif;
}

[data-bs-theme="dark"] {

  .tts-box,
  .mode-panel-box,
  .font-panel-box,
  .share-panel-box {
    background-color: #000;
  }
}

/* 제목 */
.tts-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* 버튼 그룹 */
.tts-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 개별 버튼 */
.tts-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
  color: #222;
}

[data-bs-theme="dark"] .tts-box {
  color: #fff;
}

/* 아이콘 동그라미 */
.tts-btn .icon,
.tts-btn .speed-text {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}

/* 속도 버튼 강조 */
.tts-btn.speed .speed-text {
  font-size: 18px;
  font-weight: 700;
}

/* hover 효과 */
.tts-btn:hover .icon,
.tts-btn:hover .speed-text {
  background: #e8e8e8;
}

[data-bs-theme="dark"] {

  .tts-btn .icon,
  .tts-btn .speed-text {
    background: #fff;
    color: #000;
  }

  .quick-panel span.icon {
    color: #000;
  }

  .quick-panel span {
    color: #fff;
  }
}



/* PC 풀스크린 메뉴 */
.fullmenu-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 200000;
  display: none;
  padding-top: 80px;
}

.fullmenu-overlay.active {
  display: block;
}

.fullmenu-grid ul {
  list-style: none;
  padding: 0;
}

.fullmenu-grid li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  opacity: 0.85;
}

.fullmenu-grid li:hover {
  opacity: 1;
  transition: .2s;
}

.fullmenu-grid ul li a {
  text-decoration: none !important;
  color: #fff !important;
}

.menu-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: #fff 1px solid;
}

.menu-title span {
  font-weight: normal;
}

.sns-area i {
  font-size: 1.8rem;
  margin-right: 20px;
}

.navi_sns img {
  width: 38px;
  margin-right: 12px;
  opacity: 0.7;
  transition: .25s;
}

.navi_sns img:hover {
  opacity: 1;
}

.fullmenu-overlay .footer-sns {
  margin-top: 100px;
}

.footer-bottom-wrap img {
  display: block;
}


/* ============================
   fullMenu 모바일 스타일
============================ */
@media (max-width: 991px) {

  .fullmenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .95);
    overflow-y: auto;
    padding: 30px 24px;
    z-index: 99999;
  }

  .fullmenu-inner {
    padding: 0;
  }

  /* PC grid → 모바일 단일 column */
  .fullmenu-grid {
    display: block;
  }

  .fullmenu-grid .col-md-3 {
    width: 100%;
    margin-bottom: 32px;
  }

  .fullmenu-grid .menu-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
  }

  .fullmenu-grid ul li {
    font-size: 1rem;
    margin: 10px 0;
  }

  /* 상단 로고 영역 */
  #fullMenu .logo-img {
    width: 160px;
  }

  #fullMenu .icon-btn img {
    width: 48px;
  }

  /* SNS 아이콘 모바일 */
  .sns-area {
    margin-top: 40px;
    font-size: 1.8rem;
    display: flex;
    gap: 20px;
  }

  .fullmenu-overlay .footer-sns {
    margin-top: 60px;
  }
}


/* ===========================
    FOOTER — DESKTOP
=========================== */

.kead-footer {
  width: 100%;
}

.kead-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 100px;
  /* 모바일 */
}

/* 모바일 전용 */
@media (max-width: 768px) {

  /* 하단 SNS 영역 */
  .fullmenu-overlay .footer-bottom-wrap {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;

    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  /* SNS 아이콘 가운데 */
  .fullmenu-overlay .footer-sns {
    justify-content: center;
  }

  /* 바로 위 퀵 메뉴 */
  .fullmenu-overlay .footer-quick {
    position: fixed;
    bottom: 60px;
    /* 👈 footer-bottom-wrap 바로 위 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;

    display: flex;
    justify-content: center;
  }

  /* 아이콘 툴바 가운데 정렬 */
  .fullmenu-overlay .icon-toolbar {
    justify-content: center;
  }

  .fullmenu-overlay .icon-list {
    justify-content: center;
    gap: 0px;
    /* 모바일 */
  }

  /* footer-bottom 전체 세로 정렬 */
  .kead-footer .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    /* 모바일에서 가운데 정렬하면 보기 좋음 */
  }

  /* 왼쪽 내용 세로 정렬 */
  .kead-footer .footer-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 중앙 배치 */
    text-align: center;
  }

  /* 오른쪽 WA 배지 가운데 배치 */
  .kead-footer .footer-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* 메뉴 아이콘도 모바일에서는 2열 → 1열로 가능 */
  .kead-footer .footer-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .kead-footer .footer-menu {
    width: 90%;
    text-align: center;
    padding: 10px 0;
  }

  .fullmenu-overlay .footer-bottom-wrap,
  .fullmenu-overlay .footer-quick {
    transition: opacity .2s ease, visibility .2s ease;
  }

  .fullmenu-overlay.footer-hidden .footer-bottom-wrap,
  .fullmenu-overlay.footer-hidden .footer-quick {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .footer-hidden .footer-bottom-wrap,
  .footer-hidden .footer-quick {
    display: none;
  }

  .footer-hidden .footer-bottom-wrap {
    transform: translate(-50%, 20px);
  }
}

/* 상단 메뉴 */
.footer-top {
  display: flex;
  flex-direction: column;
  /* ⭐ 한 줄씩 */
  justify-content: center;
  align-items: center;
  gap: 80px;
  padding: 0 40px 20px;
  text-align: center;
}

.footer-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  gap: 6px;
  font-weight: 700;
  border-bottom: #000 1px solid;
}

[data-bs-theme="dark"] .footer-menu {
  color: #fff;
  border-bottom: #fff 1px solid;
}

.footer-menu img {
  width: 38px;
  opacity: 0.9;
  transition: all .3s ease;
}

[data-bs-theme="dark"] .footer-menu.icon_subscribe img {
  content: url("../images/common/icon_subscribe_w.png");
}

[data-bs-theme="dark"] .footer-menu.icon_ebook img {
  content: url("../images/common/icon_ebook_w.png");
}

[data-bs-theme="dark"] .footer-menu.icon_pdf img {
  content: url("../images/common/icon_pdf_w.png");
}

[data-bs-theme="dark"] .footer-menu.icon_archive img {
  content: url("../images/common/icon_archive_w.png");
}

[data-bs-theme="dark"] .footer-line {
  background: #fff;
}

.footer-menu:hover img {
  opacity: 1;
}

/* 구분선 */
.footer-line {
  height: 2px;
  background: #000;
  margin: 20px 0;
  opacity: 0.2;
}

/* 하단 영역 */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-kead-logo {
  width: 260px;
}

.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;

}

.footer-info b {
  font-size: 1.05rem;

}

.footer-sns img {
  width: 38px;
  margin-right: 12px;
  opacity: 0.7;
  transition: .25s;
}

.footer-sns img:hover {
  opacity: 1;
}

.footer-right .wa-badge {
  width: 160px;
  opacity: 0.85;
}

[data-bs-theme="dark"] .footer-sns img.f_insta {
  content: url("../images/common/icon_footer_insta_w.png");
}

[data-bs-theme="dark"] .footer-sns img.f_facebook {
  content: url("../images/common/icon_footer_facebook_w.png");
}

[data-bs-theme="dark"] .footer-sns img.f_youtube {
  content: url("../images/common/icon_footer_youtube_w.png");
}

[data-bs-theme="dark"] .footer-sns img.f_blog {
  content: url("../images/common/icon_footer_blog_w.png");
}

.icon-toolbar {
  display: flex;
}

.icon-list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 버튼을 세로 구조로 */
.icon-toolbar .icon-btn {
  display: flex;
  flex-direction: column;
  /* 👈 핵심 */
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
}

.icon-toolbar .icon {
  width: 40px !important;
  height: 40px !important;
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-toolbar .icon-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* 포커스 접근성 */
.icon-toolbar .icon-btn:focus-visible {
  outline: 3px solid #4da3ff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* 아이콘 예시 (SVG or PNG 교체 가능) */
.icon.pdf {
  background-image: url("../images/common/icon_pdf_w.png");
}

.icon.read {
  background-image: url("../images/common/icon_ebook_w.png");
}

.icon.calendar {
  background-image: url("../images/common/icon_archive_w.png");
}

.icon.edit {
  background-image: url("../images/common/icon_subscribe_w.png");
}

/* 텍스트 */
.icon-text {
  display: block;
  font-weight: 600;
}



/* ===========================
    FOOTER — MOBILE
=========================== */
@media (max-width: 768px) {

  .footer-top {
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 10px 30px;
  }

  .footer-menu img {
    width: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 30px;
  }

  .footer-kead-logo {
    width: 200px;
    margin: 0 auto;
  }

  .footer-info li {
    font-size: 0.9rem;
  }


  .footer-sns img {
    width: 32px;
  }

  .footer-right .wa-badge {
    width: 120px;
    margin: 0 auto;
  }
}



/* 공통패널 */
.ui-panel {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
  pointer-events: none;
  /* 🔥 기본은 클릭 차단 */
}

.ui-panel.show {
  display: block;
  pointer-events: auto;
  /* 열렸을 때만 클릭 허용 */
}

.ui-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.ui-panel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  padding: 24px;
}

[data-bs-theme="dark"] .ui-panel-content {
  background: #333;
}

.ui-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.ui-icon-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

.ui-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.ui-icon-btn img {
  width: 56px;
  height: 56px;
}

.ui-icon-btn span {
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
}

.tts-icon-controls {
  /* 모바일 */
  display: flex;
  justify-content: center;
  gap: 4px;
}

.tts-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.tts-icon-btn img {
  /* 모바일 */
  width: 48px;
  height: 48px;
}

.tts-icon-btn span {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.tts-speed span {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}


.tts-icon-btn:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.tts-speed span {
  /* 모바일 */
  font-size: 12px;
  text-align: center;
}

.tts-speed-btn {
  /* 모바일 */
  padding: 4px 12px;
  border-radius: 100px;
  border: none;
  font-weight: 600;
  width: 48px;
  height: 48px;
  background-color: #eee;
  justify-content: center;
}

.tts-speed-btn.active {
  background: #000;
  color: #fff;
}

/* 글자 설정 전용 */
.font-size-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.font-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eee;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

[data-bs-theme="dark"] .font-circle {
  background: #000;
}


/* 가 크기 미리보기 */
.font-small {
  font-size: 14px !important;
}

.font-normal {
  font-size: 16px !important;
}

.font-large {
  font-size: 20px !important;
}

.font-xlarge {
  font-size: 24px !important;
}

.font-label {
  font-size: 13px;
  margin-top: 6px;
  white-space: nowrap;
}

/* 모바일 아코디언 메뉴 */
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
}

.mobile-menu-list li a:hover,
.mobile-menu-list li a:focus {
  text-decoration: underline;
}

/* 다크톤 아코디언 */
.accordion-button {
  background: transparent;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-body {
  background: transparent;
}

/* 아코디언 전체 배경 제거 */
.accordion,
.accordion-item {
  background-color: transparent;
  border: none;
}

/* 헤더 버튼 배경 제거 */
.accordion-button {
  background-color: transparent !important;
  color: #fff;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

/* 열렸을 때도 배경 제거 */
.accordion-button:not(.collapsed) {
  background-color: transparent !important;
  color: #fff;
  box-shadow: none;
}

/* 기본 화살표 아이콘 색상 조정 */
.accordion-button::after {
  filter: invert(1);
}

/* 아코디언 바디 배경 제거 */
.accordion-body {
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

/* 테두리 제거 */
.accordion-flush .accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 포커스 아웃라인 정리 (접근성 유지) */
.accordion-button:focus {
  box-shadow: 0 0 0 2px rgba(255, 145, 0, 0.4);
}

/* =========================
   TTS 일시정지 깜빡임
========================= */
.tts-icon-btn.blink {
  animation: ttsBlink 1.2s infinite ease-in-out;
}

@keyframes ttsBlink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }

  100% {
    opacity: 1;
  }
}

/* ================================
    모바일 퀵바
================================ */
.mobile-quickbar {
  position: fixed;
  bottom: env(safe-area-inset-bottom);
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(8px);
}

.mobile-quickbar .mq-item {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #444;
  cursor: pointer;
  display: grid
}

.mobile-quickbar .mq-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  opacity: 0.85;
  transition: 0.2s;
  margin: 0 auto;
}

.mobile-quickbar .mq-item:active img {
  transform: scale(0.9);
  opacity: 1;
}


/* TOP 버튼 */
.mobile-top-btn {
  position: fixed;
  bottom: 90px;
  /* 퀵바 위 */
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  border: none;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-top-btn img {
  width: 24px;
  filter: brightness(0) invert(1);
}

/* 데스크탑에서는 숨기기 */
@media(min-width: 768px) {

  .mobile-quickbar,
  .mobile-top-btn {
    display: none !important;
  }
}

/* 기본 숨김 상태 */
.mobile-quickbar {
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

/* 보임 상태 */
.mobile-quickbar.show {
  transform: translateY(0);
  opacity: 1;
}

/* TOP 버튼도 함께 */
.mobile-top-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: transform .35s ease, opacity .35s ease;
}

.mobile-top-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.mini-interview-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 40px;
  border-radius: 9999px;

  border: 3px solid #ef6b6b;

  font-weight: 700;
  color: #ef6b6b;
}


/* 마이크 원형 장식 */
.mini-interview-badge .mic-badge {
  position: absolute;
  top: -14px;
  right: -14px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;


}

/* 모바일 대응 */
@media (max-width: 576px) {
  .mini-interview-badge {
    padding: 12px 40px;
  }

  .mini-interview-badge .mic-badge {
    width: 38px;
    height: 38px;
  }
}

.mini-star-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 40px;
  border-radius: 9999px;

  border: 3px solid #FF9B28;

  font-weight: 700;
  color: #FF9B28;
}


/* 마이크 원형 장식 */
.mini-star-badge .star-badge {
  position: absolute;
  top: -14px;
  right: -14px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;


}

/* 모바일 대응 */
@media (max-width: 576px) {
  .mini-star-badge {
    padding: 12px 40px;
  }

  .mini-star-badge .star-badge {
    width: 38px;
    height: 38px;
  }
}

.mini-info-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 40px;
  border-radius: 9999px;

  border: 3px solid #333;

  font-weight: 700;
  color: #333;
}

/*new mok*/
.recipe-box {
  padding: 1rem 1.5rem;
}

.ms-2-3 {
  margin-left: 2.3rem !important;
}

.ms-7 {
  margin-left: 7.5rem !important;
}


/* 마이크 원형 장식 */
.mini-info-badge .info-badge {
  position: absolute;
  top: -14px;
  right: -14px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;


}

/* 모바일 대응 */
@media (max-width: 576px) {
  .mini-info-badge {
    padding: 12px 40px;
  }

  .mini-info-badge .info-badge {
    width: 38px;
    height: 38px;
  }
}