/**
 * Shared RSM Suite wp-admin styles.
 */

.rsmspark-suite-admin .nav-tab-wrapper {
	margin: 1em 0 0;
}

.rsm-settings-page .rsm-settings-tab-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: none;
	padding: 1em 1.5em 1.5em;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.rsm-settings-page .form-table th {
	width: 220px;
}

.rsm-settings-page .rsm-settings-section-title {
	margin: 0 0 1em;
	padding: 0;
	font-size: 1.1em;
}

.rsmspark-suite-admin .rsmspark-suite-plugin-list {
	list-style: disc;
	margin-left: 1.5em;
}

.rsm-license-tier-label {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	color: #fff;
	background: #ff6b35;
	border-radius: 3px;
	vertical-align: middle;
}

.rsm-license-notice p {
	margin: 0.5em 0;
}

.rsmspark-suite-admin .notice.rsm-inline-notice {
	margin-top: 1em;
}

#wpbody-content .notice.rsm-getting-started-notice,
#wpbody-content .notice.rsmspark-suite-admin-notice,
.wrap .notice.rsm-getting-started-notice,
.wrap .notice.rsmspark-suite-admin-notice {
	margin: 12px 0 16px;
	padding: 0;
	background: #fff6f1 !important;
	border: 1px solid #f0d4c4;
	border-left: 4px solid #ff6b35 !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rsm-getting-started-notice__inner,
.rsmspark-suite-admin-notice__inner {
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding: 14px 18px;
}

.rsm-getting-started-notice__content,
.rsmspark-suite-admin-notice__content {
	flex: 1 1 auto;
	min-width: 0;
}

.rsm-getting-started-notice__brand,
.rsmspark-suite-admin-notice__brand {
	flex: 0 0 auto;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
	max-width: 40%;
	min-width: 80px;
	padding-left: 12px;
}

.rsm-getting-started-notice__logo,
.rsmspark-suite-admin-notice__logo {
	display: block;
	height: 100%;
	max-height: 100%;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	object-position: center right;
}

.rsm-getting-started-notice__message,
.rsmspark-suite-admin-notice__message {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.rsm-getting-started-notice__actions,
.rsmspark-suite-admin-notice__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.rsm-getting-started-notice__action,
.rsmspark-suite-admin-notice__action {
	font-weight: 600;
	text-decoration: none;
}

.rsm-getting-started-notice__action--pro,
.rsmspark-suite-admin-notice__action--pro {
	color: #c44f00;
}

.rsm-getting-started-notice__action--pro:hover,
.rsm-getting-started-notice__action--pro:focus,
.rsmspark-suite-admin-notice__action--pro:hover,
.rsmspark-suite-admin-notice__action--pro:focus {
	color: #ff6b35;
	text-decoration: underline;
}

.rsm-getting-started-notice__action--remind,
.rsm-getting-started-notice__action--hide,
.rsm-getting-started-notice__action--primary,
.rsmspark-suite-admin-notice__action--remind,
.rsmspark-suite-admin-notice__action--hide,
.rsmspark-suite-admin-notice__action--primary {
	color: #1d2327;
}

.rsm-getting-started-notice__action--remind:hover,
.rsm-getting-started-notice__action--remind:focus,
.rsm-getting-started-notice__action--hide:hover,
.rsm-getting-started-notice__action--hide:focus,
.rsm-getting-started-notice__action--primary:hover,
.rsm-getting-started-notice__action--primary:focus,
.rsmspark-suite-admin-notice__action--remind:hover,
.rsmspark-suite-admin-notice__action--remind:focus,
.rsmspark-suite-admin-notice__action--hide:hover,
.rsmspark-suite-admin-notice__action--hide:focus,
.rsmspark-suite-admin-notice__action--primary:hover,
.rsmspark-suite-admin-notice__action--primary:focus {
	color: #ff6b35;
	text-decoration: underline;
}

/* Branded hub header (shared across RSM plugins). */
.rsmspark-suite-admin-header {
	background: #ff6b35;
	color: #fff;
	margin: 0;
	padding: 18px 24px;
}

.rsmspark-suite-admin-hub .rsmspark-suite-admin-header,
body.rsmspark-suite-admin-screen .rsmspark-suite-admin-header {
	margin-left: -20px;
	margin-right: 0;
}

body[class*="post-type-"] .rsmspark-suite-admin-header {
	margin: 0 -20px 16px;
}

.rsmspark-suite-admin-header__kicker {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.9;
}

.rsmspark-suite-admin-header__title {
	margin: 0;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 700;
}

.rsmspark-suite-admin-hub {
	--rsmspark-suite-bar: #eef2f6;
	--rsm-brand-dark: #c2410c;
}

.rsmspark-suite-admin-hub .rsm-settings-page {
	margin-top: 0;
}

/**
 * Hub settings tabs — Forms reference (inactive dark bold, active orange on white pill).
 */
body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper {
	margin-left: -20px !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 10px 16px;
	background: var(--rsmspark-suite-bar, #eef2f6);
	border: 1px solid #d0d7de;
	border-top: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.65);
}

body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab {
	margin: 0;
	float: none;
	border: 1px solid transparent !important;
	border-radius: 4px;
	background: transparent !important;
	color: #334155 !important;
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab:hover,
body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab:focus {
	color: var(--rsm-brand-dark, #c2410c) !important;
	background: #fff !important;
	border-color: #d1d5db !important;
}

body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab.nav-tab-active,
body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab.nav-tab-active:hover,
body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab.nav-tab-active:focus,
body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab[aria-current="page"],
body.rsmspark-suite-admin-screen .rsmspark-suite-admin-hub .nav-tab-wrapper .nav-tab.current {
	background: #fff !important;
	color: var(--rsm-brand-dark, #c2410c) !important;
	border-color: #cbd5e1 !important;
	font-weight: 600;
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

/* Unified hub shell primitives (additive). */
.rsmspark-suite-hub-chrome {
	--rsmspark-suite-brand: #ff6b35;
	--rsmspark-suite-brand-hover: #e85a24;
	--rsmspark-suite-subnav-bg: #eef2f6;
	--rsmspark-suite-border: #d0d7de;
	--rsmspark-suite-text: #1d2327;
	--rsmspark-suite-muted: #4b5563;
	margin: 0 0 16px;
}

.rsmspark-suite-hub-chrome .rsmspark-suite-admin-header {
	margin-bottom: 0;
	padding-bottom: 10px;
}

.rsmspark-suite-hub-subnav {
	margin: 0;
	padding: 10px 16px;
	background: var(--rsmspark-suite-subnav-bg);
	border: 1px solid var(--rsmspark-suite-border);
	border-top: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rsmspark-suite-hub-subnav a {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 4px;
	text-decoration: none;
	color: var(--rsmspark-suite-text);
	border: 1px solid transparent;
	font-weight: 600;
}

.rsmspark-suite-hub-subnav a:hover,
.rsmspark-suite-hub-subnav a:focus {
	color: var(--rsmspark-suite-brand-hover);
	border-color: #cbd5e1;
	outline: none;
}

.rsmspark-suite-hub-subnav a[aria-current="page"],
.rsmspark-suite-hub-subnav .is-active {
	background: #fff;
	color: var(--rsmspark-suite-text);
	border-color: var(--rsmspark-suite-border);
}

/**
 * Suite section tabs — grey bar primary navigation (Forms reference).
 * Inactive: dark bold (#334155). Active: orange bold on white pill. Not bucket chips.
 */
.rsmspark-suite-section-tabs .rsmspark-suite-section-tabs__item,
.rsm-media-subnav .rsm-media-subnav__item {
	margin: 0;
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #334155 !important;
	text-decoration: none;
	background: transparent !important;
	box-shadow: none;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.rsmspark-suite-section-tabs .rsmspark-suite-section-tabs__item:not(.is-active):not([aria-current="page"]),
.rsm-media-subnav .rsm-media-subnav__item:not(.is-active):not([aria-current="page"]) {
	color: #334155 !important;
	font-weight: 600 !important;
}

.rsmspark-suite-section-tabs .rsmspark-suite-section-tabs__item:hover,
.rsmspark-suite-section-tabs .rsmspark-suite-section-tabs__item:focus,
.rsm-media-subnav .rsm-media-subnav__item:hover,
.rsm-media-subnav .rsm-media-subnav__item:focus {
	color: #c2410c !important;
	background: #fff !important;
	border-color: #d1d5db !important;
}

.rsmspark-suite-section-tabs .rsmspark-suite-section-tabs__item.is-active,
.rsmspark-suite-section-tabs .rsmspark-suite-section-tabs__item[aria-current="page"],
.rsm-media-subnav .rsm-media-subnav__item.is-active,
.rsm-media-subnav .rsm-media-subnav__item[aria-current="page"] {
	color: #c2410c !important;
	background: #fff !important;
	border-color: #cbd5e1 !important;
	font-weight: 600 !important;
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

/* Dismissible hub note rendered in header chrome. */
.rsmspark-suite-hub-note {
	margin: 8px 16px 0;
	padding: 10px 12px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 6px;
	color: #9a3412;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.rsmspark-suite-hub-note__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.rsmspark-suite-hub-note__dismiss {
	border: none;
	background: transparent;
	color: #9a3412;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0 2px;
}

.rsmspark-suite-hub-note__dismiss:hover,
.rsmspark-suite-hub-note__dismiss:focus {
	color: #7c2d12;
	outline: none;
}

/* Semantic admin button variants. */
.rsmspark-suite-actions .button.rsmspark-suite-btn-primary,
.button.rsmspark-suite-btn-primary {
	background: var(--rsmspark-suite-brand);
	border-color: var(--rsmspark-suite-brand);
	color: #fff;
}

.rsmspark-suite-actions .button.rsmspark-suite-btn-primary:hover,
.rsmspark-suite-actions .button.rsmspark-suite-btn-primary:focus,
.button.rsmspark-suite-btn-primary:hover,
.button.rsmspark-suite-btn-primary:focus {
	background: var(--rsmspark-suite-brand-hover);
	border-color: var(--rsmspark-suite-brand-hover);
	color: #fff;
}

.rsmspark-suite-actions .button.rsmspark-suite-btn-secondary,
.button.rsmspark-suite-btn-secondary {
	background: #fff;
	border-color: #cbd5e1;
	color: var(--rsmspark-suite-text);
}

.rsmspark-suite-actions .button.rsmspark-suite-btn-secondary:hover,
.rsmspark-suite-actions .button.rsmspark-suite-btn-secondary:focus,
.button.rsmspark-suite-btn-secondary:hover,
.button.rsmspark-suite-btn-secondary:focus {
	border-color: #94a3b8;
	color: var(--rsmspark-suite-text);
}

.rsmspark-suite-actions .button.rsmspark-suite-btn-success,
.button.rsmspark-suite-btn-success {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff;
}

.rsmspark-suite-actions .button.rsmspark-suite-btn-danger,
.button.rsmspark-suite-btn-danger {
	background: #be123c;
	border-color: #be123c;
	color: #fff;
}

.rsmspark-suite-actions .button.rsmspark-suite-btn-utility,
.button.rsmspark-suite-btn-utility {
	background: #334155;
	border-color: #334155;
	color: #fff;
}
