/* Shared salon and expert seminar layout; service files contain only differences. */
:is(.salon, .expert) {
	--green-soft: var(--welmana-green-soft);
	--orange: var(--welmana-brand-orange);
	--orange-soft: var(--welmana-orange-soft);
	--line: var(--welmana-line);
	color: var(--welmana-text-primary);
	overflow-wrap: anywhere;
}

:is(.salon, .expert) {
	width: var(--welmana-member-page-width);
	margin-inline: auto;
	padding: 1.125rem 0 0;
}

:is(.salon, .expert) .breadcrumb {
	font-size: 0.8125rem;
	color: var(--welmana-text-muted);
	margin: 0.25rem 0 1.5rem;
}

:is(.salon, .expert) .hero {
	position: relative;
	min-height: 13.75rem;
	padding: 0 0 1.5rem;
	overflow: hidden;
}

:is(.salon, .expert) .hero h2 {
	font-size: 1.625rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

:is(.salon, .expert) .hero p:not(.lead):not(.sublead) {
	font-size: 1rem;
	line-height: 1.8;
	margin: 0;
}

:is(.salon, .expert) .deco {
	position: absolute;
	border-radius: 50%;
	opacity: .62;
}

:is(.salon, .expert) .d1 {
	width: 7.5rem;
	height: 7.5rem;
	background: var(--green-soft);
	right: 120px;
	top: 12px;
}

:is(.salon, .expert) .d2 {
	width: 4.5rem;
	height: 4.5rem;
	background: var(--green-soft);
	right: 260px;
	top: 78px;
}

:is(.salon, .expert) .d3 {
	width: 3.875rem;
	height: 3.875rem;
	background: var(--orange-soft);
	right: 350px;
	top: 6px;
}

:is(.salon, .expert) .d4 {
	width: 3.625rem;
	height: 3.625rem;
	background: var(--orange-soft);
	right: 38px;
	top: 128px;
}

:is(.salon, .expert) .next {
	background: linear-gradient(90deg, #fff5ec, #fffaf6);
	border-radius: 0.875rem;
	padding: 1.25rem 1.375rem 1.5rem;
	margin: 0 0 1.75rem;
}

:is(.salon, .expert) .next-title {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--orange);
	font-size: 1.875rem;
	font-weight: 800;
	margin: 0 0 1.125rem;
}

:is(.salon, .expert) .next-card {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 1.125rem;
	background: #fff;
	border-radius: 0.75rem;
	padding: 1.125rem;
	border: 1px solid #f3e8df;
}

:is(.salon, .expert) .info-pane {
	padding: 0.25rem 0.875rem 0.25rem 0.5rem;
	border-right: 1px solid var(--line);
}

:is(.salon, .expert) .round {
	display: inline-block;
	background: var(--orange-soft);
	color: var(--orange);
	font-weight: 800;
	border-radius: 0.375rem;
	padding: 0.375rem 0.625rem;
	margin-bottom: 0.5rem;
}

:is(.salon, .expert) .event-title {
	margin-top: 0;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 0.375rem;
}

:is(.salon, .expert) .event-sub {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 1.5rem;
}

:is(.salon, .expert) .info-row {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: 0.875rem;
	margin: 1rem 0;
	align-items: start;
}

:is(.salon, .expert) .info-row .label {
	font-weight: 700;
	color: #394150;
}

:is(.salon, .expert) .info-row .value {
	margin: 0;
	font-weight: 700;
}

:is(.salon, .expert) .info-row .value.desc {
	font-weight: 400;
	line-height: 1.8;
	color: var(--welmana-text-body);
}

:is(.salon, .expert) .zoom-pane {
	background: linear-gradient(180deg, #f2f8ee, var(--welmana-green-soft));
	border-radius: 0.625rem;
	padding: 1.125rem 1.25rem;
}

:is(.salon, .expert) .zoom-title {
	font-size: 1.3125rem;
	color: var(--welmana-brand-green);
	font-weight: 800;
	margin-top: 0;
	margin-bottom: 0.875rem;
}

:is(.salon, .expert) .zoom-btn {
	display: block;
	text-align: center;
	padding: 0.875rem;
	font-size: 1.125rem;
	font-weight: 800;
	margin-bottom: 1.125rem;
}

:is(.salon, .expert) .zoom-grid {
	margin: 0;
	display: grid;
	grid-template-columns: 9.375rem 1fr;
	gap: 0.875rem 0.875rem;
	font-size: 1rem;
}

:is(.salon, .expert) .zoom-grid dd {
	margin: 0;
	font-weight: 700;
	font-size: 1.125rem;
}

:is(.salon, .expert) .note {
	margin-top: 1.125rem;
	background: #f4f6f8;
	border-radius: 0.5rem;
	padding: 0.75rem 0.875rem;
	color: #5c6470;
	font-size: 0.8125rem;
	line-height: 1.7;
}

:is(.salon, .expert) .archive-head {
	margin: 0.5rem 0 1rem;
}

:is(.salon, .expert) .archive-head h2 {
	font-size: 1.875rem;
	color: var(--welmana-brand-green);
	margin: 0 0 0.375rem;
}

:is(.salon, .expert) .archive-head p {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}

:is(.salon, .expert) .archives {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.875rem;
	padding: 0;
	margin-bottom: 2.5rem;
	list-style: none;
}

:is(.salon, .expert) .archive-card {
	border: 1px solid var(--line);
	border-radius: 0.625rem;
	background: #fff;
	padding: 0.875rem;
	display: grid;
	grid-template-columns: 6.5625rem 1fr;
	gap: 0.875rem;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .025);
}

:is(.salon, .expert) .datebox span {
	display: block;
}

:is(.salon, .expert) .datebox {
	background: var(--green-soft);
	border-radius: 0.5rem;
	padding: 0.625rem;
	text-align: center;
	color: var(--welmana-brand-green);
	font-weight: 800;
}

:is(.salon, .expert) .datebox .year {
	font-size: 0.875rem;
}

:is(.salon, .expert) .datebox .date {
	font-size: 1.75rem;
	line-height: 1.1;
	margin: 0.25rem 0;
}

:is(.salon, .expert) .datebox .open {
	font-size: 0.8125rem;
}

:is(.salon, .expert) .archive-copy {
	display: flex;
	flex-direction: column;
}

:is(.salon, .expert) .archive-copy .roundno {
	font-size: 0.875rem;
	margin-bottom: 0.375rem;
}

:is(.salon, .expert) .archive-copy h3 {
	font-size: 1.25rem;
	margin: 0 0 0.25rem;
	line-height: 1.35;
}

:is(.salon, .expert) .archive-copy p {
	font-size: 0.875rem;
	margin: 0 0 0.875rem;
	line-height: 1.5;
	color: var(--welmana-text-body);
}

:is(.salon, .expert) .archive-btn {
	margin-top: auto;
	grid-column: 1 / -1;
	border: 1.5px solid var(--welmana-brand-green);
	color: var(--welmana-brand-green);
	border-radius: 0.4375rem;
	text-align: center;
	padding: 0.625rem;
	font-weight: 800;
}

/* Match the management introduction color without changing event content. */
:is(.salon, .expert) .hero .lead {
	color: var(--welmana-text-primary);
}

:is(.salon, .expert) .info-pane, :is(.salon, .expert) .zoom-pane, :is(.salon, .expert) .archive-copy {
	min-width: 0;
}

:is(.salon, .expert) .value.desc > :first-child {
	margin-top: 0;
}

:is(.salon, .expert) .value.desc > :last-child {
	margin-bottom: 0;
}

:is(.salon, .expert) a.archive-btn {
	color: var(--welmana-brand-green);
}

/* Strengthen the border inward without changing the button dimensions. */
:is(.salon, .expert) a.archive-btn:hover {
	box-shadow: inset 0 0 0 1px var(--welmana-brand-green);
	background: var(--welmana-green-hover);
	text-decoration: none;
}

:is(.salon, .expert) .archive-status, :is(.salon, .expert) .zoom-btn:disabled {
	width: 100%;
	font: inherit;
	font-weight: 700;
	color: #626970;
	border: 1px solid #c7ccd1;
	background: #eef0f2;
	cursor: not-allowed;
}

/* A pending recording is information, not an unavailable control. */
:is(.salon, .expert) .archive-status {
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	cursor: default;
}

:is(.salon, .expert) .empty-message {
	padding: 1rem 0;
}

@media (max-width: 68.75em) {
	:is(.salon, .expert) .archives {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(.salon, .expert) .next-card {
		grid-template-columns: 1fr;
	}

	:is(.salon, .expert) .info-pane {
		border-right: 0;
		padding: 0.25rem 0.5rem;
	}
}

/* Shared mobile layout; service files contain only content-specific differences. */
@media (max-width: 43.75em) {
	.welmana-members {
		--welmana-member-content-gutter: var(--welmana-member-compact-gutter);
	}

	:is(.salon, .expert) {
		padding-top: 0.875rem;
	}

	:is(.salon, .expert) .breadcrumb {
		font-size: 0.75rem;
		margin: 0 0 1.125rem;
	}

	:is(.salon, .expert) .hero {
		isolation: isolate;
		min-height: 13.75rem;
		padding-bottom: 1.375rem;
	}

	:is(.salon, .expert) .hero h2, :is(.salon, .expert) .hero .lead {
		font-size: 1.3125rem;
		line-height: 1.45;
		margin: 0 0 0.625rem;
	}

	:is(.salon, .expert) .hero p:not(.lead):not(.sublead), :is(.salon, .expert) .hero .sublead {
		font-size: 0.875rem;
		line-height: 1.75;
		margin: 0;
	}

	:is(.salon, .expert) .deco {
		display: block;
		z-index: -1;
		pointer-events: none;
	}

	:is(.salon, .expert) .d1 {
		width: 4.875rem;
		height: 4.875rem;
		right: 10px;
		top: 22px;
	}

	:is(.salon, .expert) .d2 {
		width: 3.125rem;
		height: 3.125rem;
		right: 92px;
		top: 96px;
	}

	:is(.salon, .expert) .d3 {
		width: 2.8125rem;
		height: 2.8125rem;
		right: 114px;
		top: 6px;
	}

	:is(.salon, .expert) .d4 {
		width: 2.875rem;
		height: 2.875rem;
		right: 12px;
		top: 142px;
	}

	:is(.salon, .expert) .next {
		background: linear-gradient(180deg, #fff5ec, #fffaf6);
		padding: 1rem 0.75rem 0.875rem;
		margin-bottom: 1.5rem;
	}

	:is(.salon, .expert) .next-title {
		font-size: 1.5rem;
		margin-bottom: 0.75rem;
	}

	/* Keep the template wrapper; each pane supplies its own mobile card surface. */
	:is(.salon, .expert) .next-card {
		gap: 0.625rem;
		background: transparent;
		border: 0;
		padding: 0;
	}

	:is(.salon, .expert) .info-pane, :is(.salon, .expert) .zoom-pane {
		border: 1px solid #f3e8df;
		border-radius: 0.625rem;
		padding: 0.875rem;
	}

	:is(.salon, .expert) .info-pane {
		background: #fff;
	}

	:is(.salon, .expert) .round {
		padding: 0.3125rem 0.5625rem;
	}

	:is(.salon, .expert) .event-title {
		font-size: 1.4375rem;
		line-height: 1.35;
		margin-bottom: 0.25rem;
	}

	:is(.salon, .expert) .event-sub {
		font-size: 1rem;
		margin-bottom: 1.125rem;
	}

	:is(.salon, .expert) .info-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3125rem;
		margin: 0.875rem 0;
	}

	:is(.salon, .expert) .info-row .value {
		line-height: 1.6;
	}

	:is(.salon, .expert) .info-row .value.desc {
		font-size: 0.875rem;
		line-height: 1.75;
	}

	:is(.salon, .expert) .zoom-title {
		font-size: 1.1875rem;
		margin-bottom: 0.75rem;
	}

	:is(.salon, .expert) .zoom-btn {
		padding: 0.8125rem;
		font-size: 1.0625rem;
		margin-bottom: 1rem;
	}

	:is(.salon, .expert) .zoom-grid {
		grid-template-columns: 8rem minmax(0, 1fr);
		gap: 0.75rem;
		font-size: 0.875rem;
	}

	:is(.salon, .expert) .zoom-grid dd {
		font-size: 1rem;
	}

	:is(.salon, .expert) .note {
		margin-top: 0.9375rem;
		padding: 0.6875rem;
		font-size: 0.75rem;
	}

	:is(.salon, .expert) .archive-head h2 {
		font-size: 1.625rem;
		margin-bottom: 0.25rem;
	}

	:is(.salon, .expert) .archive-head p {
		font-size: 0.8125rem;
		margin-bottom: 0.875rem;
	}

	:is(.salon, .expert) .archives {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.625rem;
		margin-bottom: 1.625rem;
	}

	:is(.salon, .expert) .archive-card {
		grid-template-columns: 5.875rem minmax(0, 1fr);
		gap: 0.75rem;
		align-items: center;
		padding: 0.75rem;
	}

	:is(.salon, .expert) .datebox {
		padding: 0.5rem;
	}

	:is(.salon, .expert) .datebox .year, :is(.salon, .expert) .datebox .open {
		font-size: 0.75rem;
	}

	:is(.salon, .expert) .datebox .date {
		font-size: 1.625rem;
		margin: 0.1875rem 0;
	}

	:is(.salon, .expert) .archive-copy .roundno {
		font-size: 0.75rem;
		margin-bottom: 0.25rem;
	}

	:is(.salon, .expert) .archive-copy h3 {
		font-size: 1rem;
		margin-bottom: 0.1875rem;
	}

	:is(.salon, .expert) .archive-copy p {
		font-size: 0.75rem;
		line-height: 1.45;
		margin: 0;
	}

	:is(.salon, .expert) .archive-btn {
		font-size: 0.875rem;
	}

	:is(.salon, .expert) .archive-status {
		font-size: 0.875rem;
	}
}
