/* BedLaunch Core widgets. Colors and fonts come from Settings, BedLaunch (CSS variables below are fallbacks).
   Sizes use rem, so a site-wide text size control scales these widgets too. */
.blc {
	--blc-accent: #B5391A;
	--blc-text: #1F3B4D;
	--blc-muted: #5F6F79;
	--blc-card: #FFFFFF;
	--blc-border: #E8DCC6;
	--blc-now: #F4B740;
	--blc-font-heading: inherit;
	--blc-font-body: inherit;
	--blc-radius: 20px;
	color: var(--blc-text);
	font-family: var(--blc-font-body);
	box-sizing: border-box;
}
.blc *, .blc *::before, .blc *::after { box-sizing: inherit; }
.blc ul { list-style: none; margin: 0; padding: 0; }
.blc .blc-title {
	font-family: var(--blc-font-heading);
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0;
	color: var(--blc-text);
}

/* Today strip */
.blc-today {
	background: var(--blc-card);
	border: 1px solid var(--blc-border);
	border-radius: var(--blc-radius);
	padding: 1.5rem 1.75rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}
.blc-today .blc-list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; flex: 1 1 22rem; min-width: 0; }
.blc-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; font-size: 1.05rem; }
.blc-time { font-weight: 700; color: var(--blc-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.blc-name { font-weight: 500; }
.blc-link { color: var(--blc-accent); font-weight: 600; }
.blc-link:focus-visible { outline: 3px solid var(--blc-accent); outline-offset: 3px; }
.blc-pill {
	display: inline-block;
	background: var(--blc-now);
	color: #1F2A30;
	border-radius: 999px;
	padding: 0.15rem 0.7rem;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}
.blc-pill-fun { background: color-mix(in srgb, var(--blc-now) 35%, var(--blc-card)); color: var(--blc-text); }
.blc-empty { color: var(--blc-muted); margin: 0; }

/* Week view */
.blc-week { display: flex; flex-direction: column; gap: 1rem; }
.blc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.9rem; }
.blc-day {
	background: var(--blc-card);
	border: 1px solid var(--blc-border);
	border-radius: calc(var(--blc-radius) * 0.8);
	padding: 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
}
.blc-day-today { border-color: var(--blc-accent); box-shadow: inset 0 0 0 1px var(--blc-accent); }
.blc .blc-day-name { margin: 0; font-family: var(--blc-font-body); font-size: 1rem; font-weight: 700; color: var(--blc-text); }
.blc-date { color: var(--blc-muted); font-weight: 500; }
.blc-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.blc-row { display: grid; grid-template-columns: 4.9em 1fr; gap: 0.4rem; font-size: 0.92rem; line-height: 1.35; }
.blc-row .blc-time { font-weight: 600; }
.blc-special .blc-name { color: var(--blc-accent); font-weight: 600; }
.blc-highlight { font-family: var(--blc-font-heading); font-style: italic; color: var(--blc-accent); font-weight: 600; }

/* Admin-only setup message */
.blc-error { border: 2px dashed var(--blc-accent); border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.95rem; background: var(--blc-card); }

/* ======================================================================
   Site pieces: forms, team, services, map, availability dialog.
   Variables come from the theme unless set in BedLaunch, Activity calendar.
   ====================================================================== */
.bl-ui { color: var(--blc-text); font-family: var(--blc-font-body); box-sizing: border-box; }
.bl-ui *, .bl-ui *::before, .bl-ui *::after { box-sizing: inherit; }
.bl-ui[hidden], .bl-ui [hidden] { display: none !important; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Buttons used inside plugin pieces */
.bl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2;
	padding: 0.85em 1.4em; min-height: 3rem;
	border-radius: 0.6rem; border: 2px solid var(--blc-accent);
	background: var(--blc-accent); color: #fff; text-decoration: none; cursor: pointer;
}
.bl-btn:hover { filter: brightness(0.9); color: #fff; }
.bl-btn[disabled] { opacity: 0.6; cursor: progress; }
.bl-btn-outline { background: transparent; color: var(--blc-accent); }
.bl-btn-outline:hover { background: var(--blc-accent); color: #fff; filter: none; }
.bl-btn-block { width: 100%; }

/* Form */
.bl-form { display: grid; gap: 1rem; }
.bl-field { display: grid; gap: 0.35rem; }
.bl-field label { font-weight: 700; font-size: 1.05rem; }
.bl-optional { font-weight: 400; color: var(--blc-muted); }
.bl-field input, .bl-field textarea {
	font: inherit; font-size: 1.125rem; width: 100%;
	padding: 0.8rem 0.9rem; min-height: 3.1rem;
	border: 2px solid var(--blc-border); border-radius: 0.6rem; background: #fff; color: var(--blc-text);
}
.bl-field input:focus, .bl-field textarea:focus { border-color: var(--blc-accent); outline: 3px solid color-mix(in srgb, var(--blc-accent) 25%, transparent); outline-offset: 0; }
.bl-field [aria-invalid="true"] { border-color: #B42318; }
.bl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .bl-row2 { grid-template-columns: 1fr; } }
.bl-hint { margin: 0; font-size: 0.95rem; color: var(--blc-muted); }
.bl-form-error { margin: 0; color: #B42318; font-weight: 700; }
.bl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bl-form-done { border: 2px solid var(--blc-accent); border-radius: 0.8rem; padding: 1.25rem 1.5rem; background: #fff; }
.bl-form-done p { margin: 0.25rem 0; }
.bl-done-title { font-family: var(--blc-font-heading); font-size: 1.4rem; font-weight: 700; color: var(--blc-text); }

/* Team */
.bl-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 45%), 1fr)); gap: 2rem 1.5rem; }
.bl-person { margin: 0; }
.bl-person-photo { aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden; background: color-mix(in srgb, var(--blc-border) 60%, #fff); margin-bottom: 0.75rem; }
.bl-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-person-name { font-weight: 700; font-size: 1.15rem; margin: 0; line-height: 1.3; }
.bl-person-role { margin: 0.15rem 0 0; color: var(--blc-muted); font-size: 1rem; line-height: 1.35; }

/* Services */
.bl-services { display: grid; gap: 2.5rem; }
.bl-service-group h2 { font-family: var(--blc-font-heading); margin: 0 0 1rem; }
.bl-service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1rem; }
.bl-service { background: #fff; border: 1px solid var(--blc-border); border-left: 4px solid var(--blc-accent); border-radius: 0.8rem; padding: 1.1rem 1.25rem; margin: 0; }
.bl-service h3 { font-family: var(--blc-font-body); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; color: var(--blc-text); }
.bl-service p { margin: 0; color: var(--blc-muted); font-size: 1.02rem; line-height: 1.45; }
.bl-service-list { list-style: none; margin: 0; padding: 0; columns: 2 15rem; column-gap: 2rem; }
.bl-service-list li { break-inside: avoid; padding: 0.35rem 0 0.35rem 1.9rem; position: relative; }
.bl-service-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--blc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Map */
.bl-map { border-radius: 1rem; overflow: hidden; border: 1px solid var(--blc-border, #ddd); line-height: 0; }
.bl-map iframe { width: 100%; border: 0; display: block; }

/* Availability dialog */
html.bl-modal-open { overflow: hidden; }
.bl-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.bl-modal[hidden] { display: none; }
.bl-modal-scrim { position: absolute; inset: 0; background: rgba(10, 25, 40, 0.6); }
.bl-modal-box { position: relative; width: min(34rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: #fff; border-radius: 1.1rem; padding: 2rem clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 20px 60px rgba(10, 25, 40, 0.35); }
.bl-modal-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: transparent; color: var(--blc-text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bl-modal-close:hover { background: color-mix(in srgb, var(--blc-border) 60%, #fff); }
.bl-modal-close svg { width: 1.4rem; height: 1.4rem; }
.bl-modal h2 { font-family: var(--blc-font-heading); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); line-height: 1.2; margin: 0 0 1rem; padding-right: 2rem; color: var(--blc-text); }
.bl-modal h2:focus { outline: none; }
.bl-modal-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.9rem; color: var(--blc-accent); margin: 0 0 0.35rem; }
.bl-choice { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bl-choice legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; padding: 0; }
.bl-choice label { position: relative; flex: 1 1 9rem; }
.bl-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.bl-choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.25rem; padding: 0.6rem 0.9rem; border: 2px solid var(--blc-border); border-radius: 0.7rem; font-weight: 700; font-size: 1.08rem; cursor: pointer; background: #fff; }
.bl-choice input:checked + span { border-color: var(--blc-accent); background: color-mix(in srgb, var(--blc-accent) 10%, #fff); color: var(--blc-text); box-shadow: inset 0 0 0 1px var(--blc-accent); }
.bl-choice input:focus-visible + span { outline: 3px solid var(--blc-now); outline-offset: 2px; }
.bl-checking { text-align: center; padding: 2rem 0; }
.bl-checking p { font-size: 1.15rem; font-weight: 600; margin: 1rem 0 0; }
.bl-spinner { display: inline-block; width: 3rem; height: 3rem; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--blc-accent) 20%, #fff); border-top-color: var(--blc-accent); animation: bl-spin 0.9s linear infinite; }
@keyframes bl-spin { to { transform: rotate(360deg); } }
.bl-badge { display: inline-block; font-weight: 800; font-size: 0.95rem; padding: 0.3rem 0.8rem; border-radius: 999px; margin: 0 0 0.75rem; }
.bl-badge-open { background: #E3F4E8; color: #135C2B; }
.bl-badge-limited { background: #FDF0DD; color: #7A4300; }
.bl-badge-full, .bl-badge-stale { background: #EEF2F6; color: #2B3A48; }
.bl-result-text { font-size: 1.1rem; margin: 0 0 0.5rem; }
.bl-updated { color: var(--blc-muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.bl-updated:empty { display: none; }
.bl-actions { display: grid; gap: 0.75rem; }
.bl-modal .bl-form { gap: 0.85rem; }
.bl-modal .bl-form > p { margin: 0 0 0.25rem; }

/* Editor-only hint */
.bl-editor-empty { border: 2px dashed #c3c4c7; border-radius: 8px; padding: 1rem; color: #50575e; font-size: 14px; }

/* Facebook feed */
.bl-block:has(> .bl-fb) { padding: var(--wp--preset--spacing--60, 4rem) clamp(1rem, 4vw, 2.5rem); }
.bl-fb { max-width: 76rem; margin: 0 auto; position: relative; }
.bl-fb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bl-fb-head h2 { margin: 0; font-family: var(--blc-font-heading); color: var(--wp--preset--color--primary-dark, var(--blc-text)); }
.bl-fb-nav { display: flex; gap: 0.5rem; }
.bl-fb-arrow { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--blc-border); background: #fff; color: var(--blc-text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bl-fb-arrow:hover { border-color: var(--blc-accent); color: var(--blc-accent); }
.bl-fb-arrow[disabled] { opacity: 0.35; cursor: default; }
.bl-fb-arrow svg { width: 1.4rem; height: 1.4rem; }
.bl-fb-track { list-style: none; margin: 0; padding: 0.25rem 0.25rem 0.75rem; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
@media (max-width: 1000px) { .bl-fb-track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); } }
@media (max-width: 700px) { .bl-fb-track { grid-auto-columns: 78%; } .bl-fb-nav { display: none; } }
.bl-fb-card { scroll-snap-align: start; margin: 0; }
.bl-fb-open { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 1rem; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--blc-accent) 12%, #fff); color: var(--blc-text); font: inherit; text-align: left; }
.bl-fb-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.bl-fb-open:hover img, .bl-fb-open:focus-visible img { transform: scale(1.04); }
.bl-fb-cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(0deg, rgba(10, 25, 40, 0.92), rgba(10, 25, 40, 0.6) 65%, rgba(10, 25, 40, 0)); color: #fff; font-size: 0.98rem; line-height: 1.4; opacity: 0; transform: translateY(0.75rem); transition: opacity 0.25s ease, transform 0.25s ease; }
.bl-fb-date { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.25rem; opacity: 0.9; }
.bl-fb-open:hover .bl-fb-cap, .bl-fb-open:focus-visible .bl-fb-cap { opacity: 1; transform: none; }
@media (hover: none) { .bl-fb-cap { opacity: 1; transform: none; } }
.bl-fb-open:focus-visible { outline: 3px solid var(--blc-now); outline-offset: 3px; }
.bl-fb-quote { display: flex; align-items: center; height: 100%; padding: 1.5rem; font-family: var(--blc-font-heading); font-size: 1.15rem; line-height: 1.4; }
.bl-fb-follow { margin: 0.75rem 0 0; }
.bl-fb-follow a { color: var(--blc-accent); font-weight: 700; }
.bl-fb-lightbox .bl-modal-box { width: min(46rem, 100%); padding: 0; overflow: auto; }
.bl-fb-lightbox img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; display: block; background: #0d1b28; border-radius: 1.1rem 1.1rem 0 0; }
.bl-fb-lightbox .bl-fb-body { padding: 1.25rem 1.5rem 1.5rem; }
.bl-fb-lightbox .bl-fb-text { white-space: pre-line; font-size: 1.05rem; margin: 0.25rem 0 1rem; }
.bl-fb-lightbox .bl-modal-close { background: rgba(255, 255, 255, 0.92); }

/* Welcome video (click to play) */
.bl-video { position: relative; aspect-ratio: 16 / 9; border-radius: 1.1rem; overflow: hidden; background: #0d1b28; box-shadow: 0 18px 50px rgba(15, 42, 68, 0.18); }
.bl-video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0d1b28; }
.bl-video-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, opacity 0.3s ease; }
.bl-video-play:hover img { transform: scale(1.02); opacity: 0.92; }
.bl-video-icon { position: absolute; left: 50%; top: 50%; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; border-radius: 50%; background: var(--blc-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.bl-video-icon svg { width: 2.6rem; height: 2.6rem; margin-left: 0.3rem; }
.bl-video-play:hover .bl-video-icon, .bl-video-play:focus-visible .bl-video-icon { transform: scale(1.08); }
.bl-video-play:focus-visible { outline: 4px solid var(--blc-now); outline-offset: -4px; }
.bl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 0.7.0: tour and waitlist steps, text links, small choices */
.bl-link { background: none; border: 0; padding: 0.4rem 0; font: inherit; font-weight: 700; color: var(--blc-accent); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; justify-self: center; min-height: 2.75rem; }
.bl-link:hover { text-decoration-thickness: 2px; }
.bl-link[hidden], .bl-actions [hidden] { display: none; }
.bl-choice-sm { margin-bottom: 0.25rem; }
.bl-choice-sm label { flex: 1 1 6rem; }
.bl-choice-sm span { min-height: 2.9rem; font-size: 1rem; }
.bl-choice .bl-optional, .bl-field .bl-optional { font-weight: 400; font-size: 0.95em; color: var(--blc-muted); }
.bl-field select { font: inherit; font-size: 1.05rem; padding: 0.7rem 0.8rem; border: 2px solid var(--blc-border); border-radius: 0.6rem; background: #fff; color: var(--blc-text); min-height: 3rem; width: 100%; }
.bl-field select:focus { border-color: var(--blc-accent); outline: 3px solid color-mix(in srgb, var(--blc-accent) 25%, transparent); outline-offset: 0; }
.bl-next { background: color-mix(in srgb, var(--blc-accent) 7%, #fff); border-radius: 0.8rem; padding: 1rem 1.1rem 0.4rem; margin: 0 0 1rem; }
.bl-next-title { font-weight: 800; margin: 0 0 0.4rem; }
.bl-next ol { margin: 0 0 0.6rem; padding-left: 1.25rem; }
.bl-next li { margin-bottom: 0.4rem; }
.bl-modal .bl-hint { font-size: 0.92rem; color: var(--blc-muted); margin: 0; }

/* Map placeholder: nothing loads from Google until "Show map" */
.bl-map { position: relative; min-height: var(--bl-map-h, 360px); line-height: 1.5; background-color: #EEF3F1; background-image: linear-gradient(115deg, transparent 46%, rgba(255,255,255,.9) 46%, rgba(255,255,255,.9) 49%, transparent 49%), linear-gradient(25deg, transparent 62%, rgba(255,255,255,.75) 62%, rgba(255,255,255,.75) 64%, transparent 64%), linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px); background-size: auto, auto, 28px 28px, 28px 28px; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.bl-map.is-loaded { padding: 0; display: block; }
.bl-map iframe { width: 100%; height: var(--bl-map-h, 360px); border: 0; display: block; }
.bl-map-card { background: #fff; border-radius: 1rem; padding: 1.25rem 1.5rem; text-align: center; box-shadow: 0 10px 30px rgba(10, 25, 40, 0.12); max-width: 26rem; }
.bl-map-pin { width: 2.25rem; height: 2.25rem; fill: var(--blc-accent); }
.bl-map-name { font-weight: 800; font-size: 1.15rem; margin: 0.25rem 0 0; color: var(--blc-text); }
.bl-map-addr { margin: 0 0 1rem; color: var(--blc-muted); }
.bl-map-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 0 0 0.75rem; }
.bl-map-note { font-size: 0.85rem; color: var(--blc-muted); margin: 0; }

/* Language assistance notice */
.bl-language-notice { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--blc-border, #ddd); }
.bl-taglines { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.bl-taglines li[dir="rtl"] { text-align: right; }
.bl-admin-note { background: #FFF7E6; border: 1px solid #F0C36D; border-radius: 0.5rem; padding: 0.6rem 0.9rem; font-size: 0.95rem; }
