/* BASIC css start */
#review-board-type .rbItem { padding: 10px; }
#review-board-type .rbItem dl {  }
#review-board-type .rbItem dl dt { float: left; padding-right: 10px; padding-bottom: 10px; }
#review-board-type .rbItem dl dt img { width: 125px; }
#review-board-type .rbItem dl dd { line-height: 20px; }
#review-board-type .rbItem dl dd.subject { font-weight: bold; word-break: break-all; }
#review-board-type .rbItem dl dd.link-view {  }
#review-board-type .rbItem dl dd.link-view a { width: 85px; height: 23px; border: 1px solid #c7c7c7; display: inline-block; text-align: center; line-height: 23px; font-weight: bold; margin-top: 10px; }
#review-board-type .rbInfo { clear: both; padding: 10px; background-color: #f9f9f9; border-bottom: 1px solid #bebebe;}
#review-board-type .rbInfo dt { font-weight: bold; word-break: break-all; }
#review-board-type .rbInfo dd { color: #7d7d7d; line-height: 20px; }
#review-board-type .rbInfo dd .rb_name {  }
#review-board-type .rbInfo dd .rb_name img { vertical-align: middle; }
#review-board-type .rbInfo dd .split { padding: 0 5px; }
#review-board-type .rbInfo .rb_rating { position:relative; }
#review-board-type .rbInfo .rb_rating .rb_star { display: block; }
#review-board-type .rbContent { padding: 10px; line-height:20px; word-break: break-all; }
#review-board-type .rbContent img {max-width:100%;}
#review-board-type .rbContent .rb_addInfo { margin-bottom: 10px; border-bottom: 1px solid #c6c6c6; }
#review-board-type .rbContent .rb_addInfo dl { border: 1px solid #c6c6c6; padding: 7px 10px; border-bottom: none; }
#review-board-type .rbContent .rb_addInfo dl dt { float: left; padding-right: 6px; font-weight: bold; }
#review-board-type .rbContent .rb_addInfo dl dd { min-height: 20px; }
#review-board-type .rbContent .rb_thumbs { text-align: center; }
#review-board-type .rbContent .rb_icons { padding-top: 20px; text-align: right; }
#review-board-type .rbContent .rb_icons img { width: 29px; margin-left: 2px; }
#review-board-type .rbRelations {border-top:2px solid #bebebe; border-bottom: 1px solid #bebebe; padding:15px 0;}
#review-board-type .rbRelations h5 {text-align:left; font-weight:bold; padding:0 10px; margin-bottom:5px;}
#review-board-type .rbRelations ul {padding:0 8px;}
#review-board-type .rbRelations ul li { font-size: 12px; }
#review-board-type .reply-write {background-color:#f9f9f9; border-top: 1px solid #bebebe; border-bottom: 1px solid #bebebe; padding:10px;}
#review-board-type .reply-write h5 {font-weight:bold;}
#review-board-type .reply-write table {width:100%;}
#review-board-type .reply-write table .agree {position: relative;}
#review-board-type .reply-write table .agree li {padding: 10px 0;}
#review-board-type .reply-write table .agree li .btn_White {position: absolute; right: 10px; width: 65px; top: 0;}
#review-board-type .reply-write table .agree label {margin-left:5px;}
#review-board-type .reply-write table .agree .privacy-agree-btn {border: 1px solid #bbb; background-color: #fff; float: right; padding:4px 10px;}
#review-board-type .reply-write table .agree .privacy-agree-btn strong {font-weight: normal;}
#review-board-type .reply-write table th {font-weight:normal; text-align:left;}
#review-board-type .reply-write table .w-100 {width:100%;}
#review-board-type .reply-write table th {padding:5px 0;}
#review-board-type .reply-write table td {padding:5px 0;}
#review-board-type .reply-write table .custom {padding-right:74px; position: relative;}
#review-board-type .reply-write table .custom .w-100 {height:45px;}
#review-board-type .reply-write table .custom .btn_Grey {width:65px; height:45px; line-height:45px; position: absolute; top: 0; right:0;}
#review-board-type .sub-reviews li {border-bottom:1px solid #bebebe; padding:10px;}
#review-board-type .sub-reviews li .info {margin-bottom:5px;}
#review-board-type .sub-reviews li .info .id {font-size:0.917em; color:#7d7d7d;}
#review-board-type .sub-reviews li .info .btn_White {width:54px; height:22px; line-height:22px; display:inline-block; float:right; margin-left: 5px;}
#review-board-type .pd10 .small-btns {text-align:right; margin:10px 0;}
#review-board-type .rb_white_btn { border: 1px solid #c6c6c6; height: 22px; line-height: 22px; text-align: center; display: inline-block; padding: 0 10px; }
#review-board-type .rb_gray_btn { color: #ffffff; background-color: #858585; display: inline-block; text-align: center; width: 56px; height: 36px; line-height: 36px; }
#review-board-type .pd10 .btn_Red {margin-top:10px;}
/* 다른 게시글 */
#review-board-type .board-Chain {padding:5px 10px; margin-top:20px; border-top: 1px solid #464646; border-bottom: 1px solid #464646;}
#review-board-type .board-Chain li {margin:5px 0;}
#review-board-type .board-list {margin-top:20px; border-top: 1px solid #dfdfdf;}
#review-board-type .board-list li.list {padding:10px; border-bottom: 1px solid #dfdfdf;}
/* 다른 게시글 */
/* 댓글의 댓글쓰기 레이어 팝업 */
#contents #comment_reply_input {width:90%;}
.layer-pop h3  {background-color: #efefef; height: 36px; line-height: 36px; font-weight: bold; padding: 0 10px; }
.layer-pop .txt {max-height: 300px; overflow-y: auto; padding:10px;}
.layer-pop .txt input.txt-input1 {margin-bottom:10px;}
.layer-pop .txt .btn_Black {margin:20px 0;}
.layer-pop .txt #check_auth_reply {border-top:1px solid #c6c6c6; padding-top:20px;}
.layer-pop .txt #check_auth_reply .head {text-align:center; color:#f46b00; margin-bottom:10px;}
.layer-pop .txt #check_auth_reply table {margin:0 auto;}
.layer-pop .txt #check_auth_reply table td {padding:5px 0;}
.layer-pop .txt #check_auth_reply #authtext {height: 35px !important;}
.layer-pop .close {width:45px; height:36px; color:#fff; line-height: 42px; position:absolute; top:0; right:0;  background-color: #4f4f4f; text-align: center;}
/* //댓글의 댓글쓰기 레이어 팝업 */

#review-board-type .btn-report { position:absolute; right:0; bottom:0; display:inline-block; color:#9d9d9d; font-size:11px; z-index:1; }
#review-board-type .rb_rating {position: relative; min-height:20px;}
#review-board-type .rb_rating .btn-report { position:absolute; right:0; bottom:0; display:inline-block; color:#9d9d9d; font-size:11px; z-index:1; }
/* 답변 만족도 평가 */
.score-write { padding: 10px; border-top: 1px solid #bebebe; color: #000; }
.score-write h5 { font-weight: bold; }
.score-write table { width: 100%; }
.score-write table .sco-wrt-des { padding: 10px 0; }
.score-write table .sco-wrt-des label { display: inline-block; margin-left: 15px; font-weight: bold; }
.score-write table .sco-wrt-des.stars label { margin-left: 8px; }
.score-write table .sco-wrt-des.txts label { margin-left: 4px; }
.score-write table .sco-wrt-des label:first-child { margin-left: 0; }
.score-write table .sco-wrt-txtr textarea { width: 100%; height: 80px; margin-bottom: 5px; }
/* 답변 만족도 평가 결과 */
.score-list { padding: 10px; border-top: 1px solid #bebebe; color: #000; }
.score-list h5 { font-weight: bold; }
.score-list table { width: 100%; }
.score-list table .sco-lst-txtr { padding: 10px; margin-top: 10px; color: #000; background: #f1f1f1; }
.score-list table .sco-lst-txtr .sco-date { display: flex; justify-content: space-between; }
.score-list table .sco-lst-txtr .sco-date span { color: #a9a9a9; }
.score-list table .sco-lst-txtr .sco-txt { margin-top: 10px; }

/* 첨부파일 등록 */
.img-comment-file img { display: inline-block; width: 200px; height: auto; margin-bottom: 10px; }
.comment-file { padding-top:10px; }
.comment-file .file-info { position: relative; display: none; width: 80px; }
.comment-file .file-info img { width: 80px; height: 53px; }
.comment-file .file-info .btn-del { position: absolute; right: -10px; top: -5px; width: 20px; height: 20px; background: url(/images/d3/modern_simple/btn_comment_file_del.png) right top / 20px no-repeat; font-size: 0; text-indent: -9999px; border: 0; }
.comment-file .flex-box { display: flex; align-items: center; margin-top: 5px; }
.comment-file .file-upload { padding-left: 22px; background: none; font-size: 12px; color: #3d3d3d; letter-spacing: -0.8px; background: url(/images/d3/m_powerpack/ico_comment_file_mo.png) left center / 16px auto no-repeat; cursor: pointer; }
.comment-file input[type="file"] { display: none; }

/* 자위의 정석 공통 CSS — 기존 연재용 CSS 전체를 이 파일로 교체하세요. */
/* 목차 href와 h2 id는 HTML에서 동일하게 맞춥니다: jerkoff-01, jerkoff-02 … */

.jerkoff {
  /* 본문 배경색과 글자색 */
  --paper: #f2eadb;
  --ink: #201e1b;

  /* 표지 배경색과 글자색 */
  --cover-bg: #090909;
  --cover-text: #ffffff;

  /* 표지의 큰 글자와 번호 색상 */
  --accent: #ef123d;

  /* 강조 박스와 형광펜 배경색 */
  --note-bg: #e7ddcc;
  --highlight-bg: #f5d98b;

  /* 본문 최대 너비 */
  --page-width: 1080px;

  /* 본문 글자 크기와 줄 간격 */
  --body-size: 17px;
  --body-line: 1.95;

  /* 중제목과 소제목 크기 */
  --heading-size: 29px;
  --subheading-size: 21px;

  /* 표지의 큰 글자 최대 크기 */
  --cover-title-size: 84px;

  /* 문단 사이 간격 */
  --paragraph-gap: 1.3em;

  /* 각 항목 사이 간격 */
  --section-gap: 52px;

  /* 본문 이미지 최대 높이 */
  --image-height: 520px;

  --section-heading-bg: #eae1d2; /* 중제목 배경색 */
  --section-heading-line: #b8ad9b; /* 아래 구분선 색 */
  --section-heading-space: 30px; /* 중제목과 본문 사이 여백 */
}

/* ==================================================
   공통 서식
   아래는 그대로 사용하세요.
   ================================================== */

/* 기본 */
.jerkoff {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-width);
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--body-size);
  line-height: var(--body-line);
  letter-spacing: -0.015em;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  container: jerkoff-layout / inline-size;
  counter-reset: jerkoff-section;
}

.jerkoff *,
.jerkoff *::before,
.jerkoff *::after {
  box-sizing: border-box;
}

.jerkoff p {
  margin: 0 0 var(--paragraph-gap);
  padding: 0;
  color: inherit;
  font: inherit;
}

.jerkoff strong {
  color: inherit;
  font-weight: 800;
}

.jerkoff a {
  border: 0;
  box-shadow: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jerkoff a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

/* 중제목과 소제목 */
.jerkoff h2,
.jerkoff h3 {
  position: static;
  float: none;
  width: auto;
  max-width: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-family: inherit;
  font-weight: 800;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: -0.04em;
  text-align: left;
  text-transform: none;
  scroll-margin-top: 110px;
  break-after: avoid;
}

.jerkoff h2 {
  margin: 0 0 26px;
  font-size: var(--heading-size);
}

.jerkoff h3 {
  margin: 28px 0 18px;
  font-size: var(--subheading-size);
}

.jerkoff h2::before,
.jerkoff h2::after,
.jerkoff h3::before,
.jerkoff h3::after,
.jerkoff blockquote::before,
.jerkoff blockquote::after {
  display: none !important;
  content: none !important;
}

/* 표지 */
.jerkoff .jerkoff-cover {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  grid-template-areas: "photo panel";
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--cover-bg);
}

.jerkoff .jerkoff-cover-photo {
  grid-area: photo;
  float: none;
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 580px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: var(--cover-bg);
  /* 가로 비율은 유지하고, 세로를 사진 영역 전체에 맞춥니다. */
  background-size: auto 100%;
  background-position: center top;
  background-repeat: no-repeat;
}

.jerkoff .jerkoff-cover-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 12px 16px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
  font-size: 11px;
  line-height: 1.7;
}

.jerkoff .jerkoff-cover-photo figcaption a {
  color: #fff;
}

.jerkoff .jerkoff-cover-panel {
  grid-area: panel;
  float: none;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 580px;
  padding: 32px clamp(24px, 5cqi, 54px);
  border-left: 6px solid var(--accent);
  background: var(--cover-bg);
  color: var(--cover-text);
}

.jerkoff .jerkoff-cover-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cover-text);
}

.jerkoff .jerkoff-cover-meta p {
  margin: 0;
  color: var(--cover-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.jerkoff .jerkoff-cover-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 50px 0 32px;
}

.jerkoff .jerkoff-cover-kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.jerkoff .jerkoff-cover-label {
  margin: 0 0 12px;
  color: var(--cover-text);
  font-size: clamp(24px, 3.8cqi, 38px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.055em;
}

.jerkoff .jerkoff-cover-title {
  margin: 0;
  color: var(--accent);
  font-size: min(var(--cover-title-size), 8.5cqi);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.jerkoff .jerkoff-cover-description {
  margin: 28px 0 0;
  color: var(--cover-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
}

.jerkoff .jerkoff-cover-number {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin: 0;
  color: var(--accent);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.075em;
}

.jerkoff .jerkoff-cover-watermark {
  position: absolute;
  top: 43%;
  right: 10px;
  margin: 0;
  color: var(--cover-text);
  opacity: 0.08;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
  pointer-events: none;
}

/* 숫자 버튼 목차: 아래 세 값으로 버튼 디자인을 조절합니다. */
.jerkoff .jerkoff-toc.jerkoff-toc-buttons {
  --toc-button-bg: #fffaf2; /* 버튼 배경 */
  --toc-button-radius: 12px; /* 모서리 둥글기 */
  --toc-button-gap: 10px; /* 버튼 사이 간격 */
  box-sizing: border-box !important;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas: "label buttons";
  align-items: center;
  gap: 12px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  border: 0 !important;
  background: var(--paper);
  box-shadow: none;
}

.jerkoff .jerkoff-toc-buttons > .jerkoff-toc-label {
  grid-area: label;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.jerkoff .jerkoff-toc-buttons ol {
  grid-area: buttons;
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid;
  /* 항목이 6개 또는 7개여도 빈 열 없이 같은 너비로 배치 */
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  grid-auto-flow: row;
  gap: var(--toc-button-gap);
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  list-style: none;
}

.jerkoff .jerkoff-toc-buttons li,
.jerkoff .jerkoff-toc-buttons li + li {
  display: block;
  float: none;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none;
  list-style: none;
}

.jerkoff .jerkoff-toc-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px;
  height: auto;
  margin: 0 !important;
  padding: 10px 4px !important;
  border: 0 !important;
  border-radius: var(--toc-button-radius);
  background: var(--toc-button-bg);
  box-shadow: 0 3px 8px rgb(70 48 20 / 9%);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

/* 테마나 이전 목차에서 남은 장식선을 없앱니다. */
.jerkoff .jerkoff-toc-buttons::before,
.jerkoff .jerkoff-toc-buttons::after,
.jerkoff .jerkoff-toc-buttons ol::before,
.jerkoff .jerkoff-toc-buttons ol::after,
.jerkoff .jerkoff-toc-buttons li::before,
.jerkoff .jerkoff-toc-buttons li::after,
.jerkoff .jerkoff-toc-buttons a::before,
.jerkoff .jerkoff-toc-buttons a::after {
  display: none !important;
  content: none !important;
}

.jerkoff .jerkoff-toc-buttons a:hover,
.jerkoff .jerkoff-toc-buttons a:focus-visible {
  background: #b50c31;
  color: #fff;
  box-shadow: 0 4px 10px rgb(120 12 38 / 18%);
}

.jerkoff .jerkoff-toc-buttons a:focus-visible {
  outline: 2px solid #b50c31;
  outline-offset: 3px;
}

.jerkoff .jerkoff-toc-buttons a:active {
  background: #8f0926;
  color: #fff;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 15%);
}

@container jerkoff-layout (max-width: 480px) {
  .jerkoff .jerkoff-toc.jerkoff-toc-buttons {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "buttons";
    gap: 8px;
    padding: 12px 16px !important;
  }
  .jerkoff .jerkoff-toc-buttons ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jerkoff .jerkoff-toc-buttons > .jerkoff-toc-label { text-align: left; }
  .jerkoff .jerkoff-toc-buttons a { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .jerkoff .jerkoff-toc-buttons a { transition: none; }
}

/* 편집기가 삽입한 빈 요소와 목록 문단의 여백을 정리합니다. */
.jerkoff .jerkoff-toc-buttons > p:empty,
.jerkoff .jerkoff-toc-buttons > br,
.jerkoff .jerkoff-toc-buttons li > br {
  display: none !important;
}
.jerkoff .jerkoff-toc-buttons li p {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
/* 목차 아래 도입부까지의 간격 */
.jerkoff .jerkoff-toc-buttons + .jerkoff-intro {
  margin-top: 24px;
}

/* 본문 */
.jerkoff .jerkoff-intro,
.jerkoff > section {
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0 clamp(24px, 6%, 70px);
  border: 0;
  background: transparent;
  color: var(--ink);
  /* 모든 화면에서 본문 1단 */
  column-count: 1 !important;
  column-width: auto !important;
}

.jerkoff .jerkoff-intro {
  margin: var(--section-gap) 0;
}

.jerkoff > section {
  counter-increment: jerkoff-section;
  margin: 0 0 var(--section-gap);
}

.jerkoff ul,
.jerkoff ol {
  float: none;
  width: auto;
  margin: 0 0 24px;
  padding: 0 0 0 1.4em;
  color: inherit;
  list-style-position: outside;
  break-inside: avoid;
}

.jerkoff ul {
  list-style-type: disc;
}

.jerkoff ol {
  list-style-type: decimal;
}

.jerkoff li {
  display: list-item;
  float: none;
  width: auto;
  margin: 0 0 0.65em;
  padding: 0;
  color: inherit;
  font: inherit;
}

/* 인용문 버튼으로 만드는 강조 박스 */
.jerkoff blockquote,
.jerkoff p.jerkoff-note,
.jerkoff p.jerkoff-ending {
  position: static;
  display: block;
  float: none;
  width: auto;
  margin: 28px 0;
  padding: 24px;
  border: 0 !important;
  border-radius: 0;
  background: var(--note-bg);
  box-shadow: none !important;
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  font-style: normal;
  line-height: var(--body-line);
  text-align: left !important;
}

.jerkoff blockquote p {
  text-align: left !important;
  color: inherit;
  font: inherit;
}

.jerkoff blockquote p:last-child {
  margin-bottom: 0;
}

.jerkoff mark {
  padding: 0.08em 0.2em;
  background: var(--highlight-bg);
  color: var(--ink);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 본문 이미지 */
.jerkoff .jerkoff-figure {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 40px clamp(24px, 6%, 70px) var(--section-gap);
  padding: 0;
  border: 0;
}

.jerkoff .jerkoff-figure img {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: var(--image-height);
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  opacity: 1;
  filter: none;
  box-shadow: none;
}

.jerkoff .jerkoff-figure figcaption {
  margin: 12px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}

/* 좁은 본문 영역: 표지와 본문 여백 조정 */
@container jerkoff-layout (max-width: 680px) {
  .jerkoff .jerkoff-cover {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "panel";
  }

  .jerkoff .jerkoff-cover-photo {
    min-height: 0;
    height: 320px;
  }

  .jerkoff .jerkoff-cover-panel {
    min-height: 460px;
    padding: 28px 24px;
    border-top: 5px solid var(--accent);
    border-left: 0;
  }

  .jerkoff .jerkoff-cover-title {
    font-size: min(var(--cover-title-size), 14cqi);
  }

  .jerkoff .jerkoff-cover-label {
    font-size: 26px;
  }

  .jerkoff .jerkoff-cover-copy {
    padding: 38px 0 28px;
  }

  .jerkoff .jerkoff-cover-number {
    font-size: 76px;
  }

  .jerkoff .jerkoff-intro,
  .jerkoff > section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .jerkoff .jerkoff-figure {
    margin-right: 24px;
    margin-left: 24px;
  }

  .jerkoff h2 {
    font-size: min(var(--heading-size), 26px);
  }

}

/* 본문 제목 디자인 — 색상과 여백은 파일 상단에서 조절 */

/* 중제목: 번호 + 붉은 세로선 + 위아래 구분선 */
.jerkoff > section > h2 {
  position: relative;
  display: block;
  min-height: 96px;
  margin: 0 0 var(--section-heading-space);
  padding: 24px 24px 24px 94px !important;
  border-top: 2px solid var(--ink) !important;
  border-bottom: 1px solid var(--section-heading-line) !important;
  border-left: 4px solid var(--accent) !important;
  background: var(--section-heading-bg) !important;
  border-radius: 0;
  break-inside: avoid;
  line-height: 1.5;
}

/* 기존 CSS의 장식 제거 규칙보다 구체적으로 지정합니다. */
.jerkoff > section > h2::before {
  content: counter(jerkoff-section, decimal-leading-zero) !important;
  display: block !important;
  position: absolute;
  top: 24px;
  left: 22px;
  right: auto;
  bottom: auto;
  width: 52px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 38px;
  font-weight: 900;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.06em;
  text-align: left;
  transform: none;
  opacity: 1;
}

/* 소제목: 얇은 왼쪽 강조선과 아래 구분선 */
.jerkoff > section > h3 {
  margin: 36px 0 20px;
  padding: 4px 0 12px 14px !important;
  border-left: 3px solid var(--accent) !important;
  border-bottom: 1px solid var(--section-heading-line) !important;
  break-inside: avoid;
}

/* 중제목 바로 다음 소제목의 여백은 간결하게 */
.jerkoff > section > h2 + h3 {
  margin-top: 0;
}

/* 좁은 본문에서는 번호와 제목 여백을 줄입니다. */
@container jerkoff-layout (max-width: 680px) {
  .jerkoff > section > h2 {
    min-height: 80px;
    padding: 19px 16px 19px 70px !important;
    font-size: min(var(--heading-size), 24px);
  }

  .jerkoff > section > h2::before {
    top: 20px;
    left: 16px;
    width: 40px;
    font-size: 30px;
  }
}

/* ==================================================
   하단 링크 3개 — 이전 글 / 관련 제품 / 함께 읽을 글
   ================================================== */
.jerkoff .jerkoff-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px clamp(20px, 6%, 70px) 32px;
  border: 0 !important;
  background: transparent;
}

/* 카드: 가운데 정렬, 작은 내부 여백 */
.jerkoff nav.jerkoff-footer-links > a.jerkoff-footer-card {
  display: block !important;
  float: none;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  margin: 0;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 14px;
  background: #fffaf2;
  box-shadow: 0 3px 9px rgb(70 48 20 / 9%);
  color: var(--ink);
  line-height: 1.5 !important;
  text-align: center !important;
  text-decoration: none;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 카드 안의 문구와 간격 */
.jerkoff nav.jerkoff-footer-links > a.jerkoff-footer-card > span,
.jerkoff nav.jerkoff-footer-links > a.jerkoff-footer-card > strong {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

.jerkoff nav.jerkoff-footer-links > a.jerkoff-footer-card > .jerkoff-footer-title {
  margin-top: 4px !important;
}

.jerkoff nav.jerkoff-footer-links > a.jerkoff-footer-card > .jerkoff-footer-arrow {
  margin-top: 6px !important;
}

/* 편집기가 추가한 카드 내부 줄바꿈 제거 */
.jerkoff .jerkoff-footer-card br,
.jerkoff .jerkoff-footer-card p:empty {
  display: none !important;
}

.jerkoff .jerkoff-footer-detail {
  display: block;
  color: #655b4f;
  font-size: 12px;
  font-weight: 500;
}

.jerkoff .jerkoff-footer-title {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.jerkoff .jerkoff-footer-arrow {
  display: block;
  color: #b50c31;
  font-size: 21px;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.jerkoff .jerkoff-footer-links > a.jerkoff-footer-card:hover,
.jerkoff .jerkoff-footer-links > a.jerkoff-footer-card:focus-visible {
  background: #f8e4de;
  box-shadow: 0 4px 12px rgb(120 12 38 / 12%);
}

.jerkoff .jerkoff-footer-links > a.jerkoff-footer-card:focus-visible {
  outline: 2px solid #b50c31;
  outline-offset: 3px;
}

/* 테마의 장식 요소나 빈 문단이 열을 차지하지 않게 합니다. */
.jerkoff .jerkoff-footer-links::before,
.jerkoff .jerkoff-footer-links::after,
.jerkoff .jerkoff-footer-card::before,
.jerkoff .jerkoff-footer-card::after,
.jerkoff .jerkoff-footer-links > p:empty,
.jerkoff .jerkoff-footer-links > br {
  display: none !important;
  content: none !important;
}

/* 좁은 화면에서도 3개를 같은 행에 유지합니다. */
@container jerkoff-layout (max-width: 600px) {
  .jerkoff .jerkoff-footer-links {
    gap: 8px;
    padding: 8px 16px 24px;
  }
  .jerkoff nav.jerkoff-footer-links > a.jerkoff-footer-card {
    border-radius: 12px;
  }
  .jerkoff .jerkoff-footer-title { font-size: 14px; }
  .jerkoff .jerkoff-footer-detail { font-size: 11px; }
}

/* 표지에서 테마 장식이나 빈 요소가 격자 칸을 차지하지 않게 합니다. */
.jerkoff .jerkoff-cover::before,
.jerkoff .jerkoff-cover::after,
.jerkoff .jerkoff-cover > p:empty,
.jerkoff .jerkoff-cover > br {
  content: none !important;
  display: none !important;
}
/* BASIC css end */

