@charset "utf-8";

/* ==================================================
   성경 단어 사전 카드
================================================== */

.view-wrap.dict-page {
  width: 100% !important;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.dict-view {
  max-width: none;
  width: 100%;
  margin: 0 0 8px;
}

.view-wrap.dict-page .btn-group-container,
.view-wrap.dict-page .view-btn {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
}

.view-wrap.dict-page .view-btn .btn-group {
  float: none;
}

.dict-card-head .pkist-back-list {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  margin: 0;
  width: auto !important;
  display: inline-block !important;
}

.dict-card {
  position: relative;
  width: 100%;
  background: #fff;
  border: 2px solid #000;
  box-sizing: border-box;
  overflow: hidden;
  font-family:
    Pretendard,
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  color: #111;
}

/* ==================================================
   상단 전체
   배경색은 PHP inline style에서 처리
================================================== */

.dict-card-head {
  position: relative;
  padding: 0;
}

/* ==================================================
   표제어 영역
================================================== */

.dict-card-title-band {
  padding: 20px 26px 17px;
}

.dict-card-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 10px;
  line-height: 1;
}

.dict-card-kicker-text {
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .48;
}

.dict-card-kinds {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 8px;
}

.dict-card-kind {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 1px 8px 2px 3px;
  border: 0;
  background: none;
  color: #1a1a1a;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .08em;
}

.dict-card-kind::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -7px;
  top: 28%;
  height: 62%;
  z-index: -1;
  transform: rotate(-1.4deg);
  opacity: .78;
  clip-path: polygon(
    0% 28%,
    82% 10%,
    88% 0%,
    91% 22%,
    94% 4%,
    97% 26%,
    100% 8%,
    98% 46%,
    100% 72%,
    96% 100%,
    91% 78%,
    86% 96%,
    0% 86%
  );
}

.dict-card-kind-person::before { background: #ff6b73; }
.dict-card-kind-source::before { background: #6aa6e8; }
.dict-card-kind-place::before { background: #62c48a; }
.dict-card-kind-day::before { background: #f0b429; }

.dict-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.dict-card-word,
.dict-card h1.dict-card-word,
.dict-card h1.dict-headword {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  font-size: 34px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -.045em;
  word-break: keep-all;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.dict-card h1.dict-card-word a,
.dict-card h1.dict-headword a {
  color: inherit;
}

.dict-card-affix {
  display: inline-block;
  margin-right: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
}

.dict-card-verse {
  display: inline-block;
  position: relative;
  top: -1px;
  padding: 3px 8px;
  border: 1px solid rgba(116, 91, 39, .25);
  border-radius: 3px;
  background:
  rgba(255,255,255,.72);
  color: #554729;
  font-family:
    "Noto Serif KR",
    "Batang",
    serif;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.dict-verse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #777;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: -.04em;
  cursor: pointer;
  vertical-align: middle;
  transition:
    color .15s ease,
    background-color .15s ease;
}
.dict-toggle-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid currentColor;
  transform: rotate(0deg);
  transition: transform .18s ease;
}
.dict-verse-toggle:hover {
  color: #594a2d;
  background: rgba(112, 88, 37, .07);
}
.dict-verse-toggle.is-open {
  color: #715c31;
  font-weight: 700;
  background: rgba(151, 123, 59, .10);
}
.dict-verse-toggle.is-open .dict-toggle-icon {
  transform: rotate(90deg);
}
.dict-verse-toggle:focus-visible {
  outline: 2px solid rgba(133,108,54,.3);
  outline-offset: 2px;
}

.dict-card-scripture {
  display: none;
  position: relative;
  margin: 9px 0 0;
  padding: 12px 14px 13px 16px;
  border: 1px solid rgba(119, 96, 45, .16);
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -.03em;
  word-break: keep-all;
  color: #27231b;
  background:
  rgba(255,255,255,.72);
  box-shadow: 0 1px 2px rgba(0,0,0,.025);
}
.dict-card-scripture::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #777;
  border-radius: 0 2px 2px 0;
}
.dict-card-scripture.is-open {
  display: block;
}

/* ==================================================
   뜻 영역
================================================== */

.dict-card-meaning-band {
  position: relative;
  padding: 20px 26px 21px;
  background: rgba(255,255,255,.72);
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.dict-card-meaning {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.025em;
  word-break: keep-all;
  font-style: normal !important;
}

.dict-card-meaning::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.dict-card-meaning i,
.dict-card-meaning em,
.dict-card-meaning cite,
.dict-card-meaning address {
  font-style: normal !important;
}

.dict-card-meaning p,
.dict-card-meaning div {
  display: block;
  margin: 0 0 0.35em;
}

.dict-card-meaning p:last-child,
.dict-card-meaning div:last-child {
  margin-bottom: 0;
}

/* ==================================================
   작성자 / 조회 / 날짜
================================================== */

.dict-card-aside {
  position: relative;
  min-height: 36px;
  padding: 9px 18px 9px 90px;
  background: rgba(255,255,255,.30);
}

.dict-card-head .dict-card-facts,
.dict-card-head .dict-meta {
  margin: 0;
  background: transparent !important;
  border: 0 !important;
}

.dict-card-head .dict-meta table,
.dict-card-head .dict-meta tbody {
  display: block;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
}

.dict-card-head .dict-meta tr {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 12px 4px 0;
  background: transparent !important;
  border: 0 !important;
}

.dict-card-head .dict-meta th,
.dict-card-head .dict-meta td {
  display: inline;
  width: auto !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  text-align: left !important;
  white-space: nowrap;
}

.dict-card-head .dict-meta th {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.5;
  margin-right: 6px;
}

.dict-card-head .dict-meta td {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.dict-card-head .dict-meta td span[style*="#FFF"],
.dict-card-head .dict-meta td span[style*="#fff"] {
  color: transparent !important;
  font-size: 0 !important;
}

.dict-card-byline {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 10px;
  line-height: 18px;
  color: rgba(0,0,0,.57);
  letter-spacing: -.015em;
}

.dict-card-byline > span + span::before {
  content: "·";
  margin: 0 6px;
  color: rgba(0,0,0,.35);
}

.dict-card-byline .num_change {
  margin-left: 4px;
}

/* 아래쪽 부가 본문 */
.dict-card .view-head,
.dict-card .panel-heading {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dict-card .view-padding {
  padding: 0 26px;
}

.dict-card .view-content,
.dict-card .dict-more-body {
  margin: 0 !important;
  padding: 8px 26px !important;
}

.dict-card [itemprop="description"]:not(.dict-card-meaning):not(.view-content):not(.dict-more-body) {
  margin: 0 !important;
  padding: 0 26px !important;
}

.dict-card .section-icon.text-center {
  margin-left: 0 !important;
  text-align: left !important;
  padding: 8px 26px !important;
}

.dict-card .view-icon {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.view-wrap.dict-page .view-btn {
  margin: 4px 0 6px !important;
}

.pdfobject-container:empty,
.dict-card [id^="pdf"]:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
}

/* ==================================================
   댓글 — 닫혀 있을 때는 버튼만
================================================== */

.dict-card-comments {
  position: absolute;
  left: 14px;
  bottom: 8px;
  z-index: 6;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.dict-cmt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 1px 6px;
  border: 1px solid rgba(0,0,0,.20);
  border-radius: 2px;
  background: rgba(255,255,255,.68);
  color: rgba(0,0,0,.63);
  font-family: inherit;
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.dict-cmt-toggle:hover {
  background: #fff;
  border-color: rgba(0,0,0,.42);
  color: #000;
}

.dict-cmt-toggle em {
  font-style: normal;
  font-weight: 700;
}

.dict-cmt-panel {
  display: none;
}

.dict-card-comments.is-open {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 20px 16px;
  border-top: 1px solid rgba(0,0,0,.16);
  background: #f6f5f2;
}

.dict-card-comments.is-open .dict-cmt-toggle {
  margin-bottom: 11px;
  background: #fff;
  color: rgba(0,0,0,.75);
}

.dict-card-comments.is-open .dict-cmt-panel {
  display: block;
  font-size: 13px;
  line-height: 1.55;
}

.dict-cmt-panel .view-comment,
.dict-cmt-panel .h10 {
  display: none !important;
}

.dict-cmt-panel .comment-box {
  margin: 0 !important;
  padding: 0 !important;
}

.dict-cmt-panel .comment-form {
  padding-top: 0;
}

.dict-cmt-panel #wr_content,
.dict-cmt-panel textarea.form-control {
  min-height: 52px;
  height: 52px;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.dict-cmt-panel .comment-content .comment-cell.comment-submit {
  width: 52px;
  font-size: 13px;
}

.dict-cmt-panel .comment-btn {
  font-size: 12px;
}

.dict-cmt-panel .comment-media .photo {
  display: none !important;
}

.dict-cmt-panel .comment-media .media {
  margin: 4px 0 !important;
  padding: 6px 0 0;
}

.dict-cmt-panel .comment-media .media[style*="margin-left"] {
  margin-left: 14px !important;
}

.dict-cmt-panel .comment-media .media .media-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: 13px;
}

.dict-cmt-panel .comment-media h5 {
  font-size: 12px;
  margin: 0 0 2px;
}

.dict-cmt-panel .well {
  margin: 0 0 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.dict-cmt-panel .well.well-sm {
  padding: 6px;
}

.dict-nav-float {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.dict-nav-float a {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid #000;
  background: #fff;
  color: #222;
  font-size: 13px;
  text-decoration: none;
}

.dict-nav-float a:hover {
  background: #D7E7DC;
  color: #000;
  text-decoration: none;
}

@media (max-width: 768px) {
  .view-wrap,
  .view-wrap.dict-page {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dict-view {
    max-width: 100%;
    margin: 0 0 16px;
  }

  .dict-card .view-padding,
  .dict-card .view-content,
  .dict-card [itemprop="description"]:not(.dict-card-meaning),
  .dict-card .section-icon.text-center {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .pdfobject-container {
    height: 420px !important;
  }

  .dict-nav-float {
    position: sticky;
    bottom: 8px;
    z-index: 8;
  }
}

@media (max-width: 520px) {
  .dict-card-title-band {
    padding: 17px 18px 14px;
  }

  .dict-card-kicker {
    margin-bottom: 6px;
  }

  .dict-card-word,
  .dict-card h1.dict-card-word,
  .dict-card h1.dict-headword {
    font-size: 28px !important;
  }

  .dict-card-verse {
    font-size: 10px;
    padding: 2px 6px;
  }

  .dict-card-meaning-band {
    padding: 17px 18px 18px;
  }

  .dict-card-meaning {
    padding-left: 15px;
    font-size: 16px;
    line-height: 1.75;
  }

  .dict-card-aside {
    padding: 8px 14px 8px 76px;
  }

  .dict-card-byline {
    font-size: 9px;
  }

  .dict-card-comments {
    left: 10px;
    bottom: 7px;
  }
}
