/*
Theme Name: Tony's Cabin
Template: twentytwentyfive
Description: 토니의 오두막 — 편안하지만 전문적인 IT 학습 공간을 위한 Twenty Twenty-Five 차일드 테마.
Version: 1.1.20
Text Domain: tonys-cabin
*/

:root {
	--tc-radius: 18px;
	--tc-shadow: 0 1px 2px rgba(19, 38, 28, .06), 0 8px 28px rgba(19, 38, 28, .08);
	--tc-shadow-hover: 0 2px 4px rgba(19, 38, 28, .08), 0 16px 40px rgba(19, 38, 28, .14);
}

body { word-break: keep-all; -webkit-font-smoothing: antialiased; }

/* ---------- Header ---------- */
.tc-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 253, 247, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .tc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tc-header { top: 46px; } }
.tc-brand { gap: 12px !important; }
.tc-brand .wp-block-site-logo img { border-radius: 50%; }
.tc-brand-name { margin: 0; line-height: 1.2; }
.tc-brand-name strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; color: var(--wp--preset--color--forest); letter-spacing: .02em; }
.tc-brand-name span { display: block; font-size: .78rem; color: var(--wp--preset--color--muted); letter-spacing: .08em; }
.tc-brand-name a { text-decoration: none; }
.tc-header .wp-block-navigation { font-size: 15px; font-weight: 500; gap: 1.6em; }
.tc-header .wp-block-navigation a { text-decoration: none; }
.tc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }
.tc-header .wp-block-button__link { padding: .55em 1.2em; font-size: 14px; }

/* ---------- Shared bits ---------- */
.tc-eyebrow {
	font-size: 13px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--wp--preset--color--gold) !important;
}
.tc-eyebrow a { color: inherit !important; text-decoration: none; }
.tc-lead { font-size: 1.12rem; color: var(--wp--preset--color--muted); }
.tc-section { padding-block: clamp(64px, 9vw, 112px) !important; }
.tc-btn-ghost .wp-block-button__link {
	background: transparent !important; border: 1.5px solid currentColor; color: inherit !important;
}
.tc-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .12) !important; }
.tc-btn-gold .wp-block-button__link { background: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--deep) !important; }
.tc-btn-gold .wp-block-button__link:hover { background: var(--wp--preset--color--cream) !important; }

/* ---------- Hero ---------- */
.tc-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(90deg, rgba(19, 38, 28, .92) 0%, rgba(19, 38, 28, .72) 42%, rgba(19, 38, 28, .12) 100%) !important;
}
.tc-hero h1 { color: #fff; margin-top: .3em; }
.tc-hero .tc-lead { color: rgba(247, 243, 232, .86); max-width: 34em; }
.tc-hero-logo img { border-radius: 50%; box-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.tc-hero .tc-eyebrow { color: #E2B866 !important; }
.tc-hero-stats { gap: 2.4em !important; margin-top: 2.6em !important; }
.tc-hero-stats p { margin: 0; color: rgba(247, 243, 232, .78); font-size: 14px; line-height: 1.4; }
.tc-hero-stats strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; color: #fff; }
@media (max-width: 781px) {
	.tc-hero .wp-block-cover__background { background: rgba(19, 38, 28, .78) !important; }
}

/* ---------- Cards ---------- */
.tc-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--tc-radius);
	padding: 32px !important; box-shadow: var(--tc-shadow); height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}
.tc-card:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow-hover); }
.tc-card h3 { margin-top: .4em; }
.tc-card .tc-num {
	font-family: var(--wp--preset--font-family--serif); font-size: 2rem; font-weight: 700;
	color: var(--wp--preset--color--gold); margin: 0; line-height: 1;
}
.tc-card .tc-more a { font-weight: 600; text-decoration: none; }
.tc-card .tc-more a::after { content: " →"; }
.wp-block-columns.tc-cards { gap: 28px; }
.wp-block-columns.tc-cards > .wp-block-column { display: flex; }
.wp-block-columns.tc-cards > .wp-block-column > .tc-card { width: 100%; box-sizing: border-box; }

/* Post cards in query loops */
.tc-posts .wp-block-post-template { gap: 28px; }
.tc-post-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--tc-radius);
	overflow: hidden; box-shadow: var(--tc-shadow); height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}
.tc-post-card:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow-hover); }
.tc-post-card .wp-block-post-featured-image { margin: 0; }
.tc-post-card .wp-block-post-featured-image img { border-radius: 0; }
.tc-post-card-body { padding: 24px 26px 26px !important; }
.tc-post-card .wp-block-post-title { font-size: 1.2rem; margin: .35em 0 .5em; }
.tc-post-card .wp-block-post-title a { text-decoration: none; }
.tc-post-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: 15px; }
.tc-post-card .wp-block-post-date { font-size: 13px; color: var(--wp--preset--color--muted); }

/* ---------- Tracks (chips) ---------- */
.tc-chips { gap: 12px !important; }
.tc-chips p {
	margin: 0; padding: .55em 1.15em; border-radius: 999px; font-size: 15px; font-weight: 500;
	background: #fff; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--forest);
}
.tc-chips p.tc-chip-strong { background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); color: var(--wp--preset--color--cream); }

/* ---------- Video ---------- */
.tc-video .wp-block-embed__wrapper, .tc-video iframe { border-radius: var(--tc-radius); overflow: hidden; }
.tc-video { box-shadow: var(--tc-shadow-hover); border-radius: var(--tc-radius); margin: 0; }
.tc-meta { font-size: 14px !important; color: var(--wp--preset--color--muted); }
.tc-badge {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
	padding: .25em .8em; border-radius: 999px; background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--wood); border: 1px solid var(--wp--preset--color--line);
}
.tc-badge-member { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--cream); border-color: var(--wp--preset--color--forest); }

/* ---------- Lab band ---------- */
.tc-lab { background: radial-gradient(1200px 500px at 85% 0%, #2B4B37 0%, var(--wp--preset--color--deep) 60%); }
.tc-lab h2, .tc-lab h3 { color: #fff; }
.tc-lab p, .tc-lab li { color: rgba(247, 243, 232, .82); }
.tc-step {
	border: 1px solid rgba(247, 243, 232, .16); border-radius: var(--tc-radius);
	padding: 26px !important; background: rgba(255, 255, 255, .04); height: 100%;
}
.tc-step .tc-num { color: #E2B866; font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; font-weight: 700; margin: 0; }
.tc-terminal {
	font-family: var(--wp--preset--font-family--mono) !important; font-size: 13.5px !important; line-height: 1.8 !important;
	background: #0E1A13 !important; color: #CFE3D2 !important; border: 1px solid rgba(226, 184, 102, .25);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

/* ---------- Quote / closing ---------- */
.tc-quote { text-align: center; }
.tc-quote .tc-script { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--wp--preset--color--forest); margin: 0; }

/* ---------- Pricing ---------- */
.tc-plan { position: relative; }
.tc-plan-featured { border: 2px solid var(--wp--preset--color--gold); }
.tc-price { font-family: var(--wp--preset--font-family--serif); font-size: 2.2rem !important; font-weight: 700; color: var(--wp--preset--color--forest); margin: .2em 0 !important; }
.tc-checklist { list-style: none; padding-left: 0; }
.tc-checklist li { padding-left: 1.6em; position: relative; margin: .45em 0; }
.tc-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--gold); font-weight: 700; }

/* ---------- Page hero (inner pages) ---------- */
.tc-page-hero { background: var(--wp--preset--color--cream); border-bottom: 1px solid var(--wp--preset--color--line); }
.tc-callout {
	background: var(--wp--preset--color--cream); border-left: 4px solid var(--wp--preset--color--gold);
	border-radius: 0 12px 12px 0; padding: 18px 22px !important;
}
.wp-block-categories.tc-cat-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wp-block-categories.tc-cat-list li a {
	display: inline-block; padding: .4em 1em; border-radius: 999px; background: #fff;
	border: 1px solid var(--wp--preset--color--line); text-decoration: none; font-size: 15px;
}
.wp-block-categories.tc-cat-list li a:hover { border-color: var(--wp--preset--color--gold); }

/* ---------- Footer ---------- */
.tc-footer { background: var(--wp--preset--color--deep); }
.tc-footer, .tc-footer p { color: rgba(247, 243, 232, .72); font-size: 15px; }
.tc-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; }
.tc-footer a { color: rgba(247, 243, 232, .9); text-decoration: none; }
.tc-footer a:hover { color: #E2B866; }
.tc-footer ul { list-style: none; padding: 0; margin: 0; }
.tc-footer li { margin: .35em 0; }
.tc-footer-logo img { border-radius: 50%; }
.tc-footer-bottom { border-top: 1px solid rgba(247, 243, 232, .12); font-size: 13px !important; letter-spacing: .06em; }

/* Ultimate Member forms blend in */
.um .um-button, .um input[type=submit].um-button { background: var(--wp--preset--color--forest) !important; border-radius: 999px !important; }
.um a.um-link-alt { color: var(--wp--preset--color--forest) !important; }

@media (prefers-reduced-motion: reduce) {
	.tc-card, .tc-post-card { transition: none; }
	.tc-card:hover, .tc-post-card:hover { transform: none; }
}

/* ---------- Lab topology cards ---------- */
.tc-topology { margin: 0; }
.tc-topology img { border-radius: 14px; border: 1px solid var(--wp--preset--color--line); background: #FBF9F2; width: 100%; height: auto; }
.tc-topology a { display: block; }
.tc-details { margin-top: 1em; border-top: 1px solid var(--wp--preset--color--line); padding-top: .8em; }
.tc-details summary { cursor: pointer; font-weight: 600; color: var(--wp--preset--color--forest); }
.tc-details summary:hover { color: var(--wp--preset--color--gold); }
.tc-details pre { margin-top: 1em; font-size: 12.5px; }

/* ---------- 도토리 충전 ---------- */
.tc-dotori-balance { font-size: 1.05rem; color: var(--wp--preset--color--muted); }
.tc-dotori-balance strong { font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; color: var(--wp--preset--color--wood); margin: 0 .15em; }
.tc-dotori-card { text-align: center; }
.tc-dotori-count { font-family: var(--wp--preset--font-family--serif); font-size: 2.2rem !important; font-weight: 700; color: var(--wp--preset--color--wood); margin: 0 !important; line-height: 1.2; }
.tc-dotori-count span { font-size: 1rem; margin-left: .15em; color: var(--wp--preset--color--muted); }
.tc-dotori-price { font-size: 1.05rem; color: var(--wp--preset--color--muted); margin: .4em 0 1em !important; }
.tc-dotori-card .wp-block-buttons { justify-content: center; }
.tc-dotori-notes { max-width: 640px; margin: 32px auto 0 !important; font-size: 14px; color: var(--wp--preset--color--muted); }

/* ---------- 로고 옆 떨어진 도토리 ---------- */
.tc-acorns { display: inline-flex; align-items: flex-end; align-self: flex-end; gap: 1px; margin-left: -2px; padding-bottom: 2px; pointer-events: none; }
.tc-acorns img { display: block; height: auto; filter: drop-shadow(0 1px 1px rgba(19, 38, 28, .18)); }
.tc-acorns img:first-child { width: 22px; transform: rotate(-22deg); }
.tc-acorns img:last-child { width: 17px; transform: rotate(28deg) translateY(1px); }
@media (max-width: 420px) { .tc-acorns { display: none; } }

/* ---------- 도토리 충전 그림 ---------- */
.tc-dotori-hero { max-width: 720px; margin-top: 28px !important; margin-bottom: 8px !important; }
.tc-dotori-hero img { border-radius: var(--tc-radius); box-shadow: var(--tc-shadow-hover); width: 100%; height: auto; }
.tc-dotori-icon { display: inline-block; height: 40px; width: auto; vertical-align: -6px; margin-right: 6px; transform: rotate(-12deg); filter: drop-shadow(0 2px 2px rgba(19, 38, 28, .18)); }
.tc-dotori-bonus { display: inline-block; margin-left: .3em; padding: .05em .6em; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--deep); }

/* ---------- 유료 글 잠금 안내 ---------- */
.tc-paywall {
	margin: 2.5em 0 1em; padding: 28px 30px; border-radius: var(--tc-radius); text-align: center;
	background: linear-gradient(180deg, rgba(247, 243, 232, 0) 0%, var(--wp--preset--color--cream) 40%);
	border: 1px solid var(--wp--preset--color--line);
}
.tc-paywall-title { font-family: var(--wp--preset--font-family--serif); font-size: 1.2rem; font-weight: 700; color: var(--wp--preset--color--forest); }
.tc-paywall-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1em; }
.tc-paywall-login { font-weight: 600; }
.tc-price .tc-dotori-icon { height: 34px; vertical-align: -4px; }
.tc-price-unit { font-family: var(--wp--preset--font-family--sans); font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--muted); margin-left: .35em; }
.tc-resident-status { font-size: 14px; color: var(--wp--preset--color--muted); margin: .4em 0 .8em; }
.tc-resident-status.is-active { color: var(--wp--preset--color--forest); font-weight: 700; }

/* ---------- 상단 메뉴 도토리 잔액 ---------- */
.tc-header-dotori {
	display: inline-flex; align-items: center; gap: 5px; padding: .35em .8em; border-radius: 999px;
	background: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--wood); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.tc-header-dotori:hover { border-color: var(--wp--preset--color--gold); }
.tc-header-dotori img { width: 15px; height: auto; transform: rotate(-12deg); }
.tc-header-dotori strong { font-family: var(--wp--preset--font-family--serif); font-size: 15px; }
.tc-header-badge { font-size: 11px; font-weight: 700; padding: .1em .5em; border-radius: 999px; background: var(--wp--preset--color--forest); color: var(--wp--preset--color--cream); }
.tc-header p:has(> .tc-header-dotori) { margin: 0; }

/* ---------- 상단 '내 계정': 사람 아이콘 옆에 프로필 사진 ---------- */
.tc-header .wc-block-customer-account__visual { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.tc-header .wc-block-customer-account__visual svg { width: 1.2em; height: 1.2em; flex: none; }
.tc-header .wc-block-customer-account__visual img.avatar {
	width: 28px !important; height: 28px !important; border-radius: 50%; object-fit: cover;
	border: 1.5px solid var(--wp--preset--color--line); flex: none; margin: 0;
}
.tc-header .wc-block-customer-account__link { padding: .3em .4em; }

/* ---------- 유료 글: 도토리로 열기 ---------- */
.tc-paywall-actions { margin-bottom: .4em; }
.tc-paywall-actions button.wp-block-button__link { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.tc-paywall-balance { font-size: 14px; color: var(--wp--preset--color--muted); }
.tc-paywall-sub { font-size: 14px; color: var(--wp--preset--color--muted); margin-top: 1em; }
.tc-paywall-alert { color: #9A3B2E; font-weight: 600; }
.tc-paywall-unlocked { background: var(--wp--preset--color--cream); border-left: 4px solid var(--wp--preset--color--gold); border-radius: 0 12px 12px 0; padding: 12px 18px; font-weight: 600; color: var(--wp--preset--color--wood); }

/* ---------- 자료실 ---------- */
.wp-block-columns.tc-cards:has(> .wp-block-column:nth-child(4)) { gap: 22px; }
.tc-res-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: .2em 0 .8em !important; }
.tc-res-price { display: inline-block; padding: .2em .75em; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--deep); }
.tc-res-price.is-free { background: var(--wp--preset--color--moss); color: #fff; }
.tc-res-type, .tc-res-file { font-size: 13px; color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--mono); }
.tc-res-quota { display: inline-block; padding: .4em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-size: 14px; color: var(--wp--preset--color--muted); }
.tc-res-quota strong { color: var(--wp--preset--color--forest); }
.tc-res-box { margin: 2.5em 0 1em; padding: 26px 28px; border-radius: var(--tc-radius); background: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--line); }
.tc-res-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.tc-res-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0; }
.tc-res-actions button.wp-block-button__link { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.tc-res-note { font-size: 14px; color: var(--wp--preset--color--muted); }
.tc-res-disabled { padding: .6em 1.2em; border-radius: 999px; background: var(--wp--preset--color--line); color: var(--wp--preset--color--muted); font-weight: 600; }
.tc-res-msg { font-weight: 600; margin: 0 0 12px; }
.tc-res-msg.is-ok { color: var(--wp--preset--color--forest); }
.tc-res-msg.is-err { color: #9A3B2E; }
.tc-res-list .wp-block-post-title { font-size: 1.15rem; }
.tc-lab-reset { margin-top: 14px !important; padding-top: 14px; border-top: 1px dashed var(--wp--preset--color--line); }
.tc-lab-reset-btn { background: transparent; border: 1.5px solid var(--wp--preset--color--wood); color: var(--wp--preset--color--wood); border-radius: 999px; padding: .45em 1.1em; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tc-lab-reset-btn:hover { background: var(--wp--preset--color--cream); }

/* ---------- 실습·자료 상자: 버튼 줄 간격과 크기 맞춤 ---------- */
.tc-res-box .tc-res-actions + .tc-res-actions { margin-top: 14px; }
.tc-res-box .tc-res-actions .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-width: 150px;
	font-size: 15px; line-height: 1.2; padding: .8em 1.6em;
}
.tc-lab-start { background: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--deep) !important; }
.tc-lab-start:hover { background: var(--wp--preset--color--forest) !important; color: var(--wp--preset--color--cream) !important; }
.tc-lab-hint { margin-top: 14px !important; }

/* ---------- 실습 상세: 그 실습에만 집중 ---------- */
.tc-lab-back { margin-top: 0 !important; margin-bottom: 18px !important; font-size: 14px; }
.tc-lab-back a { text-decoration: none; color: var(--wp--preset--color--muted); }
.tc-lab-back a:hover { color: var(--wp--preset--color--gold); }
.tc-lab-single .wp-block-post-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tc-lab-cover img { border-radius: var(--tc-radius); }
.tc-lab-missions { margin: 2.5em 0 0; padding: 26px 30px; border-radius: var(--tc-radius); background: #fff; border: 1px solid var(--wp--preset--color--line); box-shadow: var(--tc-shadow); }
.tc-lab-missions h2 { font-size: 1.3rem; margin: 0 0 .6em; }
.tc-lab-missions ol { margin: 0; padding-left: 0; list-style: none; counter-reset: tc-mission; }
.tc-lab-missions li { counter-increment: tc-mission; position: relative; padding: .55em 0 .55em 2.6em; border-top: 1px dashed var(--wp--preset--color--line); }
.tc-lab-missions li:first-child { border-top: 0; }
.tc-lab-missions li::before { content: counter(tc-mission); position: absolute; left: 0; top: .5em; width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--forest); color: var(--wp--preset--color--cream); font-size: 13px; font-weight: 700; }
.tc-lab-missions code { font-family: var(--wp--preset--font-family--mono); font-size: .9em; background: var(--wp--preset--color--cream); padding: .1em .4em; border-radius: 6px; }

/* ---------- 댓글 삭제 ---------- */
.tc-comment-delete { margin: .3em 0 0; }
.tc-comment-delete button { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--wp--preset--color--muted); text-decoration: underline; cursor: pointer; }
.tc-comment-delete button:hover { color: #9A3B2E; }
.tc-comment-notice { padding: 10px 16px; border-radius: 10px; background: var(--wp--preset--color--cream); border-left: 4px solid var(--wp--preset--color--gold); font-weight: 600; }
.tc-comment-notice.is-err { border-left-color: #9A3B2E; color: #9A3B2E; }

/* ---------- 실습 검색 ---------- */
.tc-lab-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 8px 0 6px; padding: 14px; border-radius: var(--tc-radius); background: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--line); }
.tc-lab-search input[type=search], .tc-lab-search select { font: inherit; font-size: 15px; padding: .65em .9em; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--ink); }
.tc-lab-search input[type=search] { flex: 1 1 260px; min-width: 0; }
.tc-lab-search select { flex: 0 1 200px; }
.tc-lab-search button.wp-block-button__link { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; padding: .65em 1.6em; }
.tc-lab-search-result { font-size: 14px; color: var(--wp--preset--color--muted); margin-top: 8px !important; margin-bottom: 18px !important; }
.tc-lab-search-result a { font-weight: 600; }

/* ---------- 자료실 목록 (사이드바 + 가로형 목록) ---------- */
.tc-resx { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; }
.tc-resx-side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 96px; }
.tc-resx-widget { background: #fff; border: 1px solid var(--wp--preset--color--line); border-top: 3px solid var(--wp--preset--color--forest); border-radius: 0 0 14px 14px; padding: 18px 18px 16px; }
.tc-resx-wtitle { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--wp--preset--color--line); font-family: var(--wp--preset--font-family--sans); font-size: 14px !important; font-weight: 700; letter-spacing: .06em; color: var(--wp--preset--color--ink); }
.tc-resx-wtitle .tc-ico { color: var(--wp--preset--color--moss); }
.tc-ico { display: inline-block; vertical-align: -2px; }

.tc-resx-slide { display: block; text-decoration: none; color: inherit; }
.tc-resx-slide[hidden] { display: none; }
.tc-resx-slide-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--wp--preset--color--cream); }
.tc-resx-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-resx-slide-title { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; font-weight: 600; text-align: center; }
.tc-resx-slide:hover .tc-resx-slide-title { color: var(--wp--preset--color--forest); text-decoration: underline; }
.tc-resx-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--wp--preset--color--muted); }
.tc-resx-count { margin-right: auto; }
.tc-resx-nav button { font: inherit; font-size: 12px; padding: 3px 9px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff; color: var(--wp--preset--color--muted); cursor: pointer; }
.tc-resx-nav button:hover { border-color: var(--wp--preset--color--forest); color: var(--wp--preset--color--forest); }

.tc-resx-cats, .tc-resx-cats ul, .tc-resx-random { list-style: none; margin: 0; padding: 0; }
.tc-resx-cats ul { padding-left: 14px; }
.tc-resx-cats a { display: flex; justify-content: space-between; padding: 6px 4px; border-radius: 6px; font-size: 14px; text-decoration: none; color: var(--wp--preset--color--ink); }
.tc-resx-cats a span { color: var(--wp--preset--color--muted); font-size: 12px; }
.tc-resx-cats a:hover, .tc-resx-cats a[aria-current] { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--forest); font-weight: 600; }
.tc-resx-random li { padding: 10px 0; border-bottom: 1px dashed var(--wp--preset--color--line); }
.tc-resx-random li:last-child { border-bottom: 0; padding-bottom: 0; }
.tc-resx-random a { display: block; font-size: 14px; line-height: 1.45; text-decoration: none; color: var(--wp--preset--color--ink); }
.tc-resx-random a:hover { color: var(--wp--preset--color--forest); text-decoration: underline; }
.tc-resx-random .tc-resx-meta { margin-top: 4px; }

.tc-resx-main { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 6px 24px; }
.tc-resx-item { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.tc-resx-item:last-of-type { border-bottom: 0; }
.tc-resx-title { margin: 0 0 8px; font-size: 1.2rem !important; line-height: 1.45; }
.tc-resx-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.tc-resx-title a:hover { color: var(--wp--preset--color--forest); text-decoration: underline; }
.tc-resx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 10px; font-size: 12.5px; color: var(--wp--preset--color--muted); }
.tc-resx-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.tc-resx-views.is-hot { color: #C0392B; font-weight: 700; }
.tc-resx-author { text-transform: none; font-weight: 600; color: var(--wp--preset--color--wood); }
.tc-resx-excerpt { margin: 0 0 14px; font-size: 14.5px; line-height: 1.75; color: var(--wp--preset--color--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tc-resx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tc-resx-foot .tc-res-badges { margin: 0 !important; }
.tc-resx-more { display: inline-block; padding: 7px 14px; border-radius: 4px; background: var(--wp--preset--color--deep); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.tc-resx-more:hover { background: var(--wp--preset--color--forest); }
.tc-resx-thumb { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 8px; background: var(--wp--preset--color--cream); align-self: start; }
.tc-resx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tc-resx-item:hover .tc-resx-thumb img { transform: scale(1.04); }
.tc-resx-cat { position: absolute; top: 0; right: 0; padding: 4px 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--wp--preset--color--forest); border-bottom-left-radius: 6px; }
.tc-resx-thumb.tone-1 .tc-resx-cat { background: #1F8A70; }
.tc-resx-thumb.tone-2 .tc-resx-cat { background: #2F6690; }
.tc-resx-thumb.tone-3 .tc-resx-cat { background: var(--wp--preset--color--wood); }
.tc-resx-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; background: linear-gradient(135deg, var(--wp--preset--color--deep), var(--wp--preset--color--forest) 60%, var(--wp--preset--color--moss)); color: #fff; }
.tc-resx-ph b { font-family: var(--wp--preset--font-family--mono); font-size: 2rem; letter-spacing: .08em; }
.tc-resx-ph small { font-size: 12px; opacity: .8; }
.tc-resx-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 20px 0 16px; border-top: 1px solid var(--wp--preset--color--line); }
.tc-resx-pages .page-numbers { padding: 5px 11px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; font-size: 13px; text-decoration: none; color: var(--wp--preset--color--ink); }
.tc-resx-pages .page-numbers.current { background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); color: #fff; }
.tc-resx-empty { padding: 40px 0; text-align: center; color: var(--wp--preset--color--muted); }

@media (max-width: 960px) {
	.tc-resx { grid-template-columns: 1fr; }
	.tc-resx-side { position: static; order: 2; }
	.tc-resx-main { order: 1; }
}
@media (max-width: 640px) {
	.tc-resx-main { padding: 4px 16px; }
	.tc-resx-item { grid-template-columns: 1fr; gap: 14px; }
	.tc-resx-thumb { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .tc-resx-thumb img { transition: none; } }

/* 사진 배경 상단 — 네 페이지 공통 (오두막 세트: 자료실 외관, 블로그 서재, 실습실 서버, 동영상 거실)
   그림은 2400×1000 WebP로 미리 잘라 둠. 바꿀 때는 같은 크기로 만들고 ?v= 값도 바꿀 것. */
.tc-page-hero.tc-resx-hero, .tc-page-hero.tc-blog-hero, .tc-page-hero.tc-lab-hero, .tc-page-hero.tc-video-hero {
	--tc-hero-img: url("assets/img/resources-hero.jpg?v=20261026");
	--tc-hero-pos: center 42%;
	position: relative; border-bottom: 0; color: #fff;
	background: linear-gradient(180deg, rgba(10, 20, 15, .72) 0%, rgba(10, 20, 15, .58) 45%, rgba(10, 20, 15, .82) 100%), var(--tc-hero-img) var(--tc-hero-pos) / cover no-repeat;
}
.tc-page-hero.tc-blog-hero { --tc-hero-img: url("assets/img/blog-hero.webp?v=20261026e"); --tc-hero-pos: center; }
.tc-page-hero.tc-lab-hero { --tc-hero-img: url("assets/img/lab-hero.webp?v=20261026c"); --tc-hero-pos: center; }
.tc-page-hero.tc-video-hero {
	--tc-hero-img: url("assets/img/videos-hero.webp?v=20261026e"); --tc-hero-pos: center;
	/* 원본 그림이 어두워 막을 옅게 (별빛 천장·금색 조명 띠가 보이도록) */
	background: linear-gradient(180deg, rgba(10, 20, 15, .5) 0%, rgba(10, 20, 15, .34) 45%, rgba(10, 20, 15, .66) 100%), var(--tc-hero-img) var(--tc-hero-pos) / cover no-repeat;
}
:is(.tc-resx-hero, .tc-blog-hero, .tc-lab-hero, .tc-video-hero) .tc-eyebrow { color: var(--wp--preset--color--gold) !important; }
:is(.tc-resx-hero, .tc-blog-hero, .tc-lab-hero, .tc-video-hero) h1 { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
:is(.tc-resx-hero, .tc-blog-hero, .tc-lab-hero, .tc-video-hero) .tc-lead { color: rgba(255, 255, 255, .88) !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.tc-resx-hero .tc-res-quota { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); }
.tc-resx-hero .tc-res-quota strong { color: var(--wp--preset--color--gold); }
.tc-blog-hero .wp-block-categories.tc-cat-list li a { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px); }
.tc-blog-hero .wp-block-categories.tc-cat-list li a:hover { border-color: var(--wp--preset--color--gold); }
.tc-blog-hero .wp-block-categories.tc-cat-list li { color: rgba(255, 255, 255, .75); }
@media (max-width: 640px) { .tc-page-hero:is(.tc-resx-hero, .tc-blog-hero, .tc-lab-hero, .tc-video-hero) { padding-top: 72px !important; padding-bottom: 64px !important; } }

/* 상단 [로그인] 버튼 강조 (로그인하지 않은 방문자). 2026-10-29 '무료로 시작하기' 버튼 대신 */
.tc-header .wp-block-navigation .tc-nav-login > .wp-block-navigation-item__content {
	padding: .5em 1.3em;
	border-radius: 999px;
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--cream) !important;
	font-weight: 700;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--gold);
	transition: background .15s, color .15s;
}
.tc-header .wp-block-navigation .tc-nav-login > .wp-block-navigation-item__content:hover,
.tc-header .wp-block-navigation .tc-nav-login > .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--deep) !important;
}

/* 로그인 화면: [가입하기] 버튼을 금색 테두리로 눈에 띄게, 가입 안내 문구, 잠금 안내 */
.um a.um-button.um-alt {
	background: transparent !important;
	color: var(--wp--preset--color--forest) !important;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--gold);
	border-radius: 999px !important;
	font-weight: 700;
}
.um a.um-button.um-alt:hover { background: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--deep) !important; }
.tc-login-hint { margin: 14px 0 0; text-align: center; font-size: 14px; color: #5E665F; }
.tc-lock-notice {
	max-width: 450px; margin: 0 auto 18px; padding: 14px 18px; border-radius: 14px;
	background: #FBF3E2; box-shadow: inset 0 0 0 1px #E2C98F; font-size: 15px; line-height: 1.6;
}
.tc-lock-notice.is-ok { background: #EEF5EF; box-shadow: inset 0 0 0 1px #A9CBB3; }
.tc-lock-notice form { margin: 10px 0 0; }
.tc-lock-notice button {
	border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: .55em 1.4em; border-radius: 999px;
	background: var(--wp--preset--color--forest); color: var(--wp--preset--color--cream);
}
