/*
Theme Name: 5060 Play 2030
Theme URI: https://5060play.com/
Author: 5060 놀이터
Description: 직접 해보며 배우는 디지털 생활 실험실과 보조 커뮤니티를 위한 콘텐츠 중심 테마.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: play5060
*/

:root {
	--bg: #f6f4ed;
	--surface: #fffefa;
	--surface-2: #ecefe7;
	--ink: #17211b;
	--muted: #5a665e;
	--line: #d5ded7;
	--green: #0b6756;
	--green-deep: #073f37;
	--mint: #dcefe9;
	--coral: #e87857;
	--yellow: #f4c95d;
	--blue: #7ba7b6;
	--shadow: 0 18px 48px rgba(22, 49, 39, .09);
	--shadow-small: 0 9px 24px rgba(22, 49, 39, .07);
	--radius-xl: 32px;
	--radius-lg: 24px;
	--radius-md: 17px;
	--shell: 1200px;
	--reading: 780px;
	--ease: 180ms ease;
}

html[data-color-scheme="dark"] {
	--bg: #111816;
	--surface: #18211e;
	--surface-2: #202b27;
	--ink: #f5f4ed;
	--muted: #bac5bd;
	--line: #324039;
	--green: #72d2bc;
	--green-deep: #071f1a;
	--mint: #193e35;
	--coral: #f28f70;
	--yellow: #f5cf70;
	--blue: #8dc3d2;
	--shadow: 0 18px 48px rgba(0, 0, 0, .28);
	--shadow-small: 0 9px 24px rgba(0, 0, 0, .23);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
	font-size: 18px;
	line-height: 1.72;
	letter-spacing: -.012em;
	-webkit-font-smoothing: antialiased;
}

body.menu-is-open,
body.search-is-open { overflow: hidden; }

a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--coral); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
	outline: 3px solid var(--yellow) !important;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	top: 12px; left: 12px; z-index: 100000;
	width: auto; height: auto; clip: auto;
	padding: 12px 18px; margin: 0;
	background: var(--ink); color: var(--surface);
	border-radius: 10px;
}

.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.shell--reading { max-width: var(--reading); }
.shell--wide-media { max-width: 1040px; }
.shell--community { max-width: 1260px; min-width: 0; }
.shell--article { max-width: 1040px; }
.section-space { padding-block: clamp(64px, 8vw, 112px); }

.site-header {
	position: sticky; top: 0; z-index: 1000;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
	backdrop-filter: blur(18px);
}

.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.site-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.site-brand__mark,
.site-brand__logo a {
	display: grid; place-items: center;
	width: 48px; height: 48px;
	border-radius: 15px;
	background: var(--ink); color: var(--surface);
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.site-brand__mark span { font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.site-brand__logo img { width: 48px; height: 48px; object-fit: cover; border-radius: 15px; }
.site-brand__text { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.18; }
.site-brand__name { font-size: 19px; font-weight: 900; }
.site-brand__tagline { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }

.primary-navigation { margin-left: auto; }
.menu { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; align-items: center; gap: 4px; }
.primary-menu a {
	display: flex; align-items: center; min-height: 46px;
	padding: 0 14px; border-radius: 13px;
	color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 760;
	transition: background var(--ease), color var(--ease);
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { background: var(--mint); color: var(--green); }
.primary-menu .menu-item--community { margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.primary-menu .menu-item--community > a { color: var(--muted); font-size: 14px; }
.primary-menu .sub-menu { display: none; position: absolute; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-small); }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }

.site-tools { display: flex; align-items: center; gap: 7px; }
.icon-button {
	display: inline-grid; place-items: center;
	width: 46px; height: 46px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%;
	background: var(--surface); color: var(--ink); cursor: pointer;
	transition: transform var(--ease), background var(--ease);
}
.icon-button:hover { background: var(--mint); transform: translateY(-1px); }
.icon-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle { display: none; }
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after { width: 20px; height: 2px; display: block; background: currentColor; border-radius: 4px; transition: transform var(--ease); }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }
.theme-icon--moon { display: none; }
html[data-color-scheme="dark"] .theme-icon--sun { display: none; }
html[data-color-scheme="dark"] .theme-icon--moon { display: block; }

.search-panel { position: absolute; inset: 100% 0 auto; padding: 28px 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-small); }
.search-panel[hidden] { display: none; }
.search-panel__inner { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; align-items: center; gap: 32px; }
.search-panel__inner > p { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 900; }
.search-form { display: flex; gap: 9px; width: 100%; }
.search-field { min-width: 0; flex: 1; height: 52px; padding: 0 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); }
.search-submit { min-width: 92px; height: 52px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-weight: 850; cursor: pointer; }

.site-main { min-height: 55vh; }
.home-hero { position: relative; overflow: hidden; padding: clamp(54px, 7vw, 92px) 0 74px; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 28%, color-mix(in srgb, var(--mint) 75%, transparent), transparent 34%), linear-gradient(180deg, transparent, color-mix(in srgb, var(--yellow) 9%, transparent)); pointer-events: none; }
.home-hero__aurora { position: absolute; right: -8%; top: -60%; width: 700px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 30deg, var(--mint), transparent 32%, color-mix(in srgb, var(--coral) 26%, transparent), transparent 70%, var(--mint)); filter: blur(72px); opacity: .42; }
.home-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr); align-items: center; gap: clamp(40px, 7vw, 92px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.eyebrow > span { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent); }
.eyebrow--light { color: var(--yellow); }
.home-hero h1 { max-width: 760px; margin: 0; font-size: clamp(46px, 6.3vw, 84px); line-height: 1.03; letter-spacing: -.064em; font-weight: 950; text-wrap: balance; }
.home-hero h1 em { color: var(--coral); font-style: normal; }
.home-hero__lead { max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.7; font-weight: 570; }
.button-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 21px;
	border: 1px solid transparent; border-radius: 15px;
	text-decoration: none; font-size: 16px; font-weight: 880;
	transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: var(--surface); box-shadow: var(--shadow-small); }
.button--primary:hover { color: var(--surface); background: var(--green); }
.button--secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button--secondary:hover { color: var(--green); border-color: var(--green); }
.button--small { min-height: 44px; padding-inline: 16px; font-size: 14px; }
.hero-principles { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 720; }
.hero-principles span { color: var(--green); }

.home-hero__visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px dashed color-mix(in srgb, var(--green) 32%, transparent); border-radius: 50%; animation: orbit 32s linear infinite; }
.orbit::before { content: ""; position: absolute; top: 12%; left: 12%; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 7px color-mix(in srgb, var(--coral) 14%, transparent); }
.orbit--one { width: 390px; height: 390px; }
.orbit--two { width: 300px; height: 300px; animation-direction: reverse; animation-duration: 24s; }
.orbit--two::before { inset: auto 8% 18% auto; background: var(--yellow); }
@keyframes orbit { to { transform: rotate(360deg); } }
.life-console { position: relative; width: min(330px, 84vw); min-height: 270px; padding: 27px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 30px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(18px); transform: rotate(-3deg); }
.life-console::after { content: ""; position: absolute; right: -18px; bottom: -16px; width: 88px; height: 88px; background: var(--yellow); border-radius: 26px; z-index: -1; transform: rotate(11deg); }
.life-console__top { display: flex; gap: 6px; }
.life-console__top span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.life-console__top span:first-child { background: var(--coral); }
.life-console__label { margin-top: 38px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.life-console__message { margin-top: 12px; font-size: 29px; line-height: 1.34; font-weight: 720; }
.life-console__message strong { font-size: 37px; letter-spacing: -.05em; }
.life-console__signal { display: flex; align-items: end; gap: 6px; height: 34px; margin-top: 31px; }
.life-console__signal i { display: block; width: 8px; border-radius: 9px; background: var(--green); }
.life-console__signal i:nth-child(1) { height: 12px; opacity: .4; }
.life-console__signal i:nth-child(2) { height: 19px; opacity: .6; }
.life-console__signal i:nth-child(3) { height: 27px; opacity: .8; }
.life-console__signal i:nth-child(4) { height: 34px; }
.life-console--lab { transform: rotate(-2deg); }
.life-console__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 29px; }
.life-console__tags span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; }

.quick-dock { position: relative; z-index: 2; }
.quick-dock .shell { padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading--compact { margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.14; letter-spacing: -.05em; }
.section-heading p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); }
.quick-dock__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.dock-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 96px; padding: 16px; border-radius: 19px; color: var(--ink); text-decoration: none; transition: transform var(--ease), box-shadow var(--ease); }
.dock-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-small); }
.dock-card--coral { background: color-mix(in srgb, var(--coral) 22%, var(--surface)); }
.dock-card--mint { background: var(--mint); }
.dock-card--yellow { background: color-mix(in srgb, var(--yellow) 34%, var(--surface)); }
.dock-card--blue { background: color-mix(in srgb, var(--blue) 24%, var(--surface)); }
.dock-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: color-mix(in srgb, var(--surface) 76%, transparent); font-weight: 950; }
.dock-card strong, .dock-card small { display: block; }
.dock-card strong { font-size: 16px; }
.dock-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.dock-card b { font-size: 20px; }

.topic-lanes { position: relative; z-index: 2; }
.topic-lanes > .shell { padding: clamp(25px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.topic-lanes__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.topic-lane { position: relative; display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 14px; min-height: 126px; padding: 20px; border: 1px solid transparent; border-radius: 21px; color: var(--ink); text-decoration: none; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.topic-lane:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-small); border-color: color-mix(in srgb, var(--green) 24%, transparent); }
.topic-lane--mint { background: var(--mint); }
.topic-lane--coral { background: color-mix(in srgb, var(--coral) 20%, var(--surface)); }
.topic-lane--yellow { background: color-mix(in srgb, var(--yellow) 30%, var(--surface)); }
.topic-lane--blue { background: color-mix(in srgb, var(--blue) 22%, var(--surface)); }
.topic-lane__number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--green); font-size: 12px; font-weight: 950; }
.topic-lane__body strong, .topic-lane__body small { display: block; }
.topic-lane__body strong { font-size: clamp(18px, 2vw, 22px); letter-spacing: -.03em; }
.topic-lane__body small { max-width: 430px; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.topic-lane__count { color: var(--muted); font-size: 12px; font-weight: 850; white-space: nowrap; }
.topic-lane b { font-size: 20px; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.story-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-small); transition: transform var(--ease), box-shadow var(--ease); }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mint); text-decoration: none; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.story-card:hover .story-card__media img { transform: scale(1.025); }
.story-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 70% 20%, var(--yellow), transparent 27%), linear-gradient(135deg, var(--mint), color-mix(in srgb, var(--coral) 20%, var(--surface))); }
.story-card__placeholder span { display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); border-radius: 28px; color: var(--green); background: color-mix(in srgb, var(--surface) 70%, transparent); font-weight: 950; letter-spacing: -.07em; }
.story-card__body { padding: 23px; }
.story-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.category-pill { display: inline-flex; align-items: center; min-height: 31px; padding: 0 11px; border-radius: 999px; background: var(--mint); color: var(--green); text-decoration: none; font-size: 13px; font-weight: 850; }
.story-card__title { margin: 16px 0 10px; font-size: 23px; line-height: 1.35; letter-spacing: -.035em; }
.story-card__title a { color: var(--ink); text-decoration: none; }
.story-card__excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.text-link { display: inline-flex; gap: 7px; margin-top: 18px; color: var(--green); font-size: 14px; font-weight: 880; text-decoration: none; }
.text-link--large { min-height: 44px; align-items: center; font-size: 16px; }

.empty-state { display: grid; justify-items: center; max-width: 760px; margin-inline: auto; padding: clamp(38px, 7vw, 72px); text-align: center; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--green) 40%, var(--line)); border-radius: var(--radius-xl); }
.empty-state__mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--mint); color: var(--green); font-size: 30px; }
.empty-state h3 { margin: 18px 0 7px; font-size: 28px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state .button { margin-top: 22px; }

.category-lab { background: color-mix(in srgb, var(--mint) 45%, var(--bg)); }
.category-lab__inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: center; }
.category-cloud { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.category-chip { display: flex; justify-content: space-between; gap: 12px; min-height: 82px; padding: 20px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-small); }
.category-chip:hover { color: var(--green); transform: translateY(-2px); }
.category-chip span { font-weight: 900; }
.category-chip small { color: var(--muted); }
.category-chip--2 { border-top-color: var(--coral); }
.category-chip--3 { border-top-color: var(--yellow); }
.category-chip--4 { border-top-color: var(--blue); }

.library-shelf { background: color-mix(in srgb, var(--mint) 40%, var(--bg)); }
.library-shelf__inner { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: clamp(38px, 7vw, 86px); align-items: start; }
.library-shelf__intro { position: sticky; top: 120px; }
.library-shelf__intro h2 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.12; letter-spacing: -.055em; }
.library-shelf__intro > p:not(.eyebrow) { color: var(--muted); }
.library-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.library-list li { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 88px; border-bottom: 1px solid var(--line); }
.library-list li > span { color: var(--coral); font-size: 12px; font-weight: 950; }
.library-list a { color: var(--ink); font-size: 17px; font-weight: 850; line-height: 1.45; text-decoration: none; }
.library-list a:hover { color: var(--green); }
.library-list small { color: var(--muted); font-size: 12px; white-space: nowrap; }

.lab-method { padding-top: clamp(56px, 7vw, 90px); }
.lab-method__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin: 0; padding: 0; list-style: none; }
.lab-method__grid li { min-height: 220px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-small); }
.lab-method__grid li:nth-child(2) { transform: translateY(18px); }
.lab-method__grid li > span { color: var(--coral); font-size: 12px; font-weight: 950; letter-spacing: .08em; }
.lab-method__grid strong { display: block; margin-top: 26px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
.lab-method__grid p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.community-afterword { padding: 0 0 clamp(64px, 8vw, 112px); }
.community-afterword__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 27px 30px; border: 1px dashed color-mix(in srgb, var(--green) 35%, var(--line)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 64%, transparent); }
.community-afterword__inner > div { min-width: 0; }
.community-afterword__label { display: block; margin-bottom: 6px; color: var(--green); font-size: 12px; font-weight: 950; letter-spacing: .08em; }
.community-afterword strong { display: block; font-size: 20px; }
.community-afterword p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.community-afterword .button { flex: 0 0 auto; }

.trust-panel__inner { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 58px; padding: clamp(34px, 6vw, 68px); border-radius: var(--radius-xl); background: var(--green-deep); color: #f8f4ea; overflow: hidden; position: relative; }
.trust-panel__inner::before { content: ""; position: absolute; width: 350px; height: 350px; right: -170px; top: -190px; border-radius: 50%; border: 80px solid rgba(244,201,93,.12); }
.trust-panel__copy { position: relative; z-index: 1; }
.trust-panel__copy h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.trust-panel__copy > p:last-child { margin: 23px 0 0; color: rgba(255,255,255,.74); }
.trust-steps { position: relative; z-index: 1; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: rgba(255,255,255,.07); }
.trust-steps li > span { color: var(--yellow); font-size: 13px; font-weight: 900; }
.trust-steps strong { font-size: 18px; }
.trust-steps p { margin: 3px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }
.trust-step__link { display: inline-flex; margin-top: 9px; color: var(--yellow); font-size: 13px; font-weight: 850; text-decoration: none; }
.trust-step__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.archive-hero, .page-header { padding-top: clamp(62px, 8vw, 110px); padding-bottom: 36px; }
.archive-hero h1, .page-header h1, .error-page h1 { margin: 0; font-size: clamp(42px, 6vw, 74px); line-height: 1.08; letter-spacing: -.06em; }
.archive-hero__description, .archive-hero > p { max-width: 760px; color: var(--muted); }
.listing-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 36px; padding-bottom: 100px; }
.listing-main { min-width: 0; }
.story-grid--listing { grid-template-columns: repeat(2, minmax(0,1fr)); }
.topic-sidebar { display: grid; align-content: start; gap: 16px; }
.topic-sidebar__card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.topic-sidebar__card h2 { margin: 4px 0 14px; font-size: 22px; }
.topic-sidebar__card ul { margin: 0; padding-left: 1.1em; }
.topic-sidebar__eyebrow { margin: 0; color: var(--coral); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.topic-sidebar__community p { color: var(--muted); font-size: 14px; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }

.standard-page { padding-bottom: 100px; }
.standard-page .shell--reading { min-width: 0; }
.reading-header { padding-top: clamp(56px, 8vw, 104px); padding-bottom: 38px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.reading-header h1 { margin: 18px 0 0; font-size: clamp(40px, 6vw, 70px); line-height: 1.12; letter-spacing: -.058em; text-wrap: balance; }
.reading-header__summary { margin: 21px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.72; }
.reading-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 27px; color: var(--muted); font-size: 14px; }
.reading-meta__author { color: var(--green); font-weight: 800; }
.reading-cover { overflow: hidden; margin-bottom: 50px; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.reading-cover img { width: 100%; max-height: 720px; object-fit: cover; }
.reading-layout { display: grid; grid-template-columns: 130px minmax(0, var(--reading)); gap: 36px; justify-content: center; }
.reading-rail { position: sticky; top: 112px; align-self: start; display: grid; gap: 8px; }
.reading-rail__label { color: var(--muted); font-size: 12px; font-weight: 900; }
.rail-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 750; cursor: pointer; }
.reading-column { min-width: 0; }
.entry-toc { margin: 0 0 38px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.entry-toc__head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.entry-toc__head strong { font-size: 19px; }
.entry-toc__head button { min-width: 48px; min-height: 40px; border: 0; border-radius: 10px; background: var(--mint); color: var(--green); font-weight: 800; cursor: pointer; }
.entry-toc ol { margin: 17px 0 0; padding-left: 1.35em; }
.entry-toc li + li { margin-top: 7px; }
.entry-toc li.is-sub { margin-left: 18px; font-size: 15px; }
.entry-toc a { color: var(--ink); text-decoration: none; }
.entry-toc.is-collapsed ol { display: none; }

.entry-content { min-width: 0; font-size: 18px; line-height: 1.86; overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 110px; line-height: 1.3; letter-spacing: -.04em; }
.entry-content h2 { margin: 2.25em 0 .75em; font-size: clamp(28px, 4vw, 38px); }
.entry-content h3 { margin: 1.8em 0 .65em; font-size: 25px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-block: 1.15em; }
.entry-content blockquote { margin: 2em 0; padding: 20px 23px; border-left: 5px solid var(--coral); border-radius: 0 17px 17px 0; background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.entry-content img { border-radius: 18px; }
.entry-content figure { max-width: 100%; margin: 2em auto; }
.entry-content figcaption { margin-top: 8px; color: var(--muted); text-align: center; font-size: 13px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; background: var(--surface); border-radius: 15px; overflow: hidden; }
.entry-content th, .entry-content td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--mint); }
.entry-content .wp-block-button__link, .entry-content a[data-partner-link="true"] { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 14px; background: var(--green); color: #fff; text-decoration: none; font-weight: 850; }
.affiliate-disclosure { margin: 0 0 30px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--coral) 45%, var(--line)); border-radius: 17px; background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.affiliate-disclosure strong { color: var(--coral); }
.affiliate-disclosure p { margin: 5px 0 0; font-size: 14px; line-height: 1.65; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.tag-list > span { margin-right: 6px; font-size: 13px; font-weight: 900; }
.tag-list a { padding: 7px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.article-trust-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--muted); font-size: 13px; }
.article-trust-links div { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.article-trust-links a { color: var(--green); font-weight: 850; text-decoration: none; }
.article-trust-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-navigation-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 70px; }
.post-navigation-panel a { display: block; min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--ink); text-decoration: none; }
.post-navigation-panel span, .post-navigation-panel strong { display: block; }
.post-navigation-panel span { color: var(--muted); font-size: 12px; }
.post-navigation-panel strong { margin-top: 7px; line-height: 1.45; }

.comments-shell { padding-block: 70px; }
.comments-area { padding: clamp(22px, 5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.comments-title, .comment-reply-title { font-size: 27px; }
.comment-list { padding-left: 1.2em; }
.comment-list li { margin-block: 20px; }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 750; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.comment-form input[type="submit"] { min-height: 48px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--green); color: #fff; font-weight: 850; cursor: pointer; }

.policy-page { padding-bottom: clamp(72px, 10vw, 120px); }
.policy-page__header { padding-top: clamp(62px, 8vw, 108px); padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.policy-page__header h1 { margin: 12px 0 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; }
.policy-page__lead { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 19px; line-height: 1.75; }
.policy-page__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.policy-page__body { padding-top: 42px; }
.policy-related { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy-related strong { display: block; margin-bottom: 12px; font-size: 14px; }
.policy-related ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.policy-related a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }

.error-page { display: grid; justify-items: center; padding-block: clamp(80px, 12vw, 150px); text-align: center; }
.error-page__code { color: var(--coral); font-size: clamp(70px, 16vw, 170px); line-height: .8; font-weight: 950; letter-spacing: -.08em; opacity: .18; }
.error-page p { max-width: 620px; color: var(--muted); }
.error-page__search { width: min(620px, 100%); margin-top: 18px; }

/* wpForo/community containment: preserve plugin behavior without horizontal spill. */
.is-community-view .site-main,
.community-page,
.community-content,
.community-content > *,
.is-community-view #wpforo-wrap,
.is-community-view #wpforo,
.is-community-view .wpforo-main {
	min-width: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}
.is-community-view .site-main { overflow-x: clip; }
.community-page { padding-block: 44px 90px; }
.community-content { overflow-wrap: anywhere; }
.is-community-view #wpforo-wrap { margin: 0 !important; font-size: 15px !important; }
.is-community-view #wpforo-wrap * { max-width: 100%; }
.is-community-view #wpforo-wrap input,
.is-community-view #wpforo-wrap select,
.is-community-view #wpforo-wrap textarea { max-width: 100% !important; }
.is-community-view #wpforo-wrap .wpf-head-bar,
.is-community-view #wpforo-wrap .wpforo-subtop { flex-wrap: wrap; }
.is-community-view #wpforo-wrap a,
.is-community-view #wpforo-wrap button { min-height: 38px; }
.is-community-view #wpforo-wrap .wpf-small,
.is-community-view #wpforo-wrap small { font-size: 13px !important; }
.wpforo-profile-head-panel .wpf-author-nicename { display: none !important; }
.is-community-view .play5060-layout,
.is-community-view .play5060-global-shell { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
.is-community-view .play5060-left,
.is-community-view .play5060-right { display: none !important; }

.site-footer { position: relative; overflow: hidden; padding: 70px 0 24px; background: #0b211b; color: #eef4ed; }
.site-footer__glow { position: absolute; right: -180px; top: -230px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(114,210,188,.2), transparent 68%); }
.site-footer__inner { position: relative; display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: 48px; }
.site-footer__eyebrow { color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.site-footer__brand strong { display: block; margin-top: 8px; font-size: 28px; }
.site-footer__brand p, .site-footer__notice p { color: rgba(255,255,255,.65); font-size: 14px; }
.site-footer__links { display: grid; gap: 22px; align-content: start; }
.site-footer__nav-title { display: block; margin-bottom: 7px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.footer-menu { display: grid; gap: 8px; }
.footer-menu a { display: inline-flex; min-height: 39px; align-items: center; color: #eef4ed; text-decoration: none; font-size: 14px; font-weight: 750; }
.footer-policy-menu { display: flex; flex-wrap: wrap; gap: 5px 13px; margin: 0; padding: 0; list-style: none; }
.footer-policy-menu a { color: rgba(255,255,255,.76); font-size: 13px; text-decoration: none; }
.footer-menu a:hover, .footer-policy-menu a:hover { color: var(--yellow); }
.site-footer__notice { padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.04); }
.site-footer__notice p { margin: 0; }
.site-footer__notice p + p { margin-top: 10px; }
.site-footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.58); font-size: 12px; }
.site-footer__bottom a { color: #eef4ed; text-decoration: none; }

@media (max-width: 1040px) {
	.site-brand__tagline { display: none; }
	.primary-menu a { padding-inline: 10px; }
	.primary-menu .menu-item--community { margin-left: 0; padding-left: 0; border-left: 0; }
	.quick-dock__grid { grid-template-columns: repeat(2,1fr); }
	.story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.reading-layout { grid-template-columns: 1fr; max-width: var(--reading); }
	.reading-rail { position: static; display: flex; flex-wrap: wrap; }
	.reading-rail__label { flex-basis: 100%; }
	.listing-layout { grid-template-columns: 1fr; }
	.topic-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
	.admin-bar .site-header { top: 46px; }
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
	.shell { width: min(100% - 28px, var(--shell)); }
	.site-header__inner { min-height: 72px; gap: 9px; }
	.site-brand { margin-right: auto; }
	.site-brand__mark, .site-brand__logo a, .site-brand__logo img { width: 43px; height: 43px; border-radius: 13px; }
	.site-brand__name { font-size: 17px; }
	.menu-toggle { display: inline-grid; order: 2; }
	.site-tools { order: 1; }
	.site-tools .icon-button:last-child { display: none; }
	.primary-navigation { display: none; position: fixed; inset: 72px 0 0; margin: 0; padding: 22px 18px 110px; background: var(--bg); overflow-y: auto; }
	.admin-bar .primary-navigation { inset-block-start: 118px; }
	.primary-navigation.is-open { display: block; }
	.primary-menu { display: grid; gap: 8px; }
	.primary-menu a { min-height: 56px; padding-inline: 18px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; }
	.primary-menu .menu-item--community > a { color: var(--muted); font-size: 17px; }
	.primary-menu .sub-menu { display: block; position: static; margin: 7px 0 0 18px; box-shadow: none; }
	.search-panel { position: fixed; inset: 72px 0 0; padding-top: 38px; }
	.admin-bar .search-panel { inset-block-start: 118px; }
	.search-panel__inner { grid-template-columns: 1fr; }
	.home-hero { padding-top: 48px; }
	.home-hero__inner { grid-template-columns: 1fr; }
	.home-hero__visual { min-height: 350px; }
	.orbit--one { width: min(360px, 86vw); height: min(360px, 86vw); }
	.orbit--two { width: min(280px, 68vw); height: min(280px, 68vw); }
	.topic-lanes__grid, .category-lab__inner, .library-shelf__inner, .trust-panel__inner { grid-template-columns: 1fr; }
	.library-shelf__intro { position: static; }
	.lab-method__grid { grid-template-columns: 1fr; }
	.lab-method__grid li:nth-child(2) { transform: none; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__notice { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	body { font-size: 18px; }
	.site-brand__text { max-width: 170px; }
	.home-hero h1 { font-size: clamp(43px, 13vw, 62px); }
	.home-hero__lead { font-size: 18px; }
	.home-hero__visual { min-height: 320px; }
	.life-console { min-height: 245px; padding: 23px; }
	.life-console__message { font-size: 25px; }
	.life-console__message strong { font-size: 32px; }
	.quick-dock .shell { padding: 18px; border-radius: 24px; }
	.quick-dock__grid, .story-grid, .story-grid--listing, .category-cloud, .topic-sidebar { grid-template-columns: 1fr; }
	.topic-lanes > .shell { padding: 20px; border-radius: 24px; }
	.topic-lane { grid-template-columns: 40px minmax(0,1fr) auto; min-height: 118px; padding: 16px; }
	.topic-lane__count { display: none; }
	.topic-lane b { grid-column: 3; grid-row: 1; }
	.library-list li { grid-template-columns: 36px minmax(0,1fr); padding-block: 14px; }
	.library-list small { grid-column: 2; }
	.community-afterword__inner { align-items: flex-start; flex-direction: column; padding: 23px; }
	.dock-card { min-height: 88px; }
	.section-heading { align-items: start; flex-direction: column; }
	.trust-panel__inner { padding: 29px 22px; border-radius: 25px; }
	.archive-hero h1, .page-header h1, .reading-header h1, .error-page h1 { font-size: clamp(37px, 11vw, 53px); }
	.reading-header { padding-top: 48px; }
	.reading-meta { display: grid; gap: 4px; }
	.entry-content { font-size: 18px; line-height: 1.8; }
	.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.entry-toc { padding: 18px; }
	.post-navigation-panel { grid-template-columns: 1fr; }
	.site-footer { padding-top: 55px; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
	.site-footer__notice { grid-column: auto; }
	.site-footer__bottom { align-items: flex-start; flex-direction: column; }
	.is-community-view #wpforo-wrap { font-size: 15px !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
