@charset "utf-8";


/* =========================================
   게시판 쓰기
   ========================================= */
#char_count_desc {
  display: block;
  margin: 0 0 6px;
  padding: 0;

  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.5;
}

#char_count_wrap {
  margin: 6px 0 0;

  text-align: right;
}

#char_count {
  color: #1f2937;
  font-weight: 700;
  font-size: 0.9rem;
}


/* =========================================
   자동저장 영역
   ========================================= */
#autosave_wrapper {
  position: relative;
}

#autosave_pop {
  position: absolute !important;
  top: 42px;
  right: 0;
  z-index: 10;

  display: none;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: auto !important;
  max-height: 300px;

  overflow: hidden;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;

  background: #ffffff;

  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06);

  animation: autosave-pop-in 0.18s ease-out;
}

#autosave_pop::before,
#autosave_pop::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 42px;

  width: 0;
  height: 0;

  border-style: solid;
}

#autosave_pop::before {
  border-width: 0 7px 8px 7px;
  border-color: transparent transparent rgba(15, 23, 42, 0.08) transparent;
}

#autosave_pop::after {
  top: -7px;

  border-width: 0 7px 8px 7px;
  border-color: transparent transparent #ffffff transparent;
}

html.no-overflowscrolling #autosave_pop {
  height: auto;
  max-height: 10000px !important;
}

#autosave_pop strong {
  position: absolute;

  overflow: hidden;

  font-size: 0;
  line-height: 0;
}

#autosave_pop div {
  margin: 0 !important;

  text-align: center;
}

#autosave_pop button {
  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;
}

#autosave_pop ul {
  height: 220px;
  max-height: 220px;

  overflow-y: auto;
  overscroll-behavior: contain;

  padding: 10px;

  border: 0;

  background: #f8fafc;

  list-style: none;
}

#autosave_pop li {
  position: relative;

  margin: 0 0 8px;
  padding: 12px 14px;

  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;

  background: #ffffff;

  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

#autosave_pop li:hover {
  border-color: rgba(37, 99, 235, 0.25);

  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.10);

  transform: translateY(-1px);
}

#autosave_pop li:last-child {
  margin-bottom: 0;
}

#autosave_pop li::after {
  content: "";

  display: block;
  visibility: hidden;

  clear: both;
}

#autosave_pop a {
  display: block;

  color: #1f2937;

  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;

  text-decoration: none;

  word-break: keep-all;
  overflow-wrap: anywhere;

  transition: color 0.18s ease;
}

#autosave_pop a:hover,
#autosave_pop a:focus {
  color: #2563eb;

  text-decoration: none;
}

#autosave_pop span {
  display: block;

  margin-top: 4px;

  color: #94a3b8;

  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
}


/* =========================================
   자동저장 닫기 버튼
   ========================================= */
.autosave_close {
  width: 100%;
  height: 44px;

  cursor: pointer;

  padding: 0;

  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);

  background: #ffffff;

  color: #64748b;

  font-size: 0.85rem;
  font-weight: 700;

  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.autosave_close:hover,
.autosave_close:focus {
  background: #eff6ff;

  color: #2563eb;
}

.autosave_content {
  display: none;
}

.autosave_del {
  position: absolute;
  top: 50%;
  right: 10px;

  transform: translateY(-50%);

  width: 26px;
  height: 26px;

  overflow: hidden;

  border-radius: 50%;

  background: url(./img/close_btn.png) no-repeat 50% 50% / 14px 14px;

  text-indent: -999px;

  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.autosave_del:hover {
  background-color: rgba(239, 68, 68, 0.08);

  transform: translateY(-50%) scale(1.08);
}


/* =========================================
   모바일 대응
   ========================================= */
@media screen and (max-width: 640px) {
  #autosave_pop {
    top: 48px;
    right: 0;
    left: 0;

    width: auto;
    max-width: none;

    margin: 0 4px;
  }

  #autosave_pop::before,
  #autosave_pop::after {
    right: auto;
    left: 50%;

    transform: translateX(-50%);
  }

  #autosave_pop ul {
    height: 200px;
    max-height: 200px;
  }
}


/* =========================================
   애니메이션
   ========================================= */
@keyframes autosave-pop-in {
  from {
    opacity: 0;

    transform: translateY(-6px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}