/**
 * Editorial classic — public layout aligned with sported-app (Lovable).
 * Scoped to .tws-template-editorial-classic so other templates stay on main.css.
 */

.tws-template-editorial-classic {
	--tws-sp-radius: 0.25rem;
	--tws-paper: oklch(0.975 0.005 80);
	--tws-ink: oklch(0.15 0.005 60);
	--tws-background: oklch(0.975 0.005 80);
	--tws-foreground: oklch(0.15 0.005 60);
	--tws-card: oklch(1 0 0);
	--tws-primary: oklch(0.15 0.005 60);
	--tws-primary-foreground: oklch(0.975 0.005 80);
	--tws-secondary: oklch(0.93 0.008 75);
	--tws-muted: oklch(0.95 0.006 80);
	--tws-muted-foreground: oklch(0.5 0.012 70);
	--tws-border: oklch(0.89 0.01 75);
	--tws-font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	--tws-font-display: "Playfair Display", Georgia, serif;
	--tws-font-sans: "Inter", system-ui, -apple-system, sans-serif;

	font-family: var(--tws-font-sans);
	background: var(--tws-background);
	color: var(--tws-foreground);
	font-feature-settings: "ss01", "cv02";
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

.tws-template-editorial-classic .font-display {
	font-family: var(--tws-font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.tws-template-editorial-classic .tracking-editorial {
	letter-spacing: 0.22em;
}

.tws-template-editorial-classic .tws-sp-photo {
	filter: grayscale(100%) contrast(1.02);
}

.tws-template-editorial-classic .tws-sp-muted,
.tws-template-editorial-classic .tws-sp-muted p {
	color: var(--tws-muted-foreground);
}

/* Header */
.tws-template-editorial-classic .tws-sp-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	height: 3.5rem;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--tws-border);
	background: color-mix(in oklch, var(--tws-background) 85%, transparent);
	padding: 0 1.25rem;
	backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-header {
		padding: 0 2.5rem;
	}
}

.tws-template-editorial-classic .tws-sp-header__brand {
	margin: 0;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
}

.tws-template-editorial-classic .tws-sp-header__nav {
	display: none;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--tws-muted-foreground);
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-header__nav {
		display: flex;
	}
}

.tws-template-editorial-classic .tws-sp-header__nav a {
	color: inherit;
	text-decoration: none;
}

.tws-template-editorial-classic .tws-sp-header__nav a:hover {
	color: var(--tws-foreground);
}

.tws-template-editorial-classic .tws-sp-header__cta {
	border-radius: var(--tws-sp-radius);
	background: var(--tws-primary);
	color: var(--tws-primary-foreground);
	padding: 0.5rem 1rem;
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	text-decoration: none;
	transition: opacity 0.15s ease;
	white-space: nowrap;
}

.tws-template-editorial-classic .tws-sp-header__cta:hover {
	opacity: 0.9;
}

/* Eyebrow */
.tws-template-editorial-classic .tws-sp-eyebrow {
	margin: 0;
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--tws-muted-foreground);
}

.tws-template-editorial-classic .tws-sp-eyebrow--center {
	text-align: center;
}

/* Hero */
.tws-template-editorial-classic .tws-sp-hero {
	position: relative;
}

.tws-template-editorial-classic .tws-sp-hero__frame {
	position: relative;
	height: 78vh;
	min-height: 520px;
	width: 100%;
	overflow: hidden;
}

.tws-template-editorial-classic .tws-sp-hero__frame img,
.tws-template-editorial-classic .tws-sp-hero__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tws-template-editorial-classic .tws-sp-hero__placeholder {
	background: var(--tws-muted);
}

.tws-template-editorial-classic .tws-sp-hero__shade {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 15%);
	pointer-events: none;
}

.tws-template-editorial-classic .tws-sp-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 1.5rem;
	text-align: center;
	color: #fff;
}

.tws-template-editorial-classic .tws-sp-hero__tagline {
	margin: 0;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}

.tws-template-editorial-classic .tws-sp-hero__title {
	margin: 1rem 0 0;
	font-size: clamp(2.75rem, 10vw, 5.5rem);
	line-height: 1;
	font-weight: 500;
}

.tws-template-editorial-classic .tws-sp-hero__date {
	margin: 1.5rem 0 0;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}

/* Story */
.tws-template-editorial-classic .tws-sp-story {
	padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-story {
		padding: 7rem 2.5rem;
	}
}

.tws-template-editorial-classic .tws-sp-story__inner {
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
}

.tws-template-editorial-classic .tws-sp-story__title {
	margin: 1rem 0 0;
	font-size: clamp(2rem, 5vw, 3rem);
}

.tws-template-editorial-classic .tws-sp-story__body {
	margin-top: 2rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--tws-muted-foreground);
	text-align: center;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-story__body {
		font-size: 1rem;
	}
}

.tws-template-editorial-classic .tws-sp-story__body p {
	margin: 0 0 1.25rem;
}

/* Gallery */
.tws-template-editorial-classic .tws-sp-gallery {
	border-top: 1px solid var(--tws-border);
	background: var(--tws-secondary);
	padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-gallery {
		padding: 5rem 2.5rem;
	}
}

.tws-template-editorial-classic .tws-sp-gallery__inner {
	max-width: 72rem;
	margin: 0 auto;
}

.tws-template-editorial-classic .tws-sp-gallery__title {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.tws-template-editorial-classic .tws-sp-gallery__grid {
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.tws-template-editorial-classic .tws-sp-gallery__cell {
	overflow: hidden;
	background: var(--tws-muted);
	aspect-ratio: 1 / 1;
}

.tws-template-editorial-classic .tws-sp-gallery__cell--hero {
	grid-column: span 2;
	grid-row: span 2;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-gallery__cell--hero {
		grid-column: span 2;
	}
}

.tws-template-editorial-classic .tws-sp-gallery__cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tws-template-editorial-classic .tws-sp-gallery__empty {
	margin: 2rem 0 0;
	text-align: center;
	color: var(--tws-muted-foreground);
	font-size: 0.875rem;
}

/* Ceremony */
.tws-template-editorial-classic .tws-sp-ceremony {
	padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-ceremony {
		padding: 7rem 2.5rem;
	}
}

.tws-template-editorial-classic .tws-sp-ceremony__grid {
	max-width: 64rem;
	margin: 0 auto;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-ceremony__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tws-template-editorial-classic .tws-sp-ceremony__visual {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--tws-muted);
}

.tws-template-editorial-classic .tws-sp-ceremony__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tws-template-editorial-classic .tws-sp-ceremony__visual-placeholder {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: var(--tws-muted);
}

.tws-template-editorial-classic .tws-sp-ceremony__title {
	margin: 0.75rem 0 0;
	font-size: clamp(2rem, 4vw, 2.5rem);
}

.tws-template-editorial-classic .tws-sp-ceremony__body {
	margin-top: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--tws-muted-foreground);
}

.tws-template-editorial-classic .tws-sp-ceremony__body p {
	margin: 0 0 1rem;
}

.tws-template-editorial-classic .tws-sp-ceremony__facts {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tws-border);
	font-size: 0.875rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tws-template-editorial-classic .tws-sp-ceremony__fact {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.tws-template-editorial-classic .tws-sp-ceremony__fact--place {
	align-items: flex-start;
}

.tws-template-editorial-classic .tws-sp-ceremony__icon {
	flex: 0 0 1rem;
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	background: currentColor;
	opacity: 0.45;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
}

.tws-template-editorial-classic .tws-sp-ceremony__icon--clock {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.tws-template-editorial-classic .tws-sp-ceremony__icon--pin {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.35-7-10a7 7 0 1 1 14 0c0 5.65-7 10-7 10z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E");
}

.tws-template-editorial-classic .tws-sp-ceremony__place-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.tws-template-editorial-classic .tws-sp-ceremony__venue {
	font-weight: 600;
}

.tws-template-editorial-classic .tws-sp-ceremony__addr {
	color: var(--tws-muted-foreground);
}

.tws-template-editorial-classic .tws-sp-map-link {
	display: inline-flex;
	margin-top: 1.5rem;
	border-bottom: 1px solid var(--tws-foreground);
	padding-bottom: 0.15rem;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease;
}

.tws-template-editorial-classic .tws-sp-map-link:hover {
	opacity: 0.7;
}

/* Gifts */
.tws-template-editorial-classic .tws-sp-gifts {
	border-top: 1px solid var(--tws-border);
	background: var(--tws-secondary);
	padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-gifts {
		padding: 7rem 2.5rem;
	}
}

.tws-template-editorial-classic .tws-sp-gifts__inner {
	max-width: 72rem;
	margin: 0 auto;
}

.tws-template-editorial-classic .tws-sp-gifts__title {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.tws-template-editorial-classic .tws-sp-gifts__intro {
	margin: 1rem auto 0;
	max-width: 36rem;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--tws-muted-foreground);
}

.tws-template-editorial-classic .tws-sp-gifts__intro p {
	margin: 0 0 0.75rem;
}

.tws-template-editorial-classic .tws-sp-gifts__grid {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.tws-template-editorial-classic .tws-sp-gifts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.tws-template-editorial-classic .tws-sp-gifts__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tws-template-editorial-classic .tws-sp-gifts__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--tws-muted-foreground);
	margin: 0;
}

.tws-template-editorial-classic .tws-sp-gift-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--tws-border);
	background: var(--tws-card);
}

.tws-template-editorial-classic .tws-sp-gift-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tws-muted);
}

.tws-template-editorial-classic .tws-sp-gift-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tws-template-editorial-classic .tws-sp-gift-card__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 8rem;
	font-size: 2rem;
	color: var(--tws-muted-foreground);
}

.tws-template-editorial-classic .tws-sp-gift-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.tws-template-editorial-classic .tws-sp-gift-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
}

.tws-template-editorial-classic .tws-sp-gift-card__price {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
}

.tws-template-editorial-classic .tws-sp-gift-card__action {
	margin-top: auto;
	padding-top: 1rem;
}

.tws-template-editorial-classic .tws-sp-gift-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-bottom: 1px solid var(--tws-foreground);
	padding-bottom: 0.15rem;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease;
}

.tws-template-editorial-classic .tws-sp-gift-link:hover {
	opacity: 0.7;
}

/* RSVP */
.tws-template-editorial-classic .tws-sp-rsvp {
	padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-rsvp {
		padding: 7rem 2.5rem;
	}
}

.tws-template-editorial-classic .tws-sp-rsvp__cta {
	max-width: 36rem;
	margin: 0 auto;
	text-align: center;
}

.tws-template-editorial-classic .tws-sp-rsvp__headline {
	margin: 1rem 0 0;
	font-size: clamp(2rem, 5vw, 3rem);
}

.tws-template-editorial-classic .tws-sp-rsvp__lede {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--tws-muted-foreground);
}

.tws-template-editorial-classic .tws-sp-rsvp__lede p {
	margin: 0 0 0.75rem;
}

.tws-template-editorial-classic .tws-sp-rsvp__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
	border-radius: var(--tws-sp-radius);
	background: var(--tws-primary);
	color: var(--tws-primary-foreground);
	padding: 0.75rem 1.75rem;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.tws-template-editorial-classic .tws-sp-rsvp__cta-btn:hover {
	opacity: 0.9;
}

.tws-template-editorial-classic .tws-sp-rsvp__panel {
	max-width: 40rem;
	margin: 4rem auto 0;
	padding: 2rem 1.5rem;
	border: 1px solid var(--tws-border);
	background: var(--tws-card);
}

@media (min-width: 768px) {
	.tws-template-editorial-classic .tws-sp-rsvp__panel {
		padding: 2.5rem;
	}
}

.tws-template-editorial-classic .tws-sp-rsvp__form-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	text-align: center;
}

.tws-template-editorial-classic .tws-sp-rsvp-form fieldset {
	border: 0;
	padding: 0;
	margin: 1rem 0;
}

.tws-template-editorial-classic .tws-sp-rsvp-form legend {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.tws-template-editorial-classic .tws-sp-rsvp-form label {
	display: block;
	margin: 0.75rem 0 0.25rem;
	font-size: 0.875rem;
}

.tws-template-editorial-classic .tws-sp-rsvp-form input[type="text"],
.tws-template-editorial-classic .tws-sp-rsvp-form input[type="number"],
.tws-template-editorial-classic .tws-sp-rsvp-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--tws-border);
	border-radius: var(--tws-sp-radius);
	font: inherit;
	background: var(--tws-background);
}

.tws-template-editorial-classic .tws-sp-rsvp-form__consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.8125rem;
	margin-top: 1rem;
}

.tws-template-editorial-classic .tws-sp-rsvp-form__consent input {
	margin-top: 0.2rem;
}

.tws-template-editorial-classic .tws-sp-rsvp-form__privacy {
	font-size: 0.75rem;
	color: var(--tws-muted-foreground);
	margin: 1rem 0 0;
}

.tws-template-editorial-classic .tws-sp-rsvp-submit {
	margin-top: 1.25rem;
	width: 100%;
	border: 0;
	border-radius: var(--tws-sp-radius);
	background: var(--tws-primary);
	color: var(--tws-primary-foreground);
	padding: 0.65rem 1rem;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.tws-template-editorial-classic .tws-sp-rsvp-submit:hover {
	opacity: 0.92;
}

.tws-template-editorial-classic .tws-sp-rsvp-form__status {
	font-size: 0.875rem;
	margin: 0 0 1rem;
}

/* Footer */
.tws-template-editorial-classic .tws-sp-footer {
	border-top: 1px solid var(--tws-border);
	padding: 2rem 1.5rem;
	text-align: center;
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--tws-muted-foreground);
}

.tws-template-editorial-classic .tws-sp-footer p {
	margin: 0;
}
