/* ==========================================================================
   (주)디자인인트로 (Designintro Co.,Ltd.) - V2 Renewal Design System
   Exact Replication of Iconic Swiss Editorial Grid, Typography & Spacing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Minimalist Original Aesthetic */
  --bg-primary: #ffffff;
  --bg-card: #f8f8f9;
  --bg-overlay: rgba(255, 255, 255, 0.82);
  --border-light: rgba(0, 0, 0, 0.08);

  --text-primary: #222222;
  --text-muted: #bbbbbb;
  --text-secondary: #666666;

  /* Typography */
  --font-main: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Grid System (6-column modular system matching 85.875em) */
  --site-max-width: 85.875rem; /* ~1374px */
  --top-spacing: 3.5rem;       /* Generous editorial whitespace above header */
  --transition-fast: 0.16s ease-out;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Theme Tokens (Night) */
[data-theme="dark"] {
  --bg-primary: #121214;
  --bg-card: #1a1a1e;
  --bg-overlay: rgba(18, 18, 20, 0.9);
  --border-light: rgba(255, 255, 255, 0.1);

  --text-primary: #f0f0f2;
  --text-muted: #5e5e64;
  --text-secondary: #9c9ca4;
}

[data-theme="dark"] .brand-logo-img {
  filter: invert(1) hue-rotate(180deg);
}

[data-theme="dark"] .drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hidden-nav-drawer.open {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .filter-chip {
  background-color: #242429;
  color: #f0f0f2;
}

[data-theme="dark"] .filter-chip:hover {
  background-color: #2d2d34;
}

[data-theme="dark"] .filter-chip-remove {
  color: #888890;
}

[data-theme="dark"] .filter-chip-remove:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .load-more-btn {
  background-color: #1a1a1e;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f0f0f2;
}

[data-theme="dark"] .load-more-btn:hover {
  background-color: #25252b;
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .card-skeleton {
  background: linear-gradient(90deg, #18181c 25%, #222228 50%, #18181c 75%);
}

[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Site Container & Top Air Spacing
   ========================================================================== */
.site-outer-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  flex: 1 0 auto;
}

.site-inner-container {
  position: relative;
  padding-top: var(--top-spacing); /* Exact top whitespace from original */
  padding-bottom: 2rem;
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Logo & Company Name (Stacked vertically, NOT side-by-side) */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 33.3333%;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 28px;
  }
}

.brand-text {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Right Navigation (About, Works, DesignCast, Filters, Sort) */
.nav-block {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 66.6667%;
  padding-top: 4px;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0;
}

/* 1번: Menu Items (About, Works, DesignCast) - 1번의 넓이를 늘림 */
.nav-item-btn {
  font-size: 0.95rem; /* 메인메뉴 글자 (~15px) */
  font-weight: 700;   /* 메인메뉴 굵게 (bold) */
  color: var(--text-primary);
  width: 88px;        /* 66px -> 88px 로 넓이/간격 늘림 */
  text-align: center;
  padding: 0;
  cursor: pointer;
  letter-spacing: -0.01em;
  background: none;
  border: none;
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-item-btn.designcast {
  font-size: 0.85rem; /* DesignCast 비례 확대 (~13.5px) */
  width: 116px;       /* 92px -> 116px 로 넓이/간격 늘림 */
  padding: 0;
}

.nav-item-btn.active,
.nav-item-btn.selected,
.nav-item-btn:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Nav Spacer */
.nav-space {
  width: 38px;
  height: 10px;
}

/* 2번: Filter Trigger Buttons (분야, 유형, 고객, 디자이너) - 2번의 넓이를 줄임 */
.nav-filter-btn {
  font-size: 0.75rem; /* 검색항목 텍스트 크기 (~12px) */
  font-weight: 400;   /* 검색항목 bold 없음 */
  color: #333333;
  min-width: 56px;    /* 86px -> 56px 로 넓이/간격 줄임 */
  max-width: 140px;
  text-align: center;
  padding: 0 4px;
  cursor: pointer;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  line-height: 1.2;
}

.nav-filter-btn:hover,
.nav-filter-btn.open {
  color: #000000;
  font-weight: 400;
}

.nav-filter-btn.has-value {
  color: #000000;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Active Filters Indicator Bar above Gallery */
.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
}

.active-filter-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f1f2;
  color: var(--text-primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.72rem;
  transition: background-color var(--transition-fast);
}

.filter-chip:hover {
  background-color: #e5e5e7;
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #777;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none !important;
}

.filter-chip-remove:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.1);
}

.filter-chip-reset {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}

.filter-chip-reset:hover {
  color: var(--text-primary);
}

/* Sort Switcher (Latest / Oldest stacked vertically) - 간격 및 폭 축소 */
.nav-sort-group {
  display: flex;
  flex-direction: column;
  width: 48px;        /* 66px -> 48px 로 간격 좁게 조정 */
  text-align: center;
  align-items: center;
  line-height: 1.2;   /* 1.35 -> 1.2 로 텍스트 상하 간격 미세 축소 */
}

.sort-link {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  font-weight: 400;
}

.sort-link.selected {
  color: var(--text-primary);
  font-weight: 500;
}

.sort-link:hover {
  color: var(--text-primary);
}

/* Theme Switcher (Day / Night stacked vertically) - 간격 및 폭 축소 */
.nav-theme-group {
  display: flex;
  flex-direction: column;
  width: 40px;        /* 56px -> 40px 로 간격 좁게 조정 */
  text-align: center;
  align-items: center;
  line-height: 1.2;   /* 1.35 -> 1.2 로 텍스트 상하 간격 미세 축소 */
}

.theme-link {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  font-weight: 400;
}

.theme-link.selected {
  color: var(--text-primary);
  font-weight: 500;
}

.theme-link:hover {
  color: var(--text-primary);
}

/* Mobile Hamburger Menu */
.mobile-menu-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.mobile-menu-trigger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
}

@media (max-width: 900px) {
  .nav-block {
    display: none;
  }
  .mobile-menu-trigger {
    display: flex;
  }
  .brand-block {
    width: auto;
  }
}

/* ==========================================================================
   Hidden Category Filter Drawer (#hidden-nav)
   - Smooth slide-down & slide-up animation
   - 6-Column Modular Layout (Aligned with Original)
   - Expands naturally with NO internal scrollbar
   ========================================================================== */
.hidden-nav-drawer {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.35s ease, 
              margin 0.4s ease, 
              padding 0.4s ease;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 1px solid transparent;
}

.hidden-nav-drawer.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* 6-Column Grid */
.drawer-grid {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  column-gap: 16px;
  visibility: hidden;
  transition: visibility 0.45s;
}

.hidden-nav-drawer.open .drawer-grid {
  visibility: visible;
}

/* Drawer Header with Title and SVG Close Button */
.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.drawer-title-row .drawer-title {
  margin-bottom: 0;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  border-radius: 50%;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.drawer-close-btn svg {
  display: block;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hidden-nav-drawer.open {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
  }

  /* 모바일 메뉴 열림 시: '메뉴' 텍스트 제거 */
  .col-menu .drawer-title {
    display: none;
  }

  /* 모바일 메뉴 열림 시: 검색항목 모두 제거 (분야, 유형, 고객, 디자이너, 스페이서) */
  .col-field,
  .col-type,
  .col-customer,
  .col-designer,
  .drawer-spacer {
    display: none !important;
  }

  .drawer-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .col-menu .drawer-list {
    gap: 6px;
  }

  .col-menu .drawer-list a {
    font-size: 0.8125rem; /* ~13px */
    line-height: 1.8;
  }

  /* 모바일 메뉴 현재위치 강조 검정색 */
  .col-menu .drawer-list a.selected,
  .col-menu .drawer-list a.active {
    color: #000000 !important;
    font-weight: 700 !important;
  }

  [data-theme="dark"] .col-menu .drawer-list a.selected,
  [data-theme="dark"] .col-menu .drawer-list a.active {
    color: #ffffff !important;
    font-weight: 700 !important;
  }
}

.drawer-col {
  display: flex;
  flex-direction: column;
}

.drawer-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

/* Tag Links (Identical to Original: #bbb default, #222 selected/hover) */
.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-list li {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.drawer-list a {
  font-size: 0.6875rem; /* ~11px */
  color: var(--text-muted); /* #bbb */
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.drawer-list a.selected,
.drawer-list a.active,
.drawer-list a:hover {
  color: var(--text-primary); /* #222 */
}

/* Col Menu Selected/Active Highlight */
.col-menu .drawer-list a.selected,
.col-menu .drawer-list a.active {
  color: #000000;
  font-weight: 700;
}

[data-theme="dark"] .col-menu .drawer-list a.selected,
[data-theme="dark"] .col-menu .drawer-list a.active {
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   Works Gallery (3-Column Grid)
   ========================================================================== */
.gallery-section {
  width: 100%;
  padding-top: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 580px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Work Card Element */
.work-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 450 / 337; /* ~4:3 */
  overflow: hidden;
  background-color: #eeeeee;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.card-thumb-img.loaded {
  opacity: 1;
}

.work-card:hover .card-thumb-img {
  transform: scale(1.03);
}

/* Card Hover Text Overlay (Semi-transparent white overlay with black text) */
.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.work-card:hover .card-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

.card-hover-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-hover-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Mobile-always-visible summary below thumbnail */
.card-info-mobile {
  display: none;
  padding: 8px 2px 4px;
}

@media (max-width: 768px) {
  .card-hover-overlay {
    display: none;
  }
  .card-info-mobile {
    display: block;
  }
  .card-info-mobile .card-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 2px;
    color: var(--text-primary);
  }
  .card-info-mobile .card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
  }
}

/* Infinite Scroll / Loading Indicator */
.infinite-scroll-status {
  text-align: center;
  padding: 40px 0 20px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #d4d4d4;
  color: var(--text-primary);
  background-color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.load-more-btn:hover {
  background-color: #171717;
  color: #ffffff;
  border-color: #171717;
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */
.about-section {
  padding: 1.5rem 0 4rem;
}

.page-headline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.map-canvas-card {
  width: 100%;
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  overflow: hidden;
}

.map-embed {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

[data-theme="dark"] .map-embed {
  filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(88%);
}

.map-info-badge {
  padding: 14px 18px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-info-badge strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.map-address-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 0;
}

.map-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: transparent;
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.map-view-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

[data-theme="dark"] .map-view-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] .map-view-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.map-directions-box {
  margin-top: 18px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.map-directions-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.map-directions-box p {
  margin-bottom: 4px;
}

.map-directions-box p:last-child {
  margin-bottom: 0;
}

/* Company Intro Block Box (블록 박스 유지) */
.about-intro-box {
  background-color: #fafafa;
  border: 1px solid var(--border-light);
  padding: 24px;
  margin-bottom: 20px;
}

[data-theme="dark"] .about-intro-box {
  background-color: var(--bg-card);
}

.about-intro-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.about-intro-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Contact & Social Details (블록 박스 바로 아래 텍스트 영역) */
.about-contact-box {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.7;
}

[data-theme="dark"] .about-contact-box {
  color: var(--text-primary);
}

.about-contact-box div {
  margin: 0;
  padding: 0;
}

.about-contact-box a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.about-contact-box a:hover {
  color: #000000;
}

/* ==========================================================================
   Project Detail Page Styles
   ========================================================================== */
.detail-section {
  padding: 1.5rem 0 4rem;
}

.detail-header {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.detail-meta-line {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.detail-gallery {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-img-card {
  width: 100%;
  cursor: zoom-in;
}

.detail-footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 16px;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  margin-bottom: 4rem;
}

.detail-meta-aside {
  grid-column: 1 / 3;
}

.detail-meta-aside h4,
.tax-column h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.detail-meta-aside a {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #333333;
  line-height: 1.65;
  text-decoration: none;
  word-break: break-all;
  transition: color var(--transition-fast);
}

.detail-meta-aside a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.detail-meta-aside .trackback-link {
  margin-bottom: 0.25rem;
}

.detail-taxonomies {
  grid-column: 3 / 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 16px;
}

.tax-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tax-column ul li {
  line-height: 1.65;
}

.tax-column ul li a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #333333;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tax-column ul li a::before {
  content: '·\00a0';
  display: inline;
  font-weight: 400;
}

.tax-column ul li a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

[data-theme="dark"] .detail-meta-aside a,
[data-theme="dark"] .tax-column ul li a {
  color: #c4c4cc;
}

[data-theme="dark"] .detail-meta-aside a:hover,
[data-theme="dark"] .tax-column ul li a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .detail-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .detail-meta-aside {
    grid-column: 1;
  }
  .detail-taxonomies {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Floating Prev / Next Navigation (Slide Open Reveal Effect)
   - 평소에는 48px 화살표 바만 화면 가장자리에 노출
   - 호버 시 화살표 바가 화면 안쪽으로 150px 슬라이드 이동하며
     숨겨져 있던 썸네일(150px)이 화면 가장자리 공간에 부드럽게 노출
   ========================================================================== */
.page-button {
  position: fixed;
  top: 50%;
  width: calc(3rem + 150px); /* 48px arrow bar + 150px thumbnail = 198px */
  height: 150px;             /* 네모 블록(150px x 150px)과 1:1 완벽 일치 */
  z-index: 1000;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  background-color: #000000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast);
}

/* Next Page (Right edge): 150px 썸네일이 화면 우측 바깥에 숨어 있다가 호버 시 왼쪽으로 슬라이드 */
#next-page {
  right: 0;
  transform: translateY(-50%) translateX(150px);
}

#next-page:hover {
  transform: translateY(-50%) translateX(0);
}

/* Prev Page (Left edge): 150px 썸네일이 화면 좌측 바깥에 숨어 있다가 호버 시 오른쪽으로 슬라이드 */
#prev-page {
  left: 0;
  transform: translateY(-50%) translateX(-150px);
}

#prev-page:hover {
  transform: translateY(-50%) translateX(0);
}

/* Arrow Bar (3rem / 48px black bar) */
.page-button p {
  position: absolute;
  top: 0;
  width: 3rem;       /* 48px */
  height: 100%;      /* 150px */
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid #000000;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

#next-page p {
  left: 0;
  border-right: none;
}

#prev-page p {
  right: 0;
  border-left: none;
}

.page-button:hover p {
  background-color: #111111;
}

/* Thumbnail Box (150px x 150px 네모 블록, 화살표 바와 상하 높이 100% 일치) */
.page-thumbs {
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;      /* 150px 완벽 채움 */
  background-color: #000000;
  border: 1px solid #000000;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 10;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

#next-page .page-thumbs {
  left: 3rem; /* 48px, 화살표 바 바로 우측(화면 가장자리 쪽) */
  border-right: none;
}

#prev-page .page-thumbs {
  left: 0;    /* 0px, 화면 가장자리 쪽(화살표 바 바로 좌측) */
  border-left: none;
}

.page-thumbs a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

.page-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #000000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-button:hover .page-thumbs img {
  transform: scale(1.04);
}

/* 다크모드 (Night): 어두운 배경(#121214)에서 식별되도록 조금 덜 검정색(#2c2c34) 및 경계선 적용 */
[data-theme="dark"] .page-button {
  background-color: #2c2c34;
}

[data-theme="dark"] .page-button p {
  background-color: #2c2c34;
  color: #f0f0f2;
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .page-button:hover p {
  background-color: #383842;
}

[data-theme="dark"] .page-thumbs {
  background-color: #2c2c34;
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .page-thumbs a {
  background-color: #2c2c34;
}

[data-theme="dark"] .page-thumbs img {
  background-color: #2c2c34;
}

/* Overlay Link covering the entire interactive area */
.page-button a.page-btn-link {
  position: absolute;
  inset: 0;
  z-index: 200;
  text-indent: -9999px;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-button {
    width: 2.25rem;
    height: 4.5rem;
  }
  #next-page {
    right: 0;
    transform: translateY(-50%) translateX(0) !important;
  }
  #prev-page {
    left: 0;
    transform: translateY(-50%) translateX(0) !important;
  }
  .page-button p {
    width: 2.25rem;
    height: 4.5rem;
    font-size: 0.95rem;
    border: none;
  }
  .page-thumbs,
  .mobile-hide {
    display: none !important;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 30px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-company-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.footer-address {
  max-width: 700px;
  font-style: normal;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

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

.footer-seoul-logo {
  margin-top: 8px;
}
