/*
Theme Name: PressLearn Blank
Theme URI: https://presslearn.co.kr
Author: PressLearn
Author URI: https://presslearn.co.kr
Description: PressLearn Support 전용 최소 테마입니다. 역할에 맞는 상단 내비게이션과 본문만 보여 줍니다.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: presslearn-blank
Tags: one-column, custom-logo, block-patterns
*/

:root {
	--plb-content: 800px;
	--plb-wide: 1080px;
	--plb-gutter: 20px;
	--plb-tnb-height: 64px;
	--plb-text: #16181d;
	--plb-text-soft: #4b5563;
	--plb-muted: #6b7280;
	--plb-border: #e6e8ec;
	--plb-link: #2f6fed;
	--plb-link-dark: #2154c0;
	--plb-page: #f6f7f9;
	--plb-surface: #ffffff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--plb-page);
	color: var(--plb-text);
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	word-break: keep-all;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--plb-link);
}

a:hover {
	color: var(--plb-link-dark);
}

/* ------------------------------------------------------------------
   레이아웃
   ------------------------------------------------------------------ */

.plb-site {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

/* 상단 내비게이션. 안쪽 폭은 본문 칼럼과 정확히 같은 선에 맞춥니다. */
.plb-tnb {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--plb-border);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
}

.admin-bar .plb-tnb {
	top: 32px;
}

.plb-tnb__inner {
	display: flex;
	max-width: calc(var(--plb-content) + var(--plb-gutter) * 2);
	min-height: var(--plb-tnb-height);
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 auto;
	padding: 0 var(--plb-gutter);
}

.plb-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	color: var(--plb-text);
	text-decoration: none;
}

.plb-brand:hover {
	color: var(--plb-text);
	opacity: 0.75;
}

.plb-brand__logo {
	display: block;
	max-height: 30px;
	width: auto;
}

.plb-brand__name {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.plb-nav {
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.plb-nav::-webkit-scrollbar {
	display: none;
}

.plb-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.plb-nav__list li {
	flex: 0 0 auto;
	margin: 0;
}

.plb-nav__list a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--plb-muted);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.plb-nav__list a:hover {
	background: #eef0f3;
	color: var(--plb-text);
}

.plb-nav__list .current-menu-item > a,
.plb-nav__list .current_page_item > a,
.plb-nav__list .is-current > a {
	background: #eef3fe;
	color: var(--plb-link);
}

.plb-nav__item--muted a {
	color: #a2a8b3;
	font-weight: 500;
}

/* 본문 */
.plb-main {
	flex: 1 1 auto;
	width: 100%;
	padding: 48px var(--plb-gutter) 88px;
}

.plb-container {
	max-width: var(--plb-wide);
	margin: 0 auto;
}

/* 넓은 정렬이 아닌 요소는 읽기 좋은 폭으로 좁힙니다. */
.plb-container > *:not(.alignwide):not(.alignfull) {
	max-width: var(--plb-content);
	margin-right: auto;
	margin-left: auto;
}

.plb-container > .alignwide {
	max-width: var(--plb-wide);
	margin-right: auto;
	margin-left: auto;
}

.plb-container > .alignfull {
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.plb-title {
	margin: 0 0 28px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.03em;
}

/* 일반 블록 콘텐츠. 플러그인 화면은 자체 스타일을 쓰므로 직계 자식만 다듬습니다. */
.plb-container > h2,
.plb-container > h3,
.plb-container > h4 {
	margin: 2em 0 0.6em;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.plb-container > h2:first-child,
.plb-container > h3:first-child,
.plb-container > h4:first-child {
	margin-top: 0;
}

.plb-container > p {
	margin: 0 0 1.1em;
	color: var(--plb-text-soft);
}

.plb-container > figure {
	margin: 1.6em 0;
}

/* ------------------------------------------------------------------
   404 / 빈 화면
   ------------------------------------------------------------------ */

.plb-empty {
	padding: 72px 24px;
	border: 1px solid var(--plb-border);
	border-radius: 16px;
	background: var(--plb-surface);
	text-align: center;
}

.plb-empty h1 {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.plb-empty p {
	margin: 0 0 24px;
	color: var(--plb-muted);
}

.plb-home-link {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 10px;
	background: var(--plb-link);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(47, 111, 237, 0.24);
}

.plb-home-link:hover {
	background: var(--plb-link-dark);
	color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------------------
   반응형
   ------------------------------------------------------------------ */

@media (max-width: 782px) {
	.admin-bar .plb-tnb {
		top: 46px;
	}
}

@media (max-width: 600px) {
	:root {
		--plb-gutter: 16px;
		--plb-tnb-height: 56px;
	}

	.plb-tnb__inner {
		gap: 10px;
	}

	.plb-brand__name {
		font-size: 16px;
	}

	.plb-brand__logo {
		max-height: 26px;
	}

	.plb-nav__list a {
		padding: 7px 9px;
		font-size: 14px;
	}

	.plb-main {
		padding: 28px var(--plb-gutter) 56px;
	}

	.plb-title {
		font-size: 24px;
	}

	.plb-empty {
		padding: 48px 20px;
	}
}
