/* Hero layout: compact for guests, minimal for logged-in users. */
body.ritz-kh-approved #ritz-kh-hero-intro,
body.ritz-kh-approved #ritz-kh-hero-divider,
body.ritz-kh-pending #ritz-kh-hero-intro,
body.ritz-kh-pending #ritz-kh-hero-divider {
	display: none !important;
}

/* Keep breadcrumb below fixed header (downloads template uses 96px). */
body.ritz-kh-page #ritz-kh-hero-breadcrumb {
	margin-top: 96px !important;
	position: relative;
	z-index: 1;
}

body.ritz-kh-approved #ritz-kh-hero-breadcrumb,
body.ritz-kh-pending #ritz-kh-hero-breadcrumb {
	padding-top: 12px !important;
	padding-bottom: 8px !important;
}

body.ritz-kh-approved #knowledge-hub-section,
body.ritz-kh-pending #knowledge-hub-section {
	margin-top: 0 !important;
	padding-top: 16px !important;
}

body.ritz-kh-guest #ritz-kh-hero-breadcrumb {
	padding-top: 24px !important;
	padding-bottom: 16px !important;
}

body.ritz-kh-guest #ritz-kh-hero-intro {
	padding-top: 16px !important;
	padding-bottom: 8px !important;
}

body.ritz-kh-guest #ritz-kh-hero-intro > .e-con-inner > .elementor-element.elementor-widget-image:first-child,
body.ritz-kh-guest #ritz-kh-hero-intro .elementor-widget-image:last-child,
body.ritz-kh-guest #ritz-kh-hero-divider {
	display: none !important;
}

body.ritz-kh-guest #ritz-kh-hero-intro .elementor-heading-title {
	font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
	line-height: 1.2 !important;
}

body.ritz-kh-guest #knowledge-hub-section {
	padding-top: 32px !important;
}

.ritz-kh-frontend {
	width: 100%;
	max-width: 100%;
	margin-top: 10px;
}

.elementor-widget-shortcode .ritz-kh-frontend,
#knowledge-hub-section .elementor-widget-shortcode {
	width: 100%;
}

.ritz-kh-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.ritz-kh-panels--single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 520px;
}

.ritz-kh-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}

.ritz-kh-form-link {
	font-size: 14px;
	line-height: 1.4;
	color: #c8102e;
	text-decoration: underline;
}

.ritz-kh-form-link:hover,
.ritz-kh-form-link:focus {
	color: #a00d24;
}

.ritz-kh-panel,
.ritz-kh-status-card {
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.ritz-kh-panel h3 {
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 3px solid #c8102e;
	color: #1d2327;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ritz-kh-status-card h3 {
	margin: 0 0 12px;
	font-size: 1.35rem;
	font-weight: 700;
}

.ritz-kh-panel__intro,
.ritz-kh-muted {
	color: #5f5f5f;
}

.ritz-kh-form p {
	margin: 0 0 16px;
}

.ritz-kh-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.ritz-kh-form input[type="text"],
.ritz-kh-form input[type="email"],
.ritz-kh-form input[type="tel"],
.ritz-kh-form input[type="password"],
.ritz-kh-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font: inherit;
}

.ritz-kh-form textarea {
	resize: vertical;
	min-height: 84px;
}

.ritz-kh-button {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: #c8102e;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.ritz-kh-button--secondary {
	background: #1d2327;
}

.ritz-kh-button--ghost {
	background: transparent;
	color: #1d2327;
	border: 1px solid #c3c4c7;
}

.ritz-kh-notice {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 4px;
}

.ritz-kh-notice--success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
}

.ritz-kh-notice--error {
	background: #fcf0f1;
	border-left: 4px solid #c8102e;
}

.ritz-kh-notice--info {
	background: #f0f6fc;
	border-left: 4px solid #1d2327;
}

.ritz-kh-status-card--approved {
	border-left: 4px solid #00a32a;
}

.ritz-kh-logout-form {
	margin-top: 0;
}

.ritz-kh-portal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e2e4e7;
}

.ritz-kh-portal-header h3 {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ritz-kh-portal-header__category-description {
	margin: 0 0 8px;
	color: #5f5f5f;
	line-height: 1.5;
}

.ritz-kh-category-picker__title,
.ritz-kh-category-view__title {
	margin: 0 0 10px;
	font-size: 1.35rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ritz-kh-category-picker__intro {
	margin: 0 0 24px;
	color: #5f5f5f;
}

.ritz-kh-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.ritz-kh-category-button {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 160px;
	padding: 28px 24px;
	border: 2px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ritz-kh-category-button:hover,
.ritz-kh-category-button:focus {
	border-color: #c8102e;
	box-shadow: 0 12px 28px rgba(200, 16, 46, 0.12);
	transform: translateY(-2px);
	color: #1d2327;
}

.ritz-kh-category-button__name {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ritz-kh-category-button__description {
	margin-top: 10px;
	color: #5f5f5f;
	font-size: 0.95rem;
	line-height: 1.5;
}

.ritz-kh-category-button__meta {
	margin-top: auto;
	padding-top: 18px;
	color: #c8102e;
	font-size: 0.9rem;
	font-weight: 600;
}

.ritz-kh-category-view__back {
	margin: 0 0 32px;
}

.ritz-kh-category-view__back a {
	color: #8c8f94;
	font-size: 0.82rem;
	font-weight: 400;
	text-decoration: none;
}

.ritz-kh-category-view__back a:hover,
.ritz-kh-category-view__back a:focus {
	color: #5f5f5f;
	text-decoration: underline;
}

.ritz-kh-category-layout {
	display: grid;
	grid-template-columns: minmax(0, 640px) minmax(220px, 280px);
	gap: 24px 40px;
	align-items: start;
}

.ritz-kh-category-layout__main {
	min-width: 0;
}

.ritz-kh-help-sidebar {
	position: sticky;
	top: 112px;
}

.ritz-kh-help-card {
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	padding: 22px 20px 20px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
	border-top: 3px solid #c8102e;
}

.ritz-kh-help-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #fcf0f1;
	color: #c8102e;
}

.ritz-kh-help-card__eyebrow {
	margin: 0 0 4px;
	color: #8c8f94;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ritz-kh-help-card__title {
	margin: 0 0 10px;
	color: #1d2327;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}

.ritz-kh-help-card__text {
	margin: 0 0 16px;
	color: #5f5f5f;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ritz-kh-help-card__contacts {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.ritz-kh-help-card__contacts a {
	display: grid;
	grid-template-columns: 28px 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 1px;
	padding: 10px 12px;
	border: 1px solid #eceef0;
	border-radius: 6px;
	background: #f7f8f9;
	color: #1d2327;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ritz-kh-help-card__contacts a:hover,
.ritz-kh-help-card__contacts a:focus {
	border-color: #c8102e;
	background: #fff;
}

.ritz-kh-help-card__contact-icon {
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c8102e;
}

.ritz-kh-help-card__contact-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8c8f94;
}

.ritz-kh-help-card__contact-value {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
	word-break: break-word;
}

.ritz-kh-help-card__actions {
	display: grid;
	gap: 10px;
}

#knowledge-hub-section .ritz-kh-help-card__button,
.ritz-kh-frontend .ritz-kh-help-card__button {
	display: block;
	padding: 11px 14px;
	border: 2px solid #c8102e;
	border-radius: 4px;
	background: #fff;
	color: #c8102e;
	font-size: 0.88rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#knowledge-hub-section .ritz-kh-help-card__button:hover,
#knowledge-hub-section .ritz-kh-help-card__button:focus,
#knowledge-hub-section .ritz-kh-help-card__button:visited,
.ritz-kh-frontend .ritz-kh-help-card__button:hover,
.ritz-kh-frontend .ritz-kh-help-card__button:focus,
.ritz-kh-frontend .ritz-kh-help-card__button:visited {
	background: #c8102e;
	border-color: #c8102e;
	color: #fff;
	text-decoration: none;
}

.ritz-kh-category-view__description {
	margin: 0 0 20px;
	color: #5f5f5f;
}

.ritz-kh-empty-state {
	padding: 24px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #fafafa;
	color: #5f5f5f;
}

.ritz-kh-empty-state--compact {
	margin-top: 8px;
}

.ritz-kh-document-groups {
	display: grid;
	gap: 0;
	max-width: 640px;
}

.ritz-kh-document-group {
	margin-top: 40px;
}

.ritz-kh-document-group:first-child {
	margin-top: 0;
}

.ritz-kh-document-group__header {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e2e4e7;
}

.ritz-kh-document-group__title {
	margin: 0 0 3px;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ritz-kh-document-group__title:last-child {
	margin-bottom: 0;
}

.ritz-kh-document-group__description {
	margin: 0;
	color: #5f5f5f;
	font-size: 0.92rem;
	line-height: 1.4;
}

.ritz-kh-document-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.ritz-kh-document-item {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid #e2e4e7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ritz-kh-document-item__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.ritz-kh-document-item__icon {
	flex: 0 0 auto;
}

.ritz-kh-document-item__intro {
	min-width: 0;
}

.ritz-kh-file-icon {
	display: inline-flex;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.ritz-kh-file-icon svg {
	width: 26px;
	height: 26px;
}

.ritz-kh-file-icon--pdf {
	background: #c8102e;
}

.ritz-kh-file-icon--zip {
	background: #5f5f5f;
}

.ritz-kh-file-icon--model {
	background: #1d4f91;
}

.ritz-kh-file-icon--document {
	background: #1d2327;
}

.ritz-kh-document-item__title {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.ritz-kh-document-item__description {
	margin: 0;
	color: #5f5f5f;
	font-size: 0.92rem;
	line-height: 1.5;
}

.ritz-kh-document-item__download {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	border: 1px solid #eceef0;
	border-radius: 10px;
	background: #f7f8f9;
	color: #1d2327;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ritz-kh-document-item__download:hover,
.ritz-kh-document-item__download:focus {
	border-color: #c8102e;
	background: #fff;
	box-shadow: 0 2px 8px rgba(200, 16, 46, 0.08);
	color: #1d2327;
}

.ritz-kh-document-item__file {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.ritz-kh-document-item__file-name {
	font-size: 0.88rem;
	font-weight: 600;
	word-break: break-word;
}

.ritz-kh-document-item__file-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 0.8rem;
	line-height: 1.35;
	color: #5f5f5f;
}

.ritz-kh-document-item__file-meta > span + span::before {
	content: "·";
	margin: 0 0.45em;
	color: #8c8f94;
	font-weight: 400;
}

.ritz-kh-document-item__file-version {
	display: inline-flex;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eceef0;
	color: #1d2327;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ritz-kh-document-item__file-date,
.ritz-kh-document-item__file-size,
.ritz-kh-document-item__file-note {
	color: #5f5f5f;
}

.ritz-kh-document-item__file-note {
	font-style: italic;
}

.ritz-kh-document-item__download-label {
	flex: 0 0 auto;
	padding: 6px 14px;
	border-radius: 999px;
	background: #c8102e;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.ritz-kh-document-item__download:hover .ritz-kh-document-item__download-label,
.ritz-kh-document-item__download:focus .ritz-kh-document-item__download-label {
	background: #a00d24;
}

@media (max-width: 900px) {
	.ritz-kh-panels {
		grid-template-columns: 1fr;
	}

	.ritz-kh-portal-header {
		flex-direction: column;
	}

	.ritz-kh-category-grid {
		grid-template-columns: 1fr;
	}

	.ritz-kh-category-layout {
		grid-template-columns: 1fr;
	}

	.ritz-kh-help-sidebar {
		position: static;
		order: 2;
	}

	.ritz-kh-document-groups {
		max-width: none;
	}

	.ritz-kh-document-item__download {
		flex-direction: column;
		align-items: stretch;
	}

	.ritz-kh-document-item__download-label {
		align-self: flex-end;
	}
}
