/* SRA Crew Manifest — mobile-first, scoped to .sracm so the theme is untouched */
.sracm {
	--red: #dd3333;
	--red-dark: #dd0000;
	--ink: #262626;
	--text: #3a3a3a;
	--muted: #828282;
	--surface: #f3f3f3;
	--blue: #467be7;
	--line: #e2e2e2;
	max-width: 640px;
	margin: 0 auto;
	padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
	font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.5;
	color: var(--text);
}
.sracm *, .sracm *::before, .sracm *::after { box-sizing: border-box; }
.sracm h1, .sracm h2, .sracm h3, .sracm legend {
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.1;
	margin: 0;
}
.sracm h1 { font-size: 2.1rem; }
.sracm h2 { font-size: 1.35rem; margin-bottom: 10px; }
.sracm h3 { font-size: 1.3rem; }
.sracm a { color: var(--blue); }
.sracm :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sracm-head { margin-bottom: 20px; }
.sracm-meta { color: var(--muted); margin: 4px 0 8px; }
.sracm-back { margin-bottom: 8px; font-weight: 600; }
.sracm-back a { text-decoration: none; }
.sracm-back a::before { content: "‹ "; }
.sracm-note, .sracm-done { background: var(--surface); border-radius: 5px; padding: 16px; }
.sracm-done h2 { color: var(--ink); }
.sracm-small { font-size: 0.85rem; color: var(--muted); }

/* Buttons */
.sracm-btn, .sracm #wp-submit {
	display: block;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 5px;
	background: var(--red);
	color: #fff;
	font: 600 1.05rem "Barlow", system-ui, sans-serif;
	cursor: pointer;
}
.sracm-btn:hover, .sracm #wp-submit:hover { background: var(--red-dark); }
/* Links styled as buttons (e.g. "Back to the trip"): the theme's link colour and layout must not win. */
a.sracm-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 12px 18px; text-align: center; color: #fff !important; text-decoration: none !important; }
a.sracm-btn:hover, a.sracm-btn:focus { color: #fff !important; }

/* Form */
.sracm-form fieldset { border: 0; border-top: 2px solid var(--ink); margin: 0 0 22px; padding: 12px 0 0; }
.sracm-form legend { font-size: 1.35rem; padding: 0 8px 0 0; }
.sracm-form label, .sracm #loginform label { display: block; font-weight: 600; color: var(--ink); margin: 12px 0 0; }
.sracm-form input[type=text], .sracm-form input[type=email], .sracm-form input[type=tel],
.sracm-form input[type=date], .sracm-form input[type=time], .sracm-form select, .sracm-form textarea,
.sracm #loginform input[type=text], .sracm #loginform input[type=password] {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 12px;
	min-height: 48px;
	font: 400 1rem "Barlow", system-ui, sans-serif; /* 16px+ stops iOS zoom */
	color: var(--ink);
	background: #fff;
	border: 1px solid #969696;
	border-radius: 5px;
}
.sracm [hidden] { display: none !important; }
.sracm-form input[type=file] { display: block; margin-top: 6px; font-size: 0.95rem; max-width: 100%; }
.sracm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sracm .sracm-check, .sracm #loginform .login-remember label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.sracm-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--red); }
.sracm-hp { position: absolute; left: -9999px; }
.sracm-errors { border-left: 4px solid var(--red); background: #fdf0f0; padding: 12px 16px; margin-bottom: 20px; border-radius: 0 5px 5px 0; }
.sracm-errors p { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.sracm-errors ul { margin: 0; padding-left: 18px; }

/* Event list */
.sracm-events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sracm-events a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
/* Trip cards on the Skipper page */
.sracm-ev-cards { border-top: 0; display: grid; gap: 12px; }
.sracm-ev-cards li { margin: 0; }
.sracm-ev-cards a { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.sracm-ev-cards a:hover, .sracm-ev-cards a:focus { border-color: #c62828; }
.sracm-ev-thumb { flex: none; width: 84px; height: 84px; border-radius: 10px; background: #262626 center / cover no-repeat; }
.sracm-ev-thumb-none { display: flex; align-items: center; justify-content: center; font-size: 34px; border-bottom: 4px solid #c62828; }
.sracm-ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sracm-ev-cards .sracm-ev-title { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: #262626; }
.sracm-ev-cards .sracm-ev-meta { font-size: .9rem; color: var(--muted); }
.sracm-ev-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.sracm-ev-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f0f0f0; color: #3c3c3c; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.sracm-ev-boat { background: #262626; color: #fff; }
.sracm-ev-soon { background: #fdecea; color: #c62828; }
.sracm-ev-now { background: #c62828; color: #fff; }
.sracm-ev-go { flex: none; font-size: 1.6rem; color: #b0b0b0; }
.sracm-ev-title { display: block; font: 700 1.4rem "Barlow Condensed", sans-serif; color: var(--ink); }
.sracm-ev-meta { color: var(--muted); }

/* Provisioning summary: the one thing a skipper checks before shopping */
.sracm-galley { background: var(--ink); color: #fff; border-radius: 5px; padding: 16px; margin-bottom: 28px; }
.sracm-galley h2 { color: #fff; }
.sracm .sracm-galley h2 { color: #fff !important; font-size: 1.35rem !important; line-height: 1.2 !important; margin: 0 0 10px !important; word-break: normal !important; }
.sracm .sracm-galley p { color: #d0d0d0 !important; }
.sracm-galley dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 16px; }
.sracm-galley dl div { display: flex; justify-content: space-between; border-bottom: 1px solid #3a3a3a; padding: 4px 0; }
.sracm-galley dt { color: #d0d0d0; }
.sracm-galley dd { margin: 0; font: 700 1.25rem "Barlow Condensed", sans-serif; }
.sracm-alert { margin: 12px 0 0; padding-left: 10px; border-left: 4px solid var(--red); font-weight: 600; }

/* Crew */
.sracm-person { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.sracm-person.has-allergy { border-left: 4px solid var(--red); padding-left: 12px; }
.sracm-person p { margin: 4px 0; }
.sracm-arrival { font-weight: 600; color: var(--ink); }
.sracm-arrival span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.sracm-allergy { color: var(--red-dark); }
.sracm-actions { margin: 10px 0 6px; }
.sracm-call {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border: 2px solid var(--ink); border-radius: 5px; color: var(--ink) !important; font-weight: 600; text-decoration: none;
}
.sracm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sracm-wa { border-color: #25d366; background: #25d366; color: #fff !important; }
.sracm-wa-btn {
	display: inline-flex !important; align-items: center; gap: 10px; min-height: 44px; padding: 4px 18px 4px 4px;
	border-radius: 999px; background: linear-gradient(180deg, #2fd56f, #1ebe5d); color: #fff !important; text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18); line-height: 1.1;
}
.sracm-wa-btn:hover, .sracm-wa-btn:focus { background: #1aa752; color: #fff !important; }
.sracm-wa-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sracm-wa-ico svg { display: block; }
.sracm-wa-txt { display: flex; flex-direction: column; }
.sracm-wa-txt strong { font-size: 1rem; font-weight: 700; }
.sracm-wa-txt small { font-size: .8rem; font-weight: 500; opacity: .95; }
.sracm-ec summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sracm-ec p { margin: 0 0 4px; }
.sracm-print { margin-top: 24px; }
.sracm-phone-print { display: none; }

@media (prefers-reduced-motion: reduce) { .sracm * { transition: none !important; } }

/* Printable crew sheet: hide the theme, show only the manifest */
@media print {
	body * { visibility: hidden; }
	.sracm, .sracm * { visibility: visible; }
	.sracm { position: absolute; left: 0; top: 0; max-width: none; font-size: 11pt; }
	.sracm-back, .sracm-print, .sracm-print + .sracm-small, .sracm-actions { display: none; }
	.sracm-galley { background: none; color: #000; border: 2px solid #000; }
	.sracm-galley h2, .sracm-galley dt { color: #000; }
	.sracm-person { break-inside: avoid; }
	.sracm-ec summary { display: none; }
	.sracm-phone-print { display: block; }
}

/* Passport section */
.sracm-btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.sracm-btn-ghost:hover { background: var(--surface); }
.sracm-btn:disabled { opacity: .6; cursor: progress; }
.sracm-scan { margin: 12px 0 4px; padding: 14px; background: var(--surface); border-radius: 5px; }
.sracm-scan .sracm-small { margin: 8px 0 0; }
.sracm-scan-status:not(:empty) { margin: 10px 0 0; font-weight: 600; color: var(--ink); }
.sracm-passport .sracm-note { padding: 10px 12px; }
.sracm-expiry-warn { margin: 10px 0 0; padding-left: 10px; border-left: 4px solid #ffa127; }

/* v1.2: profiles and trip questions */
.sracm-optional { font-weight: 400; color: var(--muted); }
.sracm-profile-intro { margin: 8px 0 14px; }
.sracm-profile-intro h2 { font-size: 1.7rem; margin: 0; }
.sracm-profile-intro .sracm-small { margin: 2px 0 0; }
.sracm-trip { border-top-color: var(--red) !important; }
.sracm-note-warn { background: #fff4e5; border-left: 4px solid #ffa127; }
.sracm-trip-answers { margin: 6px 0; }
.sracm-trip-answers div { display: flex; gap: 8px; margin: 2px 0; }
.sracm-trip-answers dt { flex: 0 0 auto; max-width: 45%; color: var(--muted); }
.sracm-trip-answers dt::after { content: ":"; }
.sracm-trip-answers dd { margin: 0; font-weight: 600; color: var(--ink); }

/* 1.4: days aboard and back-to-back legs */
.sracm-days { font-weight: 600; color: var(--ink); }
.sracm-continuing { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #e8f5ec; color: #1d6b35; font-size: .9rem; }
.sracm-perday-title { font-size: 1.1rem; color: #fff; margin: 14px 0 6px; }
.sracm-perday { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px 14px; }
.sracm-perday div { display: flex; justify-content: space-between; border-bottom: 1px solid #3a3a3a; padding: 2px 0; }
.sracm-perday dt { color: #d0d0d0; }
.sracm-perday dd { margin: 0; font-weight: 700; }

/* 1.5: leaving early, phone hand-off */
.sracm-leave { margin-top: 14px; }
.sracm-leave:not(:has(input[name=leave_early]:checked)) .sracm-leave-when { display: none; }
.sracm-leave-when .sracm-small { display: block; font-weight: 400; margin-top: 4px; }
.sracm-leaving { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #fff4e5; color: #8a4b00; font-size: .95rem; }
.sracm-handoff { margin: 12px 0 4px; padding: 14px; border: 1px dashed #969696; border-radius: 5px; }
.sracm-handoff .sracm-qr { display: block; width: 200px; height: 200px; margin: 12px auto; background: #fff; }
.sracm-handoff .sracm-qr svg { width: 100%; height: 100%; display: block; }
.sracm-handoff p { margin: 6px 0 0; }
.sracm-handoff-done { background: #e8f5ec; border: 0; color: #1d6b35; font-weight: 600; }
.sracm-pp-locked label, .sracm-pp-locked .sracm-row, .sracm-pp-locked .tourmaster-profile-field, .sracm-pp-locked .sracm-scan, .sracm-pp-locked .sracm-expiry-warn { display: none !important; }
.sracm-scan-lead { margin: 0 0 10px; }
/* Two photo buttons side by side, with a gap; robust against theme button styles. */
.sracm-scan-btns { display: flex !important; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
.sracm-scan-btns > button { flex: 1 1 140px; width: auto !important; margin: 0 !important; }
.sracm-scan-btns > button[hidden] { display: none !important; }
.sracm .sracm-btn { text-transform: none !important; letter-spacing: normal !important; }
.sracm .sracm-btn.sracm-btn-ghost { background: #fff !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; }
.sracm .sracm-btn.sracm-btn-ghost:hover { background: var(--surface) !important; }
.sracm-progress { margin: 12px 0 0; }
.sracm-progress-track { height: 8px; border-radius: 4px; background: #dcdcdc; overflow: hidden; }
.sracm-progress-fill { height: 100%; width: 0; background: var(--red, #dd3333); transition: width .25s ease; }
.sracm-progress-label { margin: 6px 0 0; font-size: .9rem; color: var(--muted, #828282); }

/* iPhone Safari: date/time fields ignore width:100% unless their native look is reset. */
.sracm-form input[type=date], .sracm-form input[type=time] {
	-webkit-appearance: none; appearance: none;
	min-width: 0; max-width: 100%; width: 100%;
	text-align: left; line-height: 1.3;
}
.sracm-form input[type=date]::-webkit-date-and-time-value,
.sracm-form input[type=time]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.sracm-form label, .sracm-row > * { min-width: 0; }
.sracm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Phone-width buttons: keep each label on one line. */
.sracm-scan-btns > button { padding: 0 10px !important; white-space: nowrap; font-size: 1rem !important; }
@media (max-width: 340px) { .sracm-scan-btns > button { white-space: normal; } }

.sracm-medical { color: var(--red-dark); }

.sracm-waiting ol { margin: 6px 0 0; padding-left: 24px; }
.sracm-waiting li { margin: 2px 0; }

/* 1.8: live camera with passport guide frame */
html.sracm-cam-open, html.sracm-cam-open body { overflow: hidden !important; }
.sracm-cam { position: fixed; inset: 0; z-index: 2147483000; background: #000; display: flex; flex-direction: column; font-family: "Barlow", system-ui, sans-serif; }
.sracm-cam-box { position: relative; flex: 1; overflow: hidden; }
.sracm-cam-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sracm-cam-frame { position: absolute; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); transition: border-color .15s; }
.sracm-cam-frame.sracm-cam-ok { border-color: #2fbf5a; }
.sracm-cam-msg { margin: 0; padding: 12px 16px; min-height: 48px; color: #fff; text-align: center; font-size: 16px; line-height: 1.35; background: #191919; }
.sracm-cam-btns { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: #191919; }
.sracm-cam-btns button { background: none; border: 0; color: #fff; font: 600 16px "Barlow", system-ui, sans-serif; padding: 12px 6px; min-width: 96px; cursor: pointer; }
.sracm-cam-btns .sracm-cam-native { text-align: right; }
.sracm-cam-btns .sracm-cam-shoot { width: 68px; height: 68px; min-width: 68px; border-radius: 50%; border: 4px solid #fff; background: #dd3333; padding: 0; }

/* 1.8.3: example answers in pale grey, so they don't look filled in */
.sracm-form ::placeholder, .tourmaster-edit-profile-wrap ::placeholder { color: #c8c8c8 !important; opacity: 1; }
.sracm-form ::-webkit-input-placeholder, .tourmaster-edit-profile-wrap ::-webkit-input-placeholder { color: #c8c8c8 !important; opacity: 1; }

/* 1.8.4: phone on its side: buttons down the right, so the camera gets the full height */
@media (orientation: landscape) and (max-height: 600px) {
	.sracm-cam { display: grid; grid-template-columns: 1fr 132px; grid-template-rows: 1fr auto; }
	.sracm-cam-box { grid-row: 1 / 3; }
	.sracm-cam-msg { grid-column: 2; display: flex; align-items: center; font-size: 14px; padding: 12px 10px; }
	.sracm-cam-btns { grid-column: 2; flex-direction: column; gap: 4px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px)); }
	.sracm-cam-btns button, .sracm-cam-btns .sracm-cam-native { min-width: 0; text-align: center; padding: 8px 4px; font-size: 15px; }
	.sracm-cam-btns .sracm-cam-shoot { order: -1; }
}

/* 1.8.5: crew WhatsApp group button */
.sracm .sracm-btn.sracm-wa { display: inline-block; background: #1f9e4f; color: #fff; text-decoration: none; }
.sracm .sracm-btn.sracm-wa:hover { background: #17803f; color: #fff; }
.sracm .sracm-update { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 6px; }

/* Crew changes box: the theme styles every <button>, so these rules must win. */
.sracm-changes .sracm-chg-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sracm-changes button.sracm-chg-btn,
.sracm-changes button.sracm-chg-save,
.sracm-changes button.sracm-chg-undo {
	all: unset; box-sizing: border-box !important; cursor: pointer !important; font-family: "Barlow", system-ui, sans-serif !important;
	text-transform: none !important; letter-spacing: normal !important; line-height: 1.25 !important; -webkit-tap-highlight-color: transparent;
}
.sracm-changes button.sracm-chg-btn {
	flex: 1 1 150px; display: flex !important; align-items: center; justify-content: center; gap: 6px; text-align: center !important;
	min-height: 48px !important; height: auto !important; padding: 10px 14px !important; border: 2px solid #262626 !important; border-radius: 8px !important;
	background: #fff !important; color: #262626 !important; font-size: 1rem !important; font-weight: 700 !important;
}
.sracm-changes button.sracm-chg-btn:hover, .sracm-changes button.sracm-chg-btn:focus-visible { border-color: #c62828 !important; color: #c62828 !important; }
.sracm-changes button.sracm-chg-save {
	display: inline-flex !important; align-items: center; margin-top: 12px !important; min-height: 46px !important; padding: 10px 22px !important;
	border-radius: 8px !important; background: #262626 !important; color: #fff !important; font-size: 1rem !important; font-weight: 700 !important;
}
.sracm-changes button.sracm-chg-undo { padding: 4px 0 !important; color: #5e5e5e !important; font-size: .9rem !important; text-decoration: underline !important; background: none !important; }
.sracm-changes select, .sracm-changes input, .sracm-changes textarea { text-transform: none !important; }

.sracm-changes .sracm-chg-aboard { margin: 0 0 10px; padding: 8px 10px; background: #f4f4f4; border-radius: 8px; font-size: .95rem; }
.sracm-changes .sracm-chg-msg { background: #eaf6ee !important; color: #1d6b35 !important; }
.sracm-changes ul.sracm-chg-log { list-style: none !important; margin: 10px 0 0 !important; padding: 0 !important; }
.sracm-changes ul.sracm-chg-log li { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid #eee; padding: 9px 0; margin: 0 !important; }
.sracm-changes .sracm-chg-ico { font-size: 18px; line-height: 1.3; flex: none; }
.sracm-changes .sracm-chg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sracm-changes .sracm-chg-what { font-size: .9rem; color: #3c3c3c; }
.sracm-changes .sracm-chg-note { font-size: .85rem; color: #5e5e5e; font-style: italic; }
.sracm-changes .sracm-chg-by { font-size: .8rem; color: #8a8a8a; }
.sracm-changes .sracm-chg-by button.sracm-chg-undo { font-size: .8rem !important; padding: 0 2px !important; }
.sracm-changes .sracm-chg-more summary { cursor: pointer; font-size: .9rem; color: #5e5e5e; padding: 8px 0 2px; }

.sracm-changes button.sracm-chg-btn .sracm-pico { margin-right: 2px; }
.sracm-changes ul.sracm-chg-log li .sracm-pico { margin-top: 1px; }

/* 1.64: crew cards with faces, intros and reminder lines; Call and WhatsApp the same height. */
.sracm-person-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sracm-person-h .sracm-face { flex: none; }
.sracm-person-h > span:not(.sracm-face) { flex: 1 1 0; min-width: 0; }
.sracm-person-h .sracm-face { width: 44px; height: 44px; }
.sracm-waiting .sracm-small { display: block; margin-top: 4px; }
.sracm-waiting li { margin-bottom: 4px; }
.sracm-remind-line { color: var(--muted, #5e5e5e); font-size: .82rem; }
.sracm-remind-done { margin: 0 0 8px; color: #1d6b35; font-weight: 600; }
.sracm-no-intro { color: var(--muted, #5e5e5e); margin: 6px 0 0; }
.sracm-intro p { overflow-wrap: anywhere; }
.sracm .sracm-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin: 12px 0 6px; }
.sracm .sracm-actions > a { flex: 1 1 auto; justify-content: center; min-height: 48px; box-sizing: border-box; }
.sracm .sracm-actions .sracm-call { border-radius: 999px; }
.sracm .sracm-actions .sracm-wa-btn { justify-content: flex-start; }
.sracm-galley dl > div { align-items: center; }
.sracm-galley dt { line-height: 1.2; }
.sracm .sracm-galley dl { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sracm-galley dl div { gap: 12px; }

/* 1.64.2: Call and WhatsApp side by side, same size whatever the name (the name is in the card's heading). */
.sracm .sracm-person .sracm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sracm .sracm-person .sracm-actions > a { min-height: 48px; height: 48px; padding: 0 12px; justify-content: center; gap: 8px; border-radius: 999px; font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.sracm .sracm-person .sracm-actions > a:only-child { grid-column: 1 / -1; }
.sracm .sracm-person .sracm-wa-btn { padding: 0 12px; box-shadow: none; }
.sracm .sracm-person .sracm-wa-ico { width: 30px; height: 30px; }
.sracm .sracm-person .sracm-wa-ico svg { width: 18px; height: 18px; }

/* 1.64.3: each crew member on their own card, so people don't run together. */
.sracm .sracm-crew .sracm-person {
	background: #fff; border: 1px solid #dcdcdc; border-radius: 12px; padding: 14px 16px 10px; margin: 0 0 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06); border-bottom: 1px solid #dcdcdc;
}
.sracm .sracm-crew .sracm-person.has-allergy { border-left: 5px solid var(--red, #c62828); padding-left: 14px; }
.sracm .sracm-crew .sracm-person-h { margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.sracm .sracm-crew .sracm-ec { border-top: 1px solid #eee; margin-top: 8px; }
.sracm .sracm-crew .sracm-ec summary { min-height: 40px; }
@media print {
	.sracm .sracm-crew .sracm-person { box-shadow: none; border: 1px solid #000; border-radius: 0; }
}

/* Skipper page: a heading between the profile cards (photo, intro, qualifications) and the trip list. */
.sracm .sracm-trips-h { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px !important; padding-top: 18px; border-top: 2px solid #262626; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.6rem !important; line-height: 1.1 !important; color: #262626; }
.sracm .sracm-trips-h span { font-family: Barlow, Arial, sans-serif; font-size: .85rem; font-weight: 700; text-transform: none; color: #fff; background: #c62828; border-radius: 999px; padding: 2px 9px; }

/* Skipper page: the meal plan button under Provisioning. */
.sracm a.sracm-meal-link { display: flex; align-items: center; gap: 12px; margin: -12px 0 24px; padding: 12px 14px; background: #fff; border: 2px solid #262626; border-radius: 10px; color: #262626 !important; text-decoration: none !important; }
.sracm a.sracm-meal-link > span:first-child { font-size: 1.5rem; flex: none; }
.sracm a.sracm-meal-link > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sracm a.sracm-meal-link small { color: #5e5e5e; font-size: .85rem; }
.sracm a.sracm-meal-link > span:last-child { font-size: 1.5rem; color: #c62828; flex: none; }

/* Skipper page Food tab: provisioning, dietary needs, meal plan. */
.sracm .sracm-food-pointer { margin: 0 0 16px; }
.sracm .sracm-food-pointer a { font-weight: 700; color: #1f4f99; }
.sracm .sracm-food-card { background: #fff; border: 1px solid #dcdcdc; border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.sracm .sracm-food-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.sracm .sracm-food-needs { list-style: none; margin: 0 0 6px; padding: 0; }
.sracm .sracm-food-needs li { padding: 6px 0; border-top: 1px solid #eee; }
.sracm .sracm-food-needs li:first-child { border-top: 0; }
.sracm .sracm-food-dl { margin: 0 0 10px; }
.sracm .sracm-food-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #eee; }
.sracm .sracm-food-dl > div:first-child { border-top: 0; }
.sracm .sracm-food-dl dt { color: #5e5e5e; margin: 0; }
.sracm .sracm-food-dl dd { margin: 0; font-weight: 600; text-align: right; }
.sracm .sracm-food-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sracm .sracm-food-btns .sracm-btn { flex: 1 1 auto; text-align: center; }
.sracm .sracm-food-dl dt { flex: none; white-space: nowrap; }
