/* =========================================================
# READ ME

  이 스킨은 티스토리 블로그에 윈도우 테마 감성으로 즐길 수 있도록 제작한 커스텀 스킨입니다.

  제작자:
    JBro
  
  주요 기능 검색 방법:
    #region을 통해 주요 섹션을 구분해두었습니다. (예: 전역 폰트, available space, side bar, content 등)

  라이선스:
    보유자는 본인이 소유하거나 운영하는 티스토리 블로그에 한해
    본 스킨을 설치, 사용, 수정할 수 있습니다.

    단, 원본 또는 수정본의 재배포, 공유, 판매, 양도, 대여,
    템플릿화, 일부 코드 추출 후 배포하는 행위는 금지됩니다.

    외부 폰트, 아이콘, 사진이 포함된 경우 해당 자료는
    각 자료의 원 라이선스를 따릅니다.

========================================================= */

@charset "utf-8";
body,
input,
textarea,
select,
button {
  font-family: 'Pretendard';
}
/* #region font-face */
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}
/* #endregion */

/* =========================================================
  전역 필드 설정
  메인 테마 색이나, 선, 글씨, 그림자 등의 스타일을 바꾸고 싶다면 우선 이 영역을 확인하세요.
========================================================= */
/* #region 전역 필드 설정 */
:root 
{
/* 공통으로 사용하는 필드입니다. */
/* Z오더 */
  --z-order-available-space   : 100;
  --z-order-side-bar          : 250;
  --z-order-window            : 260;
  --z-order-task-bar          : 280;
  --z-order-menu-bar          : 300;

/* 선 */
  --border-thickness          : 1px;
  --border-style              : solid;
  --border-radius             : 8px;

/* 그림자 */
  --frame-shadow              : 0 16px 40px rgba(25, 35, 52, 0.2);
  --item-outter-shadow        : 0 8px 18px rgba(25, 35, 52, 0.12);

  --post-icon-selected-bg-color: rgba(10, 132, 255, 0.22);
  --post-icon-selected-border-color: rgb(0, 95, 190);

/* 폰트 */
  --font-weight-normal        : 400;
  --font-weight-bold          : 700;
  --font-body-size            : 14px;
  --line-body-height          : 1.2; /* 기본 줄 간격 */

  --font-h6-size              : 14px;
  --font-h5-size              : 16px;
  --font-h4-size              : 18px;
  --font-h3-size              : 20px;
  --font-h2-size              : 24px;
  --font-h1-size              : 32px;
  --line-head-height          : 1.35; /* 제목의 줄 간격 */ 

/* 전역 변수용 */
  --menu-bar-height           : 34px;
  --task-bar-height           : 55px;
  --tab-bar-height            : 35px;

/* 아래부터는 다크테마, 라이트테마 등에 영향을 받는 색상입니다. */
/* 메인 테마 컬러 */
  --theme-color-1             : rgb(250, 250, 255); /* 비교적 밝음 */ 
  --theme-color-2             : rgb(243, 247, 251); /* 중간 */
  --theme-color-3             : rgb(210, 217, 227); /* 비교적 어두움 */
  --theme-color-4             : rgb(230, 240, 250); /* 윈도우 플로팅바 (= 드래그바) 등에 사용 */

/* 포커스 */
  --focus-outline-color       : rgba(10, 132, 255, 0.4);

/* 팝업 */
  --popup-bg-color            : rgba(245, 248, 252, 0.8);

/* 버튼 */
  --bt-default-color          : rgb(165, 173, 185);
  --bt-disabled-color         : rgba(152, 155, 160, 1.0);
  --bt-hovered-color-1        : rgba(128, 136, 148, 0.2); /* 배경이 투명한 버튼이 호버되었을 때의 색상 */
  --bt-hovered-color-2        : rgba(10, 132, 255, 0.8);  /* 배경이 불투명한 버튼이 호버되었을 때의 색상 */
  --bt-actived-color-1        : rgba(82, 100, 128, 0.1);  /* 배경이 투명한 버튼이 활성화되었을 때의 색상 */
  --bt-actived-color-2        : rgba(10, 132, 255, 0.6);  /* 배경이 불투명한 버튼이 활성화되었을 때의 색상 */
  --bt-focused-color          : rgba(10, 132, 255, 0.8);

/* 선 */
  --border-color-1            : rgba(25, 35, 52, 0.3);
  --border-color-2            : rgba(25, 28, 34, 0.9);

/* 글씨 */
  --text-color                : rgba(30, 40, 50, 1.0);
  --disable-text-color        : rgba(30, 40, 50, 0.5);
  --link-default-color        : rgba(30, 40, 50, 1.0);
  --link-hover-color          : rgba(10, 132, 255, 1.0);
}

[data-theme="dark"] {
/* 메인 테마 컬러 */
  --theme-color-1             : rgb(35, 40, 50);
  --theme-color-2             : rgb(27, 31, 39);
  --theme-color-3             : rgb(18, 21, 30);
  --theme-color-4             : rgb(36, 54, 74);

/* 팝업 */
  --popup-bg-color            : rgba(33, 37, 45, 0.8);

/* 버튼 */
  --bt-default-color          : rgb(87, 89, 97);
  --bt-disabled-color         : rgba(152, 155, 160, 1.0);
  --bt-hovered-color-1        : rgba(128, 136, 148, 0.2);
  --bt-hovered-color-2        : rgba(10, 132, 255, 0.8);
  --bt-actived-color-1        : rgba(128, 136, 148, 0.1);
  --bt-actived-color-2        : rgba(10, 132, 255, 0.6);
  --bt-focused-color          : rgba(10, 132, 255, 0.8);

/* 선 */
  --border-color-1            : rgba(70, 80, 100, 0.45);
  --border-color-2            : rgba(143, 161, 201, 0.45);

/* 글씨 */
  --text-color                : rgba(220, 225, 235, 1.0);
  --disable-text-color        : rgba(220, 225, 235, 0.5);
  --link-default-color        : rgba(220, 225, 235, 1.0);
  --link-hover-color          : rgba(10, 132, 255, 1.0);
}
/* #endregion */

/* =========================================================
  전역 글씨 설정
  메인 테마 색이나, 선, 글씨, 그림자 등의 스타일을 바꾸고 싶다면 우선 이 영역을 확인하세요.
========================================================= */
/* #region 전역 글씨 설정 */
body,
input,
textarea,
select,
button {
  font-size: var(--font-body-size);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-body-height);
  color: var(--text-color);
}
strong,
b {
  font-weight: var(--font-weight-bold);
}

input, textarea {
  outline: none;
}
h1,h2,h3,h4,h5,h6 {
  line-height: var(--line-head-height);
}
h1 {
  font-size: var(--font-h1-size);
}
h2 {
  font-size: var(--font-h2-size);
}
h3 {
  font-size: var(--font-h3-size);
}
h4 {
  font-size: var(--font-h4-size);
}
h5 {
  font-size: var(--font-h5-size);
}
h6 {
  font-size: var(--font-h6-size);
}
a {
  color: var(--link-default-color);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover-color);
}
/* #endregion */

/* =========================================================
  전역 스타일 설정
  전역 패딩, 마진 등 기본적인 스타일을 설정하는 영역입니다.
========================================================= */
/* #region global styles */
html, body { /* 전역 padding, margin, color 등 설정 */
  margin: 0;
  padding: 0;
  background-color: #f1f1f1;
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible { /* 포커스 가능한 요소에 대한 기본 스타일 제거 및 커스텀 포커스 스타일 적용 */
  outline: var(--border-thickness) var(--border-style) var(--focus-outline-color);
  outline-offset: 2px;
}

::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background-color: var(--bt-default-color);
	border: 3px solid transparent;
	background-clip: content-box;
}
::-webkit-scrollbar-button {
	display: none;
}
/* #endregion */

/* =========================================================
  활성 공간
  메뉴바(상단)와 작업표시줄(하단)을 제외한 활성 공간입니다. (백그라운드)
  사이드바와 탐색기 등이 이 공간 위에 표시됩니다.
  윈도우가 해당 영역 밖으로 나가지 않도록 하는 역할도 합니다.
========================================================= */
/* #region available space style */
#available-space { /* menu-bar와 task-bar를 제외한 활성 공간 (백그라운드) */
  /* Variables */
  --available-space-padding: 20px;
  --side-bar-width: 250px;
  --side-bar-toggle-size: 28px;

  /* Position */
  position: fixed;
  z-index: var(--z-order-available-space);
  top: var(--menu-bar-height);
  right: 0;
  bottom: var(--task-bar-height);
  left: 0;

  /* Layout */
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  box-sizing: border-box;

  /* Size */
  width: 100%;

  /* Spacing */
  gap: 20px;
  padding: var(--available-space-padding);

  /* Visual */
  background-color: var(--theme-color-3);
  border: none;

  /* Animation */
  transition: gap 180ms ease;
}
/* #endregion */

/* =========================================================
  사이드바
  프로필, 카테고리 등 고정된 정보를 표시하는 사이드바입니다.
  가로 해상도가 좁아지면 자동으로 닫히며,
  접이식 토글 버튼을 통해 열고 닫을 수 있습니다.
========================================================= */
/* #region side-bar style */
#side-bar {
  /* Variables */
  --bar-width: var(--side-bar-width);
  --bar-padding: 18px;

  /* Position */
  z-index: var(--z-order-side-bar);

  /* Layout */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;

  /* Size */
  width: var(--bar-width);
  min-width: var(--bar-width);
  height: 100%;
  max-height: 100%;

  /* Spacing */
  padding: var(--bar-padding);
  gap: 18px;

  /* Visual */
  background-color: var(--theme-color-2);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  box-shadow: var(--frame-shadow);

  /* Interaction */
  cursor: default;

  /* Animation */
  transition: width 180ms ease,
    min-width 180ms ease,
    padding 180ms ease,
    border-width 180ms ease,
    opacity 160ms ease,
    transform 180ms ease;
}
#side-bar-toggle {
  /* Position */
  position: absolute;
  z-index: calc(var(--z-order-side-bar) + 1);
  top: 50%;
  left: calc(var(--available-space-padding) + var(--side-bar-width) - (var(--side-bar-toggle-size) / 2));

  /* Layout */
  display: grid;
  place-items: center;

  /* Size */
  width: var(--side-bar-toggle-size);
  height: var(--side-bar-toggle-size);

  /* Spacing */
  padding: 0;

  /* Visual */
  color: var(--text-color);
  background-color: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: 50%;
  box-shadow: var(--item-outter-shadow);

  /* Interaction */
  cursor: pointer;

  /* Animation */
  transform: translateY(-50%);
  transition: left 180ms ease, background-color 120ms ease, border-color 120ms ease;
}
#side-bar-toggle[hidden] {
  display: none;
}
#side-bar-toggle::before {
  /* Size */
  width: 0;
  height: 0;

  /* Visual */
  content: "";
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid currentColor;
}
#side-bar-toggle:hover {
  background-color: var(--theme-color-2);
  border-color: var(--post-icon-selected-border-color);
}
#available-space.is-side-bar-collapsed {
  gap: 0;
}
#available-space.is-restoring-side-bar,
#available-space.is-restoring-side-bar #side-bar,
#available-space.is-restoring-side-bar #side-bar-toggle {
  transition: none;
}
#available-space.is-side-bar-collapsed #side-bar {
  width: 0;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(-1 * var(--side-bar-width)), 0, 0);
}
#available-space.is-side-bar-collapsed #side-bar-toggle {
  left: calc(var(--available-space-padding) - (var(--side-bar-toggle-size) / 2));
}
#available-space.is-side-bar-collapsed #side-bar-toggle::before {
  border-right: none;
  border-left: 8px solid currentColor;
}
#side-bar #profile {
  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Spacing */
  margin: 0px;
  padding: 18px;

  /* Typography */
  text-align: center;
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  box-shadow: var(--frame-shadow);
}
#side-bar #profile img {
  /* Size */
  width: 100px;
  height: 100px;

  /* Spacing */
  margin-bottom: 14px;

  /* Visual */
  object-fit: cover;
  border-radius: 50%;
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  box-shadow: var(--frame-shadow);

  /* Interaction */
  user-select: none;
}
#side-bar #profile h5 {
  /* Spacing */
  margin: 0;
  padding: 0;

  /* Typography */
  text-align: center;
  font-weight: var(--font-weight-bold);
}
#side-bar #profile hr {
  /* Size */
  width: 100%;

  /* Spacing */
  margin: 14px 0;
  padding: 0;

  /* Visual */
  border: var(--border-color);
  border-top: 1px solid;
}
#side-bar #profile p {
  margin: 0;
  padding: 0;
  color: var(--disable-text-color);
}
#side-bar #category {
  /* Layout */
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;

  /* Size */
  min-height: 0;

  /* Spacing */
  margin: 0px;
  padding: 18px 7px;
  gap: 3px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  box-shadow: var(--frame-shadow);
}
#side-bar #category .branch {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#side-bar #category .children {
  /* Layout */
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Size */
  max-height: 0;

  /* Spacing */
  gap: 3px;

  /* Visual */
  opacity: 0;

  /* Animation */
  transition: max-height 160ms ease, opacity 120ms ease;
}
#side-bar #category .children[hidden] {
  display: none;
}
#side-bar #category .branch.is-expanded > .children {
  max-height: 1200px;
  opacity: 1;
}
#side-bar #category .item {
  /* Layout */
  display: flex;
  align-items: center;
  flex-wrap: nowrap;

  /* Size */
  width: 100%;
  min-height: 32px;

  /* Spacing */
  padding: 3px 8px;
  gap: 8px;

  /* Typography */
  font: inherit;
  text-align: left;
  line-height: 1.3;
  color: var(--text-color);

  /* Visual */
  background: transparent;
  border: none;
  border-radius: var(--border-radius);

  /* Interaction */
  cursor: pointer;
  user-select: none;
}
#side-bar #category .item.is-child {
  padding-left: 20px;
}
#side-bar #category .item.is-active {
  background: var(--bt-actived-color-1);
}
#side-bar #category .item:hover {
  background: var(--bt-hovered-color-1);
}
#side-bar #category .item .toggle {
  /* Position */
  position: relative;

  /* Layout */
  flex: 0 0 14px;

  /* Size */
  width: 14px;
  height: 14px;

  /* Typography */
  text-align: center;
  line-height: 1;

  /* Visual */
  opacity: 0.72;

  /* Animation */
  transition: transform 120ms ease;
}
#side-bar #category .item .toggle::before {
  /* Position */
  position: absolute;
  top: 50%;
  left: 50%;

  /* Size */
  width: 0;
  height: 0;

  /* Visual */
  content: "";
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  transform: translate(-45%, -50%);
}
#side-bar #category .item .toggle:hover {
  opacity: 1;
  color: var(--bt-hovered-color-2);
}
#side-bar #category .item .toggle.is-empty {
  opacity: 0;
}
#side-bar #category .item .toggle.is-empty::before {
  content: none;
}
#side-bar #category .branch.is-expanded > .item .toggle {
  transform: rotate(90deg);
}
#side-bar #category .item .label {
  /* Layout */
  overflow: hidden;

  /* Size */
  min-width: 0;

  /* Typography */
  text-overflow: ellipsis;
  white-space: nowrap;
}
#side-bar #category .item .icon {
  /* Variables */
  --icon-size: 18px;

  /* Layout */
  flex: 0 0 var(--icon-size);

  /* Size */
  width: var(--icon-size);
  height: var(--icon-size);

  /* Visual */
  object-fit: cover;
  border-radius: calc(var(--border-radius) / 2);
}
#special-widget {
  /* Variables */
  --frame-width: 250px;

  /* Layout */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 0 0 var(--frame-width);
  overflow: hidden;

  /* Size */
  width: 100%;
  min-height: 190px;
  max-height: var(--frame-width);

  /* Spacing */
  padding: 14px 12px;
  gap: 10px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  box-shadow: var(--frame-shadow);
}
#special-widget .widget-head {
  /* Layout */
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 26px;
  align-items: center;

  /* Size */
  flex: 0 0 28px;

  /* Spacing */
  gap: 6px;

  /* Interaction */
  user-select: none;
}
#special-widget .widget-title {
  /* Spacing */
  margin: 0;

  /* Typography */
  text-align: center;
  font-size: var(--font-h5-size);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}
#special-widget .widget-nav {
  /* Layout */
  display: grid;
  place-items: center;

  /* Size */
  width: 26px;
  height: 26px;

  /* Spacing */
  padding: 0;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background: transparent;
  border: var(--border-thickness) var(--border-style) transparent;
  border-radius: calc(var(--border-radius) / 2);

  /* Interaction */
  cursor: pointer;
  user-select: none;
}
#special-widget .widget-nav::before {
  /* Size */
  width: 0;
  height: 0;

  /* Visual */
  content: "";
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
#special-widget .widget-nav.prev::before {
  border-right: 10px solid currentColor;
}
#special-widget .widget-nav.next::before {
  border-left: 10px solid currentColor;
}
#special-widget .widget-nav:hover {
  color: var(--bt-hovered-color-2);
}
#special-widget .widget-nav:active {
  color: var(--bt-actived-color-2);
}
#special-widget .widget-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  scrollbar-width: none;
	-ms-overflow-style: none;
}
#special-widget .widget-panel {
  /* Layout */
  box-sizing: border-box;

  /* Size */
  width: 100%;
  height: 100%;

  /* Spacing */
  padding: 0 4px;

  /* Typography */
  color: var(--text-color);
  text-align: left;
}
#special-widget .widget-panel[hidden] {
  display: none;
}
#special-widget .stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#special-widget .stats .label {
  font-size: 12px;
}
#special-widget .stats .total {
  font-size: var(--font-h2-size);
  line-height: 1.15;
}
#special-widget .tag-list {
  /* Layout */
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;

  /* Spacing */
  gap: 6px;
}
#special-widget .tag-list[hidden] {
  display: none;
}
#special-widget .tag-list a {
  /* Layout */
  display: inline-flex;
  align-items: center;

  /* Size */
  min-height: 24px;

  /* Spacing */
  padding: 0 7px;

  /* Typography */
  color: var(--text-color);
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;

  /* Visual */
  background: var(--bt-actived-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: calc(var(--border-radius) / 2);
}
#special-widget .tag-list a:hover {
  /* Typography */
  color: var(--link-hover-color);

  /* Visual */
  background: var(--bt-hovered-color-1);
  border-color: var(--post-icon-selected-border-color);
}
#special-widget .recent-list ul {
  /* Layout */
  display: flex;
  flex-direction: column;
  list-style: none;

  /* Spacing */
  gap: 8px;
  margin: 0;
  padding: 0;
}
#special-widget .recent-list li {
  /* Layout */
  display: flex;
  flex-direction: column;
  min-width: 0;

  /* Spacing */
  gap: 2px;
}
#special-widget .recent-list a {
  /* Layout */
  overflow: hidden;

  /* Typography */
  color: var(--text-color);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#special-widget .recent-list a:hover {
  color: var(--link-hover-color);
}
#special-widget .recent-list .meta {
  color: var(--disable-text-color);
  font-size: 11px;
  line-height: 1.3;
}
#special-widget .link-items {
  /* Layout */
  display: flex;
  flex-direction: column;

  /* Spacing */
  gap: 8px;
}
#special-widget .link-item {
  /* Layout */
  display: flex;
  align-items: center;
  min-width: 0;

  /* Spacing */
  gap: 8px;
}
#special-widget .link-item img {
  /* Size */
  width: 28px;
  height: 28px;
  flex: 0 0 auto;

  /* Visual */
  object-fit: contain;

  /* Interaction */
  user-select: none;
}
#special-widget .link-item .link-content {
  /* Layout */
  display: inline-flex;
  align-items: flex-start;
  overflow: hidden;
  min-width: 0;

  /* Spacing */
  gap: 8px;

  /* Typography */
  color: var(--text-color);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#special-widget .link-item .link-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  min-width: 0;
}
#special-widget .link-item.no-url .link-text {
  align-self: center;
  justify-content: center;
}
#special-widget .link-item .link-name,
#special-widget .link-item a {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#special-widget .link-item a {
  color: var(--disable-text-color);
  font-size: 11px;
  font-weight: var(--font-weight-normal);
}
#special-widget .link-item a:hover {
  color: var(--link-hover-color);
}
#special-widget .calendar :where(table) {
  /* Layout */
  table-layout: fixed;
  border-collapse: collapse;

  /* Size */
  width: 100%;

  /* Typography */
  color: var(--text-color);
  font-size: 11px;
  text-align: center;
}
#special-widget .calendar :where(caption) {
  margin-bottom: 4px;
  font-weight: var(--font-weight-bold);
}
#special-widget .calendar :where(th, td) {
  padding: 2px 0;
  text-align: center;
}
#special-widget .calendar :where(a) {
  color: inherit;
  text-decoration: none;
}
#special-widget .calendar :where(a:hover) {
  color: var(--link-hover-color);
  font-weight: var(--font-weight-bold);
}
#special-widget .calendar :where(.is-weekend, .is-weekend a, th:first-child, td:first-child, th:last-child, td:last-child) {
  color: rgba(220, 55, 55, 1.0) !important;
}
#special-widget .calendar :where(.is-today, .is-today a) {
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* #endregion */

/* =========================================================
  콘텐츠
  탭바와 브라우저가 포함된 영역입니다.
  탭에는 현재 열려있는 게시글들이 표시되고, 윈도우를 도킹할 수 있습니다.
  브라우저는 블로그 홈의 경우 게시글 리스트가 탐색기처럼 표시됩니다.
========================================================= */
/* #region content style */
#content {
  /* Variables */
  --z-order-tab-bar: auto;
  --z-order-browser: 2;
  --z-order-tab: 2;
  --z-order-tab-docking: auto;
  --z-order-dock-target: 90000;

  /* Position */
  position: relative;

  /* Layout */
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;

  /* Size */
  min-width: 0;
  height: 100%;
  max-height: 100%;

  /* Spacing */
  gap: 0px;
}
/* tabbar style */
#content #tab-bar {
  /* Variables */
  --tab-max-width: 160px;
  --tab-min-width: 0px;

  /* Position */
  position: relative;
  z-index: var(--z-order-tab-bar);

  /* Layout */
  display: flex;
  align-items: flex-start;
  overflow: visible;
  box-sizing: border-box;
  flex: 0 0 var(--tab-bar-height);

  /* Size */
  width: 100%;
  height: var(--tab-bar-height);

  /* Spacing */
  gap: 0px;
  margin: 0px;
  padding: 0px;
}
#content #tab-bar .tab {
  /* Variables */
  --tab-font-size: 12px;

  /* Position */
  position: relative;
  z-index: var(--z-order-tab);

  /* Layout */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  justify-items: stretch;
  flex: 1 1 var(--tab-max-width);
  box-sizing: border-box;
  overflow: hidden;

  /* Size */
  width: auto;
  min-width: var(--tab-min-width);
  max-width: var(--tab-max-width);
  height: calc(100% + var(--border-radius));

  /* Spacing */
  padding: 0 14px 0;
  column-gap: 8px;

  /* Typography */
  color: var(--text-color);
  white-space: nowrap;
  font-weight: var(--font-weight-normal);
  font-size: var(--tab-font-size);
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;

  /* Visual */
  background-color: var(--theme-color-2);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius) var(--border-radius) 0 0;

  /* Interaction */
  cursor: pointer;
  user-select: none;
}
#content #tab-bar .tab:hover {
  background: var(--bt-hovered-color-1);
}
#content #tab-bar .tab:active {
  background: var(--bt-actived-color-1);
}
#content #tab-bar .tab.is-active {
  background-color: var(--theme-color-1);
  font-weight: var(--font-weight-bold);
}
#content #tab-bar .tab.is-home {
  /* Layout */
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr);

  /* Size */
  width: auto;
  max-width: none;
  min-width: 0;
}
#content #tab-bar .tab .label {
  /* Layout */
  overflow: hidden;

  /* Size */
  min-width: 0;

  /* Typography */
  text-overflow: ellipsis;
  white-space: nowrap;
}
#content #tab-bar .tab .close {
  /* Layout */
  display: grid;
  place-items: center;

  /* Size */
  width: 18px;
  height: 18px;

  /* Typography */
  font-size: 16px;
  line-height: 1;

  /* Interaction */
  user-select: none;
}
#content #tab-bar .tab .close:hover {
  color: var(--bt-hovered-color-2);
}
#content #tab-bar .tab.is-dragging {
  opacity: 0.58;
}
#content #tab-bar.is-drop-target {
  z-index: var(--z-order-tab-docking);
}
#content #tab-bar .dock-target {
  /* Position */
  position: relative;
  z-index: var(--z-order-dock-target);

  /* Layout */
  display: none;
  isolation: isolate;
  flex: 0 0 var(--tab-max-width);

  /* Size */
  max-width: var(--tab-max-width);
  min-width: var(--tab-min-width);
  height: 100%;

  /* Spacing */
  margin: 0px;

  /* Visual */
  border: none;
  border-radius: 0px;
  background: transparent;

  /* Interaction */
  pointer-events: none;
}
#content #tab-bar .dock-target::after {
  /* Position */
  position: absolute;
  z-index: 2;
  inset: 0;

  /* Visual */
  content: "";
  border: var(--border-thickness) var(--border-style) rgba(10, 132, 255, 0.42);
  border-bottom: none;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background: rgba(10, 132, 255, 0.22);

  /* Animation */
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
#content #tab-bar .dock-preview {
  /* Position */
  position: relative;
  z-index: 1;

  /* Layout */
  display: grid;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;

  /* Size */
  width: 100%;
  height: 100%;

  /* Spacing */
  padding: 0 14px;

  /* Typography */
  color: var(--text-color);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;

  /* Visual */
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-bottom-color: transparent;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background: var(--bt-hovered-color-1);
  opacity: 0;

  /* Animation */
  transition: opacity 0.12s ease;
}
#content #tab-bar.is-drop-target .dock-target {
  display: block;
}
#content #tab-bar.is-titlebar-touching .dock-preview {
  opacity: 1;
}
#content #tab-bar .dock-target.is-active::after {
  border-color: rgba(10, 132, 255, 0.82);
  background: rgba(10, 132, 255, 0.38);
  transform: scale(1.04);
}

/* browser style */
#content #browser {
  /* Position */
  position: relative;
  z-index: var(--z-order-browser);

  /* Layout */
  flex: 1 1 auto;
  overflow: auto;
  box-sizing: border-box;
  container-type: inline-size;

  /* Size */
  width: 100%;
  min-height: 0;

  /* Spacing */
  padding: 20px;

  /* Visual */
  background-color: var(--theme-color-1);
  background-image: var(--browser-background-image, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  box-shadow: var(--frame-shadow);
}
#content #browser .path {
  color: var(--text-color);
}
#window[hidden] {
  display: none;
}
#content #browser #path-bar {
  /* Layout */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-sizing: border-box;

  /* Size */
  width: 100%;

  /* Spacing */
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px 15px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-2);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
}
#content #browser #path-bar[hidden] {
  display: none;
}
#content #browser #path-bar .chip {
  /* Layout */
  display: inline-flex;
  align-items: center;

  /* Size */
  min-height: 28px;

  /* Spacing */
  padding: 0;

  /* Typography */
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-bold);

  /* Visual */
  background-color: transparent;
  border: none;
}
#content #browser #path-bar button.chip {
  cursor: pointer;
}
#content #browser #path-bar button.chip:hover {
  color: var(--link-hover-color);
}
#content #browser #path-bar .separator {
  opacity: 0.7;
  font-size: 12px;
  user-select: none;
}
#content #browser #post-body,
#window .body .post-body {
  /* Layout */
  box-sizing: border-box;

  /* Spacing */
  padding: 30px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
}
#content #browser #post-body.protected,
#window .body .post-body.protected {
  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* Spacing */
  gap: 14px;

  /* Typography */
  text-align: center;
}
#content #browser #post-body.protected .protected-message,
#window .body .post-body.protected .protected-message {
  /* Spacing */
  margin: 0;

  /* Typography */
  color: var(--text-color);
  font-weight: var(--font-weight-bold);
}
#content #browser #post-body.protected .protected-unlock,
#window .body .post-body.protected .protected-unlock {
  /* Layout */
  display: inline-flex;
  align-items: stretch;
  justify-content: center;

  /* Size */
  max-width: 100%;

  /* Spacing */
  gap: 8px;
}
#content #browser #post-body.protected input[type="password"],
#window .body .post-body.protected input[type="password"] {
  /* Layout */
  box-sizing: border-box;

  /* Size */
  width: min(220px, 58vw);
  min-height: 34px;

  /* Spacing */
  padding: 0 10px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
}
#content #browser #post-body.protected .submit,
#window .body .post-body.protected .submit {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  /* Size */
  min-height: 34px;
  width: 34px;

  /* Spacing */
  padding: 0;

  /* Typography */
  font: inherit;
  white-space: nowrap;
  color: var(--text-color);

  /* Visual */
  background-color: var(--bt-default-color);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: calc(var(--border-radius) / 2);

  /* Interaction */
  cursor: pointer;
}
#content #browser #post-body.protected .submit .fa-solid,
#window .body .post-body.protected .submit .fa-solid {
  /* Layout */
  display: block;
  flex: 0 0 auto;

  /* Size */
  width: 1em;
  height: 1em;

  /* Typography */
  font-size: 15px;
  line-height: 1;
  text-align: center;
}
#content #browser #post-body.protected .submit:disabled,
#window .body .post-body.protected .submit:disabled {
  /* Typography */
  color: var(--disable-text-color);

  /* Visual */
  background-color: var(--bt-disabled-color);
}
#content #browser #post-body.protected .submit:hover,
#window .body .post-body.protected .submit:hover {
  /* Visual */
  background-color: var(--bt-hovered-color-1);
}
#content #browser #post-container.list {
  /* Variables */
  --folder-thumb-min-size: var(--setting-folder-thumb-min-size, 46px);
  --folder-thumb-max-size: var(--setting-folder-thumb-max-size, 92px);
  --folder-thumb-size: clamp(var(--folder-thumb-min-size), 10cqw, var(--folder-thumb-max-size));
  --folder-width: calc(var(--folder-thumb-size) + 40px);
  --folder-height: calc(var(--folder-thumb-size) + 54px);

  /* Spacing */
  padding: 0px;

  /* Visual */
  background: transparent;
  border: none;

  /* Interaction */
  user-select: none;
}
#content #browser #post-head h2,
#window .body .post-head h2 {
  color: var(--text-color);
  margin: 0 0 15px;
  padding: 0 10px;
}
#content #browser #post-head .post-meta,
#window .body .post-head .post-meta {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Spacing */
  gap: 9px;
  margin: 0 0 15px;
  padding: 0 10px;

  /* Typography */
  color: var(--text-color);
  font-size: 13px;

  /* Visual */
  opacity: 0.75;
}
#content #browser #post-head .post-info,
#window .body .post-head .post-info {
  /* Variables */
  --icon-size : 24px;

  /* Layout */
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;

  /* Size */
  min-width: 0;

  /* Spacing */
  gap: 9px;
}
#content #browser #post-head .post-info-image,
#window .body .post-head .post-info-image {
  /* Layout */
  flex: 0 0 var(--icon-size);

  /* Size */
  width: var(--icon-size);
  height: var(--icon-size);

  /* Visual */
  object-fit: cover;
  border-radius: 50%;
  border: var(--border-thickness) var(--border-style) var(--border-color-2);
}
#content #browser #post-head .post-info-name,
#window .body .post-head .post-info-name {
  /* Layout */
  overflow: hidden;

  /* Size */
  min-width: 0;

  /* Typography */
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--font-weight-bold);
}
#content #browser #post-head .post-date,
#window .body .post-head .post-date,
#content #browser #post-head .post-stat,
#window .body .post-head .post-stat {
  flex: 0 0 auto;
  white-space: nowrap;
}
#content #browser #post-container.list ul {
  /* Layout */
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--folder-width));
  justify-content: start;
  list-style: none;

  /* Spacing */
  gap: 20px 18px;
  margin: 0px;
  padding: 0px;
}
#content #browser #post-container.list li {
  margin: 0px;
  padding: 0px;
}
#content #browser #post-container.list li > span {
  display: none;
}
#content #browser #post-container.list li > a {
  /* Position */
  position: relative;

  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;

  /* Size */
  width: 100%;
  min-height: var(--folder-height);

  /* Spacing */
  padding: calc(var(--folder-thumb-size) + 19px) 8px 10px;

  /* Typography */
  color: var(--text-color);
  text-align: center;
  text-decoration: none;

  /* Visual */
  border-radius: var(--border-radius);

  /* Animation */
  transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;

  /* Interaction */
  user-select: none;
}
#content #browser #post-container.list li > a:hover,
#content #browser #post-container.list li > a.is-selected {
  background-color: var(--post-icon-selected-bg-color);
  box-shadow: inset 0 0 0 var(--border-thickness) var(--post-icon-selected-border-color);
}
#content #browser #post-container.list li > a:focus-visible {
  outline: 2px solid var(--post-icon-selected-border-color);
  outline-offset: 3px;
}
#content #browser #post-container.list li > a.has-thumb,
#content #browser #post-container.list li > a.no-thumb,
#content #browser #post-container.list li > a.up-folder,
#content #browser #post-container.list li > a.category-folder {
  padding-top: 10px;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
#content #browser #post-container.list li > a .post-thumb,
#content #browser #post-container.list li > a .category-image {
  /* Layout */
  flex: 0 0 auto;

  /* Size */
  width: var(--folder-thumb-size);
  height: var(--folder-thumb-size);

  /* Spacing */
  margin-bottom: 9px;

  /* Visual */
  object-fit: cover;
  border-radius: calc(var(--border-radius) * 2);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  background: rgba(128, 136, 148, 0.14);
  box-shadow: var(--item-outter-shadow);

  /* Animation */
  transition: none;
}
#content #browser #post-container.list li > a .secret-lock {
  /* Position */
  position: absolute;
  top: 10px;
  left: 50%;

  /* Layout */
  display: grid;
  place-items: center;

  /* Size */
  width: var(--folder-thumb-size);
  height: var(--folder-thumb-size);

  /* Typography */
  color: var(--bt-disabled-color);
  font-size: 30px;
  line-height: 1;
  text-align: center;

  /* Visual */
  transform: translateX(-50%);
  text-shadow: 0 1px 2px rgba(25, 35, 52, 0.28);

  /* Interaction */
  pointer-events: none;
}
#content #browser #post-container.list li > a .secret-lock .fa-solid {
  /* Layout */
  display: block;

  /* Size */
  width: 1em;
  height: 1em;

  /* Typography */
  line-height: 1;
}
#content #browser #post-container.list .post-title {
  /* Layout */
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;

  /* Size */
  width: 100%;
  min-height: 34px;

  /* Typography */
  color: var(--text-color);
  line-height: 1.28;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
#content #browser #post-container.list .folder-item.is-selected .post-title,
#content #browser #post-container.list .folder-item:focus .post-title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
#content #browser #article-view,
#window .body .article-view {
  /* Typography */
  color: var(--text-color);
}
#content #browser #post-body :where(.another_category, .another_category *, [data-tistory-react-app="Comment"], [data-tistory-react-app="Comment"] *, #communicate, #communicate *),
#window .body .post-body :where(.another_category, .another_category *, [data-tistory-react-app="Comment"], [data-tistory-react-app="Comment"] *, #communicate, #communicate *) {
  /* Visual */
  border-color: var(--border-color-1) !important;
}
#content #browser #article-view img,
#content #browser #article-view iframe,
#content #browser #article-view figure,
#window .body .article-view img,
#window .body .article-view iframe,
#window .body .article-view figure {
  max-width: 100%;
}
#content #browser #post-body.paint-tool-enabled {
  position: relative;
}
#content #browser #post-body.paint-tool-enabled #paint-tool-canvas {
  /* Position */
  position: absolute;
  z-index: 20;
  inset: 0;

  /* Size */
  width: 100%;
  height: 100%;

  /* Interaction */
  cursor: none;
  pointer-events: auto;
  touch-action: none;
}
#content #browser #post-body.paint-tool-enabled #paint-tool-canvas.is-select-mode,
#content #browser #post-body.paint-tool-enabled.paint-tool-select-mode #paint-tool-canvas {
  cursor: default;
  pointer-events: none;
  touch-action: auto;
}
/* #endregion */

/* =========================================================
  윈도우
  게시글을 열 때 생성되는 창입니다.
  탭에서 드래그하여 도킹이 가능합니다.
  윈도우 가장자리를 더블클릭하면 해당 방향으로 사이즈가 최대화됩니다.
  화면 가장자리로 드래그하여 스냅 레이아웃을 사용할 수 있습니다. (이 경우 애드온이 필요하며, 스킨 변경에서 활성/비활성 여부를 설정할 수 있습니다.)
  **주의: 윈도우의 경우 게시글의 댓글이나, 애드블럭 등이 무시되고 로드됩니다.**
========================================================= */
/* #region window style */
#window {
  /* Variables */
  --z-order-tab-docking-window: var(--z-order-dragging-window);
  --z-order-dragging-window: 60000;
  --z-order-snap-layout-zone: 90000;
  --title-bar-moving-opacity: 0.86;
  --window-width: 860px;
  --window-height: 620px;
  --window-min-width: 360px;
  --window-min-height: 260px;
  --window-title-height: 42px;

  /* Position */
  position: absolute;
  z-index: var(--z-order-window);
  inset: 0;

  /* Layout */
  overflow: visible;

  /* Interaction */
  pointer-events: none;
}
#window.is-dragging-window {
  z-index: var(--z-order-dragging-window);
}
#window.is-tab-docking-window {
  z-index: var(--z-order-tab-docking-window);
}
#window #snap-layout-zone {
  /* Position */
  position: absolute;
  inset: 0;
  z-index: var(--z-order-snap-layout-zone);

  /* Visual */
  opacity: 0;

  /* Animation */
  transition: opacity 0.12s ease;

  /* Interaction */
  pointer-events: none;
}
#window #snap-layout-zone.is-visible {
  opacity: 1;
}
#window #snap-layout-zone .snap-box {
  /* Position */
  position: absolute;

  /* Size */
  width: 66px;
  height: 42px;

  /* Visual */
  border: var(--border-thickness) var(--border-style) rgba(10, 132, 255, 0.42);
  border-radius: var(--border-radius);
  background: rgba(10, 132, 255, 0.22);
  box-shadow: var(--item-outter-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  /* Animation */
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
#window #snap-layout-zone .snap-box::before {
  /* Position */
  position: absolute;
  inset: 7px;

  /* Visual */
  content: "";
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.34);
}
#window #snap-layout-zone .snap-box-n {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}
#window #snap-layout-zone .snap-box-s {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}
#window #snap-layout-zone .snap-box-w {
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}
#window #snap-layout-zone .snap-box-e {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}
#window #snap-layout-zone .snap-box-nw {
  top: 12px;
  left: 12px;
}
#window #snap-layout-zone .snap-box-ne {
  top: 12px;
  right: 12px;
}
#window #snap-layout-zone .snap-box-sw {
  bottom: 12px;
  left: 12px;
}
#window #snap-layout-zone .snap-box-se {
  right: 12px;
  bottom: 12px;
}
#window #snap-layout-zone .snap-box-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#window #snap-layout-zone .snap-box-n::before {
  bottom: 50%;
}
#window #snap-layout-zone .snap-box-s::before {
  top: 50%;
}
#window #snap-layout-zone .snap-box-w::before {
  right: 50%;
}
#window #snap-layout-zone .snap-box-e::before {
  left: 50%;
}
#window #snap-layout-zone .snap-box-nw::before {
  right: 50%;
  bottom: 50%;
}
#window #snap-layout-zone .snap-box-ne::before {
  bottom: 50%;
  left: 50%;
}
#window #snap-layout-zone .snap-box-sw::before {
  top: 50%;
  right: 50%;
}
#window #snap-layout-zone .snap-box-se::before {
  top: 50%;
  left: 50%;
}
#window #snap-layout-zone .snap-box.is-active {
  border-color: rgba(10, 132, 255, 0.82);
  background: rgba(10, 132, 255, 0.38);
  transform: scale(1.08);
}
#window #snap-layout-zone .snap-box-n.is-active,
#window #snap-layout-zone .snap-box-s.is-active {
  transform: translateX(-50%) scale(1.08);
}
#window #snap-layout-zone .snap-box-w.is-active,
#window #snap-layout-zone .snap-box-e.is-active {
  transform: translateY(-50%) scale(1.08);
}
#window #snap-layout-zone .snap-box-center.is-active {
  transform: translate(-50%, -50%) scale(1.08);
}
#window .panel {
  /* Position */
  position: absolute;

  /* Layout */
  box-sizing: border-box;
  overflow: hidden;

  /* Size */
  min-width: var(--window-min-width);
  min-height: var(--window-min-height);
  max-width: 100%;
  max-height: 100%;

  /* Typography */
  color: var(--text-color);
  font-weight: var(--font-weight-normal);

  /* Visual */
  background-color: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  box-shadow: var(--frame-shadow);
  opacity: 1;
  transform: scale(1);
  outline: none;

  /* Animation */
  transition: left 0.18s ease,
    top 0.18s ease,
    right 0.18s ease,
    bottom 0.18s ease,
    width 0.18s ease,
    height 0.18s ease,
    max-height 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.14s ease,
    transform 0.14s ease;
  animation: window-open 0.16s ease-out;

  /* Interaction */
  pointer-events: auto;
}
#window .panel.is-active {
  box-shadow: 0 22px 60px rgba(25, 35, 52, 0.28);
}
#window .panel.is-moving,
#window .panel.is-resizing {
  z-index: 30000 !important;
  user-select: none;
  transition: box-shadow 0.18s ease;
}
#window .panel.is-moving .title-bar {
  opacity: var(--title-bar-moving-opacity);
}
#window .panel.is-tab-docking-preview .title-bar {
  display: none;
}
#window .panel.is-tab-docking-preview .body {
  height: 100%;
  max-height: none;
}
#window .panel.is-minimized {
  display: none;
}
#window .panel.is-minimizing {
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  pointer-events: none;
}
#window .panel.is-restoring {
  animation: window-open 0.16s ease-out;
}
#window .panel.is-maximized {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
#window .title-bar {
  /* Layout */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;

  /* Size */
  height: var(--window-title-height);

  /* Spacing */
  padding: 0 0 0 12px;

  /* Visual */
  background-color: var(--theme-color-4);
  border-bottom: var(--border-thickness) var(--border-style) var(--border-color-1);

  /* Animation */
  transition: opacity 0.12s ease;

  /* Interaction */
  cursor: grab;
  user-select: none;
  touch-action: none;
}
#window .title-bar:active {
  cursor: grabbing;
}
#window .title {
  /* Layout */
  overflow: hidden;

  /* Size */
  min-width: 0;

  /* Typography */
  color: var(--disable-text-color);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--font-body-size);
  font-weight: var(--font-weight-normal);
}
#window .panel.is-active .title {
  color: var(--text-color);
}
#window .controls {
  display: flex;
  align-items: stretch;
  height: 100%;
}
#window .control {
  /* Layout */
  display: grid;
  place-items: center;

  /* Size */
  width: 46px;
  height: 100%;

  /* Spacing */
  padding: 0px;

  /* Typography */
  color: inherit;
  font: inherit;

  /* Visual */
  background-color: transparent;
  border: none;
  border-radius: 0px;

  /* Interaction */
  cursor: pointer;
}
#window .control:hover {
  background-color: var(--bt-hovered-color-1);
}
#window .control.close:hover {
  color: rgba(255, 255, 255, 1.0);
  background-color: rgba(196, 43, 28, 1.0);
}
#window .body {
  /* Layout */
  overflow: auto;
  box-sizing: border-box;

  /* Size */
  height: calc(100% - var(--window-title-height));

  /* Spacing */
  padding: 20px;
}
#window .comment-hint {
  /* Layout */
  display: block;

  /* Size */
  width: 100%;

  /* Spacing */
  margin: 18px 0 4px;
  padding: 0px;

  /* Typography */
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;

  /* Visual */
  background: transparent;
  border: none;
  opacity: 0.72;

  /* Interaction */
  cursor: pointer;
}
#window .comment-hint:hover {
  opacity: 1;
}
#window .resize-handle {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
}
#window .resize-n,
#window .resize-s {
  /* Position */
  left: 8px;
  right: 8px;

  /* Size */
  height: 8px;

  /* Interaction */
  cursor: ns-resize;
}
#window .resize-n {
  top: -4px;
}
#window .resize-s {
  bottom: -4px;
}
#window .resize-e,
#window .resize-w {
  /* Position */
  top: 8px;
  bottom: 8px;

  /* Size */
  width: 8px;

  /* Interaction */
  cursor: ew-resize;
}
#window .resize-e {
  right: -4px;
}
#window .resize-w {
  left: -4px;
}
#window .resize-ne,
#window .resize-nw,
#window .resize-se,
#window .resize-sw {
  width: 14px;
  height: 14px;
}
#window .resize-ne {
  top: -5px;
  right: -5px;
  cursor: nesw-resize;
}
#window .resize-nw {
  top: -5px;
  left: -5px;
  cursor: nwse-resize;
}
#window .resize-se {
  right: -5px;
  bottom: -5px;
  cursor: nwse-resize;
}
#window .resize-sw {
  bottom: -5px;
  left: -5px;
  cursor: nesw-resize;
}

@keyframes window-open {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* #endregion */

/* =========================================================
  태스크바(작업표시줄)
  화면 하단에 고정되어 있으며, 열린 창과 검색창이 위치합니다.
========================================================= */
/* #region task-bar style */
#task-bar {
  /* Variables */
  --task-item-size: 51px;
  --task-search-width: 260px;

  /* Position */
  position: fixed;
  z-index: var(--z-order-task-bar);
  left: 0;
  right: 0;
  bottom: 0;

  /* Layout */
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;

  /* Size */
  height: var(--task-bar-height);

  /* Spacing */
  gap: 8px;
  padding: 0 8px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-2);
  border-top: var(--border-thickness) var(--border-style) var(--border-color-1);
  box-shadow: var(--frame-shadow);
}
#task-bar .search {
  /* Layout */
  display: flex;
  align-items: stretch;
  flex: 0 0 var(--task-search-width);
  align-self: stretch;

  /* Spacing */
  margin-left: -8px;

  /* Visual */
  border-right: var(--border-thickness) var(--border-style) var(--border-color-1);
}
#task-bar .search input {
  /* Size */
  width: 100%;
  height: 100%;

  /* Spacing */
  padding: 0 16px;

  /* Typography */
  color: inherit;
  font: inherit;

  /* Visual */
  background: transparent;
  border: none;
}
#task-bar .search input:focus {
  outline: none;
}
#task-bar .item {
  /* Layout */
  display: grid;
  place-items: center;
  flex: 0 0 var(--task-item-size);
  overflow: hidden;

  /* Size */
  width: var(--task-item-size);
  height: var(--task-item-size);

  /* Spacing */
  padding: 3px;

  /* Typography */
  color: inherit;

  /* Visual */
  background: var(--bt-actived-color-1);
  border: var(--border-thickness) var(--border-style) transparent;
  border-radius: calc(var(--border-radius) / 2);

  /* Interaction */
  cursor: pointer;
}
#task-bar .item:hover,
#task-bar .item.is-active {
  background: var(--bt-hovered-color-1);
  border-color: var(--bt-focused-color);
}
#task-bar .item.is-minimized {
  opacity: 0.72;
}
#task-bar .thumb {
  /* Layout */
  display: block;

  /* Size */
  width: calc(var(--task-item-size) - 9px);
  height: calc(var(--task-item-size) - 9px);

  /* Visual */
  object-fit: cover;
  border-radius: calc(var(--border-radius) / 2);
}
#task-bar .fallback {
  /* Visual */
  background: rgba(128, 136, 148, 0.14);
}
/* #endregion */

/* =========================================================
  메뉴바
  화면 상단에 고정되어 있으며, 블로그 제목과 메뉴가 위치합니다.
  메뉴에는 라이트/다크모드를 전환하는 기능과,
  각종 기능이 포함되어 있습니다.
========================================================= */
/* #region menu-bar style */
#menu-bar {
  /* Position */
  position: fixed;
  z-index: var(--z-order-menu-bar);
  top: 0;
  left: 0;
  right: 0;

  /* Layout */
  display: flex;
  align-items: center;

  /* Size */
  height: var(--menu-bar-height);

  /* Spacing */
  gap: 18px;
  margin: 0px;
  padding: 0px 18px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: var(--theme-color-2);
  border-bottom: var(--border-thickness) var(--border-style) var(--border-color-1);
}
#menu-bar .group {
  /* Position */
  position: relative;

  /* Layout */
  display: flex;
  align-items: center;

  /* Size */
  height: 100%;
}
#menu-bar .right-group {
  margin-left: auto;
}
#menu-bar .brand,
#menu-bar .menu,
#menu-bar .item {
  border: 0;
  background: transparent;
  user-select: none;
}
#menu-bar .brand {
  /* Layout */
  display: inline-flex;
  align-items: center;
  overflow: hidden;

  /* Size */
  min-width: 0;
  max-width: 260px;

  /* Spacing */
  gap: 8px;

  /* Typography */
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: var(--font-weight-bold);
}
#menu-bar .menu {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Size */
  height: 26px;

  /* Spacing */
  padding: 0 12px;

  /* Typography */
  line-height: 1;
  white-space: nowrap;

  /* Visual */
  color: var(--text-color);
  border-radius: 0;

  /* Interaction */
  cursor: pointer;
}
#menu-bar .menu:hover {
  background: var(--bt-hovered-color-1);
}
#menu-bar .menu:active {
  background: var(--bt-actived-color-1);
}
#menu-bar .popup {
  /* Position */
  position: absolute;
  z-index: calc(var(--z-order-menu-bar) + 1);
  top: calc(2px + var(--menu-bar-height));
  left: 0;

  /* Size */
  width: max-content;
  min-width: 0;

  /* Spacing */
  padding: 6px;

  /* Visual */
  background-color: var(--popup-bg-color);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--frame-shadow);
}
#menu-bar .item {
  /* Layout */
  display: flex;
  align-items: center;

  /* Size */
  width: max-content;
  min-width: 100%;
  min-height: 30px;

  /* Spacing */
  gap: 8px;
  padding: 0 10px;

  /* Typography */
  text-align: left;
  color: inherit;
  white-space: nowrap;

  /* Visual */
  border-radius: 0;

  /* Interaction */
  cursor: pointer;
}
#menu-bar .item:hover {
  background: var(--bt-hovered-color-1);
}
#menu-bar .item:active {
  background: var(--bt-actived-color-1);
}

#menu-bar .item.is-active {
  background: var(--bt-actived-color-1);
  font-weight: var(--font-weight-bold);
}
/* #endregion */

/* =========================================================
  티스토리 속성 덮어쓰기
  티스토리에서 제공하는 댓글과, 카테고리, 애드블럭 등의 스타일을 덮어씌워 스킨의 스타일과 어울리도록 조정합니다.
========================================================= */
/* #region override tistoty post style */
.tt-comment-cont .tt-btn-modify.comment-modify-button {
  /* Layout */
  display: inline-grid;
  place-items: center;

  /* Size */
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;

  /* Spacing */
  padding: 0px;

  /* Typography */
  color: var(--text-color);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  text-indent: 0;

  /* Visual */
  background: var(--theme-color-1);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: 50%;

  /* Interaction */
  cursor: pointer;
}

[id^="entry"][id$="Comment"] .tt_txt_user {
  /* Typography */
  color: var(--text-color) !important;
}
[id^="entry"][id$="Comment"] .tt-area-reply .tt-box-content {
  /* Typography */
  color: var(--text-color) !important;

  /* Visual */
  background-color: var(--theme-color-1) !important;
  border-color: var(--border-color-1) !important;
}
[id^="entry"][id$="Comment"] .tt-area-reply .tt-box-content :where(p, span, div) {
  /* Typography */
  color: inherit !important;
}
[id^="entry"][id$="Comment"] .tt-area-reply .tt-box-content .tt-link-user {
  /* Typography */
  color: inherit !important;
}
[id^="entry"][id$="Comment"] .tt-area-write .tt_wrap_write {
  /* Typography */
  color: var(--text-color) !important;

  /* Visual */
  background-color: var(--theme-color-1) !important;
  border-color: var(--border-color-1) !important;
}
[id^="entry"][id$="Comment"] :where(input, textarea, .tt-box-write, .tt-box-textarea, .tt-input-textarea, .tt-inner-g) {
  /* Typography */
  color: var(--text-color) !important;

  /* Visual */
  background-color: var(--theme-color-1) !important;
  border-color: var(--border-color-1) !important;
}
[id^="entry"][id$="Comment"] .tt-box-textarea textarea,
[id^="entry"][id$="Comment"] .tt-box-textarea div {
  /* Typography */
  color: var(--text-color) !important;
}
[id^="entry"][id$="Comment"] .tt-box-textarea .tt-input-textarea .tt-inner-g {
  /* Visual */
  border-color: var(--border-color-1) !important;
}
[id^="entry"][id$="Comment"] .tt-btn_register {
  /* Typography */
  color: var(--text-color) !important;

  /* Visual */
  border-color: var(--border-color-1) !important;
  background-color: var(--bt-default-color) !important;
}
[id^="entry"][id$="Comment"] .tt-btn_register:disabled {
  /* Typography */
  color: var(--disable-text-color) !important;

  /* Visual */
  background-color: var(--bt-disabled-color) !important;
}

[id^="entry"][id$="Comment"] .tt-btn_register:hover {
  /* Visual */
  background-color: var(--bt-hovered-color-1) !important;
}

#content #browser #article-view .container_postbtn,
#window .body .article-view .container_postbtn {
  /* Spacing */
  padding: 20px 0px !important;
}

#content #browser #article-view .container_postbtn #post_button_group,
#content #browser #article-view .container_postbtn#post_button_group,
#window .body .article-view .container_postbtn #post_button_group,
#window .body .article-view .container_postbtn#post_button_group {
  /* Spacing */
  padding: 0px !important;
}

[data-tistory-react-app="Namecard"] {
  /* Layout */
  display: none !important;
}

.another_category {
  margin: 0 0 20px 0 !important;
}
/* #endregion */

/* =========================================================
  그림판(페인트 툴)
  게시글 본문에 그림판 기능을 추가하는 애드온입니다.
  스킨 편집란에서 활성/비활성 여부를 설정할 수 있습니다.
  애드온이 없으면 사용할 수 없습니다.
========================================================= */
/* #region paint tool addon style */
#paint-tool-toolbar {
  /* Position */
  position: fixed;
  z-index: calc(var(--z-order-menu-bar) - 1);

  /* Layout */
  display: flex;
  align-items: center;
  box-sizing: border-box;

  /* Spacing */
  gap: 6px;
  padding: 6px;

  /* Typography */
  color: var(--text-color);

  /* Visual */
  background-color: rgba(245, 248, 252, 0.48);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  box-shadow: var(--frame-shadow);
}
[data-theme="dark"] #paint-tool-toolbar {
  background-color: rgba(30, 36, 48, 0.48);
}
#paint-tool-toolbar[hidden],
.paint-tool-popup[hidden] {
  display: none;
}
.paint-tool-toolbar-button,
.paint-tool-color-button {
  /* Layout */
  display: grid;
  place-items: center;

  /* Size */
  width: 32px;
  height: 32px;

  /* Spacing */
  padding: 0;

  /* Typography */
  color: inherit;
  font: inherit;

  /* Visual */
  background: transparent;
  border: var(--border-thickness) var(--border-style) transparent;
  border-radius: var(--border-radius);

  /* Interaction */
  cursor: pointer;
}
.paint-tool-kind-button {
  /* Layout */
  grid-template-columns: 20px auto;
  justify-content: start;

  /* Size */
  width: 118px;

  /* Spacing */
  gap: 8px;
  padding: 0 10px;
}
.paint-tool-button-label {
  font-size: 13px;
}
.paint-tool-toolbar-button:hover,
.paint-tool-color-button:hover,
.paint-tool-toolbar-button.is-active,
.paint-tool-color-button.is-active {
  background: var(--bt-hovered-color-1);
  border-color: var(--post-icon-selected-border-color);
}
.paint-tool-popup {
  /* Position */
  position: absolute;
  top: calc(100% + 6px);
  left: 6px;
  z-index: 1;

  /* Layout */
  display: flex;
  box-sizing: border-box;

  /* Spacing */
  gap: 6px;
  padding: 6px;

  /* Visual */
  background-color: var(--popup-bg-color);
  border: var(--border-thickness) var(--border-style) var(--border-color-1);
  border-radius: var(--border-radius);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--frame-shadow);
}
.paint-tool-kind-popup {
  flex-direction: column;
}
.paint-tool-color-popup {
  flex-direction: column;
  align-items: center;
}
.paint-tool-color-button {
  /* Size */
  width: 26px;
  height: 26px;

  /* Visual */
  border-color: rgba(80, 88, 104, 0.32);
  border-radius: 50%;
}
.paint-tool-color-button[data-paint-color="#ffffff"] {
  box-shadow: inset 0 0 0 1px rgba(80, 88, 104, 0.36);
}
.paint-tool-size-button {
  width: 48px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}
.paint-tool-size-popup {
  align-items: center;
}
.paint-tool-size-step {
  /* Layout */
  display: grid;
  place-items: center;

  /* Size */
  width: 28px;
  height: 28px;

  /* Spacing */
  padding: 0;

  /* Typography */
  color: inherit;
  font: inherit;
  font-weight: var(--font-weight-bold);

  /* Visual */
  background: transparent;
  border: var(--border-thickness) var(--border-style) transparent;
  border-radius: var(--border-radius);

  /* Interaction */
  cursor: pointer;
}
.paint-tool-size-step:hover {
  background: var(--bt-hovered-color-1);
  border-color: var(--post-icon-selected-border-color);
}
.paint-tool-size-label {
  /* Size */
  min-width: 42px;
  height: 28px;
  padding: 0 6px;

  /* Typography */
  color: inherit;
  font: inherit;
  text-align: center;
  font-size: 12px;
  font-weight: var(--font-weight-bold);

  /* Visual */
  background: transparent;
  border: var(--border-thickness) var(--border-style) transparent;
  border-radius: var(--border-radius);

  /* Interaction */
  cursor: text;
  user-select: none;
}
.paint-tool-size-label:hover {
  background: var(--bt-hovered-color-1);
  border-color: var(--post-icon-selected-border-color);
}
.paint-tool-size-input {
  /* Size */
  width: 42px;
  height: 24px;

  /* Spacing */
  padding: 0;

  /* Typography */
  color: inherit;
  font: inherit;
  text-align: center;

  /* Visual */
  background: transparent;
  border: none;
}
.paint-tool-more-popup {
  flex-direction: column;
}
.paint-tool-more-item {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Size */
  min-width: 126px;
  min-height: 30px;

  /* Spacing */
  gap: 14px;
  padding: 0 10px;

  /* Typography */
  color: inherit;
  font: inherit;
  text-align: left;

  /* Visual */
  background: transparent;
  border: var(--border-thickness) var(--border-style) transparent;
  border-radius: var(--border-radius);

  /* Interaction */
  cursor: pointer;
}
.paint-tool-more-item:hover {
  background: var(--bt-hovered-color-1);
  border-color: var(--post-icon-selected-border-color);
}
.paint-tool-shortcut {
  color: var(--disable-text-color);
  font-size: 11px;
  white-space: nowrap;
}
#paint-tool-cursor {
  /* Position */
  position: fixed;
  z-index: calc(var(--z-order-menu-bar) - 1);
  left: 0;
  top: 0;

  /* Layout */
  display: block;

  /* Typography */
  color: var(--text-color);
  font-size: 16px;

  /* Interaction */
  pointer-events: none;
}
#paint-tool-cursor[hidden] {
  display: none;
}
#paint-tool-cursor .paint-tool-cursor-circle {
  /* Position */
  position: absolute;
  left: 0;
  top: 0;

  /* Visual */
  border: var(--border-thickness) var(--border-style) currentColor;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}
#paint-tool-cursor i {
  position: absolute;
  left: 8px;
  top: -22px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}
#paint-tool-cursor.is-eraser i {
  color: var(--disable-text-color);
}
/* #endregion */
