/* Newsletter sign-up: footer band, shared form, pop-up. Colors and fonts from the Sea of Herbs design system (site.css :root). */

.soh-nl-hp { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.soh-nl-form__human:empty { display: none; }
.soh-nl-form__human { margin: 10px 0 0; }

/* Shared form */
.soh-nl-form { margin: 0; position: relative; }
.soh-nl-form__label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.soh-nl-form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.soh-nl-form__row input {
	flex: 1 1 220px; min-width: 0; height: 52px; box-sizing: border-box;
	border: 1.5px solid var(--soh-ink); border-radius: 8px; padding: 0 14px;
	font: inherit; font-size: 16px; background: var(--soh-raised); color: var(--soh-ink);
}
[dir="rtl"] .soh-nl-form__row input { text-align: right; }
.soh-nl-form__row input:focus-visible { outline: 2px solid var(--soh-leaf); outline-offset: 2px; }
.soh-nl-form__row input[aria-invalid="true"] { border-color: var(--soh-tatreez); }
.soh-nl-form__row .soh-btn { flex: 0 0 auto; }
.soh-nl-form__status { margin: 10px 0 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.soh-nl-form__status.is-error { color: var(--soh-tatreez); }
.soh-nl-form[aria-busy="true"] .soh-btn { opacity: .7; pointer-events: none; }
.soh-nl-form.is-done .soh-nl-form__status { margin-top: 0; font-size: 17px; line-height: 26px; }

/* Footer band (dark label background) */
.soh-nl-foot {
	padding: 40px 0 8px;
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 48px;
	border-bottom: 1px solid var(--soh-stone-dark); padding-bottom: 40px;
}
.soh-nl-foot__copy { flex: 1 1 320px; }
.soh-nl-foot__title { margin: 0 0 6px; font-family: var(--soh-display); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; font-weight: 600; color: var(--soh-on-label); }
[lang^="ar"] .soh-nl-foot__title, [lang^="he"] .soh-nl-foot__title { font-family: var(--soh-sans); font-weight: 700; }
.soh-nl-foot__copy p { margin: 0; font-size: 16px; line-height: 24px; color: var(--soh-sand); }
.soh-nl-form--foot { flex: 1 1 420px; }
.soh-nl-form--foot .soh-nl-form__label { color: var(--soh-sand); }
.soh-nl-form--foot .soh-nl-form__row input { border-color: var(--soh-sand); }
.soh-nl-form--foot .soh-nl-form__status { color: var(--soh-on-label); }
.soh-nl-form--foot .soh-nl-form__status.is-error { color: #F0A49A; }

/* Homepage band (saffron) uses its own layout from site.css; only the status colors here. */
.soh-newsletter__status.is-error { color: var(--soh-tatreez); }

/* Pop-up */
.soh-nl-pop {
	width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
	padding: 0; border: 0; border-radius: 16px; overflow-x: hidden; overflow-y: auto;
	background: var(--soh-surface); color: var(--soh-ink);
	box-shadow: 0 1px 2px rgba(43, 33, 24, .08), 0 24px 64px rgba(43, 33, 24, .28);
	font-family: var(--soh-sans);
}
.soh-nl-pop::backdrop { background: rgba(28, 22, 17, .55); }
.soh-nl-pop[open] { animation: soh-nl-in .35s var(--soh-ease); }
@keyframes soh-nl-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .soh-nl-pop[open] { animation: none; } }
.soh-nl-pop__band {
	height: 24px; background-color: var(--soh-label);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M9 9l6 6M15 9l-6 6M21 3l6 6M27 3l-6 6M21 15l6 6M27 15l-6 6M33 9l6 6M39 9l-6 6' stroke='%23C9A24A' stroke-width='1.75' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
}
.soh-nl-pop__body { padding: 28px 32px 24px; text-align: center; }
.soh-nl-pop__eyebrow { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soh-saffron-deep); }
[lang^="ar"] .soh-nl-pop__eyebrow, [lang^="he"] .soh-nl-pop__eyebrow { letter-spacing: 0; font-size: 14px; }
.soh-nl-pop__title { margin: 0 0 10px; font-family: var(--soh-display); font-size: clamp(30px, 6vw, 38px); line-height: 1.1; font-weight: 600; color: var(--soh-ink); text-wrap: balance; }
[lang^="ar"] .soh-nl-pop__title, [lang^="he"] .soh-nl-pop__title { font-family: var(--soh-sans); font-weight: 700; }
.soh-nl-pop__text { margin: 0 0 20px; font-size: 16px; line-height: 24px; color: var(--soh-ink); text-wrap: pretty; }
.soh-nl-form--pop { text-align: start; }
.soh-nl-form--pop .soh-nl-form__row { flex-direction: column; }
.soh-nl-form--pop .soh-nl-form__row input, .soh-nl-form--pop .soh-nl-form__row .soh-btn { flex: 0 0 auto; width: 100%; }
.soh-nl-form--pop.is-done { text-align: center; }
.soh-nl-form--pop .soh-nl-form__status:not(.is-error) { color: var(--soh-leaf-deep); }
.soh-nl-pop__small { margin: 14px 0 0; font-size: 13px; line-height: 18px; color: var(--soh-muted); }
.soh-nl-pop__small a { color: var(--soh-muted); text-decoration: underline; }
.soh-nl-pop__no {
	display: inline-block; margin: 12px 0 0; min-height: 44px; padding: 0 12px;
	background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600;
	color: var(--soh-muted); text-decoration: underline; text-underline-offset: 3px;
}
.soh-nl-pop__no:hover { color: var(--soh-ink); }
.soh-nl-pop__x {
	position: absolute; top: 30px; inset-inline-end: 8px; width: 44px; height: 44px;
	display: grid; place-items: center; background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--soh-muted);
}
.soh-nl-pop__x:hover { color: var(--soh-ink); background: var(--soh-stone); }
.soh-nl-pop :focus-visible { outline: 2px solid var(--soh-leaf); outline-offset: 2px; }

/* Phones: a sheet from the bottom of the screen, so the page stays visible above it. */
@media (max-width: 599px) {
	.soh-nl-pop { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 88dvh; }
	.soh-nl-pop[open] { animation-name: soh-nl-up; }
	@keyframes soh-nl-up { from { transform: translateY(100%); } to { transform: none; } }
	.soh-nl-pop__body { padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); }
	.soh-nl-pop__text { margin-bottom: 16px; }
	.soh-nl-pop__x { top: 26px; }
}

/* The homepage has its own newsletter band just above the footer, so the footer form stays out of the way there. */
body:has(.soh-newsletter) .soh-nl-foot { display: none; }
