/* init */

b {
  font-weight: bold;
}

i {
  font-style: italic;
}

h3 {
  font-size: 16px;
  margin: 10px 0;
}

blockquote {
  margin: 20px 0;
  padding-left: 10px;
  border-left: 2px solid black;
  color: black;
}

ul,
ol {
  margin: 0px 20px;
}

table {
  border: 1px solid black;
  margin: 20px 0;
}

th,
td {
  border: 1px solid black;
  padding: 5px;
}

html {
  font-size: 14px;
  height: 100%;
}

body {
  background-color: #00807f;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  font-size: 12px;
}

/* switch */

.block {
  display: block !important;
}

.none {
  display: none !important;
}

.hidden {
  visibility: hidden !important;
}

.main [data-tistory-react-app="Namecard"] {
  display: none;
}

.tistoryProfileLayerTrigger {
  display: none;
}

.mobile {
  display: none !important;
}

.menu_toolbar .btn_menu_toolbar {
  display: flex !important;
  min-width: 30px;
}
/* common */

.window {
  margin: 10px;
}

.title-bar {
  font-size: 13px !important;
}
.title-bar-text {
  line-height: 0;
}

.title-bar-text > a {
  color: white;
  text-decoration: none;
}

button[aria-label="Open"] {
  display: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='6' height='2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0 0h6v2H0z'/%3E%3C/svg%3E");
  background-position: bottom 3px left 4px;
  background-repeat: no-repeat;
}

.status-bar-field {
  font-size: 12px;
}

.vertical-bar,
button,
input[type="reset"],
input[type="submit"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

ul.tree-view {
  line-height: 1.2;
  padding: 4px 8px;
}
ul.tt_category {
  line-height: 1.2;
  padding: 4px 8px;
}

/* wrap */

.wrap {
  height: 100%;
  display: flex;

  box-sizing: border-box;
  padding: 10px 0 40px 0;
}

/* sidebar */

#sidebar-toggle {
  display: none;
}

.sidebar {
  width: 275px;
  height: fit-content;
}

.search-cont {
  display: flex;
  align-items: center;
}

.search-title {
  word-break: keep-all;
  margin: 0 5px;
}

.search {
  width: 100%;
}

.recent-comments li,
.sidebar .notice li {
  font-size: 13px;
}

.pfp {
  width: 100%;
}

.pfp-cont {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border-radius: 0;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  box-sizing: border-box;
  padding: 2px;
  line-height: 0;
}

.sidebar .profile .desc pre {
  line-height: 140%;
  white-space: pre-wrap;
  background: inherit;
  box-shadow: inherit;
  font-family: inherit;
  padding: 4px 8px 8px;
}
.sidebar .profile .desc h3 {
  font-weight: bold;
  margin: 12px 8px 0;
}

/* content */

.main {
  box-sizing: border-box;

  width: 598px;
  line-height: 1.7;
  display: flex;

  height: fit-content;
}

.main-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.window-inner {
  max-height: 100%;
  box-sizing: border-box;
}

.container_postbtn .postbtn_like {
  padding: 0 !important;
  border: 0px !important;
}

.container_postbtn {
  padding: 16px 0 32px 0 !important;
}

.container_postbtn .btn_post {
  display: flex;
  justify-content: center;
  align-items: center;
}

.field-row {
  justify-content: flex-end;
}

.list.window-body {
  line-height: 1.4;
}

.list .title-bar {
  line-height: 1;
  align-items: center;
}

blockquote[data-ke-style="box"],
.main blockquote[data-ke-style="box"],
blockquote[data-ke-style="style3"],
.main blockquote[data-ke-style="style3"] {
  background: transparent !important;
  border: 1px solid #000 !important;
  color: #000 !important;
}

.main h2,
.main h3,
.main h4 {
  font-weight: bold !important;
  line-height: 2;
}

.contents_style sup.footnote > a {
  color: blue !important;
  font-family: inherit !important;
}
.contents_style sup.footnote > a::before {
  content: "[";
}
.contents_style sup.footnote > a::after {
  content: "]";
}

.contents_style a.btn-toggle-moreless {
  color: blue !important;
  font-family: inherit !important;
  text-decoration: underline !important;
  font-size: inherit;
}

.contents_style div.footnotes {
  margin: 30px 0;
}

.contents_style ol.footnotes::before {
  content: "[각주]";
  font-weight: bold;
}

.moreless-content {
  background: #fff;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  display: block;
  margin: 0;
  padding: 12px 8px;
  margin-bottom: 8px;
}

.sidebar .logo-cont {
  padding: 3px 1px 1px 1px;
}

.sidebar .logo-cont .logo {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #808080;
}

/* protected */

.window-inner.protected {
  display: flex;
}

.window-inner.protected p:has(input[type="password"]) {
  width: 100%;
}
.window-inner.protected p input[type="password"] {
  width: 100%;
  height: 100%;
}

.window-inner.protected p input[type="submit"] {
  height: 100%;
}

/* scroll-bar */

::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement,
::-webkit-scrollbar-button:horizontal:start:increment,
::-webkit-scrollbar-button:horizontal:end:decrement {
  display: none;
}

/* tt-body-tag */

#tt-body-tag .window-body a::before {
  content: "#";
}

/* post style */
.tag_label > span > a::before {
  content: "#";
}

.window-body .article figure.imageblock {
  margin-bottom: 0;
}

.window-body .article figure figcaption {
  padding-top: 0;
  margin-bottom: 6px;
}

#tt-body-page blockquote {
  margin: 20px 0;
}

figure[data-ke-type="opengraph"] a,
#tt-body-page figure[data-ke-type="opengraph"] a {
  border: 1px solid black;
}

figure[data-ke-type="opengraph"] div.og-text p.og-title,
#tt-body-page figure[data-ke-type="opengraph"] div.og-text p.og-title {
  font-family: inherit;
}

figure[data-ke-type="opengraph"] div.og-text p.og-desc,
#tt-body-page figure[data-ke-type="opengraph"] div.og-text p.og-desc {
  color: black;
  font-family: inherit;
}

figure[data-ke-type="opengraph"] div.og-text p.og-host,
#tt-body-page figure[data-ke-type="opengraph"] div.og-text p.og-host {
  color: black;
  font-family: inherit;
}

#tt-body-index .container_postbtn .postbtn_like .wrap_btn.wrap_btn_etc,
#tt-body-category .container_postbtn .postbtn_like .wrap_btn.wrap_btn_etc,
#tt-body-archive .container_postbtn .postbtn_like .wrap_btn.wrap_btn_etc,
#tt-body-search .container_postbtn .postbtn_like .wrap_btn.wrap_btn_etc {
  display: none;
}

/* post title list*/

.list ul {
  margin: 0;
}

/* gallery-list */

.window.gallery {
  display: none;
}
.window.title-list.gallery-list {
  display: none;
}
.window.gallery.gallery-list {
  display: block;
}

.window.gallery.gallery-list .window-body {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.window.gallery.gallery-list .window-body li.cont {
  list-style: none;
  line-height: 1.4;
}

.window.gallery.gallery-list .window-body .cont .thumb-wrap {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border-radius: 0;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  box-sizing: border-box;
  padding: 2px;

  background-image: url(./images/txt.png);
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;

  margin-bottom: 4px;
}

.window.gallery.gallery-list .window-body .cont .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: white;
}

/* replies */

.communicate h3 {
  margin: 0;
}

.comment-input-wrap > textarea {
  width: 100%;
  resize: none;
}

.communicateList {
  margin: 0 4px;
}

.communicateList li {
  margin-bottom: 16px;
}
.communicateList ol {
  margin: 0;
}

.communicateList .name {
  font-weight: bold;
}

.rep2 {
  display: flex;
  margin-top: 16px;
}

.rep2 > li {
  margin-bottom: 0;
}

.guest label {
  min-width: 100px;
}

/* paging */

.paging {
  display: flex;
  justify-content: space-between;
}

/* misc */

.thumbnail_post > img {
  width: 100%;
  padding-right: 3px;
}

.btn-more {
  padding: 13px;
}

/* plugin: another_category */

#wrap .another_category {
  margin-bottom: 24px;
}

#wrap .another_category,
#wrap .another_category_color_gray {
  border: none !important;
  border-top: 1px solid #8b8b8b !important;

  border-bottom: 1px solid #8b8b8b !important;
}

#wrap .another_category_color_gray h4,
#wrap .another_category_color_gray h4 a {
  color: #222 !important;
  border: none !important;
}

#wrap .another_category table {
  border: none;
  margin: 0;

  margin-top: 0 !important;
}

#wrap .another_category * {
  color: #222 !important;

  font-size: 14px !important;
  font-family: inherit;
}

.another_category th,
.another_category td {
  border: none;
}

/* responsive */

@media (max-width: 768px) {
  .wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 8px 20px 8px;
  }

  .sidebar {
    width: 100%;
  }

  .window {
    width: auto;
    box-sizing: border-box;
  }

  .mobile {
    display: block !important;
  }

  .pc {
    display: none !important;
  }

  .main {
    width: auto;
    overflow: hidden;
  }

  .guest {
    display: flex;
    justify-content: space-between;
  }

  .guest input {
    min-width: 60%;
    width: 100%;
  }
  .window.article .container_postbtn {
    justify-content: center;
    margin-right: 2px;
  }
  .window.gallery.gallery-list .window-body {
    grid-template-columns: repeat(2, 1fr);
  }
}
