﻿
/* === GeneratePress 잡지 홈 — 전체 너비 === */
body.page-template-template-magazine-home {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body.page-template-template-magazine-home .site-content,
body.page-template-template-magazine-home #primary,
body.page-template-template-magazine-home #content,
body.page-template-template-magazine-home .site-main,
body.page-template-template-magazine-home .grid-container,
body.page-template-template-magazine-home .content-area {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.page-template-template-magazine-home .inside-article,
body.page-template-template-magazine-home .entry-content,
body.page-template-template-magazine-home .page-header {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
body.page-template-template-magazine-home .entry-title {
  display: none !important;
}
body.page-template-template-magazine-home .main-navigation,
body.page-template-template-magazine-home #site-navigation,
body.page-template-template-magazine-home .menu-toggle {
  display: none !important;
}
body.page-template-template-magazine-home .magazine-ad-widget {
  width: 100%;
}
body.page-template-template-magazine-home .magazine-ad-widget ins {
  display: block;
  margin: 0 auto;
}
.noriguri-magazine-outer .ad-slot-wide:has(.magazine-ad-widget) {
  border: none;
  background: transparent;
  min-height: auto;
  padding: 0;
}
.noriguri-magazine-outer .loading-msg,
.noriguri-magazine-outer .error-msg {
  text-align: center;
  color: #6b6358;
  padding: 2rem;
}
.noriguri-magazine-outer .post-view .meta .archive-more-link {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #3d6b52;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.noriguri-magazine-outer .post-view .meta .archive-more-link:hover {
  color: #2a5240;
}
.noriguri-magazine-outer .list-cap-note {
  display: none !important;
}
.noriguri-magazine-outer .entry-content.wp-content img {
  max-width: 100%;
  height: auto;
}
.noriguri-magazine-outer .entry-content.wp-content video,
.noriguri-magazine-outer .entry-content.wp-content table {
  max-width: 100%;
}
.noriguri-magazine-outer .entry-content.wp-content table {
  display: block;
  overflow-x: auto;
}

/* 본문 유튜브·임베드 — 오른쪽 패널 안에서 100% 너비 (PC·모바일 공통) */
.noriguri-magazine-outer .entry-content.wp-content figure,
.noriguri-magazine-outer .entry-content.wp-content .wp-block-embed,
.noriguri-magazine-outer .entry-content.wp-content .wp-block-video {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0;
  margin-right: 0;
}
.noriguri-magazine-outer .entry-content.wp-content .wp-block-embed__wrapper {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  overflow: hidden;
}
.noriguri-magazine-outer .entry-content.wp-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
.noriguri-magazine-outer .noriguri-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}
.noriguri-magazine-outer .noriguri-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: 0;
}
.noriguri-magazine-outer .entry-content.wp-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
}

/* GP·iOS — button 기본 흰 글자 덮어쓰기 (책갈피·목록 카드 공통) */
body.page-template-template-magazine-home .noriguri-magazine-outer button.featured-card,
body.page-template-template-magazine-home .noriguri-magazine-outer button.post-cell,
body.page-template-template-magazine-home .noriguri-magazine-outer button.strip-card,
body.page-template-template-magazine-home .noriguri-magazine-outer button.related-link {
  color: #2a2520 !important;
  -webkit-text-fill-color: #2a2520 !important;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
}
body.page-template-template-magazine-home .noriguri-magazine-outer .featured-card .label,
body.page-template-template-magazine-home .noriguri-magazine-outer .post-cell .label,
body.page-template-template-magazine-home .noriguri-magazine-outer .strip-card .label {
  color: #2a2520 !important;
  -webkit-text-fill-color: #2a2520 !important;
}
body.page-template-template-magazine-home .noriguri-magazine-outer .featured-card .sub,
body.page-template-template-magazine-home .noriguri-magazine-outer .post-cell .sub {
  color: #6b6358 !important;
  -webkit-text-fill-color: #6b6358 !important;
}
body.page-template-template-magazine-home .noriguri-magazine-outer .featured-card .date,
body.page-template-template-magazine-home .noriguri-magazine-outer .post-cell .date {
  color: #9a9084 !important;
  -webkit-text-fill-color: #9a9084 !important;
}
body.page-template-template-magazine-home .noriguri-magazine-outer button.featured-card.active,
body.page-template-template-magazine-home .noriguri-magazine-outer button.post-cell.active,
body.page-template-template-magazine-home .noriguri-magazine-outer button.strip-card.active {
  border-color: var(--accent);
}
body.page-template-template-magazine-home .noriguri-magazine-outer .post-cell .thumb-tag {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}
body.page-template-template-magazine-home .noriguri-magazine-outer .post-cell.active .thumb-tag {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

    :root {
      --paper-left: #faf6ee;
      --paper-right: #f8f3ea;
      --text: #2a2520;
      --muted: #6b6358;
      --accent: #3d6b52;
      --accent-soft: #e8ebe4;
      --border: #ddd4c4;
      --font: "Noto Sans KR", "Malgun Gothic", sans-serif;
      --font-display: "Noto Serif KR", Georgia, "Batang", serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
.noriguri-magazine-outer {
      font-family: var(--font);
      color: var(--text);
      font-size: 15px;
      line-height: 1.65;
      min-height: 100vh;
      max-width: 100%;
      overflow-x: hidden;
      background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(200, 220, 210, 0.35), transparent 50%),
        linear-gradient(175deg, #e8ebe6 0%, #dce5df 40%, #d4ddd6 100%);
      padding: 1rem 0.35rem 2rem;
    }

    .magazine-wrap {
      max-width: min(100%, 1680px);
      margin: 0 auto;
      padding: 0.75rem 0.5rem 2rem;
      width: 100%;
    }

    .noriguri-magazine-outer .app {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      width: 100%;
      min-height: min(88vh, 920px);
      border-radius: 4px;
      box-shadow:
        0 24px 50px rgba(60, 80, 70, 0.18),
        0 8px 20px rgba(60, 80, 70, 0.1),
        0 0 0 1px rgba(180, 170, 155, 0.35);
      overflow: visible;
    }

    .app::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 8;
      pointer-events: none;
      opacity: 0.4;
      border-radius: 4px;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
      mix-blend-mode: multiply;
    }

    /* 가운데 책갈피·겹친 페이지 → magazine-effects.css */

    .noriguri-magazine-outer .panel-left,
    .noriguri-magazine-outer .panel-right {
      position: relative;
      min-height: calc(100vh - 5rem);
      min-width: 0;
      max-width: 100%;
    }

    .noriguri-magazine-outer .panel-left {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0%, transparent 10%),
        linear-gradient(180deg, var(--paper-left) 0%, #efe6d8 100%);
      border-radius: 4px 0 0 4px;
    }

    .blog-name {
      flex-shrink: 0;
      padding: 1.35rem 1.25rem 1rem;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: clamp(1.1rem, 2.2vw, 1.4rem);
      text-align: center;
      border-bottom: 1px solid var(--border);
    }
    .blog-name small {
      display: block;
      font-family: var(--font);
      font-weight: 400;
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 0.3rem;
    }

    .list-label {
      padding: 0.65rem 1.25rem 0.2rem;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    .list-empty {
      margin: 0.75rem 1.15rem 1rem;
      padding: 1rem;
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--muted);
      background: #fff8e6;
      border: 1px dashed #d4a84b;
      border-radius: 6px;
    }

    /* 오른쪽 글 페이지 — 다른 글 클릭 시 넘김 (perspective는 잘림 유발 → 애니만 사용) */
    .noriguri-magazine-outer .content-area {
      overflow-x: visible;
      overflow-y: auto;
    }
    .noriguri-magazine-outer .article-page-flip {
      min-height: min(40vh, 100%);
      min-width: 0;
      max-width: 100%;
    }
    .article-page-flip.is-turning.turn-forward {
      animation: articlePageTurnFwd 0.55s cubic-bezier(0.35, 0.05, 0.25, 1);
    }
    .article-page-flip.is-turning.turn-back {
      animation: articlePageTurnBack 0.55s cubic-bezier(0.35, 0.05, 0.25, 1);
    }
    @keyframes articlePageTurnFwd {
      0% { transform: rotateY(0deg); transform-origin: left center; }
      38% { transform: rotateY(14deg); filter: brightness(0.92); }
      68% { transform: rotateY(5deg); }
      100% { transform: rotateY(0deg); filter: none; }
    }
    @keyframes articlePageTurnBack {
      0% { transform: rotateY(0deg); transform-origin: left center; }
      38% { transform: rotateY(-11deg); filter: brightness(0.94); }
      68% { transform: rotateY(-4deg); }
      100% { transform: rotateY(0deg); filter: none; }
    }
    .panel-right.is-turning::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 42%;
      pointer-events: none;
      z-index: 20;
      background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent);
      animation: articleTurnShadow 0.55s ease;
    }
    @keyframes articleTurnShadow {
      0%, 100% { opacity: 0; }
      45% { opacity: 1; }
    }
    @media (prefers-reduced-motion: reduce) {
      .article-page-flip.is-turning { animation: none !important; }
      .panel-right.is-turning::before { display: none; }
    }

    /* 理쒖떊 湲 = ??異붿쿇 移대뱶 (??湲 ?곕㈃ ?ш린濡? */
    .featured-wrap {
      flex: 0 0 auto;
      padding: 0.25rem 1.15rem 0.65rem;
    }
    .featured-card {
      width: 100%;
      min-height: 148px;
      border: 2px solid var(--accent);
      border-radius: 6px;
      background: #fff;
      box-shadow: 0 6px 20px rgba(47, 100, 70, 0.15);
      cursor: pointer;
      padding: 0;
      display: flex;
      flex-direction: column;
      text-align: left;
      overflow: hidden;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .featured-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(47, 100, 70, 0.22);
    }
    .featured-card.active {
      box-shadow: 0 0 0 3px var(--accent), 0 10px 28px rgba(47, 100, 70, 0.25);
    }
    .featured-card .thumb {
      height: 100px;
      position: relative;
      background-size: cover;
      background-position: center;
    }
    .featured-badge {
      position: absolute;
      top: 0.5rem;
      left: 0.5rem;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 0.2rem 0.55rem;
      background: var(--accent);
      color: #fff;
      border-radius: 3px;
    }
    .featured-card .cell-body {
      padding: 0.55rem 0.65rem 0.6rem;
    }
    .featured-card .label {
      font-family: var(--font-display);
      font-size: clamp(0.95rem, 1.6vw, 1.1rem);
      font-weight: 700;
      line-height: 1.35;
    }
    .featured-card .sub {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 0.25rem;
    }
    .featured-card .date {
      font-size: 0.68rem;
      color: #9a9084;
      margin-top: 0.35rem;
    }

    .post-grid {
      flex: 0 0 auto;
      padding: 0.2rem 1.15rem 0.55rem;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: clamp(0.5rem, 1.1vw, 0.75rem);
      align-content: start;
    }

    .post-cell {
      min-height: clamp(118px, 15vw, 168px);
      border: 1px solid #c4b8a6;
      border-radius: 4px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(42, 37, 32, 0.08);
      cursor: pointer;
      padding: 0;
      display: flex;
      flex-direction: column;
      text-align: left;
      overflow: hidden;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .post-cell:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 18px rgba(42, 37, 32, 0.14);
    }
    .post-cell.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent), 0 8px 20px rgba(47, 100, 70, 0.25);
    }
    .post-cell .thumb {
      height: 58%;
      min-height: 68px;
      position: relative;
      background-size: cover;
      background-position: center;
    }
    .post-cell .thumb-tag {
      position: absolute;
      top: 0.3rem;
      left: 0.3rem;
      font-size: 0.58rem;
      font-weight: 700;
      padding: 0.15rem 0.4rem;
      background: rgba(255, 255, 255, 0.92);
      border-radius: 2px;
      color: var(--accent);
    }
    .post-cell.active .thumb-tag {
      background: var(--accent);
      color: #fff;
    }
    .post-cell .cell-body {
      padding: 0.35rem 0.45rem 0.4rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .post-cell .label {
      font-size: clamp(0.68rem, 1vw, 0.82rem);
      font-weight: 700;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .post-cell .sub {
      font-size: 0.62rem;
      color: var(--muted);
      margin-top: 0.15rem;
      line-height: 1.25;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .post-cell .date {
      font-size: 0.58rem;
      color: #9a9084;
      margin-top: auto;
      padding-top: 0.2rem;
    }

    /* ?좊뱶?쇱뒪 ???쇱そ 紐⑸줉 留??꾨옒留?*/
    .ad-slot-wide {
      flex-shrink: 0;
      margin: 0 1.15rem 2.75rem;
      min-height: 90px;
      border: 2px dashed #c9b86a;
      border-radius: 4px;
      background: linear-gradient(180deg, #fff9e0, #fff3c8);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0.65rem;
    }
    .ad-slot-wide .ad-label { font-size: 0.75rem; font-weight: 700; color: #8a7340; }
    .ad-slot-wide .ad-hint { font-size: 0.62rem; color: #a89460; margin-top: 0.2rem; }

    .list-cap-note {
      padding: 0 1.15rem 0.35rem;
      font-size: 0.62rem;
      color: var(--muted);
      text-align: center;
      line-height: 1.4;
    }
    .list-cap-note:empty {
      display: none;
    }

    /* 紐⑤컮?? 媛濡??ㅽ겕濡?紐⑸줉 */
    .mobile-only { display: none; }

    .page-number {
      position: absolute;
      bottom: 1rem;
      font-size: 0.75rem;
      color: var(--muted);
      font-family: var(--font-display);
      font-style: italic;
      z-index: 4;
    }
    .panel-left .page-number { left: 1.25rem; }

    .noriguri-magazine-outer .panel-right {
      display: flex;
      flex-direction: column;
      background:
        linear-gradient(270deg, rgba(0, 0, 0, 0.07) 0%, transparent 10%),
        linear-gradient(180deg, var(--paper-right) 0%, #efe8db 100%);
      border-radius: 0 4px 4px 0;
      padding-top: 2.5rem;
      min-width: 0;
    }

    .bookmark-rail {
      position: absolute;
      top: -42px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: clamp(0.35rem, 1vw, 0.6rem);
      z-index: 20;
    }

    .bookmark-ribbon {
      --ribbon: #7a9e8a;
      width: clamp(40px, 5vw, 54px);
      padding: 0.5rem 0.3rem 0.8rem;
      border: none;
      cursor: pointer;
      font-family: var(--font);
      font-size: clamp(0.65rem, 0.9vw, 0.78rem);
      font-weight: 700;
      color: #fff;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
      background: linear-gradient(180deg, color-mix(in srgb, var(--ribbon) 88%, #fff), var(--ribbon));
      clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s;
    }
    .bookmark-ribbon:hover { transform: translateY(-4px); }
    .bookmark-ribbon.active {
      transform: translateY(-7px) scale(1.05);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }
    .bookmark-ribbon[data-cat="all"] { --ribbon: #6b6560; }
    .bookmark-ribbon[data-cat="health"] { --ribbon: #5a8f6e; }
    .bookmark-ribbon[data-cat="diet"] { --ribbon: #c97b5a; }
    .bookmark-ribbon[data-cat="nutrition"] { --ribbon: #d4a84b; }
    .bookmark-ribbon[data-cat="pain"] { --ribbon: #7a6b9a; }

    .noriguri-magazine-outer .content-area {
      flex: 1;
      overflow-y: auto;
      overflow-x: visible;
      padding: 0.75rem 1.25rem 2rem;
      min-height: 0;
      min-width: 0;
      max-width: 100%;
    }

    .panel-right .page-number { right: 1.25rem; }

    .content-placeholder {
      min-height: 40vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      text-align: center;
      border: 2px dashed var(--border);
      padding: 2rem;
    }

    .post-view { display: none; }
    .post-view.show { display: block; }

    /* 오른쪽 패널이 좁아서 목차·본문 2열이면 유튜브·글 잘림 → 항상 1열 */
    .noriguri-magazine-outer .article-layout {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
      min-width: 0;
      max-width: 100%;
    }
    .noriguri-magazine-outer .article-main {
      min-width: 0;
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: keep-all;
    }

    .post-view h1 {
      font-family: var(--font-display);
      font-size: clamp(1.2rem, 2.2vw, 1.6rem);
      font-weight: 700;
      line-height: 1.35;
      margin-bottom: 0.35rem;
    }
    .post-view .meta {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border);
    }
  .post-view .meta .cat-badge {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 0.15rem 0.45rem;
      border-radius: 3px;
      margin-right: 0.35rem;
      background: var(--accent-soft);
      color: var(--accent);
    }
    .post-view h2 {
      font-size: 1.05rem;
      color: var(--accent);
      margin: 1.35rem 0 0.45rem;
      scroll-margin-top: 1rem;
    }
    .post-view h3 { font-size: 0.95rem; margin: 0.85rem 0 0.4rem; }
    .post-view p { margin-bottom: 0.7rem; }
    .post-view ul { margin: 0 0 0.85rem 1.15rem; font-size: 0.92rem; }

    .entry-toc {
      position: sticky;
      top: 0.5rem;
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.85rem;
      font-size: 0.78rem;
    }
    .entry-toc h4 {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      color: var(--muted);
      margin-bottom: 0.5rem;
    }
    .entry-toc a {
      display: block;
      color: var(--text);
      text-decoration: none;
      padding: 0.28rem 0;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      line-height: 1.35;
    }
    .entry-toc a:hover { color: var(--accent); }

    .tip, .warn, .disclaimer {
      padding: 0.75rem 0.9rem;
      border-radius: 0 8px 8px 0;
      margin: 1rem 0;
      font-size: 0.88rem;
    }
    .tip {
      background: var(--accent-soft);
      border-left: 4px solid var(--accent);
    }
    .warn {
      background: #fff8e6;
      border-left: 4px solid #d4a84b;
    }
    .disclaimer {
      background: #f0eeea;
      border: 1px solid var(--border);
      border-radius: 8px;
      border-left: none;
      font-size: 0.82rem;
      color: var(--muted);
      margin-top: 1.5rem;
    }

    /* ?볤? (?뚮뱶?꾨젅???볤? ?곸뿭 誘몃━蹂닿린) */
    .comments-section {
      margin-top: 1.75rem;
      padding-top: 1.25rem;
      border-top: 2px solid var(--border);
    }
    .comments-section h4 {
      font-family: var(--font-display);
      font-size: 1rem;
      margin-bottom: 0.15rem;
    }
    .comments-count {
      font-size: 0.78rem;
      color: var(--muted);
      margin-bottom: 1rem;
    }
    .comment-form {
      background: rgba(255, 255, 255, 0.65);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1.25rem;
    }
    .comment-form textarea {
      width: 100%;
      font-family: var(--font);
      font-size: 0.88rem;
      padding: 0.65rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      margin-bottom: 0.55rem;
      background: #fff;
      min-height: 72px;
      resize: vertical;
      line-height: 1.5;
    }
    .comment-form textarea::placeholder {
      color: #9a9084;
    }
    .comment-form-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 0.5rem;
    }
    .comment-form-hint {
      font-size: 0.68rem;
      color: var(--muted);
      margin-right: auto;
    }
    .comment-submit {
      padding: 0.5rem 1.25rem;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 4px;
      font-family: var(--font);
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
    }
    .comment-submit:hover { background: #356048; }
    .comment-list { list-style: none; }
    .comment-item {
      padding: 0.85rem 0;
      border-bottom: 1px solid var(--border);
    }
    .comment-item:last-child { border-bottom: none; }
    .comment-author {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text);
    }
    .comment-date {
      font-size: 0.72rem;
      color: var(--muted);
      margin-left: 0.35rem;
      font-weight: 400;
    }
    .comment-body {
      font-size: 0.88rem;
      color: #3d3830;
      margin-top: 0.35rem;
      line-height: 1.55;
    }
    .comments-note {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 0.75rem;
      font-style: italic;
    }

    .related-posts {
      margin-top: 1.75rem;
      padding-top: 1rem;
      border-top: 2px solid var(--border);
    }
    .related-posts h4 {
      font-family: var(--font-display);
      font-size: 0.95rem;
      margin-bottom: 0.65rem;
    }
    .related-list {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .related-link {
      display: block;
      text-align: left;
      padding: 0.5rem 0.65rem;
      background: rgba(255,255,255,0.6);
      border: 1px solid var(--border);
      border-radius: 4px;
      cursor: pointer;
      font-family: var(--font);
      font-size: 0.82rem;
      color: var(--text);
      transition: background 0.15s;
    }
    .related-link:hover {
      background: var(--accent-soft);
      border-color: var(--accent);
      color: var(--accent);
    }

    @media (max-width: 900px) {
      body.page-template-template-magazine-home .site-content,
      body.page-template-template-magazine-home .grid-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
      }
      .noriguri-magazine-outer {
        padding: 0.35rem 0 1.25rem;
        font-size: 14px;
      }
      .noriguri-magazine-outer .magazine-wrap {
        padding: 0.25rem 0.15rem 0.75rem;
      }
      .noriguri-magazine-outer .app {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        min-height: auto;
        overflow: visible;
        border-radius: 6px;
        width: 100% !important;
      }
      .noriguri-magazine-outer .panel-left,
      .noriguri-magazine-outer .panel-right {
        min-height: auto;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto;
      }
      .noriguri-magazine-outer .panel-left {
        border-radius: 6px 6px 0 0;
        overflow: visible;
      }
      .noriguri-magazine-outer .panel-right {
        border-radius: 0 0 6px 6px;
        padding-top: 0;
      }
      .noriguri-magazine-outer .blog-name {
        padding: 0.85rem 0.75rem 0.65rem;
        font-size: 1.05rem;
      }
      .noriguri-magazine-outer .blog-name small {
        font-size: 0.7rem;
      }
      .noriguri-magazine-outer .page-number {
        display: none;
      }
      .noriguri-magazine-outer .bookmark-rail { display: none; }
      .noriguri-magazine-outer .desktop-only { display: none !important; }
      .noriguri-magazine-outer .mobile-only { display: block; }

      .noriguri-magazine-outer .mobile-panel .featured-wrap {
        padding: 0.2rem 0.65rem 0.45rem;
      }
      .noriguri-magazine-outer .mobile-panel .featured-card {
        min-height: auto;
      }
      .noriguri-magazine-outer .mobile-panel .featured-card .thumb {
        height: 96px;
      }
      .noriguri-magazine-outer .mobile-panel .list-label {
        padding: 0.45rem 0.65rem 0.15rem;
        font-size: 0.68rem;
      }
      .noriguri-magazine-outer .mobile-panel .list-cap-note {
        padding: 0 0.65rem 0.35rem;
        font-size: 0.6rem;
      }
      .noriguri-magazine-outer .ad-slot-wide {
        margin: 0.35rem 0.65rem 0.85rem;
        min-height: 72px;
      }

      .noriguri-magazine-outer .mobile-bookmarks {
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
        padding: 0.5rem 0.65rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
      }
      .noriguri-magazine-outer .mobile-bookmarks::-webkit-scrollbar { display: none; }
      .noriguri-magazine-outer .mobile-bookmarks button {
        flex-shrink: 0;
        padding: 0.38rem 0.8rem;
        border-radius: 99px;
        border: 1px solid var(--border);
        background: #fff !important;
        color: #2a2520 !important;
        -webkit-text-fill-color: #2a2520 !important;
        font-size: 0.76rem;
        font-weight: 600;
        line-height: 1.3;
        cursor: pointer;
        font-family: var(--font);
        appearance: none;
        -webkit-appearance: none;
        box-shadow: none;
        text-shadow: none;
        opacity: 1;
        min-height: 2rem;
      }
      .noriguri-magazine-outer .mobile-bookmarks button:focus,
      .noriguri-magazine-outer .mobile-bookmarks button:hover {
        color: #2a2520 !important;
        -webkit-text-fill-color: #2a2520 !important;
        background: #fff !important;
      }
      .noriguri-magazine-outer .mobile-bookmarks button.active,
      .noriguri-magazine-outer .mobile-bookmarks button.active:focus,
      .noriguri-magazine-outer .mobile-bookmarks button.active:hover {
        background: var(--accent) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        border-color: var(--accent);
      }
      .noriguri-magazine-outer .mobile-panel {
        display: block;
        width: 100%;
        clear: both;
      }
      .noriguri-magazine-outer .mobile-panel .list-label {
        display: block;
        width: 100%;
        clear: both;
      }

      .noriguri-magazine-outer .post-strip {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0 0.65rem 0.65rem;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
      }
      .noriguri-magazine-outer .strip-card {
        flex: 0 0 min(42vw, 148px);
        border: 1px solid #c4b8a6;
        border-radius: 6px;
        overflow: hidden;
        background: #fff !important;
        color: #2a2520 !important;
        -webkit-text-fill-color: #2a2520 !important;
        cursor: pointer;
        text-align: left;
        appearance: none;
        -webkit-appearance: none;
        box-shadow: none;
      }
      .noriguri-magazine-outer .strip-card.active {
        border-color: var(--accent);
        box-shadow: 0 0 0 2px var(--accent);
      }
      .noriguri-magazine-outer .strip-card .thumb {
        height: 68px;
        background-size: cover;
        background-position: center;
      }
      .noriguri-magazine-outer .strip-card .label {
        padding: 0.32rem 0.38rem 0.4rem;
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1.25;
        color: #2a2520 !important;
        -webkit-text-fill-color: #2a2520 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .noriguri-magazine-outer .mobile-panel .featured-card {
        color: #2a2520 !important;
        -webkit-text-fill-color: #2a2520 !important;
        background: #fff !important;
      }
      .noriguri-magazine-outer .mobile-panel .featured-card .label,
      .noriguri-magazine-outer .mobile-panel .featured-card .sub,
      .noriguri-magazine-outer .mobile-panel .featured-card .date {
        color: inherit;
        -webkit-text-fill-color: inherit;
      }
      .noriguri-magazine-outer .mobile-panel .featured-card .label {
        color: #2a2520 !important;
        -webkit-text-fill-color: #2a2520 !important;
      }
      .noriguri-magazine-outer .mobile-panel .featured-card .sub {
        color: #6b6358 !important;
        -webkit-text-fill-color: #6b6358 !important;
      }
      .noriguri-magazine-outer .mobile-panel .featured-card .date {
        color: #9a9084 !important;
        -webkit-text-fill-color: #9a9084 !important;
      }

      .noriguri-magazine-outer .post-grid { display: none; }
      .noriguri-magazine-outer .article-layout { grid-template-columns: 1fr; }
      .noriguri-magazine-outer .entry-toc {
        position: static;
        margin-bottom: 1rem;
      }
      .noriguri-magazine-outer .content-area {
        padding: 0.75rem 0.85rem 1.25rem;
        overflow-x: visible;
      }
      .noriguri-magazine-outer .featured-card,
      .noriguri-magazine-outer .strip-card,
      .noriguri-magazine-outer .post-cell {
        max-width: 100%;
      }
      .noriguri-magazine-outer .featured-card .thumb {
        width: 100%;
      }
      .noriguri-magazine-outer .post-view h1 {
        font-size: 1.15rem;
        word-break: keep-all;
        overflow-wrap: break-word;
      }
      .noriguri-magazine-outer .content-placeholder {
        min-height: 28vh;
        padding: 1.25rem;
        font-size: 0.9rem;
      }
      .noriguri-magazine-outer .article-page-flip.is-turning {
        animation: none !important;
      }
    }

/* === v1.3.3 — 모바일 버튼 글자색 (책갈피·지난 글 카드) === */
body.page-template-template-magazine-home .noriguri-magazine-outer .mobile-bookmarks button:not(.active),
body.page-template-template-magazine-home .noriguri-magazine-outer button.strip-card,
body.page-template-template-magazine-home .noriguri-magazine-outer button.strip-card .label {
  color: #2a2520 !important;
  -webkit-text-fill-color: #2a2520 !important;
}
body.page-template-template-magazine-home .noriguri-magazine-outer button.strip-card {
  background-color: #ffffff !important;
}

/* === v1.3.1 — 모바일 1열·임베드 (캐시 무력화용, 맨 아래 유지) === */
@media screen and (max-width: 900px) {
  body.page-template-template-magazine-home .noriguri-magazine-outer .app {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  body.page-template-template-magazine-home .noriguri-magazine-outer .panel-left,
  body.page-template-template-magazine-home .noriguri-magazine-outer .panel-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

