/*
Theme Name: Entropia Journal
Theme URI: https://entropiajournal.com
Author: Entropia Journal
Description: A BuddyPress-ready community theme centered on public and private journals for Entropia Universe colonists.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: entropia-journal
*/

:root {
	--bg: #0b0d10;
	--surface: #14181d;
	--surface-2: #1d2329;
	--line: #2d3640;
	--text: #f3f5ef;
	--muted: #aab3b5;
	--teal: #36c6b4;
	--amber: #f0b84f;
	--magenta: #d66bbd;
	--green: #84c776;
	--max: 1180px;
	--radius: 8px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

a {
	color: var(--teal);
	text-decoration: none;
}

a:hover {
	color: var(--amber);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(11, 13, 16, 0.88);
	backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.hero__inner,
.section-band__inner {
	width: min(var(--max), calc(100% - 32px));
	margin: 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 800;
	letter-spacing: 0;
}

.brand__mark {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid rgba(54, 198, 180, 0.55);
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(54, 198, 180, 0.2), rgba(240, 184, 79, 0.12));
	color: var(--amber);
	font-size: 0.9rem;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 18px;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--text);
	font-weight: 650;
	font-size: 0.94rem;
}

.site-nav a:hover {
	color: var(--teal);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.header-community-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-right: 4px;
}

.header-community-link {
	position: relative;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	color: var(--text);
}

.header-community-link:hover {
	border-color: rgba(54, 198, 180, 0.55);
	background: rgba(54, 198, 180, 0.1);
	color: var(--teal);
}

.header-community-link svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.ej-community-count {
	display: inline-grid;
	min-width: 19px;
	height: 19px;
	place-items: center;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--amber);
	color: #151006;
	font-size: 0.69rem;
	font-weight: 900;
	line-height: 1;
}

.header-community-link .ej-community-count {
	position: absolute;
	top: -6px;
	right: -6px;
	box-shadow: 0 0 0 3px #0b0d10;
}

.button,
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.button-primary,
button.button-primary {
	border-color: rgba(54, 198, 180, 0.7);
	background: var(--teal);
	color: #071011;
}

.button:hover,
button:hover {
	border-color: var(--amber);
	color: var(--amber);
}

.button-primary:hover,
button.button-primary:hover {
	border-color: var(--amber);
	background: var(--amber);
	color: #120d05;
}

.hero {
	position: relative;
	min-height: 560px;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background:
		linear-gradient(90deg, rgba(11, 13, 16, 0.96) 0%, rgba(11, 13, 16, 0.84) 34%, rgba(11, 13, 16, 0.26) 70%),
		url("assets/journal-hero.png") center right / cover no-repeat;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
	gap: 36px;
	align-items: center;
	min-height: 560px;
	padding: 58px 0 72px;
}

.hero h1,
.page-title {
	margin: 0;
	color: var(--text);
	font-size: clamp(2.4rem, 6vw, 4.8rem);
	line-height: 1;
	letter-spacing: 0;
}

.hero p {
	max-width: 620px;
	margin: 18px 0 0;
	color: #d8ddda;
	font-size: 1.1rem;
}

.hero__panel {
	align-self: end;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius);
	background: rgba(20, 24, 29, 0.78);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.hero__panel h2 {
	margin: 0;
	padding: 18px 18px 0;
	font-size: 1rem;
	color: var(--amber);
}

.journal-type-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 18px 0 0;
	background: rgba(255, 255, 255, 0.08);
}

.journal-type-list span {
	display: block;
	min-height: 62px;
	padding: 14px;
	background: rgba(11, 13, 16, 0.74);
	color: var(--text);
	font-weight: 750;
}

.journal-type-list small {
	display: block;
	color: var(--muted);
	font-weight: 500;
}

.hero__actions,
.ej-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.section-band {
	padding: 56px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--bg);
}

.section-band--surface {
	background: var(--surface);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.section-heading h2,
.entry-content h2,
.ej-studio h2,
.ej-empty-state h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.15;
}

.section-heading p,
.ej-muted,
.ej-empty-state p {
	color: var(--muted);
}

.ej-journal-grid,
.post-grid,
.ej-member-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ej-journal-card,
.post-card,
.ej-member-card,
.ej-empty-state,
.ej-studio__form,
.ej-studio__list,
.single-journal__meta,
.bp-panel,
.comment-respond,
.comments-area {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	background: var(--surface);
}

.ej-journal-card,
.post-card,
.ej-member-card,
.ej-empty-state {
	padding: 20px;
}

.ej-member-card {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 16px;
}

.ej-member-card h2 {
	margin: 4px 0 8px;
	font-size: 1.2rem;
	line-height: 1.2;
}

.ej-member-card h2 a {
	color: var(--text);
}

.ej-member-card p {
	margin: 0;
	color: var(--muted);
}

.ej-member-card__avatar img {
	width: 74px;
	height: 74px;
	border: 1px solid rgba(54, 198, 180, 0.45);
	border-radius: 8px;
	object-fit: cover;
}

.ej-profile-hero {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	margin-bottom: 24px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	background: var(--surface);
}

.ej-profile-hero__avatar img {
	width: 112px;
	height: 112px;
	border: 1px solid rgba(54, 198, 180, 0.48);
	border-radius: 8px;
	object-fit: cover;
}

.ej-profile-hero p {
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--muted);
}

.ej-profile-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 18px;
	margin: 24px 0;
}

.ej-profile-fields {
	display: grid;
	gap: 10px;
}

.ej-profile-fields div {
	display: grid;
	grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr);
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
}

.ej-profile-fields span {
	color: var(--muted);
	font-weight: 750;
}

.ej-profile-fields strong {
	color: var(--text);
	font-weight: 650;
}

.ej-profile-edit {
	margin-bottom: 24px;
}

.ej-profile-photo-edit {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.03);
}

.ej-profile-photo-edit__preview img {
	width: 112px;
	height: 112px;
	border: 1px solid rgba(54, 198, 180, 0.48);
	border-radius: 8px;
	object-fit: cover;
}

.bp-shell .bp-panel {
	padding: 24px;
}

.bp-panel--profile {
	max-width: 980px;
}

.ej-community-hero {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(54, 198, 180, 0.1), rgba(240, 184, 79, 0.045) 55%, var(--surface));
}

.ej-community-hero .page-title {
	margin-bottom: 8px;
}

.ej-community-hero p:last-child {
	margin: 0;
	color: var(--muted);
}

.ej-community-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.ej-community-nav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 9px 13px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 750;
}

.ej-community-nav a:hover,
.ej-community-nav a.is-current {
	border-color: rgba(54, 198, 180, 0.55);
	background: rgba(54, 198, 180, 0.12);
	color: var(--teal);
}

.bp-panel--community {
	padding: 24px;
}

.bp-panel--community #item-header,
.bp-panel--community #object-nav {
	display: none;
}

.bp-panel--community .bp-wrap ul,
.bp-panel--community .item-list-tabs ul,
.bp-panel--community .main-navs ul {
	list-style: none;
}

.bp-panel--community .main-navs > ul,
.bp-panel--community .subnav > ul,
.bp-panel--community .bp-subnavs > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.bp-panel--community .main-navs a,
.bp-panel--community .subnav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 11px;
	border-radius: 7px;
	color: var(--muted);
	font-weight: 700;
}

.bp-panel--community .main-navs .current a,
.bp-panel--community .main-navs .selected a,
.bp-panel--community .subnav .current a,
.bp-panel--community .subnav .selected a,
.bp-panel--community .main-navs a:hover,
.bp-panel--community .subnav a:hover {
	background: rgba(54, 198, 180, 0.1);
	color: var(--teal);
}

.bp-panel--community .bp-feedback,
.bp-panel--community .bp-messages-feedback,
.bp-panel--community .message-box,
.bp-panel--community .thread-content,
.bp-panel--community .notifications-options-nav,
.bp-panel--community table.notifications {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.025);
	color: var(--text);
}

.bp-panel--community table.notifications {
	width: 100%;
	border-collapse: collapse;
}

.bp-panel--community table.notifications th,
.bp-panel--community table.notifications td {
	padding: 13px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	text-align: left;
}

.bp-panel--community table.notifications th {
	color: var(--muted);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bp-panel--community .message-lists,
.bp-panel--community #message-threads {
	margin: 0;
	padding: 0;
}

.bp-panel--community .thread-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.025);
}

.bp-panel--community .thread-item.unread {
	background: rgba(54, 198, 180, 0.085);
}

.bp-panel--community .thread-item a,
.bp-panel--community .message-box a {
	color: var(--text);
}

.bp-panel--community .thread-item a:hover,
.bp-panel--community .message-box a:hover {
	color: var(--teal);
}

.button-quiet {
	background: transparent;
}

.bp-panel input,
.bp-panel select,
.bp-panel textarea {
	max-width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #0d1115;
	color: var(--text);
	font: inherit;
	padding: 10px 12px;
}

.bp-panel label,
.bp-panel legend {
	color: var(--muted);
	font-weight: 700;
}

.bp-panel .submit input,
.bp-panel input[type="submit"] {
	width: auto;
	border-color: rgba(54, 198, 180, 0.7);
	background: var(--teal);
	color: #071011;
	font-weight: 800;
}

.bp-panel .bp-heading,
.bp-panel h2,
.bp-panel h3 {
	color: var(--text);
}

.bp-panel #item-header,
.bp-panel .bp-wrap,
.bp-panel .item-list-tabs,
.bp-panel .main-navs {
	color: var(--text);
}

.ej-card-media {
	display: block;
	overflow: hidden;
	margin: -20px -20px 16px;
	aspect-ratio: 16 / 9;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: #080a0c;
}

.ej-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ej-journal-card h3,
.post-card h2,
.ej-entry-mini h3 {
	margin: 6px 0 10px;
	line-height: 1.2;
}

.ej-journal-card h3 a,
.post-card h2 a,
.ej-entry-mini h3 a {
	color: var(--text);
}

.ej-kicker {
	margin: 0;
	color: var(--amber);
	font-size: 0.78rem;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0;
}

.ej-card-meta,
.single-journal__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 0.9rem;
}

.ej-card-meta span,
.single-journal__facts span {
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.is-positive {
	color: var(--green);
}

.is-negative {
	color: var(--magenta);
}

.is-neutral {
	color: var(--muted);
}

.ej-card-performance,
.ej-mini-performance {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ej-card-performance span,
.ej-mini-performance span {
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.88rem;
	font-weight: 850;
}

.site-main {
	padding: 54px 0;
}

.site-main--studio {
	width: min(1760px, calc(100% - 48px));
}

.content-wrap {
	max-width: 820px;
}

.content-wrap--studio {
	max-width: none;
}

.content-wrap--studio .page-header {
	margin-bottom: 22px;
}

.content-wrap--studio .entry-content {
	width: 100%;
}

.entry-content {
	color: #e7ebe6;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
}

.single-journal__header {
	max-width: 920px;
	margin: 0 auto 34px;
	text-align: center;
}

.single-journal__meta {
	margin: 0 0 24px;
	padding: 22px;
}

.single-journal__highlight {
	margin: 0;
	color: var(--text);
	font-size: 1.1rem;
}

.single-journal__performance {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.single-journal__performance div {
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.single-journal__performance span {
	display: block;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 850;
	text-transform: uppercase;
}

.single-journal__performance strong {
	display: block;
	margin-top: 4px;
	font-size: 1.2rem;
}

.ej-performance-summary {
	display: grid;
	gap: 14px;
	margin: 18px 0 22px;
}

.ej-performance-summary--profile {
	margin: 24px 0;
}

.ej-performance-total {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(130px, 0.32fr);
	gap: 14px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.035);
}

.ej-performance-total h3 {
	margin: 4px 0;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1;
}

.ej-performance-total p {
	margin: 0;
	color: var(--muted);
}

.ej-performance-score {
	display: grid;
	place-content: center;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	text-align: center;
}

.ej-performance-score span {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 850;
	text-transform: uppercase;
}

.ej-performance-score strong {
	font-size: 1.35rem;
}

.ej-performance-grid {
	display: grid;
	gap: 10px;
}

.ej-performance-row {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.025);
}

.ej-performance-row strong,
.ej-performance-row span {
	display: block;
}

.ej-performance-row strong {
	color: var(--text);
}

.ej-performance-row span {
	color: var(--muted);
	font-size: 0.9rem;
}

.ej-performance-row > div:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.ej-performance-row > div:last-child span {
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	font-weight: 800;
}

.single-journal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	gap: 34px;
	align-items: start;
}

.single-journal__story {
	min-width: 0;
}

.single-journal__content {
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	background: rgba(20, 24, 29, 0.62);
	font-size: 1.05rem;
	line-height: 1.78;
}

.single-journal__content p {
	margin-bottom: 1.45em;
}

.single-journal__media {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 18px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	background: rgba(20, 24, 29, 0.78);
}

.single-journal__gallery,
.single-journal__video {
	margin-top: 0;
}

.single-journal__gallery h2,
.single-journal__video h2 {
	margin: 0 0 16px;
	font-size: 1.4rem;
}

.ej-media-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.ej-media-grid a {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: var(--radius);
	background: #080a0c;
}

.ej-media-grid a::after {
	position: absolute;
	right: 10px;
	bottom: 10px;
	content: "Click to enlarge";
	padding: 5px 8px;
	border-radius: 8px;
	background: rgba(8, 10, 12, 0.78);
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 800;
	opacity: 0;
	transition: opacity 160ms ease;
}

.ej-media-grid a:hover::after {
	opacity: 1;
}

.ej-media-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ej-video-embed {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: var(--radius);
	background: #080a0c;
}

.ej-video-embed iframe,
.ej-video-embed embed,
.ej-video-embed object {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

.ej-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 28px;
	background: rgba(2, 4, 6, 0.9);
	backdrop-filter: blur(12px);
}

.ej-lightbox img {
	max-width: min(1200px, 94vw);
	max-height: 86vh;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
	object-fit: contain;
}

.ej-lightbox__close {
	position: fixed;
	top: 20px;
	right: 20px;
}

.ej-lightbox-open {
	overflow: hidden;
}

.ej-studio-shell {
	position: relative;
	overflow: hidden;
	padding: 20px;
	border: 1px solid rgba(54, 198, 180, 0.28);
	border-radius: var(--radius);
	background:
		linear-gradient(rgba(54, 198, 180, 0.052) 1px, transparent 1px),
		linear-gradient(90deg, rgba(54, 198, 180, 0.04) 1px, transparent 1px),
		linear-gradient(135deg, rgba(54, 198, 180, 0.16), rgba(214, 107, 189, 0.065) 46%, rgba(240, 184, 79, 0.085)),
		#0a0d10;
	background-size: 28px 28px, 28px 28px, auto, auto;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.075),
		inset 0 0 0 1px rgba(255, 255, 255, 0.025),
		0 28px 90px rgba(0, 0, 0, 0.34);
}

.ej-studio-shell::before {
	position: absolute;
	inset: 0;
	content: "";
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%, rgba(255, 255, 255, 0.025) 72%, transparent),
		repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 7px);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

.ej-studio-shell::after {
	position: absolute;
	right: 18px;
	bottom: 18px;
	width: 160px;
	height: 72px;
	content: "";
	pointer-events: none;
	border-right: 1px solid rgba(240, 184, 79, 0.38);
	border-bottom: 1px solid rgba(240, 184, 79, 0.38);
	opacity: 0.7;
}

.ej-studio-hero {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
	gap: 18px;
	align-items: end;
	margin-bottom: 20px;
	padding: 20px;
	border: 1px solid rgba(54, 198, 180, 0.2);
	border-radius: var(--radius);
	background:
		linear-gradient(90deg, rgba(54, 198, 180, 0.12), transparent 45%),
		rgba(10, 13, 16, 0.82);
	box-shadow: inset 0 0 34px rgba(54, 198, 180, 0.045);
}

.ej-studio-hero h2 {
	margin: 4px 0 8px;
	color: #ffffff;
	font-size: 2.55rem;
	line-height: 1;
	text-shadow: 0 0 22px rgba(54, 198, 180, 0.24);
}

.ej-studio-hero p {
	max-width: 720px;
	margin: 0;
	color: var(--muted);
}

.ej-studio-modes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.ej-studio-modes span {
	padding: 8px 11px;
	border: 1px solid rgba(54, 198, 180, 0.32);
	border-radius: 8px;
	background: rgba(5, 8, 11, 0.72);
	color: var(--teal);
	font-size: 0.78rem;
	font-weight: 850;
	line-height: 1;
	text-transform: uppercase;
	box-shadow: inset 0 -10px 18px rgba(54, 198, 180, 0.045);
}

.ej-studio {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.7fr);
	gap: 22px;
	align-items: start;
}

.ej-studio__form,
.ej-studio__list {
	position: relative;
	overflow: hidden;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%),
		rgba(13, 17, 21, 0.9);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 18px 46px rgba(0, 0, 0, 0.24);
}

.ej-studio__form::before,
.ej-studio__list::before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	content: "";
	background: linear-gradient(90deg, var(--teal), var(--amber), var(--magenta));
}

.comments-area,
.comment-respond {
	padding: 22px;
}

.ej-panel-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.ej-panel-heading h2 {
	margin: 3px 0 0;
	font-size: 1.62rem;
	line-height: 1.12;
}

.ej-panel-heading > span {
	flex: 0 0 auto;
	padding: 6px 9px;
	border: 1px solid rgba(240, 184, 79, 0.22);
	border-radius: 8px;
	background: rgba(240, 184, 79, 0.075);
	color: #f6d79a;
	font-size: 0.82rem;
	font-weight: 850;
}

.ejournal-form {
	display: grid;
	gap: 20px;
}

.ejournal-form label {
	display: grid;
	gap: 8px;
	color: #d8e0df;
	font-size: 0.92rem;
	font-weight: 800;
}

.ejournal-form input,
.ejournal-form select,
.ejournal-form textarea,
.ej-login-panel input[type="text"],
.ej-login-panel input[type="password"] {
	width: 100%;
	min-height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
		rgba(5, 8, 11, 0.88);
	color: var(--text);
	font: inherit;
	padding: 11px 12px;
	box-shadow:
		inset 0 0 0 1px rgba(54, 198, 180, 0.018),
		0 10px 22px rgba(0, 0, 0, 0.1);
}

.ejournal-form input:focus,
.ejournal-form select:focus,
.ejournal-form textarea:focus {
	border-color: rgba(54, 198, 180, 0.65);
	outline: 2px solid rgba(54, 198, 180, 0.15);
	box-shadow:
		inset 0 0 0 1px rgba(54, 198, 180, 0.12),
		0 0 0 4px rgba(54, 198, 180, 0.055);
}

.ej-upload-zone {
	position: relative;
	padding: 18px;
	border: 1px dashed rgba(54, 198, 180, 0.48);
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, rgba(54, 198, 180, 0.105), rgba(214, 107, 189, 0.04)),
		rgba(5, 8, 11, 0.62);
	box-shadow: inset 0 0 34px rgba(54, 198, 180, 0.04);
}

.ej-upload-zone::after {
	position: absolute;
	top: 12px;
	right: 14px;
	content: "IMG";
	color: rgba(54, 198, 180, 0.52);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0;
}

.ej-upload-zone span {
	color: var(--text);
	font-size: 1rem;
}

.ej-upload-zone small {
	color: var(--muted);
	font-weight: 600;
}

.ejournal-form textarea {
	resize: vertical;
}

.ej-existing-media {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid rgba(54, 198, 180, 0.16);
	border-radius: var(--radius);
	background: rgba(5, 8, 11, 0.48);
}

.ej-media-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ej-media-heading span {
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 800;
}

.ej-existing-media__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ej-existing-media__grid label {
	display: grid;
	gap: 8px;
	overflow: hidden;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: var(--radius);
	background: rgba(9, 12, 15, 0.9);
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.3;
}

.ej-existing-media__grid img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
}

.ej-rich-editor {
	display: grid;
	gap: 10px;
	padding: 16px;
	border: 1px solid rgba(54, 198, 180, 0.16);
	border-radius: var(--radius);
	background:
		linear-gradient(180deg, rgba(54, 198, 180, 0.045), transparent 54%),
		rgba(255, 255, 255, 0.026);
}

.ej-rich-editor .wp-editor-wrap {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius);
	background: #0d1115;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.ej-rich-editor .wp-editor-tabs {
	padding: 8px 8px 0;
}

.ej-rich-editor .wp-switch-editor {
	min-height: 34px;
	border-color: rgba(255, 255, 255, 0.12);
	border-radius: 8px 8px 0 0;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 800;
}

.ej-rich-editor .quicktags-toolbar,
.ej-rich-editor div.mce-toolbar-grp {
	border-color: rgba(255, 255, 255, 0.1);
	background: #151b20;
}

.ej-rich-editor .quicktags-toolbar input {
	width: auto;
	min-height: 30px;
	margin: 2px;
	padding: 4px 8px;
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
}

.ej-rich-editor textarea.wp-editor-area {
	min-height: 320px;
	border: 0;
	border-radius: 0;
	background: #0d1115;
	color: var(--text);
}

.ej-rich-editor .mce-container,
.ej-rich-editor .mce-container *,
.ej-rich-editor .mce-widget,
.ej-rich-editor .mce-widget * {
	box-sizing: border-box;
}

.ej-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ej-notice {
	margin-bottom: 16px;
	padding: 12px 14px;
	border: 1px solid rgba(132, 199, 118, 0.45);
	border-radius: var(--radius);
	background: rgba(132, 199, 118, 0.1);
	color: #d8f5ce;
}

.ej-live-performance {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid rgba(54, 198, 180, 0.2);
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, rgba(54, 198, 180, 0.105), rgba(240, 184, 79, 0.055)),
		rgba(5, 8, 11, 0.58);
	box-shadow: inset 0 0 34px rgba(54, 198, 180, 0.05);
}

.ej-live-performance span {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 850;
	text-transform: uppercase;
}

.ej-live-performance strong {
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	color: var(--text);
	font-size: 0.92rem;
}

.ej-login-panel {
	display: grid;
	gap: 14px;
	max-width: 480px;
}

.ej-login-panel p {
	margin: 0 0 12px;
}

.ej-login-panel label {
	color: var(--muted);
	font-weight: 700;
}

.ej-entry-list {
	display: grid;
	gap: 14px;
}

.ej-entry-mini {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	background:
		linear-gradient(90deg, rgba(54, 198, 180, 0.06), transparent 38%),
		rgba(255, 255, 255, 0.028);
	transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.ej-entry-mini:hover {
	border-color: rgba(54, 198, 180, 0.34);
	background:
		linear-gradient(90deg, rgba(54, 198, 180, 0.095), transparent 42%),
		rgba(255, 255, 255, 0.038);
	transform: translateY(-1px);
}

.ej-entry-mini p {
	margin: 0;
	color: var(--muted);
}

.ej-entry-mini__actions {
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 8px;
}

.ej-entry-mini__actions button {
	min-height: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--magenta);
	font-weight: 750;
}

.page-header {
	margin-bottom: 34px;
}

.page-header p {
	max-width: 760px;
	color: var(--muted);
	font-size: 1.08rem;
}

.site-footer {
	padding: 34px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	background: #090b0d;
	color: var(--muted);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 18px;
}

.comments-area {
	max-width: 900px;
	margin: 44px auto 0;
	padding: 26px;
}

.comments-area__header {
	margin-bottom: 20px;
}

.comments-area__header h2,
.comment-reply-title {
	margin: 4px 0 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.comment-list {
	display: grid;
	gap: 14px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.03);
}

.comment-body {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 14px;
}

.comment-author img {
	border-radius: 8px;
}

.comment-author .fn {
	color: var(--text);
	font-weight: 850;
}

.comment-metadata,
.comment-awaiting-moderation {
	color: var(--muted);
	font-size: 0.86rem;
}

.comment-content {
	grid-column: 2;
	color: #e7ebe6;
}

.reply {
	grid-column: 2;
}

.comment-reply-link,
.comment-edit-link {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid rgba(54, 198, 180, 0.42);
	border-radius: 8px;
	color: var(--teal);
	font-weight: 800;
}

.comment-respond {
	margin-top: 20px;
	padding: 24px;
}

.ej-comment-form {
	display: grid;
	gap: 14px;
}

.ej-comment-form p {
	margin: 0;
}

.ej-comment-form label {
	display: block;
	margin-bottom: 7px;
	color: var(--muted);
	font-weight: 800;
}

.ej-comment-form input[type="text"],
.ej-comment-form input[type="email"],
.ej-comment-form input[type="url"],
.ej-comment-form textarea {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #0d1115;
	color: var(--text);
	font: inherit;
	padding: 11px 12px;
}

.ej-comment-form textarea {
	resize: vertical;
}

.ej-comment-form .form-submit input {
	border-color: rgba(54, 198, 180, 0.7);
	background: var(--teal);
	color: #071011;
	font-weight: 850;
}

@media (max-width: 900px) {
	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
		padding: 14px 0;
	}

	.site-nav,
	.site-nav ul {
		flex-wrap: wrap;
	}

	.ej-community-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.ej-community-nav {
		justify-content: flex-start;
	}

	.hero,
	.hero__inner {
		min-height: auto;
	}

	.hero__inner {
		grid-template-columns: 1fr;
		padding: 48px 0;
	}

	.hero__panel {
		align-self: auto;
	}

	.ej-journal-grid,
	.post-grid,
	.ej-member-grid,
	.ej-profile-grid,
	.single-journal__performance,
	.ej-performance-total,
	.ej-performance-row,
	.single-journal__body,
	.ej-studio-hero,
	.ej-studio {
		grid-template-columns: 1fr;
	}

	.ej-studio-hero {
		align-items: start;
	}

	.ej-studio-modes {
		justify-content: flex-start;
	}

	.single-journal__media {
		position: static;
	}

	.ej-performance-row > div:last-child {
		justify-content: flex-start;
	}
}

@media (max-width: 620px) {
	.site-header__inner,
	.site-footer__inner,
	.site-main,
	.hero__inner,
	.section-band__inner {
		width: min(100% - 22px, var(--max));
	}

	.header-actions,
	.hero__actions,
	.ej-actions,
	.section-heading,
	.ej-entry-mini,
	.ej-member-card {
		align-items: stretch;
		flex-direction: column;
	}

	.header-community-actions {
		align-self: stretch;
		justify-content: center;
		padding: 0 0 4px;
	}

	.ej-community-hero,
	.bp-panel--community {
		padding: 18px;
	}

	.ej-community-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.ej-community-nav a {
		justify-content: center;
		text-align: center;
	}

	.bp-panel--community table.notifications,
	.bp-panel--community table.notifications tbody,
	.bp-panel--community table.notifications tr,
	.bp-panel--community table.notifications td {
		display: block;
		width: 100%;
	}

	.bp-panel--community table.notifications thead {
		display: none;
	}

	.ej-member-card,
	.ej-profile-hero,
	.ej-profile-photo-edit,
	.ej-profile-fields div,
	.comment-body {
		grid-template-columns: 1fr;
	}

	.single-journal__content,
	.comments-area,
	.comment-respond {
		padding: 18px;
	}

	.comment-content,
	.reply {
		grid-column: 1;
	}

	.header-actions .button,
	.hero__actions .button,
	.ej-actions .button,
	.ej-actions button {
		width: 100%;
	}

	.journal-type-list,
	.ej-form-grid,
	.ej-media-grid,
	.ej-existing-media__grid {
		grid-template-columns: 1fr;
	}

	.hero h1,
	.page-title {
		font-size: 2.4rem;
	}

	.ej-studio-shell {
		padding: 12px;
	}

	.ej-studio-hero,
	.ej-studio__form,
	.ej-studio__list {
		padding: 16px;
	}

	.ej-studio-hero h2 {
		font-size: 2rem;
	}

	.ej-panel-heading,
	.ej-entry-mini {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ej-entry-mini__actions {
		align-items: stretch;
	}
}
