@charset "utf-8";

:root{
  --mao-bg:#080808;
  --mao-bg2:#0f0f0f;
  --mao-card:#151515;
  --mao-card2:#1c1c1c;
  --mao-line:#2a2a2a;
  --mao-line2:#383838;
  --mao-text:#f2f2f2;
  --mao-sub:#b7b7b7;
  --mao-muted:#818181;
  --mao-point:#e8c16a;
  --mao-blue:#57a6ff;
  --mao-radius:16px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  min-width:320px;
  background:var(--mao-bg);
  color:var(--mao-text);
  font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Noto Sans KR","Apple SD Gothic Neo","Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.78;
  letter-spacing:-.25px;
  word-break:keep-all;
  overflow-wrap:anywhere;
}

a{color:inherit;text-decoration:none}
a:hover,a:focus{color:var(--mao-point)}
ul,ol{list-style:none}
img{max-width:100%;height:auto;border:0;border-radius:14px}
button,input,textarea,select{font:inherit}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:9999;
  background:#fff;
  color:#000;
  padding:10px 14px;
}

.skip-link:focus{left:0}

.mao-topbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(8,8,8,.9);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--mao-line);
}

.mao-topbar-inner{
  max-width:1240px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.mao-brand{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 13px;
  border:1px solid var(--mao-line2);
  border-radius:999px;
  background:linear-gradient(180deg,#222,#111);
  font-weight:900;
  font-size:15px;
  white-space:nowrap;
}

.mao-menu{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.mao-menu a,
.mao-contact-mini a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 13px;
  border:1px solid var(--mao-line);
  border-radius:999px;
  background:#151515;
  color:#eee;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

.mao-menu a:hover,
.mao-contact-mini a:hover{
  border-color:var(--mao-point);
  color:var(--mao-point);
  background:#1d1d1d;
  text-decoration:none;
}

.mao-contact-mini{
  margin-left:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.mao-contact-mini a{background:#101010}

.mao-wrap{
  max-width:1240px;
  margin:0 auto;
  padding:24px 18px 36px;
}

.mao-header{
  margin-bottom:24px;
  border-bottom:1px solid var(--mao-line);
  padding-bottom:20px;
}

.mao-header-title h1{
  font-size:25px;
  line-height:1.35;
  margin:0 0 8px;
  font-weight:950;
  color:#fff;
}

.mao-header-title p{
  color:var(--mao-sub);
  font-size:15px;
  max-width:980px;
}

.mao-hero{
  margin-top:18px;
  padding:22px;
  border:1px solid var(--mao-line);
  border-radius:var(--mao-radius);
  background:linear-gradient(135deg,#171717,#101010);
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}

.mao-hero-kicker{
  font-size:14px;
  font-weight:900;
  color:var(--mao-point);
  margin-bottom:8px;
}

.mao-hero h2{
  font-size:20px;
  line-height:1.45;
  margin-bottom:8px;
  color:#fff;
}

.mao-hero p{
  color:var(--mao-sub);
  font-size:15px;
}

.mao-hero-actions,
.mao-cta-row,
.mao-related-links,
.mao-widget-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.mao-hero-actions a,
.mao-cta-row a,
.mao-related-links a,
.mao-widget-buttons a,
.mao-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--mao-line2);
  background:#0f0f0f;
  color:#fff;
  font-weight:850;
  font-size:14px;
  text-decoration:none;
}

.mao-hero-actions a:hover,
.mao-cta-row a:hover,
.mao-related-links a:hover,
.mao-widget-buttons a:hover,
.mao-more:hover{
  border-color:var(--mao-point);
  color:var(--mao-point);
  background:#1a1a1a;
  text-decoration:none;
}

.mao-topic-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.mao-topic-grid a{
  padding:16px;
  border:1px solid var(--mao-line);
  border-radius:14px;
  background:#111;
  min-height:92px;
}

.mao-topic-grid strong{
  display:block;
  font-size:15px;
  color:#fff;
  margin-bottom:4px;
}

.mao-topic-grid span{
  display:block;
  font-size:13px;
  color:var(--mao-sub);
  line-height:1.55;
}

.mao-topic-grid a:hover{
  border-color:var(--mao-point);
  text-decoration:none;
  transform:translateY(-1px);
}

.mao-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:start;
}

.mao-main{min-width:0}

.mao-card,
.mao-article,
.mao-widget{
  background:var(--mao-card);
  border:1px solid var(--mao-line);
  border-radius:var(--mao-radius);
  box-shadow:0 12px 35px rgba(0,0,0,.18);
}

.mao-card{
  padding:20px;
  margin-bottom:16px;
  transition:border-color .2s ease,transform .2s ease,background .2s ease;
}

.mao-card:hover{
  border-color:#444;
  background:#181818;
  transform:translateY(-1px);
}

.mao-card-meta{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin-bottom:9px;
  color:var(--mao-muted);
  font-size:13px;
}

.mao-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--mao-line2);
  background:#202020;
  color:#cfcfcf;
  font-weight:800;
  font-size:12px;
}

.mao-card-title{
  font-size:20px;
  line-height:1.42;
  margin:0 0 8px;
  font-weight:950;
  color:#fff;
}

.mao-card-title a{color:#fff}

.mao-card-title a:hover{
  color:var(--mao-point);
  text-decoration:none;
}

.mao-card-summary{
  color:var(--mao-sub);
  font-size:15px;
  line-height:1.72;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.mao-more{
  margin-top:14px;
  min-height:34px;
  font-size:13px;
}

.mao-article{
  padding:26px;
  overflow:hidden;
}

.mao-article-header{
  border-bottom:1px solid var(--mao-line);
  padding-bottom:18px;
  margin-bottom:24px;
}

.mao-article-header h1{
  font-size:30px;
  line-height:1.35;
  color:#fff;
  margin:10px 0 8px;
  font-weight:950;
  letter-spacing:-.6px;
}

.mao-disclaimer{
  padding:12px 14px;
  border:1px solid #373128;
  border-radius:12px;
  background:#15120d;
  color:#d5c3a0;
  font-size:14px;
  line-height:1.65;
}

.mao-article-body{
  color:#e8e8e8;
  font-size:17px;
  line-height:1.9;
}

.mao-article-body p{margin:0 0 18px}

.mao-article-body h2{
  margin:34px 0 14px;
  padding:0 0 10px;
  border-bottom:1px solid var(--mao-line);
  font-size:24px;
  line-height:1.45;
  color:#fff;
  font-weight:950;
}

.mao-article-body h3{
  margin:28px 0 12px;
  font-size:20px;
  line-height:1.45;
  color:#fff;
  font-weight:900;
}

.mao-article-body h4{
  margin:24px 0 10px;
  font-size:18px;
  color:#fff;
}

.mao-article-body a{
  color:var(--mao-blue);
  text-decoration:underline;
  text-underline-offset:3px;
}

.mao-article-body ul,
.mao-article-body ol{
  margin:0 0 20px 22px;
  list-style:disc;
}

.mao-article-body ol{list-style:decimal}

.mao-article-body li{
  margin:7px 0;
  color:#e8e8e8;
}

.mao-article-body blockquote{
  margin:22px 0;
  padding:16px 18px;
  border-left:4px solid var(--mao-point);
  border-radius:0 12px 12px 0;
  background:#111;
  color:#ddd;
}

.mao-article-body table{
  width:100%;
  border-collapse:collapse;
  margin:22px 0;
  display:block;
  overflow-x:auto;
}

.mao-article-body th,
.mao-article-body td{
  border:1px solid var(--mao-line2);
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}

.mao-article-body th{
  background:#1d1d1d;
  color:#fff;
}

.mao-article-body code{
  background:#202020;
  border:1px solid var(--mao-line2);
  border-radius:6px;
  padding:2px 5px;
  color:#f4d483;
}

.mao-article-body pre{
  white-space:pre-wrap;
  word-break:break-word;
  background:#111;
  border:1px solid var(--mao-line);
  border-radius:12px;
  padding:14px;
  margin:20px 0;
  overflow-x:auto;
}

.mao-article-body img{
  display:block;
  margin:20px auto;
  border:1px solid var(--mao-line);
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.mao-related-box,
.mao-bottom-cta{
  margin-top:28px;
  padding:20px;
  border:1px solid var(--mao-line);
  border-radius:14px;
  background:#111;
}

.mao-related-box h2,
.mao-bottom-cta h2{
  font-size:20px;
  margin:0 0 8px;
  color:#fff;
  line-height:1.4;
}

.mao-bottom-cta p{
  color:var(--mao-sub);
  font-size:15px;
}

.mao-bottom-cta small{
  display:block;
  margin-top:10px;
  color:var(--mao-muted);
  font-size:13px;
}

.mao-sidebar{
  display:flex;
  flex-direction:column;
  gap:14px;
  position:sticky;
  top:72px;
}

.mao-widget{padding:18px}

.mao-widget h2{
  font-size:19px;
  line-height:1.4;
  margin-bottom:10px;
  color:#fff;
  font-weight:950;
}

.mao-widget p{
  color:var(--mao-sub);
  font-size:14px;
  line-height:1.7;
}

.mao-widget-strong{
  border-color:#3d3320;
  background:linear-gradient(145deg,#17130d,#111);
}

.mao-side-list{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.mao-side-list a{
  display:block;
  padding:9px 11px;
  border:1px solid var(--mao-line);
  border-radius:10px;
  background:#111;
  color:#ddd;
  font-weight:800;
  font-size:14px;
}

.mao-side-list a:hover{
  border-color:var(--mao-point);
  color:var(--mao-point);
  text-decoration:none;
}

.mao-menu-source{display:none}

.mao-paging{
  margin:26px 0;
  text-align:center;
  color:var(--mao-sub);
}

.mao-paging a,
.mao-paging span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  margin:0 3px;
  border:1px solid var(--mao-line);
  border-radius:999px;
  background:#111;
  color:#ddd;
  font-size:14px;
}

.mao-paging .selected,
.mao-paging a:hover{
  border-color:var(--mao-point);
  color:var(--mao-point);
  text-decoration:none;
}

.mao-footer{
  position:relative;
  margin-top:34px;
  padding:22px 0 8px;
  border-top:1px solid var(--mao-line);
  color:var(--mao-muted);
  font-size:14px;
}

.mao-footer a{color:#ddd}
.mao-footer a:hover{color:var(--mao-point)}

.mao-top{
  position:absolute;
  right:0;
  top:18px;
  padding:7px 12px;
  border:1px solid var(--mao-line);
  border-radius:999px;
  background:#111;
  color:#ddd!important;
  text-decoration:none!important;
}

/* 티스토리 기본 요소 보정 */
#tt-body-page .another_category,
#content .another_category{
  margin:32px 0!important;
  padding:18px!important;
  border:1px solid var(--mao-line)!important;
  border-radius:14px!important;
  background:#111!important;
  color:#ddd!important;
}

#tt-body-page .another_category h4,
#content .another_category h4{
  color:#fff!important;
  border:0!important;
}

.another_category a{color:#ddd!important}
.another_category a:hover{color:var(--mao-point)!important}

.comments,
.comment-form,
.comment-list{color:#ddd}

.comment-form input,
.comment-form textarea{
  background:#111!important;
  border:1px solid var(--mao-line2)!important;
  color:#eee!important;
  border-radius:10px!important;
}

.comment-form .submit button{
  background:var(--mao-point)!important;
  color:#111!important;
  border-radius:999px!important;
  padding:8px 18px!important;
}

@media (max-width:1080px){
  .mao-layout{grid-template-columns:1fr}
  .mao-sidebar{
    position:static;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  .mao-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mao-contact-mini{margin-left:0}
  .mao-topbar-inner{align-items:flex-start}
}

@media (max-width:720px){
  body{
    font-size:15px;
    word-break:normal;
  }

  .mao-wrap{padding:18px 14px 30px}

  .mao-topbar-inner{
    padding:9px 12px;
    gap:8px;
  }

  .mao-brand{
    width:100%;
    justify-content:center;
  }

  .mao-menu{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }

  .mao-menu a{
    justify-content:center;
    padding:7px 8px;
    font-size:12px;
  }

  .mao-contact-mini{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }

  .mao-contact-mini a{
    justify-content:center;
    padding:7px 6px;
    font-size:12px;
  }

  .mao-header-title h1{font-size:22px}
  .mao-header-title p{font-size:14px}

  .mao-hero{padding:18px}
  .mao-hero h2{font-size:18px}

  .mao-topic-grid{grid-template-columns:1fr}

  .mao-card{padding:17px}
  .mao-card-title{font-size:18px}

  .mao-card-summary{
    -webkit-line-clamp:4;
    font-size:14px;
  }

  .mao-article{
    padding:19px;
    border-radius:14px;
  }

  .mao-article-header h1{font-size:24px}

  .mao-article-body{
    font-size:16px;
    line-height:1.86;
  }

  .mao-article-body h2{
    font-size:21px;
    margin-top:30px;
  }

  .mao-article-body h3{font-size:18px}

  .mao-sidebar{display:flex}

  .mao-hero-actions a,
  .mao-cta-row a,
  .mao-related-links a,
  .mao-widget-buttons a{
    flex:1 1 100%;
  }

  .mao-footer{padding-bottom:50px}

  .mao-top{
    left:0;
    right:auto;
    top:auto;
    bottom:10px;
  }
}

/* 관리자 말풍선/툴팁 가림 */
iframe[src*="tistory"],
div[class*="tooltip"],
div[class*="layer_tooltip"],
div[class*="admin"],
div[id*="tooltip"]{
  max-width:0!important;
}

/* 전체 여백 살짝 압축 */
.mao-wrap{
  padding-top:18px;
}

.mao-header{
  margin-bottom:18px;
  padding-bottom:16px;
}

.mao-hero{
  margin-top:14px;
  padding:20px;
}

.mao-topic-grid{
  margin-top:12px;
}

.mao-card{
  padding:18px;
  margin-bottom:14px;
}

/* 오른쪽 사이드바 살짝 정돈 */
.mao-sidebar{
  top:66px;
}

.mao-widget{
  padding:17px;
}

/* 모바일에서 상단 메뉴 더 작게 */
@media (max-width:720px){
  .mao-menu{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mao-contact-mini{
    grid-template-columns:1fr;
  }

  .mao-hero{
    padding:16px;
  }
}