/**
 * Master Author Pages — Frontend Styles
 * Prefix: map-  |  Scoped to .map-form-wrapper / .map-profile only
 */

/* Design tokens — isolated from theme/Elementor */
.map-form-wrapper,
.map-profile {
	--map-accent: #897d4b;
	--map-accent-hover: #6b6140;
	--map-accent-soft: rgba(137, 125, 75, 0.14);
	--map-text: #1c1917;
	--map-muted: #64748b;
	--map-border: #e2e8f0;
	--map-radius: 14px;
	--map-radius-sm: 10px;
	--map-shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
	--map-input-h: 3rem;

	box-sizing: border-box;
	font-family: 'Vazirmatn', 'Tahoma', sans-serif;
	line-height: 1.7;
	color: var(--map-text);
	isolation: isolate;
}

.map-form-wrapper *,
.map-form-wrapper *::before,
.map-form-wrapper *::after,
.map-profile *,
.map-profile *::before,
.map-profile *::after {
	box-sizing: border-box;
}

/* Hide third-party TOC (e.g. Easy Table of Contents) inside plugin output only */
.map-form-wrapper #ez-toc-container,
.map-form-wrapper .ez-toc-container,
.map-form-wrapper [class*="ez-toc-"],
.map-form-wrapper .ez-toc-section,
.map-form-wrapper .ez-toc-section-end,
.map-profile #ez-toc-container,
.map-profile .ez-toc-container,
.map-profile [class*="ez-toc-"],
.map-profile .ez-toc-section,
.map-profile .ez-toc-section-end {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* Form Container */
.map-form-wrapper {
	direction: rtl;
	padding: 1.5rem 1rem 2.5rem;
	min-height: 360px;
	width: 100%;
	max-width: 100%;
}

.map-form-container {
	max-width: 720px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: var(--map-radius);
	box-shadow: var(--map-shadow);
	border: 1px solid rgba(137, 125, 75, 0.08);
	padding: clamp(1.25rem, 3vw, 2.5rem);
	position: relative;
	overflow: hidden;
}

/* Progress Steps */
.map-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 2.5rem;
	position: relative;
}

.map-steps::before {
	content: '';
	position: absolute;
	top: 18px;
	right: 10%;
	left: 10%;
	height: 2px;
	background: #e2e8f0;
	z-index: 0;
}

.map-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 0;
}

.map-step__number {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.875rem;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.map-step__label {
	font-size: 0.75rem;
	color: var(--map-muted);
	text-align: center;
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.map-step--active .map-step__number {
	background: var(--map-accent);
	color: #ffffff;
	box-shadow: 0 0 0 4px var(--map-accent-soft);
}

.map-step--active .map-step__label {
	color: var(--map-text);
	font-weight: 600;
}

.map-step--done .map-step__number {
	background: #16a34a;
	color: #ffffff;
}

.map-step--done .map-step__label {
	color: #16a34a;
	font-weight: 600;
}

/* Form Header */
.map-form-header {
	margin-bottom: 1.5rem;
}

.map-form-title {
	font-size: clamp(1.2rem, 2.5vw, 1.5rem);
	font-weight: 800;
	color: var(--map-text);
	margin: 0 0 0.5rem;
}

.map-form-desc {
	color: #64748b;
	margin: 0;
	font-size: 0.95rem;
}

/* Form Fields */
.map-form {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.map-form-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: 0.25rem;
}

.map-form .map-btn + .map-btn {
	margin-top: 0;
}

.map-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.map-label {
	font-weight: 600;
	font-size: 0.875rem;
	color: #334155;
}

.map-required {
	color: #ef4444;
	margin-right: 2px;
}

.map-optional {
	color: #94a3b8;
	font-weight: 400;
	font-size: 0.8rem;
}

.map-form-wrapper .map-input,
.map-form-wrapper .map-textarea,
.map-form-wrapper .map-file-input {
	width: 100%;
	min-height: var(--map-input-h);
	padding: 0.8125rem 1rem;
	border: 1px solid #d1d5db !important;
	border-radius: var(--map-radius-sm);
	font-size: 1rem;
	line-height: 1.5;
	font-family: inherit;
	background: #ffffff !important;
	color: var(--map-text) !important;
	-webkit-text-fill-color: var(--map-text);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.map-form-wrapper .map-input::placeholder,
.map-form-wrapper .map-textarea::placeholder {
	color: #a8b0bc !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #a8b0bc !important;
	font-weight: 400;
}

.map-form-wrapper .map-input:hover,
.map-form-wrapper .map-textarea:hover,
.map-form-wrapper .map-file-input:hover {
	border-color: #9ca3af !important;
}

.map-form-wrapper .map-input:focus,
.map-form-wrapper .map-textarea:focus,
.map-form-wrapper .map-file-input:focus {
	outline: none;
	border-color: var(--map-accent) !important;
	box-shadow: 0 0 0 3px var(--map-accent-soft);
	background: #ffffff !important;
	color: var(--map-text) !important;
	-webkit-text-fill-color: var(--map-text);
}

.map-form-wrapper .map-input--phone {
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}

.map-textarea {
	resize: vertical;
	min-height: 130px;
}

.map-input--otp {
	text-align: center;
	letter-spacing: 0.35em;
	font-size: 1.25rem !important;
	font-weight: 700;
}

.map-form-wrapper .map-input--otp::placeholder {
	color: #c5ccd6 !important;
	-webkit-text-fill-color: #c5ccd6 !important;
	font-weight: 400;
	letter-spacing: 0.2em;
	opacity: 1 !important;
}

.map-field-hint {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	color: #64748b;
}

.map-otp-dev-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	margin-left: 0.35rem;
	border-radius: 4px;
	background: #fef3c7;
	color: #92400e;
	font-size: 0.75rem;
	font-weight: 700;
}

.map-otp-dev-code {
	font-size: 1.1rem;
	letter-spacing: 0.2em;
	color: var(--map-accent);
}

.map-file-input {
	padding: 0.625rem 0.875rem;
	cursor: pointer;
	background: #f9fafb !important;
}

.map-file-input:hover {
	background: #f3f4f6 !important;
}

.map-form-wrapper .map-file-input::file-selector-button {
	padding: 0.4rem 1rem;
	border: none;
	border-radius: 6px;
	background: var(--map-accent);
	color: #ffffff;
	font-family: inherit;
	cursor: pointer;
	margin-left: 0.75rem;
}

/* Fieldset */
.map-fieldset {
	border: 1.5px solid var(--map-border);
	border-radius: 12px;
	padding: 1.25rem;
	margin: 0;
}

.map-fieldset__legend {
	font-weight: 700;
	font-size: 1rem;
	color: var(--map-accent);
	padding: 0 0.5rem;
}

/* Buttons — scoped so theme cannot restyle */
.map-form-wrapper .map-btn,
.map-profile .map-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.75rem;
	border: none;
	border-radius: var(--map-radius-sm);
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
	text-decoration: none;
	line-height: 1.3;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.map-form-wrapper .map-btn--primary,
.map-profile .map-btn--primary {
	background: var(--map-accent);
	color: #ffffff;
	width: 100%;
}

.map-form-wrapper .map-btn--primary:hover,
.map-profile .map-btn--primary:hover {
	background: var(--map-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(137, 125, 75, 0.35);
	color: #ffffff;
}

.map-form-wrapper .map-btn--primary:disabled,
.map-form-wrapper .map-btn--primary:disabled:hover {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	background: var(--map-accent);
}

.map-form-wrapper .map-btn--secondary {
	width: 100%;
	background: #ffffff;
	color: var(--map-accent);
	border: 1.5px solid #cfc7a8;
	box-shadow: none;
}

.map-form-wrapper .map-btn--secondary:hover {
	background: #faf8f2;
	border-color: var(--map-accent);
	color: var(--map-accent-hover);
	transform: none;
	box-shadow: none;
}

.map-form-wrapper .map-btn--secondary:disabled,
.map-form-wrapper .map-btn--secondary:disabled:hover {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	background: #f8fafc;
	color: #94a3b8;
	border-color: #e2e8f0;
}

/* display:inline-flex on .map-btn overrides native [hidden] — force hide */
.map-form-wrapper .map-btn[hidden],
.map-profile .map-btn[hidden] {
	display: none !important;
}

.map-otp-field[hidden] {
	display: none !important;
}

.map-otp-field--visible {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	animation: map-otp-reveal 0.3s ease;
}

@keyframes map-otp-reveal {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Messages */
.map-messages {
	margin-bottom: 1.5rem;
}

.map-message {
	padding: 1rem 1.25rem;
	border-radius: 10px;
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
}

.map-message--error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.map-message--prominent {
	padding: 1.25rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-width: 2px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
	animation: map-message-pulse 0.6s ease;
}

.map-message--prominent.map-message--error {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.map-message--prominent.map-message--info {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

@keyframes map-message-pulse {
	0% { transform: scale(0.98); opacity: 0.7; }
	50% { transform: scale(1.01); }
	100% { transform: scale(1); opacity: 1; }
}

.map-message--success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.map-message--info {
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #bfdbfe;
}

.map-message a {
	color: inherit;
	font-weight: 600;
}

/* Author Preview (Step 2) */
.map-author-preview {
	background: #f8fafc;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.map-author-preview__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 0.75rem;
}

.map-author-preview__details {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.9rem;
	color: #64748b;
}

.map-author-preview__detail {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.map-books-preview__title {
	font-size: 1rem;
	font-weight: 600;
	color: #334155;
	margin: 1.25rem 0 0.75rem;
}

.map-books-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--map-accent);
	color: #ffffff;
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
	margin-right: 0.5rem;
}

.map-books-list {
	margin: 0;
	padding-right: 1.5rem;
}

.map-books-list li {
	padding: 0.35rem 0;
	color: #475569;
}

/* Book Fields (Step 3) */
.map-books-fields {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.map-books-fields__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0;
}

.map-books-fields__hint {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: #64748b;
}

.map-books-requirement {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1rem 1.15rem;
	margin-bottom: 0.75rem;
	border-radius: 12px;
	background: #fffbeb;
	border: 2px solid #fcd34d;
	color: #92400e;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.map-books-requirement--alert {
	border-color: #ef4444;
	background: #fef2f2;
	color: #b91c1c;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
	animation: map-requirement-shake 0.5s ease;
}

@keyframes map-requirement-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-4px); }
	40% { transform: translateX(4px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(3px); }
}

.map-books-requirement__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #f59e0b;
	color: #ffffff;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1;
}

.map-books-requirement--alert .map-books-requirement__icon {
	background: #ef4444;
}

.map-books-requirement__title {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.map-books-requirement__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.7;
}

.map-books-fields--highlight {
	animation: map-books-highlight 1.2s ease;
}

@keyframes map-books-highlight {
	0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
	50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.15); }
	100% { box-shadow: none; }
}

.map-book-accordion {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

.map-book-accordion__header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border: none;
	background: #f8fafc;
	cursor: pointer;
	font-family: inherit;
	text-align: right;
	transition: background 0.2s ease;
}

.map-book-accordion__header:hover,
.map-book-accordion__header--open {
	background: #f8f6f0;
}

.map-book-accordion__title {
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
}

.map-book-accordion__required {
	color: #dc2626;
	font-size: 0.85em;
	font-weight: 500;
}

.map-book-accordion__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--map-accent);
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
	transition: transform 0.2s ease, background 0.2s ease;
}

.map-book-accordion__header--open .map-book-accordion__icon {
	transform: rotate(45deg);
	background: var(--map-accent-hover);
}

.map-book-accordion__panel {
	padding: 1.15rem;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.map-book-accordion__panel[hidden] {
	display: none !important;
}

.map-book-fieldset {
	border: 2px solid rgba(137, 125, 75, 0.25);
	border-radius: 12px;
	padding: 1.5rem;
	margin: 0;
	background: #faf9f6;
}

.map-book-fieldset__legend {
	font-weight: 700;
	color: var(--map-accent);
	padding: 0 0.5rem;
}

/* File Preview */
.map-file-preview {
	margin-top: 0.5rem;
}

.map-file-preview img {
	max-width: 120px;
	max-height: 120px;
	border-radius: 8px;
	object-fit: cover;
	border: 2px solid #e2e8f0;
}

.map-file-preview__name {
	font-size: 0.8rem;
	color: #64748b;
	margin-top: 0.25rem;
}

/* Success */
.map-success {
	text-align: center;
	padding: 2rem 1rem;
}

.map-success__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #10b981;
	color: #ffffff;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.map-success__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 0.75rem;
}

.map-success__message {
	color: #64748b;
	margin-bottom: 1.5rem;
}

/* Loading */
.map-loading {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	z-index: 10;
	border-radius: 16px;
}

.map-loading[hidden] {
	display: none !important;
}

.map-loading__spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e2e8f0;
	border-top-color: var(--map-accent);
	border-radius: 50%;
	animation: map-spin 0.8s linear infinite;
}

.map-loading__text {
	color: #64748b;
	font-size: 0.9rem;
}

@keyframes map-spin {
	to { transform: rotate(360deg); }
}

/* Honeypot */
.map-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* Form Steps visibility */
.map-form-step[hidden] {
	display: none !important;
}

/* Notice */
.map-notice {
	padding: 1rem;
	border-radius: 8px;
	text-align: center;
}

.map-notice--error {
	background: #fef2f2;
	color: #dc2626;
}

/* ============================================
   Profile Page Styles
   ============================================ */

.map-profile {
	direction: rtl;
	max-width: 880px;
	margin: 2rem auto;
	padding: 2.5rem 2rem;
	font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
	line-height: 1.7;
	color: #1a1a2e;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.map-profile *,
.map-profile *::before,
.map-profile *::after {
	box-sizing: border-box;
}

/* Hero */
.map-profile-hero {
	margin-bottom: 3rem;
}

.map-profile-hero__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.25rem;
	margin-bottom: 1.75rem;
}

.map-profile-hero__image-wrap {
	flex-shrink: 0;
}

.map-profile-hero__image {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(137, 125, 75, 0.35);
	box-shadow: 0 4px 16px rgba(137, 125, 75, 0.12);
}

.map-profile-hero__name {
	font-size: 2.5rem;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0;
	line-height: 1.25;
}

.map-profile-hero__bio {
	color: #334155;
	font-size: 1.15rem;
	line-height: 1.9;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.map-profile-hero__bio p {
	margin: 0 0 0.85rem;
}

.map-profile-hero__bio p:last-child {
	margin-bottom: 0;
}

.map-profile-hero__video {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	margin-top: 1.5rem;
}

.map-profile-video {
	width: 100%;
	max-height: 480px;
	display: block;
	background: #000;
}

/* Books */
.map-profile-books__title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 2rem;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--map-accent);
	display: inline-block;
}

.map-profile-books__list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.map-book-card {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid #e2e8f0;
}

.map-book-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.map-book-card__image-wrap {
	flex-shrink: 0;
}

.map-book-card__image {
	width: 140px;
	height: 195px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-book-card__body {
	flex: 1;
	min-width: 0;
}

.map-book-card__title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 0.85rem;
	line-height: 1.35;
}

.map-book-card__description {
	color: #334155;
	font-size: 1.1rem;
	line-height: 1.85;
	margin-bottom: 1rem;
}

.map-book-card__description p {
	margin: 0 0 0.65rem;
}

.map-book-card__description p:last-child {
	margin-bottom: 0;
}

.map-book-card__video {
	border-radius: 8px;
	overflow: hidden;
	margin-top: 0.5rem;
}

.map-profile-video--book {
	max-height: 360px;
}

/* Certificate / تقدیرنامه */
.map-profile-certificate {
	margin-top: 3rem;
	padding-top: 0.5rem;
}

.map-profile-certificate__title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--map-accent);
	display: inline-block;
}

.map-profile-certificate__figure {
	margin: 0;
	text-align: center;
}

.map-profile-certificate__image {
	display: block;
	width: 100%;
	max-width: 920px;
	height: auto;
	margin: 0 auto;
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 640px) {
	.map-form-wrapper {
		padding: 0.75rem 0.5rem 1.75rem;
	}

	.map-form-container {
		padding: 1.15rem 0.9rem 1.35rem;
		border-radius: 12px;
		box-shadow: 0 4px 16px rgba(28, 25, 23, 0.06);
	}

	.map-steps {
		gap: 0.15rem;
		margin-bottom: 1.35rem;
	}

	.map-steps::before {
		top: 15px;
		right: 8%;
		left: 8%;
	}

	.map-step__label {
		font-size: 0.62rem;
	}

	.map-step__number {
		width: 30px;
		height: 30px;
		font-size: 0.8rem;
	}

	.map-form-wrapper .map-input,
	.map-form-wrapper .map-textarea,
	.map-form-wrapper .map-file-input,
	.map-form-wrapper .map-btn {
		font-size: 16px; /* prevent iOS zoom on focus */
	}

	.map-form-wrapper .map-btn {
		min-height: 3.1rem;
	}

	.map-author-preview {
		padding: 1rem;
	}

	.map-fieldset {
		padding: 1rem;
	}

	.map-profile {
		margin: 1rem auto;
		padding: 1.25rem 1rem;
		border-radius: 12px;
	}

	.map-profile-hero__image {
		width: 96px;
		height: 96px;
	}

	.map-profile-hero__name {
		font-size: 1.85rem;
	}

	.map-profile-hero__bio {
		font-size: 1.05rem;
		text-align: right;
	}

	.map-book-card__title {
		font-size: 1.45rem;
	}

	.map-book-card__description {
		font-size: 1rem;
	}
}

@media (min-width: 641px) and (max-width: 900px) {
	.map-form-wrapper {
		padding: 1.25rem 1rem 2rem;
	}
}

/* Draft preview notice for authors with signed links */
.map-preview-banner {
	position: sticky;
	top: 0;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #1a1a1a;
	background: #f5e6c8;
	border-bottom: 1px solid #e0c98a;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
