/* Share page. Mobile first; every control at least 44px tall; nothing wider than the screen. */
.bp-share {
	--bp-ink: #231f1a;
	--bp-soft: #5c554b;
	--bp-line: #cfc6b8;
	--bp-paper: #fffdf8;
	--bp-tint: #f6f0e4;
	--bp-accent: #8c2a1c;
	--bp-accent-ink: #fff;
	--bp-focus: #0b5cad;
	--bp-bad: #a3140d;
	box-sizing: border-box;
	width: 100%;
	max-width: 40rem;
	margin: 0 auto;
	padding: 1rem 16px 3rem;
	color: var(--bp-ink);
	font-size: 1.0625rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.bp-share *, .bp-share *::before, .bp-share *::after { box-sizing: border-box; }
.bp-share h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .5rem; }
.bp-share h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .5rem; }
.bp-share h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.bp-lead { font-size: 1.15rem; color: var(--bp-soft); }
.bp-step { margin: 1.75rem 0; padding-top: 1.25rem; border-top: 2px solid var(--bp-line); }
.bp-hint, .bp-note { color: var(--bp-soft); font-size: .95rem; margin: .25rem 0 .75rem; }
.bp-note:empty { display: none; }
.bp-opt { color: var(--bp-soft); font-weight: 400; }
.bp-share label { display: block; font-weight: 600; margin-bottom: .25rem; }
.bp-field { margin: 0 0 1rem; }

.bp-share input[type="text"], .bp-share input[type="email"], .bp-share input[type="date"], .bp-share textarea, .bp-share select {
	display: block; width: 100%; min-height: 44px; padding: .6rem .75rem; font: inherit; color: inherit;
	background: #fff; border: 2px solid #8a8173; border-radius: 6px;
}
.bp-share textarea { min-height: 6.5rem; resize: vertical; }
.bp-share input[type="file"] { display: block; width: 100%; min-height: 48px; padding: .4rem; font: inherit; border: 2px dashed #8a8173; border-radius: 6px; background: var(--bp-tint); }
.bp-share input[type="file"]::file-selector-button { min-height: 40px; margin-right: .75rem; padding: .4rem 1rem; font: inherit; font-weight: 600; color: var(--bp-accent-ink); background: var(--bp-accent); border: 0; border-radius: 6px; cursor: pointer; }
.bp-share [aria-invalid="true"] { border-color: var(--bp-bad); }

.bp-share :focus-visible { outline: 3px solid var(--bp-focus); outline-offset: 2px; }

/* Checkboxes: the whole label is the tap target. */
.bp-share .bp-check, .bp-share .bp-chip { display: flex; align-items: flex-start; gap: .65rem; min-height: 44px; padding: .5rem 0; font-weight: 400; cursor: pointer; }
.bp-share .bp-check input, .bp-share .bp-chip input { flex: none; width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--bp-accent); }
.bp-tags { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.bp-tags legend { font-weight: 600; padding: 0; margin-bottom: .35rem; width: 100%; }
.bp-share .bp-chip { padding: .5rem .85rem; border: 2px solid var(--bp-line); border-radius: 999px; background: #fff; align-items: center; }
.bp-share .bp-chip:has(input:checked) { border-color: var(--bp-accent); background: var(--bp-tint); }

.bp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.1rem; font: inherit; font-weight: 600; color: var(--bp-accent); background: #fff; border: 2px solid var(--bp-accent); border-radius: 6px; cursor: pointer; }
.bp-btn:hover { background: var(--bp-tint); }
.bp-btn[disabled] { opacity: .6; cursor: default; }
.bp-btn-quiet { color: var(--bp-ink); border-color: #8a8173; }
.bp-btn-main { width: 100%; min-height: 52px; font-size: 1.15rem; color: var(--bp-accent-ink); background: var(--bp-accent); }
.bp-btn-main:hover { background: #6f2015; }
.bp-btn-sq { min-width: 44px; padding: 0; font-size: 1.5rem; line-height: 1; }
.bp-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .75rem; }

.bp-errors { margin: 1rem 0; padding: .9rem 1rem; color: #4a0b07; background: #fdecea; border: 2px solid var(--bp-bad); border-radius: 6px; }
.bp-errors h2 { margin: 0 0 .35rem; font-size: 1.1rem; }
.bp-errors ul { margin: 0; padding-left: 1.2rem; }
.bp-errors a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem 0; color: inherit; font-weight: 600; }

.bp-panel { margin: 1rem 0; padding: 1rem; background: var(--bp-tint); border: 2px solid var(--bp-line); border-radius: 8px; }
.bp-panel[hidden], .bp-errors[hidden], .bp-thanks[hidden], .bp-results[hidden], .bp-progress[hidden], .bp-btn[hidden] { display: none; }

.bp-photo-list { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .6rem; }
.bp-photo { display: flex; align-items: center; gap: .75rem; padding: .5rem; background: #fff; border: 2px solid var(--bp-line); border-radius: 8px; }
.bp-photo img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--bp-tint); }
.bp-photo .bp-photo-info { flex: 1; min-width: 0; font-size: .95rem; }
.bp-photo .bp-warn { color: var(--bp-bad); font-weight: 600; }

.bp-combo { position: relative; }
.bp-results { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; max-height: 18rem; overflow-y: auto; background: #fff; border: 2px solid #8a8173; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.bp-results [role="option"] { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: .4rem .75rem; cursor: pointer; border-bottom: 1px solid var(--bp-line); }
.bp-results [role="option"]:last-child { border-bottom: 0; }
.bp-results [role="option"][aria-selected="true"], .bp-results [role="option"]:hover { background: var(--bp-tint); outline: 2px solid var(--bp-focus); outline-offset: -2px; }
.bp-kind { font-size: .8rem; color: var(--bp-soft); }

.bp-mapwrap { position: relative; margin: 0 0 .5rem; }
.bp-map { display: block; width: 100%; height: min(320px, 45vh); background: #eef0e6; border: 2px solid #8a8173; border-radius: 6px; touch-action: none; cursor: crosshair; }
.bp-zoom { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; }
.bp-zoom .bp-btn { background: rgba(255, 255, 255, .95); }
.bp-pin-status { margin: .25rem 0 1rem; padding: .5rem .75rem; font-weight: 600; background: var(--bp-tint); border-radius: 6px; }
.bp-pin-status[data-set="1"] { border-left: 6px solid var(--bp-accent); }

.bp-rules { margin: 0 0 1rem; padding-left: 1.2rem; font-size: .975rem; }
.bp-rules li { margin: .25rem 0; }
.bp-promise { margin: 1rem 0 .75rem; padding: .6rem .8rem; background: var(--bp-tint); border-radius: 6px; font-weight: 600; }
.bp-progress { display: block; width: 100%; height: 14px; margin-top: .75rem; }
.bp-ts { margin: .75rem 0; max-width: 100%; overflow: hidden; }
.bp-thanks { margin: 1.5rem 0; padding: 1.25rem; background: var(--bp-tint); border: 2px solid var(--bp-line); border-radius: 8px; }
.bp-thanks:focus { outline: 3px solid var(--bp-focus); }

/* Spam trap: off screen for everyone, not display:none (some bots skip those). */
.bp-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 640px) {
	.bp-share { padding-top: 2rem; }
	.bp-map { height: min(420px, 55vh); }
	.bp-btn-main { width: auto; min-width: 16rem; }
}
@media (prefers-reduced-motion: reduce) {
	.bp-share * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
