/* 복음볼거리 2026-08 UI refresh */

.site-header,
.reader-topbar {
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.mobile-menu-toggle,
.ui-mobile-menu-link {
  display: none;
}

.episode-thumb::after,
.episode-thumb span {
  display: none;
}

.footer-community a {
  color: #2d2a20;
  background: #fff2a6;
  border-color: #eadb79;
  box-shadow: none;
}

.footer-community a:hover {
  background: #fff6bf;
  box-shadow: 0 4px 12px #0000001f;
}

body.ui-reader-reading .site-header {
  transform: translateY(-110%);
}

body.ui-reader-reading .reader-topbar {
  transform: translateY(calc(-100% - 68px));
}

body.ui-reader-controls-visible .site-header,
body.ui-reader-controls-visible .reader-topbar {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .header-inner {
    position: relative;
  }

  .header-actions {
    position: static;
    gap: 5px;
  }

  .main-nav a,
  .account-links .account-name,
  .account-links .account-login,
  .mobile-menu-toggle {
    min-height: 40px;
  }

  .main-nav a {
    display: grid;
    place-items: center;
    padding: 0 11px;
  }

  .account-links .account-name,
  .account-links .account-login {
    display: grid;
    place-items: center;
    max-width: 72px;
    padding: 0 10px;
  }

  .mobile-menu-toggle {
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    place-items: center;
    min-width: 40px;
    padding: 0 9px;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 850;
    display: grid;
  }

  .mobile-menu-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
  }

  .header-actions > .social-links {
    z-index: 90;
    border: 1px solid #cfdbe7;
    background: #fff;
    border-radius: 12px;
    grid-template-columns: 1fr;
    gap: 3px;
    width: 178px;
    padding: 7px;
    display: none !important;
    position: absolute;
    top: 49px;
    right: 0;
    box-shadow: 0 14px 34px #10263329;
  }

  .header-actions.ui-mobile-menu-open > .social-links {
    display: grid !important;
  }

  .header-actions.ui-mobile-menu-open > .social-links .social-link,
  .ui-mobile-menu-link {
    color: var(--navy-deep);
    background: transparent;
    border: 0;
    border-radius: 8px;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    font-size: 0.76rem;
    font-weight: 800;
    display: flex;
  }

  .header-actions.ui-mobile-menu-open > .social-links .social-link:hover,
  .ui-mobile-menu-link:hover {
    background: #eff5fa;
  }

  .header-actions.ui-mobile-menu-open .social-label,
  .header-actions.ui-mobile-menu-open .social-link i {
    display: inline !important;
  }

  .header-actions.ui-mobile-menu-open .social-short {
    display: none !important;
  }

  .ui-mobile-menu-link {
    border-top: 1px solid #e6edf3;
  }

  .home-notice-board {
    border-radius: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 66px;
    margin-top: 12px;
    padding: 10px 12px;
  }

  .home-notice-heading span,
  .home-notice-list li > b,
  .home-notice-list strong {
    display: none;
  }

  .home-notice-heading h1 {
    white-space: nowrap;
    margin: 0;
    font-size: 0.82rem;
  }

  .home-notice-list li {
    border-top: 0;
    border-left: 1px solid #cedceb;
    padding: 0 0 0 11px;
    display: block;
  }

  .home-notice-list p {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: keep-all;
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
  }

  .webtoon-library-section {
    padding-top: 10px;
  }

  .webtoon-library-section .catalog-heading {
    border-bottom-width: 2px;
    margin-bottom: 8px;
    padding-bottom: 10px;
  }

  .webtoon-library-section .catalog-heading p,
  .webtoon-library-section .catalog-heading > span {
    display: none;
  }

  .webtoon-library-section .catalog-heading h1,
  .webtoon-library-section .catalog-heading h2 {
    font-size: 1.18rem;
  }

  .episode-row {
    min-height: 108px;
  }

  .episode-thumb {
    background: #e8eef3;
    box-shadow: inset 0 0 0 1px #18344712;
  }

  .reader-topbar-inner {
    height: 44px;
  }

  .reader-topbar {
    top: 56px;
  }

  .reader-intro {
    padding: 14px 16px 16px;
  }

  .reader-ai-notice {
    border-radius: 7px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    margin: 0 0 12px;
    padding: 7px 9px;
  }

  .reader-ai-notice > span {
    width: 24px;
    height: 24px;
    font-size: 0.54rem;
  }

  .reader-ai-notice p {
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.65rem;
    line-height: 1.35;
    overflow: hidden;
  }

  .reader-intro .passage {
    margin-bottom: 5px;
    font-size: 0.68rem;
  }

  .reader-intro h1 {
    font-size: 1.32rem;
  }

  .reader-intro .subtitle {
    display: none;
  }

  .reader-dock {
    background: #0d2f4ff7;
    border-radius: 12px;
    box-shadow: 0 12px 30px #081c2f52;
  }

  .reader-dock a,
  .reader-dock span {
    min-height: 44px;
    font-size: 0.68rem;
  }

  .footer-community {
    gap: 6px;
  }

  .footer-community a {
    background: #fff2a6;
    border-color: #eadb79;
    padding: 7px 10px;
    font-size: 0.65rem;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .reader-topbar,
  .reader-dock {
    transition: none !important;
  }
}
