/* Stone Membership Pro — scoped utility styles */
:root {
	--smp-accent: #1f1f1f;
	--smp-accent-contrast: #fff;
	--smp-muted: #6b7280;
	--smp-border: rgba(31, 31, 31, 0.12);
}

.smp-pricing {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
	margin: 1.75rem 0;
}

.smp-card {
	position: relative;
	border: 1px solid var(--smp-border);
	border-radius: 16px;
	padding: 1.5rem;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 15, 20, 0.06);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
	.smp-card {
		background: #121418;
		color: #f3f4f6;
		border-color: rgba(255, 255, 255, 0.08);
		box-shadow: none;
	}
}

.smp-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(15, 15, 20, 0.09);
}

.smp-card__title {
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.smp-card__price {
	font-size: 1.8rem;
	font-weight: 800;
	line-height: 1.15;
	margin: 0.25rem 0 0;
}

.smp-card__price-sub {
	display: block;
	font-size: 0.8rem;
	color: var(--smp-muted);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.smp-billing-switch-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0.35rem 0 0.65rem;
}

.smp-billing-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	margin: 0;
}

.smp-billing-switch__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.smp-billing-switch__track {
	position: relative;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #3a3a3a;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.smp-billing-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease, background 0.2s ease;
}

.smp-billing-switch__input:checked + .smp-billing-switch__track {
	background: #22c55e;
}

.smp-billing-switch__input:checked + .smp-billing-switch__track .smp-billing-switch__thumb {
	transform: translateX(20px);
}

.smp-billing-switch__label {
	font-size: 0.95rem;
	font-weight: 600;
	color: inherit;
}

.smp-billing-switch__save {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #22c55e;
}

.smp-teaser {
	opacity: 0.95;
	margin-bottom: 0;
}

/* Paywall: ~5 lines clear opening; membership; ~5 lines blurred last para (2+ body paras) */
.smp-paywall-visible {
	font-size: 1rem;
	line-height: 1.65;
	color: inherit;
	margin: 0 0 1.5rem;
}

.smp-paywall-line-clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: var(--smp-paywall-lines, 5);
	line-clamp: var(--smp-paywall-lines, 5);
	word-break: break-word;
}

.smp-paywall-visible p {
	margin: 0 0 0.85rem;
}

.smp-paywall-visible p:last-child {
	margin-bottom: 0;
}

.smp-paywall-blur-shell {
	position: relative;
	overflow: hidden;
}

.smp-paywall-blur-shell--closing {
	margin: 1.5rem 0 0;
	padding: 1.1rem 0 0;
	border-top: 1px solid rgba(15, 15, 20, 0.08);
}

.smp-paywall-blur-text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: inherit;
	filter: blur(3px);
	-webkit-filter: blur(3px);
	opacity: 0.88;
	user-select: none;
	pointer-events: none;
	transform: translateZ(0);
}

.smp-paywall-blur-shell > .smp-paywall-blur-text:last-child {
	margin-bottom: 0;
}

/* Inner wrapper path (legacy / non-clamped markup) */
.smp-paywall-blur-text:not(.smp-paywall-line-clamp) p {
	margin: 0 0 0.65rem;
}

.smp-paywall-blur-text:not(.smp-paywall-line-clamp) p:last-child {
	margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
	.smp-paywall-blur-shell--closing {
		border-top-color: rgba(255, 255, 255, 0.09);
	}

	.smp-paywall-blur-text {
		opacity: 0.82;
	}
}

.smp-buy .smp-btn-checkout,
.smp-btn {	
	transition: opacity 0.2s ease, transform 0.2s ease;
	margin-top: 15px;
    width: 100%;
}

.smp-btn:hover:not(:disabled) {
	opacity: 0.93;
	transform: translateY(-1px);
}

.smp-auth-heading {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 700;
}

/* Optional wrapper from [stone_membership_auth] style attributes */
.smp-auth-shell {
	max-width: 420px;
	margin: 2rem auto;
	padding: 1.35rem 1.25rem 1.5rem;
	border-radius: 14px;
	border: 1px solid var(--smp-border);
	background: rgba(255, 255, 255, 0.02);
	box-sizing: border-box;
}

.smp-auth-shell--bare {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.smp-auth-shell__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
	color: inherit;
	opacity: 0.92;
}

.smp-auth-shell__icon svg {
	display: block;
}

.smp-auth-shell .smp-auth-forms {
	margin-top: 0;
	margin-bottom: 0;
}

.smp-auth-shell .smp-auth-social {
	margin-bottom: 0rem;
}

/* Menu / nav shortcode */
.smp-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
	font-weight: 600;
	padding: 0.35rem 0.65rem;
	line-height: 1.3;
	transition: opacity 0.15s ease;
}

.smp-nav-link:hover {
	opacity: 0.88;
	text-decoration: none;
}

.smp-nav-link__icon {
	display: flex;
	flex-shrink: 0;
}

.smp-nav-link__icon svg {
	display: block;
}

.smp-nav-link--display-text {
	gap: 0;
}

.smp-nav-link--display-icon {
	position: relative;
	justify-content: center;
	gap: 0;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.35rem;
}

.smp-nav-link__label--visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.smp-auth-forms {
	max-width: 420px;
	margin: 2rem auto;
	display: grid;
	gap: 1rem;
}

.smp-auth-tabs {
	display: flex;
	gap: 0;
	border-radius: 999px;
	padding: 4px;
	background: rgba(17, 24, 39, 0.06);
	border: 1px solid var(--smp-border);
}

.smp-auth-tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 0.65rem 1rem;
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	color: var(--smp-muted);
	transition: background 0.2s ease, color 0.2s ease;
}

.smp-auth-tab.is-active {
	background: #fff;
	color: #111827;
	box-shadow: 0 2px 8px rgba(15, 15, 20, 0.08);
}

@media (prefers-color-scheme: dark) {
	.smp-auth-tab.is-active {
		background: #1f2937;
		color: #f9fafb;
	}
}

.smp-auth-panels {
	position: relative;
}

.smp-auth-panel {
	display: none;
	padding-top: 0.5rem;
}

.smp-auth-panel.is-active {
	display: block;
}

.smp-auth-remember {
	display: flex;
	align-items: center;
	gap: 0.4rem;	
	cursor: pointer;
}

.smp-auth-notice {
	max-width: 420px;
	margin: 0 auto 1rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-size: 0.95rem;
}

.smp-auth-notice--error {
	border: 1px solid rgba(185, 28, 28, 0.35);
	background: rgba(254, 226, 226, 0.85);
	color: #7f1d1d;
}

@media (prefers-color-scheme: dark) {
	.smp-auth-notice--error {
		border-color: rgba(248, 113, 113, 0.35);
		background: rgba(127, 29, 29, 0.35);
		color: #fecaca;
	}
}

.smp-auth-social {
	max-width: 420px;
	margin: 0 auto 1.25rem;
	text-align: center;
}

.smp-auth-social-label {
	margin: 0 0rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.75;
}

.smp-auth-social-buttons {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.75rem;
	align-items: stretch;
	margin: 0 0 1rem;
}

/* OAuth — Google-style “Continue with …” (white, black hairline border, icon + caps label) */
.smp-oauth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 1rem;
	margin: 0;
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.2;
	border-radius: 4px;
	border: 1px solid #000;
	background: #fff;
	color: #000;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.smp-oauth-btn:hover {
	background: #f7f7f7;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.smp-oauth-btn:focus-visible {
	outline: 2px solid #4285f4;
	outline-offset: 2px;
}

.smp-oauth-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

.smp-oauth-btn__icon .smp-google-g {
	display: block;
}

.smp-oauth-btn__label {
	text-transform: uppercase;
}

.smp-oauth-btn--apple {
	border-color: #000;
	color: #000;
}

.smp-oauth-btn--apple .smp-oauth-btn__icon--apple {
	color: #000;
}

.smp-auth-logged-in {
	max-width: 420px;
	margin: 2rem auto;
	padding: 1.25rem;
	border: 1px solid var(--smp-border);
	border-radius: 14px;
	text-align: center;
}

.smp-auth-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 15px;
}

.smp-auth-field label {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.smp-auth-field input {
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	border: 1px solid var(--smp-border);
	font-size: 1rem;
}

.smp-dash {
	max-width: 960px;
	margin: 2rem auto;
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 720px) {
	.smp-dash {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
}

.smp-dash-panel {
	border: 1px solid var(--smp-border);
	border-radius: 14px;
	padding: 1.25rem;
	background: rgba(249, 250, 251, 0.9);
	color: inherit;
	box-shadow: 0 14px 32px rgba(15, 15, 20, 0.05);
}

@media (prefers-color-scheme: dark) {
	.smp-dash-panel {
		background: rgba(255, 255, 255, 0.04);
		box-shadow: none;
		border-color: rgba(255, 255, 255, 0.08);
	}
}

.smp-dash-panel h3 {
	margin-top: 0;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.smp-dash-table td,
.smp-dash-table th {
	padding: 6px;
	text-align: left;
	font-size: 0.9rem;
	word-break: break-word;
	vertical-align: top;
}

.smp-dash-panel--free-articles {
	grid-column: 1 / -1;
}

.smp-free-articles-quota {
	margin: 0 0 0.75rem;
}

.smp-free-articles-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.smp-free-articles-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border: 1px solid var(--smp-border, #e2e4e7);
	border-radius: 10px;
	padding: 0.65rem 0.85rem;
	background: rgba(0, 0, 0, 0.02);
}

.smp-free-articles-list__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.15rem;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.smp-free-articles-list__link:hover .smp-free-articles-list__title {
	text-decoration: underline;
}

.smp-free-articles-list__title {
	font-weight: 600;
	line-height: 1.35;
}

.smp-free-articles-list__date {
	font-size: 0.85rem;
	opacity: 0.75;
}

.smp-free-articles-list__badge {
	flex-shrink: 0;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	background: rgba(34, 113, 177, 0.12);
	color: #2271b1;
}

.smp-free-articles-list__item--read .smp-free-articles-list__badge {
	display: none;
}

/* —— Member blog paywall (editorial two-column card) —— */

.smp-member-ui {
	margin: 1.75rem 0;
}

.smp-paywall-editorial {
	--smp-editorial-gold: #d4a012;
	--smp-editorial-gold-dark: #b8890e;
	--smp-editorial-serif: Georgia, "Times New Roman", ui-serif, serif;
	--smp-editorial-text: #1a1a1a;
	--smp-editorial-muted: #4b5563;
}

.smp-paywall-editorial__inner {
	max-width: 900px;
	margin: 0 auto;
}

.smp-paywall-editorial__top {
	margin: 0 0 0.65rem;
	text-align: center;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--smp-editorial-muted);
}

.smp-paywall-editorial__signin {
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.smp-paywall-editorial__signin:hover {
	opacity: 0.85;
}

.smp-paywall-plan--editorial {
	margin: 0 0 1.1rem;
	text-align: center;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--smp-editorial-muted);
}

.smp-paywall-plan__label {
	font-weight: 600;
	color: var(--smp-editorial-text);
}

.smp-paywall-editorial__card {
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 12px 40px rgba(15, 15, 20, 0.12);
	border: 1px solid rgba(15, 15, 20, 0.06);
	box-sizing: border-box;
	overflow: hidden;
}

@media (prefers-color-scheme: dark) {
	.smp-paywall-editorial {
		--smp-editorial-text: #f3f4f6;
		--smp-editorial-muted: #9ca3af;
	}

	.smp-paywall-editorial__card {
		background: rgba(24, 24, 27, 0.92);
		border-color: rgba(255, 255, 255, 0.08);
		box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	}
}

.smp-paywall-editorial__row {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
}

.smp-paywall-editorial__col {
	flex: 1 1 50%;
	padding: clamp(1.35rem, 3vw, 2rem) clamp(1.15rem, 3vw, 1.75rem);
	box-sizing: border-box;
	min-width: 0;
}

.smp-paywall-editorial__rule {
	flex: 0 0 1px;
	background: #111827;
	align-self: stretch;
	margin: 0;
}

@media (prefers-color-scheme: dark) {
	.smp-paywall-editorial__rule {
		background: rgba(255, 255, 255, 0.35);
	}
}

@media (max-width: 719px) {
	.smp-paywall-editorial__row {
		flex-direction: column;
	}

	.smp-paywall-editorial__rule {
		flex: 0 0 auto;
		width: 100%;
		height: 1px;
	}
}

.smp-paywall-editorial__offer-title {
	margin: 0 0 0.75rem;
	font-family: var(--smp-editorial-serif);
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--smp-editorial-text);
	letter-spacing: -0.02em;
}

.smp-paywall-editorial__offer-body {
	margin: 0 0 1.15rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--smp-editorial-muted);
}

.smp-paywall-editorial__offer-body p {
	margin: 0 0 0.5rem;
}

.smp-paywall-editorial__offer-body p:last-child {
	margin-bottom: 0;
}

.smp-paywall-editorial__btn-primary {
	display: inline-block;
	padding: 0.75rem 1.35rem;
	background: linear-gradient(180deg, #e8c341 0%, var(--smp-editorial-gold) 45%, var(--smp-editorial-gold-dark) 100%);
	color: #111827;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	border-radius: 0;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.smp-paywall-editorial__btn-primary:hover {
	opacity: 0.94;
	transform: translateY(-1px);
	color: #111827;
	text-decoration: none;
}

.smp-paywall-editorial__benefits-title {
	margin: 0 0 0.6rem;
	font-family: var(--smp-editorial-serif);
	font-size: clamp(1.2rem, 2.2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--smp-editorial-text);
}

.smp-paywall-editorial__benefits-accent {
	color: var(--smp-editorial-gold);
	font-weight: 800;
	letter-spacing: 0.04em;
}

@media (prefers-color-scheme: dark) {
	.smp-paywall-editorial__benefits-accent {
		color: #f0c14a;
	}
}

.smp-paywall-editorial__benefits-lede {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--smp-editorial-muted);
}

.smp-paywall-editorial__checklist {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--smp-editorial-text);
}

.smp-paywall-editorial__checklist li {
	position: relative;
	padding-left: 1.35rem;
	margin-bottom: 0.45rem;
}

.smp-paywall-editorial__checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 0.75rem;
	font-weight: 800;
	color: #111827;
}

@media (prefers-color-scheme: dark) {
	.smp-paywall-editorial__checklist li::before {
		color: #e5e7eb;
	}
}

.smp-paywall-editorial__explore {
	margin: 0;
}

.smp-paywall-editorial__explore-link {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--smp-editorial-text);
}

.smp-paywall-editorial__explore-link:hover {
	text-decoration: underline;
}
