/**
 * "Share your story" page (reader submissions). Same field style as the contact form (page.css):
 * 48px fields, 8px radius, warm off-white, ink focus ring; brand pill button. Mobile first, one column
 * up to 720px. Form markup comes from FaithPanda Core (Submissions\Form).
 */
/* Elements hidden by the form or the script stay hidden whatever their display style. */
.fp-share-story [hidden] {
	display: none !important;
}

.fp-share-story {
	max-width: 1040px;
	padding-block: 24px 56px;
}

/* Hero: brand tab, panda ears and the brand arches (same artwork as the newsletter band). */
.fp-share-story__hero {
	position: relative;
	display: grid;
	overflow: hidden;
	border: 1px solid #eae3da;
	background: var(--fp-surface);
}

.fp-share-story__text {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: start;
	gap: 12px;
	padding: 28px 22px 8px;
}

.fp-share-story__tab {
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fp-share-story__title {
	margin: 0;
	font-family: var(--fp-font-head);
	font-size: 34px;
	line-height: 1.1;
}

.fp-share-story__intro {
	margin: 0;
	max-width: 34em;
	color: var(--fp-body);
	font-size: 16.5px;
	line-height: 1.6;
}

.fp-share-story__art {
	position: relative;
	display: flex;
	justify-content: center;
	height: 120px;
	margin-top: 16px;
}

.fp-share-story .fp-ears {
	position: relative;
	display: block;
	width: 31px;
	height: 13px;
}

.fp-share-story .fp-ears::before,
.fp-share-story .fp-ears::after {
	content: "";
	position: absolute;
	top: 3px;
	width: 12px;
	height: 6px;
	border-radius: 12px 12px 0 0;
	background: var(--fp-brand);
}

.fp-share-story .fp-ears::before {
	left: 0;
	transform: rotate(-18deg);
}

.fp-share-story .fp-ears::after {
	right: 0;
	transform: rotate(18deg);
}

.fp-share-story .fp-arch {
	position: relative;
	display: block;
	width: 150px;
	height: 150px;
	border-radius: 75px 75px 0 0;
}

.fp-share-story .fp-arch--brand {
	margin-right: -34px;
	background: var(--fp-brand);
}

.fp-share-story .fp-arch--cream {
	background: var(--fp-cream);
}

.fp-share-story .fp-ears--face {
	position: absolute;
	top: 28px;
	left: 50%;
	width: 48px;
	height: 20px;
	transform: translateX(-50%);
}

.fp-share-story .fp-ears--face::before,
.fp-share-story .fp-ears--face::after {
	width: 18px;
	height: 9px;
	border-radius: 18px 18px 0 0;
}

/* How it works. */
.fp-share-story__how {
	display: grid;
	gap: 24px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.fp-share-story__how li {
	display: grid;
	grid-template-columns: 36px 1fr;
	column-gap: 14px;
	row-gap: 4px;
	align-items: start;
	font-size: 14.5px;
	line-height: 1.5;
}

.fp-share-story__how strong {
	align-self: center;
	font-family: var(--fp-font-head);
	font-size: 17px;
}

.fp-share-story__how li > span:last-child {
	grid-column: 2;
	color: var(--fp-body);
}

.fp-share-story__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--fp-brand);
	color: #fff;
	font-family: var(--fp-font-ui);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.fp-share-story__num {
	grid-row: span 2;
}

.fp-share-story__card {
	max-width: 760px;
	margin: 40px auto 0;
	padding: 22px 18px;
	border: 1px solid #eae3da;
	background: var(--fp-surface);
}

.fp-story-form {
	display: grid;
	gap: 28px;
}

.fp-story-section {
	display: grid;
	gap: 18px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fp-story-section + .fp-story-section {
	padding-top: 24px;
	border-top: 1px solid #eae3da;
}

.fp-story-legend {
	float: left; /* an ordinary block: the section divider stays above it instead of running through it */
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
	font-family: var(--fp-font-head);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}

.fp-story-field,
.fp-story-choice {
	display: grid;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fp-story-label {
	padding: 0;
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 14px;
	font-weight: 600;
}

.fp-story-optional {
	color: var(--fp-muted);
	font-weight: 500;
}

.fp-story-hint,
.fp-story-note,
.fp-story-count {
	margin: 0;
	color: var(--fp-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.fp-story-note {
	padding: 12px 14px;
	border-radius: 8px;
	background: #fbf9f6;
	color: var(--fp-body);
}

.fp-story-count {
	justify-self: end;
	font-variant-numeric: tabular-nums;
}

.fp-story-input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #ddd4c9;
	border-radius: 8px;
	background: #fbf9f6;
	color: var(--fp-ink);
	font-family: var(--fp-font-body);
	font-size: 16px; /* 16px: no zoom on iPhone */
}

.fp-story-input:focus {
	border-color: var(--fp-ink);
	outline: none;
	background: var(--fp-surface);
}

.fp-story-input:focus-visible,
.fp-story-file:focus-visible,
.fp-story-option input:focus-visible,
.fp-story-check input:focus-visible {
	outline: 2px solid var(--fp-ink);
	outline-offset: 1px;
}

.fp-story-textarea {
	height: auto;
	min-height: 200px;
	padding-block: 14px;
	line-height: 1.55;
	resize: vertical;
}

select.fp-story-input {
	padding-right: 40px;
	background: #fbf9f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%231a1a1a' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
	-webkit-appearance: none;
	appearance: none;
}

.fp-story-input[aria-invalid="true"] {
	border-color: var(--fp-brand-text);
}

.fp-story-option,
.fp-story-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	padding: 11px 14px;
	border: 1px solid #ddd4c9;
	border-radius: 8px;
	background: #fbf9f6;
	font-size: 15px;
	line-height: 1.45;
	cursor: pointer;
}

.fp-story-option:has(input:checked) {
	border-color: var(--fp-ink);
	background: var(--fp-surface);
}

.fp-story-option input,
.fp-story-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--fp-brand-text);
}

.fp-story-check {
	border: 0;
	padding: 6px 0;
	background: none;
	font-size: 14.5px;
}

.fp-story-inline {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.fp-story-inline .fp-story-option {
	justify-content: center;
	padding-inline: 8px;
}

.fp-story-row {
	display: grid;
	gap: 18px;
}

.fp-story-file {
	width: 100%;
	padding: 14px;
	border: 1px dashed #c9bfb3;
	border-radius: 8px;
	background: #fbf9f6;
	font-size: 14.5px;
}

.fp-story-files {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-story-files:empty {
	display: none;
}

.fp-story-files li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 12px;
	border: 1px solid #eae3da;
	border-radius: 8px;
	font-size: 14px;
}

.fp-story-files__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fp-story-files select {
	grid-column: 1 / -1;
	height: 44px;
	font-size: 15px;
}

.fp-story-files button {
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	background: none;
	color: var(--fp-brand-text);
	font-family: var(--fp-font-ui);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.fp-story-error {
	margin: 0;
	color: var(--fp-brand-text);
	font-size: 13.5px;
	font-weight: 600;
}

.fp-story-summary {
	padding: 14px 16px;
	border: 2px solid var(--fp-brand-text);
	border-radius: 8px;
	background: var(--fp-surface);
}

.fp-story-summary:focus {
	outline: 2px solid var(--fp-ink);
	outline-offset: 2px;
}

.fp-story-summary__title {
	margin: 0;
	font-weight: 700;
}

.fp-story-summary__list {
	margin: 8px 0 0;
	padding-left: 20px;
	list-style: disc;
}

.fp-story-summary__list li + li {
	margin-top: 4px;
}

.fp-story-summary__list:empty {
	display: none;
}

.fp-story-summary__list a {
	color: var(--fp-brand-text);
	text-decoration: underline;
}

.fp-story-submit {
	display: grid;
	gap: 12px;
}

.fp-story-button {
	width: 100%;
	height: 52px;
	padding: 0 40px;
	border: 0;
	border-radius: 26px;
	background: var(--fp-brand-text);
	color: #fff;
	font-family: var(--fp-font-ui);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.fp-story-button:hover {
	background: var(--fp-ink);
}

.fp-story-button:focus-visible {
	outline: 2px solid var(--fp-ink);
	outline-offset: 3px;
}

.fp-story-button[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
}

.fp-story-fine,
.fp-story-status {
	margin: 0;
	color: var(--fp-muted);
	font-size: 13px;
	line-height: 1.5;
}

.fp-story-fine a {
	color: var(--fp-ink);
}

.fp-story-status:empty {
	display: none;
}

.fp-story-done {
	display: grid;
	gap: 12px;
	font-size: 16px;
	line-height: 1.6;
}

.fp-story-done:focus {
	outline: none;
}

.fp-story-done p {
	margin: 0;
}

.fp-story-done__title {
	margin: 0;
	font-family: var(--fp-font-head);
	font-size: 26px;
	line-height: 1.2;
}

.fp-story-done__ref strong {
	font-variant-numeric: tabular-nums;
}

.fp-story-done__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	padding-top: 8px;
}

.fp-story-done__links a {
	color: var(--fp-brand-text);
	font-weight: 600;
}

.fp-story-closed {
	margin: 0;
	font-size: 16px;
}

.fp-share-story .fp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Video / audio: Google Drive link card. */
.fp-story-drive {
	display: grid;
	gap: 12px;
	padding: 18px;
	border-left: 4px solid var(--fp-brand);
	border-radius: 0 8px 8px 0;
	background: var(--fp-cream);
}

.fp-story-drive__title {
	margin: 0;
	font-family: var(--fp-font-head);
	font-size: 18px;
	font-weight: 700;
}

.fp-story-drive__text {
	margin: 0;
	color: var(--fp-body);
	font-size: 14.5px;
	line-height: 1.5;
}

.fp-story-drive__steps {
	display: grid;
	gap: 6px;
	margin: 0;
	padding-left: 22px;
	list-style: decimal;
	font-size: 14.5px;
	line-height: 1.5;
}

.fp-story-drive .fp-story-hint,
.fp-story-drive .fp-story-optional {
	color: var(--fp-body); /* contrast on cream */
}

.fp-story-drive .fp-story-input {
	background: var(--fp-surface);
}

/* With JavaScript, the nominee questions and the photo-consent line appear only when relevant. */
.fp-story-form.is-enhanced [data-fp-nomination]:not(.is-active),
.fp-story-form.is-enhanced [data-fp-photo-consent]:not(.is-active),
.fp-story-form.is-enhanced [data-fp-credit-all] {
	display: none;
}

.fp-story-nominee {
	display: grid;
	gap: 18px;
}

@media (min-width: 768px) {
	.fp-share-story {
		padding-block: 40px 72px;
	}

	.fp-share-story__hero {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: end;
	}

	.fp-share-story__text {
		align-self: center;
		padding: 44px 0 44px 44px;
	}

	.fp-share-story__title {
		font-size: 46px;
	}

	.fp-share-story__art {
		align-self: end;
		height: 210px;
		margin: 0;
	}

	.fp-share-story .fp-arch {
		width: 190px;
		height: 190px;
		border-radius: 95px 95px 0 0;
	}

	.fp-share-story .fp-arch--brand {
		margin-right: -40px;
	}

	.fp-share-story .fp-ears--face {
		top: 34px;
		width: 58px;
		height: 23px;
	}

	.fp-share-story .fp-ears--face::before,
	.fp-share-story .fp-ears--face::after {
		width: 22px;
		height: 11px;
		border-radius: 22px 22px 0 0;
	}

	.fp-share-story__how {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px;
		margin: 48px 0 8px;
		padding: 0 8px;
	}

	.fp-share-story__card {
		margin-top: 56px;
	}

	.fp-share-story__card {
		padding: 36px 40px;
	}

	.fp-story-row {
		grid-template-columns: 1fr 1fr;
	}

	.fp-story-files li {
		grid-template-columns: minmax(0, 1fr) 200px auto;
	}

	.fp-story-files select {
		grid-column: auto;
	}

	.fp-story-button {
		justify-self: start;
		width: auto;
	}
}
