/* ==========================================================================
   magazine.css
   ========================================================================== */

   .mag-header {
    padding: 8px 20px 20px;
  }
  .mag-header__eyebrow {
    font-size: 10px;
    color: var(--voda-primary);
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .mag-header__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--voda-ink);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .mag-header__desc {
    font-size: 13px;
    color: var(--voda-ink-muted);
    line-height: 1.5;
  }
  
  /* 피처드 */
  .mag-featured {
    display: block;
    margin: 0 20px 24px;
    border-radius: var(--voda-radius-xl);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
  }
  .mag-featured__img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #555;
    background-size: cover;
    background-position: center;
  }
  .mag-featured__img--warm {
    background: linear-gradient(135deg, #E8C15A 0%, #B45309 40%, #7C2D12 100%);
  }
  /* ==========================================================================
    자동 이미지 대비
  ========================================================================== */
  
  .mag-featured__gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(var(--mag-overlay-r, 0), var(--mag-overlay-g, 0), var(--mag-overlay-b, 0), 0) 25%,
      rgba(var(--mag-overlay-r, 0), var(--mag-overlay-g, 0), var(--mag-overlay-b, 0), var(--mag-overlay-alpha, 0.78)) 100%
    );
    transition: background 0.3s ease;
  }
  .mag-featured__body {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    color: var(--mag-text-color, #fff);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    transition: color 0.3s ease;
  }
  .mag-featured__category {
    margin-bottom: 10px;
    color: var(--mag-text-muted, rgba(255, 255, 255, 0.9));
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
  }
  .mag-featured__title {
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
  }
  .mag-featured__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--mag-text-muted, rgba(255, 255, 255, 0.9));
    font-size: 12px;
    font-weight: 500;
  }
  .mag-featured__dot { opacity: 0.5; }
  
  /* 리스트 */
  .mag-list {
  padding: 0 20px 40px;
  }
  .mag-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--voda-line);
  color: inherit;
  text-decoration: none;
  }
  .mag-item:last-child { border-bottom: none; }
  
  .mag-item__body {
    flex: 1;
    min-width: 0;
  }
  .mag-item__category {
    font-size: 10px;
    color: var(--voda-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  
  .mag-item__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--voda-ink);
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
  }
  
  .mag-item__excerpt {
    font-size: 12px;
    color: var(--voda-ink-muted);
    line-height: 1.5;
    margin-bottom: 8px;
  }
  
  .mag-item__meta {
    font-size: 11px;
    color: var(--voda-ink-muted);
    display: flex;
    gap: 5px;
    align-items: center;
  }
  
  .mag-item__dot { opacity: 0.5; }
  .mag-item__img {
    flex: 0 0 90px;
    width: 90px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--voda-chip);
  }
  
  .mag-item__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mag-item__img--warm   { background: linear-gradient(135deg, #E8C15A, #B45309); }
  .mag-item__img--plum   { background: linear-gradient(135deg, #701A75, #18181B); }
  .mag-item__img--purple { background: linear-gradient(135deg, #4C1D95, #2E1065); }
  .mag-item__img--green  { background: linear-gradient(135deg, #064E3B, #022C22); }
  .mag-item__img--blue   { background: linear-gradient(135deg, #1E3A8A, #1E1B4B); }
  
  .cat-empty {
  padding: 60px 20px;
  color: var(--voda-ink-muted);
  text-align: center;
  font-size: 13px;
  }
  
  /* ==========================================================================
    Board View
    ========================================================================== */
  
    .board-view {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 100px;
  }
  
  /* --------------------------------------------------------------------------
      Header
      -------------------------------------------------------------------------- */
  
  .board-view__header {
    padding: 32px 20px 24px;
    border-bottom: 1px solid var(--voda-line);
  }
  
  .board-view__category {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    margin-bottom: 14px;
  
    background: var(--voda-primary-soft);
    color: var(--voda-primary);
  
    border-radius: 4px;
  
    font-size: 11px;
    font-weight: var(--voda-fw-bold);
  }
  
  .board-view__title {
    font-size: 24px;
    line-height: 1.35;
    font-weight: var(--voda-fw-black);
    letter-spacing: -0.03em;
  
    word-break: keep-all;
  }
  
  .board-view__meta {
    display: flex;
    align-items: center;
    gap: 8px;
  
    margin-top: 14px;
  
    color: var(--voda-ink-muted);
    font-size: 12px;
  }
  
  .board-view__dot {
    color: var(--voda-line);
  }
  
  /* --------------------------------------------------------------------------
      Content
      -------------------------------------------------------------------------- */
  
  .board-view__content {
    padding: 28px 20px;
  }
  
  .board-view__thumbnail {
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .board-view__thumbnail img {
    width: 100%;
    height: auto;
  }
  
  .board-view__body {
    color: var(--voda-ink);
    font-size: 15px;
    line-height: 1.9;
    word-break: keep-all;
    white-space: pre-line;
  }
  
  /* DB HTML 콘텐츠 대응 */
  
  .board-view__body img {
    /* max-width: 100%;
    height: auto;
    margin: 20px auto; */
  
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }
  
  .board-view__body p {
    margin: 0 0 16px;
  }
  
  .board-view__body h2 {
    margin: 32px 0 14px;
  
    font-size: 20px;
    font-weight: 800;
  }
  
  .board-view__body h3 {
    margin: 26px 0 12px;
  
    font-size: 17px;
    font-weight: 800;
  }
  
  .board-view__body ul,
  .board-view__body ol {
    margin: 16px 0;
    padding-left: 24px;
  }
  
  .board-view__body li {
    margin: 6px 0;
  }
  
  .board-view__body a {
    color: var(--voda-primary);
    text-decoration: underline;
  }
  
  .board-view__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
  }
  
  .board-view__body th,
  .board-view__body td {
    padding: 10px;
    border: 1px solid var(--voda-line);
  }
  
  .board-view__body th {
    background: var(--voda-chip);
    font-weight: 700;
  }
  
  .board-view__body iframe {
    /* display: block;
    width: 100% !important;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: 0;
    margin: 0 auto; */
  
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
  }
  
  /* --------------------------------------------------------------------------
      Files
      -------------------------------------------------------------------------- */
  
  .board-view__files {
    margin: 0 20px;
    padding: 20px 0;
  
    border-top: 1px solid var(--voda-line);
    border-bottom: 1px solid var(--voda-line);
  }
  
  .board-view__section-title {
    margin-bottom: 12px;
  
    font-size: 14px;
    font-weight: 800;
  }
  
  .board-view__file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .board-view__file {
    display: flex;
    align-items: center;
    gap: 8px;
  
    padding: 10px 12px;
  
    background: var(--voda-chip);
    border-radius: 6px;
  
    font-size: 12px;
  }
  
  .board-view__file-name {
    flex: 1;
    overflow: hidden;
  
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .board-view__file small {
    color: var(--voda-ink-muted);
  }
  
  /* --------------------------------------------------------------------------
      Prev / Next
      -------------------------------------------------------------------------- */
  
  .board-view__navigation {
    margin: 24px 20px 0;
  
    border-top: 1px solid var(--voda-line);
    border-bottom: 1px solid var(--voda-line);
  }
  
  .board-view__nav-item {
    display: flex;
    align-items: center;
  
    gap: 16px;
  
    padding: 14px 4px;
  
    border-bottom: 1px solid var(--voda-line);
  }
  
  .board-view__nav-item:last-child {
    border-bottom: none;
  }
  
  .board-view__nav-label {
    flex: 0 0 40px;
  
    color: var(--voda-ink-muted);
    font-size: 11px;
  }
  
  .board-view__nav-title {
    flex: 1;
  
    overflow: hidden;
  
    font-size: 13px;
  
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  
  /* --------------------------------------------------------------------------
      Actions
      -------------------------------------------------------------------------- */
  
  .board-view__actions {
    display: flex;
    justify-content: center;
  
    padding: 28px 20px;
  }
  
  /* --------------------------------------------------------------------------
      Related
      -------------------------------------------------------------------------- */
  
  .board-view__related {
    padding: 28px 20px;
  
    border-top: 8px solid var(--voda-chip);
  }
  
  .board-view__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    margin-bottom: 16px;
  }
  
  .board-view__section-heading h2 {
    font-size: 16px;
    font-weight: 800;
  }
  
  .board-view__section-heading a {
    display: flex;
    align-items: center;
    gap: 2px;
  
    color: var(--voda-ink-muted);
    font-size: 12px;
  }
  
  .board-view__related-list {
    display: flex;
    flex-direction: column;
  }
  
  .board-view__related-item {
    padding: 14px 0;
  
    border-bottom: 1px solid var(--voda-line);
  }
  
  .board-view__related-category {
    margin-bottom: 4px;
  
    color: var(--voda-primary);
    font-size: 10px;
    font-weight: 700;
  }
  
  .board-view__related-title {
    font-size: 14px;
    font-weight: 600;
  }
  
  .board-view__related-date {
    margin-top: 5px;
  
    color: var(--voda-ink-muted);
    font-size: 11px;
  }
  
  /* ==========================================================================
    Desktop
  ========================================================================== */
  @media (min-width: 640px) {
  
    .board-view {
      max-width: 960px;
      padding: 40px 24px 120px;
    }
  
    .board-view__header {
      padding: 24px 0 28px;
    }
  
    .board-view__title {
      font-size: 32px;
    }
  
    .board-view__content {
      padding: 40px 0;
    }
  
    .board-view__body {
      font-size: 15px;
      line-height: 2;
    }
  
    .board-view__files {
      margin: 0;
    }
  
    .board-view__navigation {
      margin: 24px 0 0;
    }
  
    .board-view__actions {
      justify-content: center;
      padding: 32px 0;
    }
  
    .board-view__related {
      padding: 32px 0;
    }
  
  }
  
  /* ==========================================================================
    Magazine Mobile
    ========================================================================== */
  
  /* ============================================================
     플로팅 액션 버튼
    ============================================================ */
  .floating-action {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 1000;
  
    display: flex;
    flex-direction: column;
    gap: 10px;
  
    transition: opacity 0.2s ease,
                transform 0.2s ease;
  }
  
  /* ------------------------------------------------------------
    버튼
    ------------------------------------------------------------ */
  
  .floating-action__button {
    width: 54px;
    height: 54px;
  
    padding: 0;
  
    border: 1px solid #e5e5e5;
    border-radius: 50%;
  
    background: #fff;
    color: #222;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
    cursor: pointer;
  
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.10);
  
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
  }
  
  .floating-action__button[hidden] {
    display: none !important;
  }
  
  .floating-action__button:hover {
    transform: translateY(-2px);
  
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.14);
  }
  
  /* ------------------------------------------------------------
    아이콘
    ------------------------------------------------------------ */
  
  .floating-action__icon {
    display: block;
  
    line-height: 1;
  }
  
  /* 위로가기 아이콘 */
  .floating-action__icon--top {
    font-size: 22px;
    font-weight: 600;
  }
  
  /* 작성하기 아이콘 */
  .floating-action__icon--write {
    font-size: 20px;
    font-weight: 500;
  }
  
  /* ------------------------------------------------------------
    텍스트
    ------------------------------------------------------------ */
  
  .floating-action__text {
    margin-top: 3px;
  
    font-size: 10px;
    line-height: 1;
  
    color: #666;
  }
  
  /* ------------------------------------------------------------
    작성하기 버튼
    ------------------------------------------------------------ */
  
  .floating-action__button--write {
    background: #111;
    border-color: #111;
    color: #fff;
  }
  
  .floating-action__button--write .floating-action__text {
    color: #fff;
  }
  
  /* ------------------------------------------------------------
    위로가기 버튼
    처음에는 숨김
    ------------------------------------------------------------ */
  
  .floating-action__button--top {
    opacity: 0;
    visibility: hidden;
  
    transform: translateY(10px);
    pointer-events: none;
  }
  
  .floating-action__button--top.is-visible {
    opacity: 1;
    visibility: visible;
  
    transform: translateY(0);
    pointer-events: auto;
  }
  
  /* ============================================================
    모바일
    ============================================================ */
  
  @media (max-width: 767px) {
  
    .floating-action {
        right: 16px;
  
        /*
          * 모바일 하단 네비게이션 높이를 고려
          * 하단 네비게이션과 겹치지 않도록 위쪽에 배치
          */
        bottom: 88px;
  
        gap: 8px;
    }
  
    .floating-action__button {
        width: 48px;
        height: 48px;
    }
  
    .floating-action__icon--top {
        font-size: 20px;
    }
  
    .floating-action__icon--write {
        font-size: 18px;
    }
  
    .floating-action__text {
        font-size: 9px;
    }
  }
  
  /* 관람후기 첨부 이미지 */
  .board-view__review-images {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    margin-bottom: 28px;
  }
  
  .board-view__review-images .board-view__section-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
  }
  
  .board-view__review-image-list {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .board-view__review-image-link {
    display: block;
    flex: 0 0 140px;
    width: 140px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f3f3;
  }
  
  .board-view__review-image-link img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .board-view__review-image-guide {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
  }
  
  @media (min-width: 640px) {
    .board-view__review-images {
      margin-left: 0;
      margin-right: 0;
    }
  }
  
  