.osjgp-wrap {
	width: min(1120px, calc(100vw - 2rem));
	max-width: 100%;
	margin: clamp(1.5rem, 3vw, 2.5rem) auto;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

.osjgp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
	gap: clamp(1rem, 2.5vw, 1.75rem);
	align-items: start;
}

.osjgp-main,
.osjgp-sidebar {
	min-width: 0;
}

.osjgp-card {
	border: 1px solid var(--osj-border, #cfc7b8);
	border-radius: 4px;
	background: var(--osj-surface, #fffdf7);
	padding: clamp(1.1rem, 2.2vw, 1.45rem);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
	font-family: inherit;
	color: inherit;
}

.osjgp-side-card {
	background: var(--osj-surface-soft, #fbf6ea);
}

.osjgp-card + .osjgp-card,
.osjgp-sidebar .osjgp-card + .osjgp-card {
	margin-top: 1rem;
}

.osjgp-card h2,
.osjgp-card h3,
.osjgp-card h4 {
	margin-top: 0;
	line-height: 1.25;
	font-family: inherit;
	color: inherit;
}

.osjgp-card h2 {
	font-size: clamp(1.65rem, 2.4vw, 2rem);
}

.osjgp-card h3 {
	font-size: clamp(1.2rem, 1.7vw, 1.35rem);
}

.osjgp-card p,
.osjgp-card li {
	font-family: inherit;
}

.osjgp-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
	font-family: inherit;
}

.osjgp-form input[type="text"],
.osjgp-form input[type="email"],
.osjgp-form input[type="url"],
.osjgp-form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--osj-border-strong, #bdb3a3);
	border-radius: 3px;
	padding: 0.6rem;
	background: #fff;
	color: inherit;
	box-sizing: border-box;
	font: inherit;
}

.osjgp-form textarea {
	min-height: 7rem;
}

.osjgp-check label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-weight: 400;
}

.osjgp-button {
	display: inline-block;
	border: 1px solid var(--osj-text, #2c2a26);
	border-radius: 3px;
	background: var(--osj-text, #2c2a26);
	color: #fff;
	padding: 0.55rem 0.85rem;
	text-decoration: none;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
}

.osjgp-button:hover,
.osjgp-button:focus {
	background: #111;
	color: #fff;
}

.osjgp-button-secondary {
	background: var(--osj-surface-soft, #f7f2e8);
	color: var(--osj-text, #2c2a26);
}

.osjgp-button-secondary:hover,
.osjgp-button-secondary:focus {
	background: #e9dfcf;
	color: #111;
}

.osjgp-notice {
	border-left: 4px solid #7b6a4f;
	background: #fff8e7;
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	font-family: inherit;
}

.osjgp-notice-success {
	border-left-color: #2c6e49;
}

.osjgp-notice-error {
	border-left-color: #9f2f24;
}

.osjgp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.osjgp-guidelines {
	border-top: 1px solid #d8d0c0;
	margin-top: 1rem;
	padding-top: 1rem;
}

.osjgp-guidelines li,
.osjgp-side-list li {
	margin: 0.25rem 0;
}

.osjgp-side-list {
	padding-left: 1.2rem;
	margin-bottom: 0;
}

.osjgp-muted {
	opacity: 0.78;
}

.osjgp-actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.osjgp-post-list {
	padding-left: 1.2rem;
}

.osjgp-post-list li {
	margin: 0.35rem 0;
}

.osjgp-post-list span,
.osjgp-status {
	display: inline-block;
	margin-left: 0.35rem;
	border: 1px solid #cfc7b8;
	border-radius: 3px;
	padding: 0.05rem 0.35rem;
	background: #f7f2e8;
	font: inherit;
	font-size: 0.82rem;
}

.osjgp-admin .widefat td {
	vertical-align: top;
}

@media (max-width: 820px) {
	.osjgp-wrap {
		width: min(100%, calc(100vw - 1.25rem));
		margin-inline: auto;
	}

	.osjgp-layout {
		grid-template-columns: 1fr;
	}
}

.osjgp-inline-note {
	border-left: 4px solid var(--osj-accent, #2c6e49);
	background: var(--osj-surface-soft, #fbf6ea);
	padding: 0.75rem 0.85rem;
	margin: 1rem 0;
}

.osjgp-inline-note strong {
	display: block;
	margin-bottom: 0.2rem;
}

.osjgp-field-help {
	display: block;
	margin-top: 0.25rem;
	opacity: 0.75;
	font-size: 0.9em;
}

.osjgp-admin small {
	opacity: 0.7;
}

.osjgp-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1rem 0;
}

.osjgp-mini-card {
	border: 1px solid var(--osj-border, #cfc7b8);
	background: var(--osj-surface-soft, #fbf6ea);
	border-radius: 4px;
	padding: 0.75rem;
}

.osjgp-mini-card strong {
	display: block;
	font-size: 1.45rem;
	line-height: 1;
}

.osjgp-mini-card span {
	display: block;
	margin-top: 0.25rem;
	opacity: 0.8;
	font-size: 0.92em;
}

.osjgp-table-wrap {
	overflow-x: auto;
	margin: 0.75rem 0 1rem;
}

.osjgp-post-table {
	width: 100%;
	border-collapse: collapse;
	font: inherit;
}

.osjgp-post-table th,
.osjgp-post-table td {
	border-bottom: 1px solid var(--osj-border, #cfc7b8);
	padding: 0.55rem 0.45rem;
	text-align: left;
	vertical-align: top;
}

.osjgp-post-table th {
	font-weight: 700;
	background: var(--osj-surface-soft, #fbf6ea);
}

.osjgp-post-table a {
	font-weight: 700;
}

.osjgp-status-draft {
	background: #f7f2e8;
}

.osjgp-status-pending {
	background: #fff4d6;
}

.osjgp-status-publish {
	background: #eaf5ec;
}

@media (max-width: 640px) {
	.osjgp-dashboard-grid {
		grid-template-columns: 1fr;
	}
}
