/* 터미널ON 상단·하단 */
.tmc-header, .tmc-drawer, .tmc-footer, .tmc-overlay {
	--c-ink: #10182B; --c-ink3: #26314F; --c-lime: #CFFF3E; --c-paper: #FAF9F4; --c-muted: #9AA4BB;
	font-family: "Gowun Batang",-apple-system,"Apple SD Gothic Neo","Malgun Gothic",serif;
	box-sizing: border-box; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.tmc-header *, .tmc-drawer *, .tmc-footer * { box-sizing: border-box; }
.tmc-header a, .tmc-drawer a, .tmc-footer a { text-decoration: none; }
.tmc-header p, .tmc-drawer p, .tmc-footer p { margin: 0; }
.tmc-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 상단 */
.tmc-header { position: sticky; top: 0; z-index: 9990; background: var(--c-ink); border-bottom: 1px solid var(--c-ink3); }
.admin-bar .tmc-header { top: 32px; }
.tmc-header .tmc-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.tmc-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff !important; flex: none; }
.tmc-mark { width: 32px; height: 32px; display: block; }
.tmc-name { font-family: "Gowun Batang", serif; font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1; }
.tmc-nav { display: flex; gap: 2px; margin-left: auto; }
.tmc-nav a { color: #C2C9D8 !important; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.tmc-nav a:hover { color: #fff !important; background: rgba(255,255,255,.06); }
.tmc-nav a[aria-current="page"] { color: var(--c-lime) !important; }
.tmc-burger { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--c-ink3); background: transparent; cursor: pointer; display: grid; place-content: center; gap: 5px; padding: 0; }
.tmc-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.tmc-burger:hover { border-color: var(--c-lime); }
.tmc-burger:hover span { background: var(--c-lime); }

/* 펼침 메뉴 */
.tmc-overlay { position: fixed; inset: 0; background: rgba(8,12,24,.55); z-index: 9998; }
.tmc-overlay[hidden] { display: none; }
.tmc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--c-ink); color: #EEF1F7; z-index: 9999; padding: 18px 20px 28px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
.tmc-drawer.open { transform: none; visibility: visible; }
.tmc-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tmc-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--c-ink3); background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.tmc-cta { display: block; text-align: center; background: var(--c-lime); color: var(--c-ink) !important; font-weight: 800; border-radius: 12px; padding: 13px; margin-bottom: 22px; }
.tmc-label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; color: var(--c-muted); margin: 0 0 8px !important; }
.tmc-dnav { display: flex; flex-direction: column; margin-bottom: 22px; }
.tmc-dnav a { color: #fff !important; font-size: 17px; font-weight: 700; padding: 12px 2px; border-bottom: 1px solid var(--c-ink3); }
.tmc-dnav a:hover { color: var(--c-lime) !important; }
.tmc-book { display: flex; flex-direction: column; gap: 8px; }
.tmc-book a { color: #EEF1F7 !important; border: 1.5px solid #EEF1F7; border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 700; }
.tmc-book a:hover { background: #EEF1F7; color: var(--c-ink) !important; }
.tmc-small { font-size: 12px; color: var(--c-muted); margin-top: 18px !important; }
body.tmc-lock { overflow: hidden; }

/* 하단 */
.tmc-footer { background: var(--c-ink); color: #C2C9D8; padding: 48px 0 28px; margin-top: 64px; }
.tmc-f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--c-ink3); }
.tmc-f-brand p { font-size: 14px; margin-top: 12px !important; max-width: 280px; line-height: 1.6; }
.tmc-f-col { display: flex; flex-direction: column; gap: 8px; }
.tmc-f-h { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; color: var(--c-muted); margin-bottom: 4px !important; }
.tmc-f-col a { color: #E9ECF3 !important; font-size: 14px; }
.tmc-f-col a:hover { color: var(--c-lime) !important; }
.tmc-f-bottom { padding-top: 20px; }
.tmc-f-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.tmc-f-legal a { color: #fff !important; font-size: 13px; font-weight: 700; }
.tmc-f-legal a:hover { color: var(--c-lime) !important; }
.tmc-f-note { font-size: 12px; line-height: 1.7; color: var(--c-muted); max-width: 760px; }
.tmc-f-copy { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: #6F7891; margin-top: 12px !important; }

/* 메인 페이지에서는 테마의 페이지 제목과 위아래 여백을 숨김 */
body.tmon-chrome:has(#tmon-home) :is(.entry-title, .page-title, .wp-block-post-title, .entry-header) { display: none !important; }
body.tmon-chrome:has(#tmon-home) .tmc-footer { margin-top: 0; }

@media (max-width: 960px) {
	.tmc-nav { display: none; }
	.tmc-burger { margin-left: auto; }
}
@media (max-width: 782px) {
	.admin-bar .tmc-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .tmc-header { top: 0; }
	.tmc-header .tmc-in { height: 58px; padding: 0 16px; }
	.tmc-in { padding: 0 16px; }
	.tmc-f-top { grid-template-columns: 1fr 1fr; gap: 24px; }
	.tmc-f-brand { grid-column: 1 / -1; }
}
#tmh-form, #terminals, #popular, #changes, #guide, #compare, #official { scroll-margin-top: 80px; }
@media (max-width: 600px) {
	.tmc-name { font-size: 21px; }
	.tmc-dnav a { font-size: 18px; }
	.tmc-book a { font-size: 15px; }
	.tmc-f-brand p, .tmc-f-col a { font-size: 15px; }
	.tmc-f-legal a { font-size: 14px; }
	.tmc-f-note { font-size: 13px; }
}
/* 메인 페이지: 테마가 본문 위에 넣는 여백 없애기 */
body.tmon-chrome:has(#tmon-home) :is(.wp-site-blocks, main, .site-main, .site-content, #content, #primary, .content-area, article, .entry-content, .wp-block-post-content, .wp-block-group):has(#tmon-home) { padding-top: 0 !important; margin-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
body.tmon-chrome:has(#tmon-home) .wp-site-blocks > * { margin-block-start: 0 !important; }
body.tmon-chrome:has(#tmon-home) main > :is(.wp-block-group, .wp-block-template-part, header):not(:has(#tmon-home)) { display: none !important; }
/* 1.3.1 글자 한 단계 더 + 좌우 여유 */
.tmc-nav a { font-size: 15px; }
.tmc-name { font-size: 21px; }
.tmc-f-brand p, .tmc-f-col a { font-size: 15px; }
.tmc-f-legal a { font-size: 14px; }
.tmc-f-note { font-size: 13px; }
@media (max-width: 600px) {
	.tmc-in, .tmc-header .tmc-in { padding: 0 18px; }
	.tmc-name { font-size: 22px; }
	.tmc-dnav a { font-size: 19px; }
	.tmc-book a { font-size: 16px; }
	.tmc-cta { font-size: 17px; }
	.tmc-f-brand p, .tmc-f-col a { font-size: 16px; }
	.tmc-f-legal a { font-size: 15px; }
	.tmc-f-note { font-size: 14px; }
}
