/* NOX INFO v1.0 — performance-oriented responsive dark Tistory skin */
:root{color-scheme:dark;--bg:#0b101b;--panel:#151e2e;--panel-alt:#1a2639;--border:#2a374d;--text:#eef3fb;--muted:#a9b7cc;--quiet:#8797ae;--accent:#818cf8;--accent-soft:rgba(129,140,248,.16);--accent-contrast:#fff;--max:1200px;--radius:15px;--shadow:0 16px 44px rgba(1,4,12,.22)}
body[data-theme="space"]{--accent:#818cf8;--accent-soft:rgba(129,140,248,.17);--hero-light:rgba(88,69,203,.25)}
body[data-theme="economy"]{--accent:#60a5fa;--accent-soft:rgba(96,165,250,.15);--hero-light:rgba(40,115,210,.23)}
body[data-theme="health"]{--accent:#34d399;--accent-soft:rgba(52,211,153,.12);--hero-light:rgba(27,134,110,.20)}
body[data-theme="life"]{--accent:#c4a2ff;--accent-soft:rgba(196,162,255,.15);--hero-light:rgba(135,73,188,.20)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;word-break:keep-all;overflow-wrap:break-word;font-size:16px;line-height:1.65}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,input{font:inherit}button{cursor:pointer}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}::selection{background:var(--accent);color:#0b101b}[hidden]{display:none!important}.container{max-width:var(--max);margin:0 auto;padding:0 24px}.en-label{display:none}html:lang(en) .en-label{display:inline}html:lang(en) .ko-label{display:none}.skip-link{position:absolute;z-index:999;top:-90px;left:18px;padding:12px 18px;background:var(--accent);color:#08101c;border-radius:8px}.skip-link:focus{top:12px}.top-progress{height:3px;position:fixed;inset:0 0 auto;z-index:101;pointer-events:none}.top-progress>span{display:block;background:var(--accent);height:100%;width:0}.site-header{position:sticky;top:0;z-index:100;background:rgba(11,16,27,.94);border-bottom:1px solid rgba(107,124,162,.18);backdrop-filter:blur(18px)}.header-inner{min-height:80px;display:flex;align-items:center;gap:30px;justify-content:space-between}.site-brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{color:var(--accent);background:var(--accent-soft);display:grid;place-items:center;border:1px solid rgba(150,160,230,.22);border-radius:11px;width:43px;height:43px;flex-shrink:0}.brand-name{font-size:21px;letter-spacing:-.03em;line-height:1.25;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.site-brand:hover{color:var(--text)}.header-nav{display:flex;align-items:center;gap:28px;margin-left:auto}.header-nav a{font-size:13px;color:#b4c2d7;font-weight:650}.header-nav a:hover{color:#fff}.header-actions{display:flex;align-items:center;gap:8px}.icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--border);border-radius:11px;color:var(--text);background:var(--panel)}.icon-button:hover{background:var(--panel-alt);color:var(--accent)}.menu-button{display:none}.header-search{padding-top:12px;padding-bottom:18px}.search-form{display:flex;gap:10px;max-width:670px;margin-left:auto}.search-form input{flex:1;min-width:0;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:11px;padding:11px 14px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;color:#fff;background:var(--accent);padding:11px 19px;border:none;border-radius:10px;font-size:14px;font-weight:750;line-height:1.4;white-space:nowrap}.primary-button:hover{filter:brightness(1.13);color:#fff}.mobile-nav{display:none}.layout-shell{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:38px;align-items:start;padding-top:37px;padding-bottom:68px}.main-column{min-width:0}.home-hero{position:relative;isolation:isolate;display:none;overflow:hidden;min-height:300px;border:1px solid #34405b;border-radius:20px;padding:43px 42px;margin-bottom:36px;background:radial-gradient(circle at 81% 54%,var(--hero-light,rgba(88,69,203,.25)),transparent 36%),radial-gradient(circle at 0% 0%,#222c4b 0%,transparent 54%),linear-gradient(130deg,#151f33,#0d1528)}#tt-body-index .home-hero{display:flex;align-items:center}.hero-content{z-index:2;max-width:590px}.eyebrow,.section-kicker,.widget-label{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--accent)}.eyebrow{display:flex;gap:10px;align-items:center}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}.hero-title{font-size:clamp(31px,4.4vw,46px);font-weight:850;letter-spacing:-.055em;line-height:1.2;margin:17px 0 16px}.hero-summary{font-size:15px;line-height:1.8;color:#bcc8dc;margin:0;max-width:480px}.hero-actions{display:flex;align-items:center;gap:24px;margin-top:25px}.quiet-link{color:#c4d0e2;font-size:13px;font-weight:700}.hero-orbit{position:absolute;right:3%;top:50%;transform:translateY(-50%);width:210px;height:210px;border:1px solid rgba(169,183,250,.25);border-radius:50%;pointer-events:none}.hero-orbit:before{content:"";position:absolute;inset:36px;border:1px solid rgba(169,183,250,.18);border-radius:50%}.hero-orbit:after{content:"";position:absolute;inset:72px;border:1px solid rgba(169,183,250,.15);border-radius:50%}.hero-orbit i{position:absolute;top:24px;left:13px;width:17px;height:17px;background:var(--accent);border-radius:50%;box-shadow:0 0 28px var(--accent)}.hero-orbit span{position:absolute;width:4px;height:4px;border-radius:50%;background:#b8c3ff;top:42px;right:25px}.hero-orbit span+span{top:175px;right:22px}.hero-stars{position:absolute;inset:0;opacity:.46;background-image:radial-gradient(1px 1px at 20px 30px,#fff 99%,transparent),radial-gradient(1px 1px at 170px 140px,#fff 99%,transparent),radial-gradient(2px 2px at 350px 85px,#fff 99%,transparent),radial-gradient(1px 1px at 550px 160px,#fff 99%,transparent);background-size:600px 200px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 21px}.section-heading h1,.section-heading h2{font-size:25px;line-height:1.3;font-weight:820;margin:6px 0 0;letter-spacing:-.035em}.section-heading p{font-size:14px;color:var(--muted);margin:10px 0 0}.count-pill{font-size:12px;white-space:nowrap;background:var(--panel);border:1px solid var(--border);color:var(--muted);padding:4px 11px;border-radius:100px}.more-link{font-size:13px;color:var(--muted);font-weight:700}.home-feed{display:none}#tt-body-index .home-feed{display:block}#tt-body-index .listing-section{display:none}.post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.post-card{min-width:0;overflow:hidden;border:1px solid var(--border);background:var(--panel);border-radius:var(--radius);transition:transform .18s,border-color .18s}.post-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--accent) 65%,var(--border))}.card-media{height:auto;display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:radial-gradient(circle at 75% 25%,var(--accent-soft),transparent 42%),linear-gradient(150deg,#212d46,#111a2b)}.card-media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .25s}.post-card:hover .card-media img{transform:scale(1.035)}.card-fallback{position:absolute;inset:0;display:grid;place-items:center;font-size:72px;color:var(--accent);opacity:.55}.card-content{padding:19px 20px 20px}.post-category,.article-category{font-size:12px;font-weight:750;color:var(--accent)}.card-content h2{font-size:18px;line-height:1.5;letter-spacing:-.025em;margin:8px 0 9px;font-weight:780}.card-content h2 a:hover{color:var(--accent)}.card-excerpt{font-size:13px;line-height:1.7;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:44px;margin:0 0 12px}.post-date{font-size:11px;color:var(--quiet)}.listing-section{padding-top:8px}.empty-state{border:1px dashed var(--border);border-radius:10px;padding:30px;text-align:center;color:var(--muted)}.sidebar{display:flex;flex-direction:column;gap:18px}.widget{border:1px solid var(--border);background:var(--panel);border-radius:var(--radius);padding:22px}.widget h2{font-size:15px;font-weight:800;margin:0 0 16px}.profile-widget{padding-top:25px}.profile-avatar{display:grid;place-items:center;margin:20px 0 13px;width:54px;height:54px;border-radius:15px;background:var(--accent-soft);font-size:30px;color:var(--accent)}.profile-widget h2{font-size:19px;margin:0 0 8px;line-height:1.4}.profile-widget p{font-size:13px;line-height:1.75;color:var(--muted);margin:0 0 14px}.widget-link{font-size:12px;font-weight:800;color:var(--accent)}.category-widget .tt_category,.category-widget .category_list{padding:0;margin:0;list-style:none}.category-widget ul{list-style:none;padding-left:0;margin:0}.category-widget li ul{padding:5px 0 5px 12px}.category-widget a{display:block;padding:7px 0;font-size:13px;color:#c6d1e0}.category-widget a:hover,.category-widget .link_item:hover{color:var(--accent)}.category-widget .c_cnt{font-size:11px;color:var(--quiet)}.sidebar-posts{padding:0;margin:0;list-style:none}.sidebar-posts li+li{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.sidebar-posts li a{font-size:13px;line-height:1.5;display:block}.sidebar-posts time{color:var(--quiet);font-size:11px}.widget-links a{display:flex;justify-content:space-between;font-size:13px;padding:9px 0;border-top:1px solid var(--border)}.widget-links a:first-of-type{border-top:0}.article-detail{width:100%;min-width:0;display:block}.home-feed .article-detail{grid-column:1/-1}.article-header{padding:12px 0 23px;border-bottom:1px solid var(--border);margin-bottom:24px}.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:12px;color:var(--quiet);margin-bottom:25px}.breadcrumbs a:hover{color:var(--accent)}.article-header h1{font-size:clamp(27px,4.5vw,40px);line-height:1.38;letter-spacing:-.04em;font-weight:840;margin:12px 0 18px}.article-byline{display:flex;align-items:center;gap:9px;color:var(--quiet);font-size:13px}.article-admin{display:flex;gap:15px;font-size:12px;margin-top:12px;color:var(--accent)}.article-toc{background:var(--panel);border:1px solid var(--border);border-radius:12px;margin:24px 0 30px;overflow:hidden}.toc-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:none;color:var(--text);border:0;padding:15px 19px;text-align:left;font-weight:800;font-size:14px}.toc-chevron{color:var(--accent);font-size:20px}.article-toc nav{padding:0 18px 14px}.toc-link{display:block;padding:5px 6px;line-height:1.55;font-size:13px;color:#c6d1e1;border-radius:6px}.toc-link:hover{background:var(--accent-soft);color:var(--accent)}.toc-nested{margin-left:19px;font-size:12px}.article-body{font-size:17px;line-height:1.9;letter-spacing:-.01em;overflow-wrap:break-word;min-width:0;color:#e0e8f4}.article-body>*:first-child{margin-top:0}.article-body p{margin:0 0 1.45em}.article-body h2,.article-body h3,.article-body h4{color:#f5f8ff;scroll-margin-top:96px;line-height:1.45;letter-spacing:-.035em}.article-body h2{font-size:25px;margin:2.1em 0 .85em;padding-bottom:12px;border-bottom:1px solid var(--border)}.article-body h3{font-size:21px;margin:1.8em 0 .7em}.article-body h4{font-size:18px;margin:1.6em 0 .6em}.article-body a{color:#a8baff;text-decoration:underline;text-underline-offset:3px}.article-body strong{color:#f5f8ff}.article-body blockquote{margin:28px 0;padding:19px 22px;background:var(--panel);border-left:4px solid var(--accent);border-radius:0 12px 12px 0;color:#d5dfee}.article-body blockquote p:last-child{margin-bottom:0}.article-body img{max-width:100%;height:auto;border-radius:10px}.article-body figure{max-width:100%;margin:24px auto}.article-body figcaption{font-size:12px;text-align:center;color:var(--muted)}.article-body table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6;display:block;overflow-x:auto;margin:22px 0;background:var(--panel)}.article-body th,.article-body td{border:1px solid var(--border);padding:12px 14px;text-align:left;min-width:80px}.article-body th{background:#25324c;color:#fff}.article-body ol,.article-body ul{padding-left:1.6em;margin:0 0 1.5em}.article-body li{margin-bottom:.35em}.article-body pre{padding:18px;border-radius:10px;overflow:auto;background:#070d18;border:1px solid var(--border);font-size:13px;line-height:1.7}.article-body code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em}.article-body p code{padding:2px 5px;background:#202e45;border-radius:4px}.article-body iframe{max-width:100%}.article-body .button,.article-body a.btn{display:inline-flex;padding:10px 16px;background:var(--accent);color:#fff;border-radius:8px;text-decoration:none}.article-body .another_category{margin:30px 0}.article-body hr{border:0;border-top:1px solid var(--border);margin:30px 0}.post-tags{border-top:1px solid var(--border);display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:22px;margin-top:30px}.tags-prefix{font-size:11px;font-weight:800;color:var(--accent);margin-right:7px}.post-tags a{font-size:12px;padding:5px 11px;border-radius:7px;background:var(--panel);border:1px solid var(--border)}.share-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0;border:1px solid var(--border);border-radius:12px;padding:18px;font-size:14px;color:var(--muted)}.outline-button{border:1px solid var(--border);background:var(--panel-alt);color:var(--text);border-radius:8px;padding:9px 14px;font-size:13px}.related-section{margin:44px 0;border-top:1px solid var(--border);padding-top:22px}.related-section h2{font-size:20px}.related-section ul{padding-left:19px;color:var(--accent)}.related-section li{margin:10px 0}.related-section li a{color:#d9e5f8}.comments-area{margin-top:40px}.comments-area .tt-comment-cont{color:var(--text)}.comments-area .tt-btn_register{background:var(--accent)}.simple-post,.protected-post,.utility-page{padding:26px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:16px}.simple-post h2{font-size:19px;margin:7px 0}.protected-form{display:flex;gap:10px;margin-top:15px}.protected-form input{min-width:0;flex:1;padding:11px 13px;background:#0d1624;color:var(--text);border:1px solid var(--border);border-radius:8px}.protected-post label{display:block;margin-top:17px}.tag-cloud{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.tag-cloud a{padding:5px 12px;background:var(--panel-alt);border-radius:8px;border:1px solid var(--border)}.pagination{display:flex;align-items:center;gap:7px;justify-content:center;margin:40px 0 0}.page-numbers{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.pagination a{display:grid;place-items:center;min-width:34px;height:35px;border-radius:8px;border:1px solid var(--border);color:var(--muted);font-size:13px;padding:0 8px}.pagination a.selected,.pagination a:hover{border-color:var(--accent);color:#fff;background:var(--accent-soft)}.pagination .no-more-prev,.pagination .no-more-next{opacity:.3;pointer-events:none}.revenue-area:empty{display:none}.site-footer{background:#090e17;border-top:1px solid var(--border)}.footer-inner{display:flex;align-items:start;justify-content:space-between;gap:24px;padding-top:36px;padding-bottom:26px}.footer-brand{font-weight:850;letter-spacing:-.02em}.footer-inner p{max-width:450px;color:var(--quiet);font-size:13px;margin:7px 0 0}.footer-links{display:flex;gap:22px;flex-wrap:wrap;color:var(--muted);font-size:13px}.footer-bottom{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding-top:14px;padding-bottom:23px;border-top:1px solid #1e2b3c;font-size:12px;color:#7b8ca6}#back-to-top{position:fixed;right:22px;bottom:24px;border:1px solid var(--border);border-radius:12px;width:43px;height:43px;display:grid;place-items:center;background:var(--panel-alt);color:var(--text);box-shadow:var(--shadow);font-size:23px;z-index:50}#back-to-top:hover{color:var(--accent)}
/* On article pages, no duplicate hero/list headings. */
#tt-body-page .home-feed-heading,#tt-body-page .post-grid .post-card,#tt-body-page .listing-section{display:none}
#tt-body-page .home-feed{display:block}
/* Home lists are rendered through s_index_article_rep; category/search/tag via s_list_rep. */
#tt-body-category .home-feed,#tt-body-search .home-feed,#tt-body-tag .home-feed,#tt-body-archive .home-feed{display:none}
@media(max-width:1020px){.layout-shell{grid-template-columns:minmax(0,1fr) 245px;gap:22px}.brand-name{max-width:240px}.header-nav{gap:17px}.hero-orbit{opacity:.45}.home-hero{padding:37px 31px}}
@media(max-width:800px){.layout-shell{grid-template-columns:minmax(0,1fr);padding-top:23px}.sidebar{display:none}.header-nav{display:none}.menu-button{display:grid}.mobile-nav:not([hidden]){display:flex;flex-direction:column;padding:5px 24px 18px;border-top:1px solid var(--border)}.mobile-nav a{padding:12px 0;border-bottom:1px solid var(--border);font-size:14px;color:var(--muted)}.header-inner{min-height:66px}.brand-name{max-width:55vw;font-size:19px}.home-hero{min-height:260px;margin-bottom:29px}.hero-orbit{right:-30px}.footer-inner{flex-direction:column}}
@media(max-width:540px){.container{padding-left:16px;padding-right:16px}.post-grid{grid-template-columns:1fr;gap:16px}.home-hero{min-height:260px;padding:29px 24px}.hero-title{font-size:32px}.hero-summary{font-size:14px}.hero-orbit{width:145px;height:145px;right:-48px;opacity:.23}.section-heading h1,.section-heading h2{font-size:23px}.article-header{padding-top:5px}.article-header h1{font-size:29px}.article-body{font-size:16.5px;line-height:1.85}.article-body h2{font-size:23px}.card-media{aspect-ratio:16/9}.share-row{flex-direction:column;align-items:start}.footer-bottom{flex-direction:column;gap:6px}.search-form .primary-button{padding:10px 13px}.hero-actions{gap:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* NOX INFO v1.0.1 — Sticky right sidebar (desktop / tablet landscape)
   Keep a 16px gap under the 80px sticky header. Very tall sidebars
   scroll internally so that all widgets remain reachable. */
@media (min-width: 801px) {
  .layout-shell > .sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .layout-shell > .sidebar::-webkit-scrollbar { width: 6px; }
  .layout-shell > .sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
  }
}

/* NOX INFO v1.1 — in-article automatic related links.
   Uses Tistory's same-category server-rendered URLs as its source. */
.article-body .nox-inline-related {
  margin: 34px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--panel);
  line-height: 1.6;
}
.article-body .nox-inline-related__label {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.article-body .nox-inline-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-body .nox-inline-related__list li { margin: 0; }
.article-body .nox-inline-related__list li + li {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.article-body .nox-inline-related__list a {
  display: block;
  color: #e8efff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.article-body .nox-inline-related__list a::after {
  content: ' ↗';
  color: var(--accent);
  font-size: .88em;
}
.article-body .nox-inline-related__list a:hover,
.article-body .nox-inline-related__list a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
@media (max-width: 540px) {
  .article-body .nox-inline-related { padding: 17px 16px; margin: 26px 0; }
  .article-body .nox-inline-related__list a { font-size: 15px; }
}


/* =======================================
   NOX INFO - SPACE HEADING DESIGN
   우주 블로그 전용 H2 / H3
======================================= */

/* H2 : 행성 궤도형 소제목 */
body[data-theme="space"] .article-body h2 {
  position: relative;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.45;
  color: #F5F7FF;
  letter-spacing: -0.035em;

  margin: 48px 0 24px;
  padding: 2px 0 22px 58px;
  min-height: 48px;

  border: none;
}

/* 행성 궤도 아이콘 */
body[data-theme="space"] .article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cellipse cx='24' cy='24' rx='21' ry='12' transform='rotate(-35 24 24)' fill='none' stroke='%23909EFF' stroke-width='2'/%3E%3Ccircle cx='24' cy='24' r='7' fill='%23818CF8'/%3E%3Ccircle cx='39' cy='14' r='3.5' fill='%23A5E5FF'/%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* H2 아래 그라데이션 라인 */
body[data-theme="space"] .article-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;

  background: linear-gradient(
    90deg,
    #818CF8 0%,
    #5063AE 48%,
    transparent 100%
  );
}

/* H3 : 심플 화살표형 소제목 */
body[data-theme="space"] .article-body h3 {
  position: relative;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.5;
  color: #E8EEFC;

  margin: 34px 0 17px;
  padding-left: 23px;
  border: none;
}

/* H3 화살표 */
body[data-theme="space"] .article-body h3::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 8px;
  height: 8px;

  border-top: 2px solid #9AA8FF;
  border-right: 2px solid #9AA8FF;
  transform: rotate(45deg);
}

/* 모바일 최적화 */
@media (max-width: 540px) {
  body[data-theme="space"] .article-body h2 {
    font-size: 22px;
    padding-left: 49px;
    padding-bottom: 18px;
    margin: 36px 0 20px;
    min-height: 40px;
  }

  body[data-theme="space"] .article-body h2::before {
    width: 38px;
    height: 38px;
  }

  body[data-theme="space"] .article-body h3 {
    font-size: 19px;
    margin: 28px 0 14px;
  }
}



/* NOX INFO - 본문 이미지 기본 효과 */
.article-body img,
.tt_article_useless_p_margin img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;

  /* 기본 그림자 */
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(64, 80, 180, 0.12);

  outline: 1px solid rgba(129, 140, 248, 0.18);

  /* 부드러운 변화 */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    outline-color 0.3s ease;
}

/* 마우스를 올렸을 때 */
@media (hover: hover) and (pointer: fine) {
  .article-body img:hover,
  .tt_article_useless_p_margin img:hover {
    transform: translateY(-4px) scale(1.015);

    /* 그림자가 더 진해짐 */
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.65),
      0 6px 22px rgba(99, 102, 241, 0.35);

    /* 인디고 테두리 강조 */
    outline-color: rgba(129, 140, 248, 0.48);
  }
}



/* =====================================
   NOX INFO - 본문 이미지 위아래 여백
===================================== */

/* PC 이미지 간격 */
.article-body figure.imageblock,
.tt_article_useless_p_margin figure.imageblock {
  margin-top: 36px !important;
  margin-bottom: 40px !important;
}

/* 모바일 이미지 간격 */
@media (max-width: 768px) {
  .article-body figure.imageblock,
  .tt_article_useless_p_margin figure.imageblock {
    margin-top: 28px !important;
    margin-bottom: 32px !important;
  }
}


/* =====================================
   NOX INFO - 메인 페이지 간소화
   소개 배너 제거 + 게시글만 표시
===================================== */

/* 메인 상단 소개 배너 삭제 */
#tt-body-index .home-hero {
  display: none !important;
}

/* 최근 게시글 제목 영역 삭제 */
#tt-body-index .home-feed-heading {
  display: none !important;
}

/* 게시글 목록 위쪽 불필요한 여백 제거 */
#tt-body-index .home-feed {
  margin-top: 0;
  padding-top: 0;
}



/* =====================================
   NOX INFO - 인피드 광고 디자인
===================================== */

#nox-home-infeed {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  box-sizing: border-box;

  margin: 12px 0;
  padding: 20px;

  background: #151F31;
  border: 1px solid #283750;
  border-radius: 12px;
}

/* 광고 표시 */
#nox-home-infeed .nox-infeed-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
}

/* 애드센스 광고 영역 */
#nox-home-infeed .adsbygoogle {
  display: block;
  width: 100%;
}

/* 모바일 */
@media (max-width: 768px) {
  #nox-home-infeed {
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
  }
}


/* ========================================
   NOX INFO - SPACE ROUTE
   Original Previous / Next Navigation
======================================== */

.nox-route-nav {
  margin: 48px 0 36px;
}

/* 상단 제목 */
.nox-route-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #AEBBDA;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nox-route-signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #818CF8);
  box-shadow: 0 0 12px rgba(129,140,248,.55);
}

/* 전체 항로 컨테이너 */
.nox-route-track {
  display: grid;
  grid-template-columns:
    minmax(0,1fr) 90px minmax(0,1fr);
  align-items: stretch;
  background: linear-gradient(
    120deg,
    #17243A 0%,
    #10192A 50%,
    #17243A 100%
  );
  border: 1px solid #303C57;
  border-radius: 16px;
  overflow: hidden;
}

/* 이전글 / 다음글 링크 */
.nox-route-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 26px 20px;
  color: #F3F6FF;
  text-decoration: none;
  transition:
    background .3s ease,
    color .3s ease;
}

.nox-route-prev {
  grid-column: 1;
  align-items: flex-start;
}

.nox-route-next {
  grid-column: 3;
  align-items: flex-end;
  text-align: right;
}

/* 구분 레이블 */
.nox-route-meta {
  color: #A5B4FC;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* 게시글 제목 */
.nox-route-title {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 중앙 궤도 */
.nox-route-center {
  grid-column: 2;
  display: grid;
  place-items: center;
  position: relative;
  pointer-events: none;
}

.nox-route-orbit {
  width: 66px;
  height: 40px;
  position: relative;
  border: 2px solid #818CF8;
  border-radius: 50%;
  transform: rotate(-35deg);
}

/* 행성 */
.nox-route-orbit::before {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #818CF8;
  box-shadow: 0 0 20px rgba(129,140,248,.55);
}

/* 궤도를 도는 작은 별 */
.nox-route-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 0;
  top: 4px;
  border-radius: 50%;
  background: #B6E2FF;
}

/* 마우스 호버 효과 */
@media (hover:hover) {
  .nox-route-link:hover {
    background: rgba(129,140,248,.13);
    color: #FFFFFF;
  }

  .nox-route-link:hover .nox-route-title {
    color: #A5B4FC;
  }
}

/* 키보드 접근성 */
.nox-route-link:focus-visible {
  outline: 2px solid #A5B4FC;
  outline-offset: -3px;
}

/* 모바일 */
@media (max-width:640px) {

  .nox-route-track {
    grid-template-columns: 1fr;
  }

  .nox-route-center {
    display: none;
  }

  .nox-route-prev,
  .nox-route-next {
    grid-column: 1;
    align-items: flex-start;
    text-align: left;
  }

  .nox-route-next {
    border-top: 1px solid #303C57;
  }

  .nox-route-link {
    padding: 20px;
  }

  .nox-route-title {
    font-size: 15px;
  }
}


/* 태그 바로 아래 이전글·다음글 배치 */
.nox-route-nav {
  margin-top: 18px !important;
  margin-bottom: 24px !important;
}


/* NOX INFO - 이전글·다음글 위치 조정 */

.nox-route-nav {
  margin-top: 30px !important;
  margin-bottom: 18px !important;
}


/* ====================================
   NOX INFO - POPULAR POSTS
   가로형 인기 글 카드
==================================== */

.nox-popular-section {
  margin: 40px 0 30px;
}

.nox-popular-section[hidden] {
  display: none !important;
}

.nox-popular-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.nox-popular-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 22px;
  font-weight: 800;
  color: #F1F5FF;
}

.nox-popular-heading h2::before,
.nox-popular-heading h2::after {
  display: none !important;
}

.nox-popular-heading > span {
  font-size: 11px;
  color: #8998B8;
  letter-spacing: 1px;
}

/* 리스트 */
.nox-popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nox-popular-list > li {
  margin: 0;
  list-style: none;
  min-width: 0;
}

/* 가로형 카드 */
.nox-popular-card {
  display: flex;
  position: relative;
  align-items: stretch;
  min-height: 118px;
  overflow: hidden;

  background: #172237;
  border: 1px solid #303D58;
  border-radius: 14px;

  text-decoration: none;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

/* 왼쪽 썸네일 */
.nox-popular-thumb {
  position: relative;
  display: block;
  flex: 0 0 154px;
  width: 154px;
  min-height: 118px;
  background: #253453;
  overflow: hidden;
}

.nox-popular-thumb img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  outline: none;

  transition: transform .3s ease;
}

.nox-popular-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 118px;
  font-size: 32px;
  color: #A5B4FC;
}

.nox-popular-thumb img ~ .nox-popular-fallback {
  display: none;
}

/* 오른쪽 글 정보 */
.nox-popular-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;

  min-width: 0;
  flex: 1;
  padding: 17px 28px 17px 20px;
}

.nox-popular-category {
  color: #A5B4FC;
  font-size: 11px;
}

.nox-popular-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  color: #F2F5FF;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.nox-popular-date {
  color: #8EA0BC;
  font-size: 11px;
}

/* 오른쪽 화살표 */
.nox-popular-arrow {
  position: absolute;
  top: 14px;
  right: 15px;
  color: #8296B9;
  font-size: 17px;
}

/* 마우스 호버 */
@media (hover: hover) {
  .nox-popular-card:hover {
    transform: translateY(-3px);
    border-color: #818CF8;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
  }

  .nox-popular-card:hover img {
    transform: scale(1.05);
  }

  .nox-popular-card:hover .nox-popular-title {
    color: #C4CAFF;
  }
}

/* 키보드 접근성 */
.nox-popular-card:focus-visible {
  outline: 2px solid #A5B4FC;
  outline-offset: 3px;
}

/* 모바일 */
@media (max-width: 600px) {
  .nox-popular-section {
    margin: 32px 0 24px;
  }

  .nox-popular-heading h2 {
    font-size: 19px;
  }

  .nox-popular-thumb {
    flex-basis: 105px;
    width: 105px;
    min-height: 108px;
  }

  .nox-popular-content {
    padding: 12px 23px 12px 12px;
    gap: 6px;
  }

  .nox-popular-title {
    font-size: 14px;
  }

  .nox-popular-arrow {
    right: 9px;
    top: 9px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nox-popular-card,
  .nox-popular-thumb img {
    transition: none;
  }
}


/* 기본 카테고리 다른 글 숨기기 */
#tt-body-page .another_category {
  display: none !important;
}



/* NOX INFO - 인기 글 썸네일 축소 */

/* PC */
.nox-popular-thumb {
  flex: 0 0 110px;
  width: 110px;
  min-height: 90px;
}

.nox-popular-card {
  min-height: 90px;
}

.nox-popular-fallback {
  min-height: 90px;
}

/* 텍스트 간격 */
.nox-popular-content {
  padding: 12px 28px 12px 16px;
  gap: 5px;
}

/* 모바일 */
@media (max-width: 600px) {
  .nox-popular-thumb {
    flex-basis: 84px;
    width: 84px;
    min-height: 80px;
  }

  .nox-popular-card,
  .nox-popular-fallback {
    min-height: 80px;
  }

  .nox-popular-content {
    padding: 10px 22px 10px 12px;
  }
}



.nox-popular-list[hidden] {
  display: none !important;
}


/* 인기 글 제목 최대 2줄 표시 */
.nox-popular-title {
  white-space: normal !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.55;
}


/* NOX INFO - 인기 글 제목 2줄 */
.nox-popular-section .nox-popular-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;

  white-space: normal !important;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.55;
  overflow-wrap: anywhere;
}

