/* 5ft.mag common base and interaction layer */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: var(--fw-all);
  line-height: 1.2;
  letter-spacing: var(--ls-default);
  transition: background .25s, color .25s;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.modal-open {
  overflow: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 24px;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity .15s;
}

.site-logo .logo-light {
  display: block;
}

.site-logo .logo-dark {
  display: none;
}

[data-theme="dark"] .site-logo .logo-light {
  display: none;
}

[data-theme="dark"] .site-logo .logo-dark {
  display: block;
}

.site-logo:hover img {
  opacity: 0.7;
}

.main-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  margin-left: auto;
}

.main-nav a {
  display: block;
  padding: 0 14px;
  font-size: var(--fs-nav);
  font-weight: var(--fw-all);
  letter-spacing: var(--ls-default);
  color: var(--text);
  line-height: var(--header-h);
  transition: opacity .15s;
  white-space: nowrap;
}

.main-nav a:hover {
  opacity: .45;
}

.main-nav a.current {
  font-weight: var(--fw-heading);
  position: relative;
}
.main-nav a.current::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--text);
}

.main-nav .nav-account {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  margin-left: 4px;
}

.main-nav .nav-account-btn,
.main-nav a.nav-auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
}

.nav-account-menu {
  position: absolute;
  top: calc(100% - 6px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  z-index: 1100;
}

.nav-account-menu[hidden] {
  display: none;
}

.nav-account-menu a,
.nav-account-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-all);
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-account-menu a:hover,
.nav-account-menu button:hover {
  background: var(--bg-sub);
  opacity: 1;
}

[data-theme="dark"] .nav-account-menu {
  box-shadow: 0 12px 34px rgba(0,0,0,0.46);
}

.me-back,
.admin-back,
.me-user,
.admin-user {
  display: none !important;
}

.me-title-row,
.admin-title-row {
  justify-content: flex-start !important;
}

.main-nav .ext::after {
  content: ' ↗';
  font-size: 13px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ────────── 알림 종 + 뱃지 + 드롭다운 ────────── */
.notif-bell { position: relative; }
.notif-bell svg {
  /* 종 SVG 의 시각적 중심이 24-viewBox 안에서 위쪽으로 치우쳐 있어,
     달(테마) 아이콘과 수직 정렬을 맞추기 위해 1px 내림 */
  transform: translateY(1px);
  transform-origin: 50% 25%;
}
@keyframes notif-bell-shake {
  0%, 100%   { transform: translateY(1px) rotate(0); }
  10%, 30%, 50% { transform: translateY(1px) rotate(-14deg); }
  20%, 40%, 60% { transform: translateY(1px) rotate(14deg); }
  70%        { transform: translateY(1px) rotate(0); }
}
.notif-bell:hover svg            { animation: notif-bell-shake .8s ease-in-out; }
.notif-bell.has-unread svg       { animation: notif-bell-shake 2s ease-in-out infinite; }
.notif-bell.has-unread:hover svg { animation: notif-bell-shake .8s ease-in-out; }

/* ────────── 테마 토글 스핀-페이드 ────────── */
@keyframes theme-spin-morph {
  0%   { transform: rotate(0) scale(1);     opacity: 1; }
  50%  { transform: rotate(180deg) scale(0.55); opacity: 0.35; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
#themeBtn.is-switching svg { animation: theme-spin-morph .46s ease-in-out; }

/* ────────── 즐겨찾기 ♡ 토글 펄스 ────────── */
@keyframes fav-pulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.film-fav.is-pulsing svg,
.article-fav.is-pulsing svg,
.lightbox-fav.is-pulsing svg,
.photo-lb-fav.is-pulsing svg {
  animation: fav-pulse .4s ease;
}

/* ────────── 공유 아이콘 hover — 노드 연결 모션 ────────── */
@keyframes share-redraw {
  0%   { stroke-dashoffset: 8; }
  100% { stroke-dashoffset: 0; }
}
.notif-badge {
  position: absolute;
  top: 5px; right: 5px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e0245e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
[data-theme="dark"] .notif-badge { background: #ff6b8a; color: #0c0c0c; }

.notif-panel {
  position: fixed;
  top: 60px;
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 80px));
  max-height: min(560px, calc(100dvh - 80px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 1050;
  overflow: hidden;
}
[data-theme="dark"] .notif-panel { box-shadow: 0 12px 40px rgba(0,0,0,0.55); }
.notif-panel[hidden] { display: none; }
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-panel-title {
  font-size: 13px;
  font-weight: var(--fw-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.notif-panel-allread {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 3px;
}
.notif-panel-allread:hover { color: var(--text); background: var(--bg-sub); }
.notif-panel-list {
  flex: 1;
  overflow-y: auto;
}
.notif-panel-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.notif-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-sub); }
.notif-item.is-unread {
  background: rgba(224, 36, 94, 0.05);
}
[data-theme="dark"] .notif-item.is-unread { background: rgba(255, 107, 138, 0.07); }
.notif-item.is-unread .notif-item-title::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #e0245e;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
[data-theme="dark"] .notif-item.is-unread .notif-item-title::before { background: #ff6b8a; }
.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
}
.notif-item-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 480px) {
  .notif-panel { top: 56px; right: 8px; left: 8px; width: auto; }
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border-radius: 2px;
  font-family: var(--font);
  transition: opacity .15s;
}

.icon-btn:hover {
  opacity: .45;
}

.hamburger {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: var(--fs-nav);
  font-weight: var(--fw-all);
  letter-spacing: var(--ls-default);
  color: var(--text);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}

.mobile-nav a:hover {
  opacity: .5;
}

.page-title {
  padding: 60px 32px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-title-inner {
  max-width: var(--page-title-width, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title h1 {
  font-size: 56px;
  font-weight: var(--fw-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}

.page-title .breadcrumb {
  font-size: var(--fs-meta);
  font-weight: var(--fw-heading);
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

[hidden] {
  display: none !important;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px;
}

.icon-btn:focus-visible {
  opacity: 1;
}

button.disc-cell {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border-top: 0;
  border-left: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
}


/* 5ft.mag visual refinement layer */
.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  display: block;
}

.nav-account-btn svg,
.notif-bell svg,
#themeBtn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.pagination-bar.is-hidden {
  display: none !important;
}

/* Shared footer */
.footer-partners {
  border-top: 1px solid var(--border);
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  background: var(--bg);
}

.footer-partners-label {
  font-size: 12px;
  font-weight: var(--fw-heading);
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-partner {
  display: flex;
  align-items: center;
  transition: opacity .15s;
}

.footer-partner:hover {
  opacity: 0.5;
}

.footer-partner img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.footer-partner .logo-light {
  display: block;
}

.footer-partner .logo-dark {
  display: none;
}

[data-theme="dark"] .footer-partner .logo-light {
  display: none;
}

[data-theme="dark"] .footer-partner .logo-dark {
  display: block;
}

[data-theme="dark"] img[src$="logo-kimhyuna-lockup.svg"].logo-dark {
  filter: invert(1);
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-logo {
  font-size: var(--fs-nav);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-default);
}

.footer-publisher {
  font-size: 12px;
  font-weight: var(--fw-all);
  letter-spacing: var(--ls-default);
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  font-weight: var(--fw-all);
  letter-spacing: var(--ls-default);
  color: var(--text-muted);
  transition: color .15s, opacity .15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 12px;
  font-weight: var(--fw-all);
  letter-spacing: var(--ls-default);
  color: var(--text-muted);
}

.post-item {
  transition: opacity .15s, background .15s !important;
}

.post-item:hover {
  opacity: 1 !important;
  background: color-mix(in srgb, var(--bg-sub) 42%, transparent) !important;
}

.post-img.text-only,
.article-img.text-only {
  align-items: center !important;
  justify-content: center !important;
}

.post-img.text-only .post-img-title,
.article-img.text-only .text-card-title {
  max-width: 82%;
}

.film-card {
  transition: opacity .2s, transform .2s !important;
}

.film-card:hover {
  opacity: 1 !important;
}

.film-card:hover .film-cta {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.film-card:hover .film-cta::after {
  transform: translateX(3px);
}

.film-cta::after {
  content: "";
  transition: transform .18s ease;
}

.author-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-body {
  max-width: 680px !important;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .footer-partners {
    flex-wrap: wrap;
    justify-content: center;
  }

  footer {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .page-title {
    padding: 40px 20px 28px;
  }

  .page-title h1 {
    font-size: 32px;
  }

  .post-img {
    aspect-ratio: 16 / 9 !important;
  }

  .footer-partners {
    padding: 24px 20px;
    gap: 28px;
  }

  .footer-partner img {
    height: 14px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Yoon essay poster thumbnail: keep Korean title visible in article cards */
.article-card[href$="stories/07.html"] .article-img,
.post-item[href$="stories/07.html"] .post-img,
.related-card[href$="stories/07.html"] .related-img {
  background: #ffd400 !important;
}

.article-card[href$="stories/07.html"] .article-img img,
.post-item[href$="stories/07.html"] .post-img img,
.related-card[href$="stories/07.html"] .related-img img {
  object-fit: contain !important;
  object-position: center center !important;
}

.article-card[href$="stories/07.html"]:hover .article-img img,
.post-item[href$="stories/07.html"]:hover .post-img img {
  transform: none !important;
}


/* ════════════════════════════════════════════════
   Toast (alert() 대체) — site-common.js 의 showToast()
   ════════════════════════════════════════════════ */
.ft-toast-host {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 8px;
  z-index: 10000;
  pointer-events: none;
}
.ft-toast {
  pointer-events: auto;
  min-width: 200px; max-width: 360px;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px; font-weight: var(--fw-heading); letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-base) var(--easing), transform var(--duration-base) var(--easing);
  cursor: pointer;
  text-align: center;
  word-break: keep-all;
}
.ft-toast.is-in  { opacity: 1; transform: translateY(0); }
.ft-toast.is-out { opacity: 0; transform: translateY(8px); }
.ft-toast-danger  { background: var(--color-danger-text); color: #fff; }
.ft-toast-success,
.ft-toast-info    { background: var(--accent); color: var(--accent-text); }


/* ════════════════════════════════════════════════
   스크롤 등장 (progressive enhancement)
   js-reveal 클래스는 IntersectionObserver 지원 + 모션 줄임 OFF 일 때만 붙는다.
   미지원/JS 실패 시 클래스가 없어 콘텐츠는 그대로 보인다.
   ════════════════════════════════════════════════ */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-slow) var(--easing),
              transform var(--duration-slow) var(--easing);
}
.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════════
   글 읽기 진행바 (article 페이지에서만 JS 가 주입)
   ════════════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 400;
  pointer-events: none;
}

/* ════════════════════════════════════════════════
   스켈레톤 로딩 — 데이터 도착 전 카드 자리표시.
   페이지 JS 가 grid.innerHTML 을 채우면 자동 대체된다.
   ════════════════════════════════════════════════ */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background-color: var(--bg-sub);
  background-image: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, 0.05) 50%, transparent 70%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}
[data-theme="dark"] .skeleton {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
}
.skeleton-thumb { width: 100%; aspect-ratio: 4 / 3; }
.skeleton-thumb--square { aspect-ratio: 1 / 1; }
.skeleton-thumb--wide { aspect-ratio: 16 / 10; }
.skeleton-line { height: 12px; border-radius: var(--radius-sm); margin-top: 10px; }
.skeleton-post { padding: 24px 24px 28px; border-bottom: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}



/* ════════════════════════════════════════════════
   버튼 컴포넌트 시스템 — .btn + variant + size
   ──────────────────────────────────────────────
   variant: primary / secondary / ghost / danger / link
   size:    sm / md (default) / lg
   사용 예:  <button class="btn btn-primary btn-md">…</button>
   ════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: var(--fw-heading);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast) var(--easing),
              color      var(--duration-fast) var(--easing),
              border-color var(--duration-fast) var(--easing),
              opacity    var(--duration-fast) var(--easing),
              transform  var(--duration-fast) var(--easing);
  white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: progress; pointer-events: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active:not(:disabled) { transform: translateY(1px); }

/* sizes */
.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn-md { font-size: 13px; padding: 8px 16px; }
.btn-lg { font-size: 15px; padding: 12px 22px; }

/* variants */
.btn-primary {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.btn-primary:hover:not(:disabled) { opacity: 0.85; }

.btn-secondary {
  background: var(--bg); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--text); }

.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-sub); }

.btn-danger {
  background: var(--bg); color: var(--color-danger-text); border-color: var(--color-danger-border);
}
.btn-danger:hover:not(:disabled) { background: var(--color-danger-bg); }

.btn-link {
  background: none; border: none; padding: 0; color: var(--text-muted);
  text-underline-offset: 3px; text-decoration: underline;
}
.btn-link:hover:not(:disabled) { color: var(--text); }


/* ════════════════════════════════════════════════
   빈 상태 (Empty State) 컴포넌트
   ──────────────────────────────────────────────
   <div class="empty">
     <div class="empty-icon">…</div>
     <p class="empty-title">제목</p>
     <p class="empty-desc">설명</p>
     <a class="btn btn-primary btn-md" href="…">CTA</a>
   </div>
   ════════════════════════════════════════════════ */
.empty {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--text-muted);
  word-break: keep-all;
}
.empty-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-sub);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.empty-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.empty-title {
  margin: 0;
  font-size: 16px; font-weight: var(--fw-heading); letter-spacing: -0.01em;
  color: var(--text);
}
.empty-desc {
  margin: 0;
  font-size: 13px; line-height: 1.6; max-width: 360px;
}
.empty .btn { margin-top: var(--space-3); }


/* ════════════════════════════════════════════════
   접근성 — Skip to main content 링크
   ──────────────────────────────────────────────
   평소엔 화면 밖. Tab 으로 포커스 받으면 좌상단에 노출. */
.skip-link {
  position: absolute;
  top: -60px; left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: var(--fw-heading);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--duration-fast) var(--easing);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: none;
  box-shadow: var(--ring);
}

/* ════════════════════════════════════════════════
   글로벌 focus-visible — 키보드 사용자 가독성
   ──────────────────────────────────────────────
   마우스 클릭에는 link/button 모두 ring 안 보임 (UA 기본 동작).
   Tab/화살표로 포커스 받았을 때만 ring 노출. */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
/* 카드는 자체 hover/focus 스타일이 더 큼 — 링 제거 */
.film-card:focus-visible,
.article-card:focus-visible,
.market-card:focus-visible {
  box-shadow: var(--ring);
}

/* ════════════════════════════════════════════════
   Print stylesheet — 글 페이지 인쇄 최적화
   ──────────────────────────────────────────────
   매거진 사이트라 글 인쇄 수요 있음. 헤더/푸터/메뉴 숨기고 본문만. */
@media print {
  header, footer, .footer-partners, .mobile-nav, .nav-right,
  .article-back, .share-bar, .article-nav, .related-section,
  [data-comments], .skip-link, .ft-toast-host {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; line-height: 1.5; }
  article { max-width: 100% !important; }
  .article-header { padding: 24pt 0 16pt !important; }
  .article-title { font-size: 24pt !important; }
  .article-subtitle { font-size: 14pt !important; }
  .article-body { padding: 0 !important; max-width: none !important; }
  .article-body p { font-size: 11pt !important; line-height: 1.55 !important; margin-bottom: 10pt !important; orphans: 3; widows: 3; }
  .article-body h2 { font-size: 16pt !important; margin-top: 18pt !important; page-break-after: avoid; }
  .article-body h3 { font-size: 13pt !important; margin-top: 14pt !important; page-break-after: avoid; }
  .article-body img, .article-body figure { page-break-inside: avoid; max-width: 100% !important; height: auto !important; }
  /* 링크 URL 인쇄 — 외부 링크만 (내부 링크는 노이즈) */
  a[href^="http"]:not([href*="5ftmag.com"])::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }
}
