/*
 * CRCW look for Jethro: Christian Reformed Church Wollongong.
 * Loaded after Jethro's own CSS via EXTRA_HEAD_HTML (crcw/conf.crcw.php); the base colours come from
 * crcw/web/crcw-vars.less (CUSTOM_LESS_VARS). Mostly restyles; layout changes are a taller header for the logo,
 * the centred page width and the phone/tablet fixes (wide tables, forms; see crcw.js). Palette and fonts match
 * the church website.
 */

@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-display: swap;
	font-weight: 300 900;
	src: url(fonts/figtree-latin-wght-normal.woff2) format('woff2-variations');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-display: swap;
	font-weight: 200 900;
	src: url(fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
	--blue: #43769f;
	--blue-dark: #355e80;
	--navy: #314155;
	--navy-deep: #242f3e;
	--teal: #72bdcc;
	--teal-light: #a6d8e1;
	--green: #6fae7e;
	--sand: #f5f1ea;
	--paper: #fbfaf7;
	--ink: #1f2a36;
	--muted: #5b6875;
	--line: #e2ddd3;
	--sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* ---------- Base ---------- */
body {
	font-family: var(--sans);
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
input, button, select, textarea, .btn, .popover, .tooltip, .dropdown-menu {
	font-family: var(--sans);
}
#body h1, #body h2, #body h3, .modal h3, .modal h4, #login-box h3 {
	font-family: var(--serif);
	font-weight: 500;
	color: var(--navy);
	letter-spacing: -0.005em;
}
#body h1 { font-size: 24px; line-height: 30px; }
#body h1 small, #body h3 small, #body h3 .pull-right { font-family: var(--sans); }
#body h3 {
	font-size: 19px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 3px;
}
#body h4 { color: var(--navy); }
#body a:not(.label):not(.btn), .modal a:not(.btn), .clickable { color: var(--blue-dark); }
#body a:not(.label):not(.btn):hover, .modal a:not(.btn):hover { color: var(--navy); }
hr { border-top-color: var(--line); }
.muted { color: var(--muted); }

/* focus: teal, like the website */
input:focus, textarea:focus, select:focus,
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus,
input[type=tel]:focus, input[type=date]:focus, input[type=search]:focus {
	border-color: var(--teal) !important;
	-webkit-box-shadow: 0 0 0 3px rgba(114, 189, 204, .35) !important;
	box-shadow: 0 0 0 3px rgba(114, 189, 204, .35) !important;
	outline: 0;
}
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Header (staff, members, public) ---------- */
#jethro-nav-background {
	background: var(--navy) !important;
	background-image: none !important;
	filter: none !important;
	border-bottom: 3px solid var(--teal);
	-webkit-box-shadow: none;
	box-shadow: none;
}
.nav-collapse ul.nav, .navbar .nav { background-color: transparent !important; }
.navbar .nav > li > a {
	color: #fff;
	text-shadow: none;
	font-weight: 500;
}
.navbar .nav > li > a .caret { border-top-color: #fff; border-bottom-color: #fff; opacity: .8; }

@media (min-width: 900px) {
	/* room for the logo: 58px logo row + 40px menu row */
	#jethro-nav, #jethro-nav-background { height: 98px; }
	#jethro-nav-background { height: 95px; }
	#jethro-nav-toprow { height: 58px; }
	#jethro-nav-toprow h1 { height: 58px; line-height: 58px; }
	.user-detail > div { height: 58px; }
	form.global-search { line-height: 58px; }
	.navbar .nav li.dropdown:hover, .navbar .nav li.active > a,
	.navbar .nav li.dropdown:hover > a {
		background-color: var(--sand);
		color: var(--navy) !important;
		-webkit-box-shadow: none; box-shadow: none;
	}
	.navbar .nav li.dropdown:hover .caret, .navbar .nav li.active > a .caret {
		border-top-color: var(--navy) !important;
		border-bottom-color: var(--navy) !important;
	}
	.navbar .nav > li { border-radius: 6px 6px 0 0; }
	.navbar .nav > li > a { border-radius: 6px 6px 0 0; }
}

/* Staff header: logo instead of the Jethro word mark; the church name is in the logo */
#jethro-nav-toprow .brand {
	background: url(img/crcw-logo-white.png) no-repeat left center !important;
	background-size: auto 44px !important;
	width: 162px;
	height: 58px;
	margin-right: 0;
}
#jethro-nav-toprow h1 > span,
#jethro-public #jethro-nav-toprow h1 > span {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Members and public areas have no .brand link: put the logo on the heading itself */
#jethro-public #jethro-nav-toprow h1 {
	background: url(img/crcw-logo-white.png) no-repeat left center;
	background-size: auto 44px;
	width: 162px;
}
/* user menu / search in the header */
.user-detail .btn, form.global-search .btn {
	background: rgba(255,255,255,.12);
	border-color: rgba(255,255,255,.25);
	color: #fff;
	text-shadow: none;
	-webkit-box-shadow: none; box-shadow: none;
}
.user-detail .btn:hover, form.global-search .btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.user-detail .btn .icon-user, form.global-search .btn [class^="icon-"] { filter: invert(1); }
.user-detail .btn .caret { border-top-color: #fff; }
#jethro-public .user-detail, #jethro-public .user-detail a, a#user-menu { color: #fff; }
#jethro-public .user-detail a:hover { color: var(--teal-light); }
form.global-search input[type=text] { border-color: rgba(255,255,255,.25); }

/* Dropdown menus (top nav and user menu) */
.navbar .nav .dropdown-menu, .user-detail .dropdown-menu {
	background: #fff;
	border: 1px solid var(--line);
	-webkit-box-shadow: 0 10px 24px rgba(36, 47, 62, .18);
	box-shadow: 0 10px 24px rgba(36, 47, 62, .18);
	padding: 6px 0;
}
.navbar .nav .dropdown-menu { border-top: 0; border-radius: 0 0 8px 8px; }
.navbar .nav .dropdown-menu li > a, .user-detail .dropdown-menu li > a,
#body .navbar .dropdown-menu li a {
	color: var(--ink) !important;
	font-weight: 500;
}
.navbar .nav .dropdown-menu li > a:hover, .user-detail .dropdown-menu li > a:hover,
.navbar .nav li.dropdown .dropdown-menu a:hover,
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover {
	background: var(--sand) !important;
	color: var(--navy) !important;
	-webkit-box-shadow: none; box-shadow: none;
}
.user-header, .user-header a { background: var(--sand) !important; color: var(--navy) !important; box-shadow: none !important; }
/* Dropdowns inside the page (e.g. service schedule row menu) */
#body .dropdown-menu { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
#body .dropdown-menu li a { color: var(--ink) !important; }
#body .dropdown-menu li a:hover { background: var(--sand) !important; color: var(--navy) !important; }

/* Narrow screens: Jethro collapses the menu at 900px */
@media (max-width: 900px) {
	#jethro-nav, #jethro-nav-background { height: 52px; }
	#jethro-nav-background { height: 49px; }
	#jethro-nav-toprow { height: 52px; }
	#jethro-nav-toprow h1 { height: 52px; line-height: 52px; }
	#jethro-nav-toprow .brand { height: 52px; background-size: auto 36px !important; width: 132px; }
	#jethro-public #jethro-nav-toprow h1 { background-size: auto 36px; width: 132px; }
	#jethro-nav .btn-navbar { margin-top: 10px; }
	form.global-search { line-height: 52px; }
	.navbar .btn-navbar {
		background: rgba(255,255,255,.12);
		border-color: rgba(255,255,255,.3);
		-webkit-box-shadow: none; box-shadow: none;
	}
	.navbar .btn-navbar:hover, .navbar .btn-navbar:focus { background: rgba(255,255,255,.22); }
	.nav-collapse ul.nav { background: var(--navy) !important; padding: 4px 0 8px; }
	.nav-collapse .nav > li > a, .nav-collapse .dropdown-menu a {
		background-color: transparent !important;
		color: #fff !important;
		border-radius: 0;
		margin: 0 !important;
		border-bottom: 1px solid rgba(255,255,255,.08);
	}
	.nav-collapse .nav > li > a:hover, .nav-collapse .nav > li.open > a, .nav-collapse .nav > li.active > a {
		background-color: rgba(255,255,255,.1) !important;
	}
	.navbar .nav-collapse .nav .dropdown-menu {
		background: var(--navy-deep) !important; border: 0; border-radius: 0;
		-webkit-box-shadow: none; box-shadow: none; padding: 0; margin: 0;
	}
	.navbar .nav-collapse .nav .dropdown-menu li > a { padding-left: 30px !important; color: #fff !important; }
	.navbar .nav-collapse .nav .dropdown-menu li > a:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
	.navbar .nav > li > a .caret, .nav-collapse .caret { border-top-color: #fff !important; }
}
@media (max-width: 480px) {
	#jethro-nav-toprow .brand { top: 0; }
	#jethro-public #jethro-nav h1 span { display: inline; }
}

/* ---------- Tables ---------- */
.table thead th, .table tfoot th, .accordion-heading, .details-box h3 {
	background: var(--sand) !important;
	background-image: none !important;
	filter: none !important;
}
.table thead th, .table tfoot th,
.table thead th *, .table tfoot th *,
#body .table thead th a, #body .table thead th .soft {
	color: var(--navy) !important;
	font-weight: 600 !important;
}
.table thead th { border-bottom: 2px solid var(--line); }
.table th, .table td { border-top-color: var(--line); }
.table-bordered { border-color: var(--line); border-radius: 6px; }
.table-bordered th, .table-bordered td { border-left-color: var(--line); }
.table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > th { background-color: #fdfcfa; }
.table-hover tbody tr:hover > td, .table-hover tbody tr:hover > th { background-color: #eef4f8; }
.hovered, .hovered td, tr#selected td { background: #e6eff5 !important; }
.accordion-heading, .accordion-heading a, .details-box h3 { color: var(--navy) !important; text-shadow: none !important; }
.details-box .header-link, .details-box .header-link a, .details-box h3 a { color: var(--blue-dark) !important; text-shadow: none; }
/* white icons were for Jethro's dark headings; on our light headings make them dark */
.details-box h3 .icon-white, .accordion-heading .icon-white, .table thead th .icon-white { filter: invert(.85); }

/* ---------- Buttons, wells, alerts ---------- */
.btn {
	background: #fff;
	background-image: none;
	filter: none;
	border: 1px solid #cfc8bb;
	color: var(--ink);
	text-shadow: none;
	-webkit-box-shadow: none; box-shadow: none;
	font-weight: 500;
}
.btn:hover, .btn:focus { background: var(--sand); color: var(--navy); }
.btn.active, .btn:active { background: #ebe5da; -webkit-box-shadow: none; box-shadow: none; }
.btn-primary, .btn-primary:hover, .btn-primary:focus, #body a.btn-primary {
	background: var(--blue);
	border-color: var(--blue-dark);
	color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus { background: var(--blue-dark); }
.btn-danger { background: #b5473a; border-color: #9a3a2f; color: #fff; }
.btn-danger:hover { background: #9a3a2f; color: #fff; }
.btn-success, #body a.btn-success { background: #4f8a5e; border-color: #3f7350; color: #fff; }
.btn-success:hover, .btn-success:focus { background: #3f7350; color: #fff; }
.btn-link, .btn-link:hover { background: transparent; border-color: transparent; }
.well {
	background: var(--sand);
	border: 1px solid var(--line);
	-webkit-box-shadow: none; box-shadow: none;
}
.alert-info { background: #eaf4f7; border-color: #cbe6ec; color: #2c5560; }
.alert-success { background: #edf6ef; border-color: #cfe6d5; color: #2f5d3a; }
.nav-tabs > .active > a, .nav-tabs > .active > a:hover { color: var(--navy); }
.nav-tabs > li > a { color: var(--blue-dark); }
.label-info, .badge-info { background-color: var(--blue); }

/* ---------- Login (staff and members) ---------- */
body#login { background: var(--paper); }
#login-box {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	-webkit-box-shadow: 0 16px 40px rgba(36, 47, 62, .12);
	box-shadow: 0 16px 40px rgba(36, 47, 62, .12);
}
#login-header {
	height: 70px;
	padding: 14px 24px;
	background: var(--navy) !important;
	background-image: none !important;
	filter: none !important;
	border: 0;
	border-bottom: 3px solid var(--teal);
	-webkit-box-sizing: content-box; box-sizing: content-box;
}
#login-box h1 {
	height: 70px;
	background: url(img/crcw-logo-white.png) no-repeat left center !important;
	background-size: auto 62px !important;
	padding-left: 0;
	font-size: 0 !important;
	color: transparent;
	text-indent: -9999px;
}
#login-body { padding: 24px; }
#login-box h3 { font-size: 20px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
#login-box hr { border-color: var(--line); }
#login-box input[type=submit].btn, #login-box .input-append .btn { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
#login-box input[type=submit].btn:hover { background: var(--blue-dark); }
#login-box a { color: var(--blue-dark); }
#member-login-right { border-left-color: var(--line); }
@media (max-width: 640px) {
	#login-box { border: 0; border-radius: 0; box-shadow: none; }
	#login-header { height: 52px; padding: 10px 16px; }
	#login-box h1 { height: 52px; background-size: auto 46px !important; }
}

/* ---------- CRCW additions ---------- */
.crcw-sermon-details {
	background: #fff;
	border: 1px solid var(--line);
	border-left: 4px solid var(--teal);
	border-radius: 8px;
	padding: 12px 16px 4px;
	margin: 10px 0 18px;
}
#body .crcw-sermon-details h4 {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 10px;
}
.crcw-sermon-details dl { margin: 0 0 8px; }
.crcw-sermon-details dt { color: var(--muted); font-weight: 600; width: 110px; }
.crcw-sermon-details dd { margin-left: 125px; margin-bottom: 4px; }
@media (max-width: 767px) {
	.crcw-sermon-details dd { margin-left: 0; margin-bottom: 8px; }
}
.crcw-edit-service .help-block { color: var(--muted); font-size: 13px; }
.crcw-bulk-field { margin-top: 6px; }
.crcw-bulk-field small { color: var(--muted); }

/* Public area intro text */
#jethro-public #body > p:first-child { color: var(--muted); }

/* Sermon details while the run sheet is being edited: one line, click to expand */
.crcw-sermon-details-compact { padding: 8px 14px; margin: 6px 0 12px; }
.crcw-sermon-details-compact summary { cursor: pointer; line-height: 22px; }
.crcw-sermon-details-compact summary b { font-family: var(--serif); font-size: 15px; margin-right: 8px; }
.crcw-sermon-details-compact[open] summary { margin-bottom: 8px; }

/* ---------- Availability and swaps (crcw/include/crcw_roster_ui.class.php) ---------- */
.crcw-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 18px 10px;
	margin: 0 0 16px;
	max-width: 760px;
}
#body .crcw-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 10px; line-height: 1.3; }
#body .crcw-card h4 { font-size: 15px; margin: 4px 0 8px; }
.crcw-empty { color: var(--muted); font-style: italic; }
.crcw-full { width: 100%; box-sizing: border-box; }
.crcw-inline { display: inline; margin: 0; }
.crcw-who { display: inline-block; background: var(--sand); color: var(--navy); border-radius: 10px; padding: 0 8px; font-size: 12px; margin-right: 4px; }
.crcw-quote { background: var(--sand); border-radius: 6px; padding: 6px 10px; margin: 4px 0; font-size: 13px; }
.crcw-plain-list { list-style: none; margin: 0 0 10px; padding: 0; }
.crcw-plain-list li { padding: 6px 0; border-bottom: 1px solid #f0ece4; }
.crcw-plain-list li:last-child { border-bottom: 0; }
.crcw-del { color: var(--muted) !important; padding: 0 4px !important; vertical-align: baseline; }

.crcw-badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 9px; line-height: 18px; }
.crcw-badge-ok { background: #e3f1e6; color: #3c7a4c; }
.crcw-badge-no { background: #f8e1e0; color: #a3312d; }
.crcw-badge-wait { background: #eef2f6; color: var(--muted); }
.crcw-badge-swap { background: #fcf0d8; color: #8a5a00; }

.crcw-roster-list { list-style: none; margin: 0 0 12px; padding: 0; max-width: 760px; }
.crcw-roster-item {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
	background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal);
	border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.crcw-roster-item.crcw-status-accepted { border-left-color: var(--green); }
.crcw-roster-item.crcw-status-declined { border-left-color: #c0504d; background: #fffafa; }
.crcw-roster-item.crcw-offer { border-left-color: #e0a83c; }
.crcw-roster-when { width: 54px; text-align: center; line-height: 1.15; }
.crcw-roster-when .crcw-day { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.crcw-roster-when .crcw-date { display: block; font-weight: 700; color: var(--navy); }
.crcw-roster-what { flex: 1 1 220px; min-width: 0; }
.crcw-roster-what > b { font-size: 15px; margin-right: 6px; }
.crcw-roster-what > span { margin-right: 6px; }
.crcw-roster-status { margin-top: 3px; }
.crcw-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.crcw-actions .btn { margin: 0; }
.crcw-decline > summary { list-style: none; display: inline-block; }
.crcw-decline > summary::-webkit-details-marker { display: none; }
.crcw-decline[open] { flex-basis: 100%; order: 5; }
.crcw-decline[open] > summary { margin-bottom: 6px; }
.crcw-decline form label { font-size: 13px; color: var(--muted); }
.crcw-offers h4 { color: #8a5a00; }

.crcw-add > summary { list-style: none; display: inline-block; margin: 4px 0 8px; }
.crcw-add > summary::-webkit-details-marker { display: none; }
.crcw-add-form { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; max-width: 520px; }
.crcw-add-form label { margin-top: 6px; font-weight: 600; font-size: 13px; }
.crcw-add-form label.checkbox { font-weight: normal; }
.crcw-add-form select, .crcw-add-form input[type=date], .crcw-add-form input[type=text] { max-width: 100%; }
.crcw-add-form .crcw-rule-opt { display: none; }
.crcw-add-form.crcw-rule-nth_weekday .crcw-for-nth_weekday,
.crcw-add-form:not([class*="crcw-rule-"]) .crcw-for-nth_weekday,
.crcw-add-form.crcw-rule-alternate .crcw-for-alternate,
.crcw-add-form.crcw-rule-weekday .crcw-for-weekday,
.crcw-add-form.crcw-rule-school_holidays .crcw-for-school_holidays { display: block; }
.crcw-row2 { display: flex; gap: 12px; flex-wrap: wrap; }
.crcw-row2 > div { flex: 1 1 160px; }
.crcw-add-form button { margin-top: 10px; }
.crcw-people { margin: 2px 0 8px 22px; max-height: 260px; overflow-y: auto; }

/* Roster editor and views */
.crcw-cell-extras { font-size: 11px; line-height: 16px; margin-top: 2px; white-space: normal; }
.crcw-cell-extras .label { font-size: 10px; }
.crcw-accepted { color: #3c7a4c; font-weight: 700; }
.crcw-whosfree { color: var(--muted) !important; text-decoration: none; white-space: nowrap; }
.crcw-whosfree:hover { color: var(--blue) !important; }
table.roster td:has(.crcw-declined) { background: #fbe9e8 !important; }
table.roster td:has(.crcw-swap) { background: #fdf5e4 !important; }
.crcw-freq-live { margin-left: 3px; cursor: help; }

.crcw-whosfree-table tr.crcw-free td:first-child { border-left: 3px solid var(--green); }
.crcw-whosfree-table tr.crcw-maybe td { color: #8a5a00; }
.crcw-whosfree-table tr.crcw-unavailable td, .crcw-whosfree-table tr.crcw-assigned td { color: #8a96a3; }
.crcw-whosfree-table tr.crcw-unavailable td:first-child { border-left: 3px solid #c0504d; }
.crcw-whosfree-form { margin-bottom: 10px; }

.crcw-attention { margin-bottom: 12px; }
#body .crcw-attention h5 { font-size: 14px; margin: 6px 0 4px; color: var(--navy); }
.crcw-attention ul { margin: 0 0 0 18px; }
.crcw-attention li { margin-bottom: 4px; }
.crcw-count { display: inline-block; min-width: 18px; text-align: center; border-radius: 9px; background: #eef2f6; color: var(--muted); font-size: 11px; padding: 0 5px; }
.crcw-attention-declined .crcw-count, .crcw-attention-approval .crcw-count, .crcw-attention-unavailable .crcw-count { background: #f8e1e0; color: #a3312d; }
.crcw-links { font-size: 12px; white-space: nowrap; }
.crcw-log td { font-size: 13px; }

/* Roster clash warnings (crcw_clash.class.php): a small "!" pill per person; tap / hover for the full text */
.crcw-clashes:empty { display: none; }
.crcw-clashes { margin: 2px 0 1px; }
.crcw-clash {
	display: inline-block; max-width: 100%; box-sizing: border-box; vertical-align: top;
	font-size: 11px; line-height: 16px; font-weight: 600; cursor: pointer; text-align: left;
	border-radius: 9px; padding: 0 7px 0 2px; margin: 1px 2px 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	background: #fcf0d8; color: #7a4f00; border: 1px solid #efd49a;
}
.crcw-clash:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.crcw-clash-icon {
	display: inline-block; width: 14px; height: 14px; line-height: 14px; margin: 1px 1px 0 0; border-radius: 50%;
	text-align: center; font-size: 10px; font-weight: 800; color: #fff; background: #d08a12; vertical-align: top;
}
.crcw-clash.crcw-clash-high { background: #f8e1e0; color: #8f2723; border-color: #ecb9b6; }
.crcw-clash.crcw-clash-high .crcw-clash-icon { background: #c0504d; }
.crcw-clash-n { font-weight: 700; opacity: .8; }
.crcw-clash-more { display: none; }
.crcw-clash.crcw-open { white-space: normal; overflow: visible; padding: 2px 8px 3px 2px; border-radius: 8px; }
.crcw-clash.crcw-open .crcw-clash-short, .crcw-clash.crcw-open .crcw-clash-n { display: none; }
.crcw-clash.crcw-open .crcw-clash-more { display: inline; }
.crcw-clash-line { display: block; font-weight: 500; margin-left: 18px; text-indent: -2px; }
.crcw-clash-line + .crcw-clash-line { margin-top: 2px; }
.crcw-clash.crcw-open .crcw-clash-line:first-child { display: inline; margin-left: 0; }
.crcw-clash.crcw-open .crcw-clash-line:first-child + .crcw-clash-line { margin-top: 3px; }
.crcw-clash-line.crcw-clash-high { color: #8f2723; }
.crcw-clash-line.crcw-clash-warn { color: #7a4f00; }
.crcw-cell-extras .crcw-clash { max-width: 190px; }
.crcw-attention .crcw-clash { max-width: 100%; white-space: normal; }
/* once our live check has run, it replaces upstream's red "same person twice in this row" border (which knows
   nothing of OK pairs or separate services) */
#roster.crcw-live table.roster select.clash, #roster.crcw-live table.roster input.clash, #roster.crcw-live table.roster li.clash { border-color: #ccc; }
#roster.crcw-live table.roster select.crcw-sel-warn, #roster table.roster select.crcw-sel-warn { border-color: #e0a83c; box-shadow: inset 3px 0 0 #e0a83c; }
#roster.crcw-live table.roster select.crcw-sel-high, #roster table.roster select.crcw-sel-high { border-color: #c0504d; box-shadow: inset 3px 0 0 #c0504d; }
.crcw-badge-clash { font-weight: 600; }
.crcw-autofill-btn { margin-left: 2px; }

/* Rosters > Autofill and Clash settings */
.crcw-autofill .crcw-card { max-width: none; }
.crcw-autofill .crcw-card:first-child, .crcw-autofill .crcw-card:last-child { max-width: 760px; }
.crcw-af-form label { font-weight: 600; font-size: 13px; margin-top: 4px; }
.crcw-af-form .crcw-row2 > div { flex: 0 1 220px; }
.crcw-af-form select, .crcw-af-form input[type=date] { max-width: 100%; }
.crcw-af-roles { margin: 2px 0 10px; }
.crcw-af-roles label.checkbox.inline { margin: 0 14px 4px 0; padding-top: 0; font-size: 13px; }
.crcw-af-grid { width: auto; background: #fff; }
.crcw-af-grid th, .crcw-af-grid td { font-size: 13px; vertical-align: top; }
.crcw-af-grid thead th { background: var(--sand); color: var(--navy); white-space: nowrap; }
.crcw-af-date { background: var(--paper); }
.crcw-af-na { color: #b7b0a3; text-align: center; }
.crcw-af-filled { color: #8a96a3; background: #faf9f6; }
.crcw-af-cell { min-width: 200px; background: #f4faf6; }
.crcw-af-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.crcw-af-slot + .crcw-af-slot { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.crcw-af-slot select { flex: 1 1 150px; width: auto; min-width: 0; max-width: calc(100% - 26px); margin: 0; font-size: 13px; height: 28px; padding: 2px 4px; }
.crcw-af-take { margin: 0; }
.crcw-af-take input { margin: 0; width: 16px; height: 16px; }
.crcw-af-why { flex-basis: 100%; font-size: 11px; line-height: 15px; color: var(--muted); }
.crcw-af-none { background: #fdf5e4; border-radius: 6px; padding: 3px 5px; }
.crcw-af-none .crcw-af-why { color: #7a4f00; }
.crcw-af-changed .crcw-af-why { color: var(--blue-dark); font-style: italic; }
.crcw-af-hasclash .crcw-af-why { color: #8f2723; }
.crcw-af-hasclash select { border-color: #c0504d; }
.crcw-cs-roles { columns: 2 220px; margin-bottom: 10px; }
.crcw-cs-roles label.checkbox { font-size: 13px; margin: 0 0 2px; }
.crcw-pair-add select { max-width: 42%; }
.crcw-roster-settings .crcw-card label { font-weight: 600; font-size: 13px; margin-top: 8px; }
.crcw-roster-settings .crcw-cs-roles label.checkbox { font-weight: normal; margin: 0 0 2px; break-inside: avoid; }
.crcw-cs-skip { margin: 6px 0 4px; font-size: 13px; }
.crcw-cs-skip > summary { cursor: pointer; color: var(--blue-dark); }
@media (max-width: 767px) {
	/* the proposal grid becomes one card per date */
	.crcw-af-grid, .crcw-af-grid tbody, .crcw-af-grid tr, .crcw-af-grid th, .crcw-af-grid td { display: block; width: auto; border: 0; }
	.crcw-af-grid { border: 0; }
	.crcw-af-grid thead { display: none; }
	.crcw-af-grid tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
	.crcw-af-grid .crcw-af-date { background: var(--sand); font-size: 14px; }
	.crcw-af-grid td { border-top: 1px solid #f0ece4; padding: 6px 8px; }
	.crcw-af-grid td::before { content: attr(data-role); display: block; font-weight: 700; color: var(--navy); font-size: 12px; }
	.crcw-af-grid td.crcw-af-na { display: none; }
	.crcw-af-slot select { width: auto; flex: 1 1 160px; max-width: calc(100% - 26px); }
	.crcw-pair-add select { max-width: 100%; display: block; margin-bottom: 6px; }
	.crcw-cell-extras .crcw-clash { max-width: 150px; }
}

/* Email link page (public area) */
.crcw-respond { max-width: 520px; margin: 10px auto; }
.crcw-respond .crcw-card { padding: 20px 22px 14px; }
.crcw-respond-what { font-size: 17px; line-height: 1.6; }
.crcw-respond-form { margin: 0 0 14px; }
.crcw-respond-form .btn-large { width: 100%; }

@media (max-width: 767px) {
	.crcw-card { padding: 12px 14px 8px; border-radius: 8px; }
	.crcw-roster-item { padding: 10px 12px; }
	.crcw-actions { flex-basis: 100%; }
	.crcw-whosfree-table { font-size: 13px; }
}

/* ---------- Home dashboard (crcw/include/crcw_home.class.php) ---------- */
.crcw-home { margin: 0 0 18px; }
.crcw-greeting { font-family: var(--serif); font-size: 20px; color: var(--navy); margin: 4px 0 14px; }
.crcw-greeting .muted { font-family: var(--sans); font-size: 14px; }
.crcw-home-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.crcw-home-col { flex: 1 1 380px; min-width: 0; }
.crcw-home .crcw-card { max-width: none; }
#body .crcw-home .crcw-card h3 small { font-family: var(--sans); font-size: 13px; font-weight: normal; }
.crcw-small-link { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.crcw-this-sunday { border-top: 4px solid var(--teal); }
.crcw-service { display: flex; gap: 14px; padding: 8px 0; border-top: 1px solid #f0ece4; }
.crcw-service:first-of-type { border-top: 0; padding-top: 2px; }
.crcw-service-time { width: 74px; flex: none; font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.crcw-service-time span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.crcw-service-body { flex: 1; min-width: 0; line-height: 1.6; }
.crcw-sermon-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 2px; }
.crcw-series { color: var(--blue-dark); font-weight: 600; }
.crcw-service-body .muted { display: inline-block; min-width: 64px; font-size: 13px; }
.crcw-service-body .crcw-links { margin-top: 4px; font-size: 13px; }
.crcw-roster-list.crcw-compact .crcw-roster-item { padding: 7px 10px; margin-bottom: 6px; }
.crcw-roster-list.crcw-compact .crcw-roster-what > b { font-size: 14px; }
.crcw-home-attention h5 { margin-top: 2px; }
.crcw-home-availability .crcw-plain-list li { padding: 4px 0; }
/* Jethro's own "Upcoming services / roster" box and the members area roster box are replaced by the cards above */
.crcw-home ~ .homepage .homepage-box.upcoming { display: none; }
.crcw-home ~ .member-homepage-container .member-homepage-smalls > .member-homepage-box:nth-child(2) { display: none; }
@media (max-width: 767px) {
	.crcw-home-grid { gap: 0; }
	.crcw-home-col { flex-basis: 100%; }
	.crcw-service-time { width: 58px; font-size: 17px; }
}
@media (max-width: 767px) {
	.crcw-greeting { padding: 0 6px; font-size: 18px; }
}

/* ---------- Page width: tidy on wide screens ----------
 * Jethro lets the page grow to the window's full width. Centre the header's contents and the page body at
 * 1320px with side padding (the navy header bar itself stays full width: #jethro-nav-background).
 * A roster or schedule (table.roster) too wide for the column gets the full width (crcw.js adds .crcw-wide). */
#jethro-overall-width {
	display: block;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 28px;
	-webkit-box-sizing: border-box; box-sizing: border-box;
}
#jethro-overall-width.crcw-wide { max-width: none; }
#jethro-nav-background { left: 0; right: 0; width: auto !important; }
#jethro-nav-toprow { padding-left: 0 !important; }
#body { margin: 0; }
@media (max-width: 1025px) {
	#jethro-overall-width { padding: 0 20px; }
}
@media (max-width: 900px) {
	/* the collapsed menu spans the screen */
	#jethro-overall-width { padding: 0 16px; }
	#jethro-nav .navbar .nav-collapse { margin: 0 -16px; }
}
/* Just above the collapse point the ten menu items don't fit on one row and "Admin" wrapped onto the page
 * (white on cream, over the heading): tighten them a little until there is room. */
@media (min-width: 900px) and (max-width: 1000px) {
	.navbar .nav > li > a { padding-left: 10px; padding-right: 10px; }
}

/* ---------- Wide tables (crcw.js) ----------
 * Jethro lets a wide table stretch the whole page, so on a phone (and for big rosters on any screen) the page
 * scrolled sideways: the header and the rest of the page slid away and the sticky roster header floated over
 * blank space. crcw.js wraps a too-wide table in .crcw-scroll.crcw-scroll-x, which scrolls sideways by itself. */
.crcw-scroll { max-width: 100%; }
.crcw-scroll.crcw-scroll-x {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 20px;
}
.crcw-scroll.crcw-scroll-x > table { margin-bottom: 0; }
/* Rosters: at most one screen high so the sticky header row (dates/roles) and the frozen date column stay
 * visible while scrolling either way inside the box. The small padding keeps the table's shadow visible. */
.crcw-scroll-roster.crcw-scroll-x {
	overflow: auto;
	max-height: calc(100vh - 16px);
	max-height: calc(100dvh - 16px);
	padding: 0 6px 6px 0;
	overscroll-behavior-x: contain;
}
.crcw-scroll-x::-webkit-scrollbar { width: 8px; height: 8px; }
.crcw-scroll-x::-webkit-scrollbar-thumb { background: rgba(49, 65, 85, .35); border-radius: 4px; }
.crcw-scroll-x::-webkit-scrollbar-track { background: rgba(49, 65, 85, .06); }
@media print {
	.crcw-scroll, .crcw-scroll.crcw-scroll-x { overflow: visible !important; max-height: none !important; padding: 0; }
}

/* Phones: form-layout tables that don't fit (e.g. the service schedule's From/To filter) stack (crcw.js) */
@media (max-width: 767px) {
	#body table.crcw-stack, #body table.crcw-stack > tbody, #body table.crcw-stack > tbody > tr,
	#body table.crcw-stack > tbody > tr > td, #body table.crcw-stack > tbody > tr > th {
		display: block;
		width: auto !important;
	}
	#body table.crcw-stack > tbody > tr > td, #body table.crcw-stack > tbody > tr > th {
		padding-left: 0 !important;
		padding-right: 0 !important;
		white-space: normal !important;
	}
	#body table.crcw-stack .nowrap { white-space: normal !important; }
}

/* ---------- Narrow screens: forms ---------- */
@media (max-width: 1024px) {
	/* inputs wider than their column (System Name, address boxes, attendance "In" list) */
	#body input[type=text], #body input[type=email], #body input[type=password], #body input[type=tel],
	#body input[type=url], #body input[type=number], #body input[type=search], #body textarea {
		max-width: calc(100% - 14px); /* Bootstrap 2 inputs are content-box: 12px padding + 2px border */
	}
	#body select { max-width: 100%; }
	/* inside data tables the cell decides the width; don't let max-width squash inputs there */
	#body table.table input, #body table.table select, #body table.table textarea,
	#body table.roster input, #body table.roster select, #body table.roster textarea { max-width: none; }
}
/* Run sheet editor: component search (search box, tag list, Filter, Clear) was 520px wide in one row */
@media (max-width: 900px) {
	#component-search { display: flex; flex-wrap: wrap; max-width: 100%; }
	#component-search > input[type=text] { flex: 1 1 120px; min-width: 0; width: auto; max-width: none; }
	#component-search > select { flex: 1 1 140px; min-width: 0; width: auto; border-radius: 0; }
	#component-search > .btn { flex: none; }
}

/* Person page on phones: Jethro shows the tabs as an accordion; its white heading text came out white on our
 * sand heading background (upstream's #body rule beat ours) */
#body .accordion-heading a, #body .accordion-heading a:hover { color: var(--navy) !important; text-shadow: none !important; }

/* ---------- Edit sermon details: what Jethro already knows, "More options" ---------- */
.crcw-service-facts { max-width: 820px; border-left: 4px solid var(--teal); padding: 12px 18px; margin-bottom: 20px; }
.crcw-service-facts dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; }
.crcw-service-facts dt { color: var(--muted); font-weight: 600; }
.crcw-service-facts dd { margin: 0; }
.crcw-fact-link { font-size: 12px; margin-left: 6px; white-space: nowrap; }
.crcw-tag { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 7px; border-radius: 8px; background: #eef2f6; color: var(--muted); vertical-align: 1px; }
.crcw-more { margin: 6px 0 16px; }
.crcw-more > summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); padding: 6px 0 10px 180px; }
.crcw-more > summary .muted { font-weight: normal; font-size: 13px; }
.crcw-more[open] > summary { margin-bottom: 4px; }
.crcw-edit-service #field-crcw_time input { width: 120px; }
@media (max-width: 767px) {
	.crcw-more > summary { padding-left: 0; }
	.crcw-service-facts dl { grid-template-columns: 1fr; gap: 0; }
	.crcw-service-facts dt { margin-top: 6px; }
	.crcw-service-facts dt:first-child { margin-top: 0; }
	.crcw-fact-link { margin-left: 0; display: inline-block; }
}

/* ---------- Services > Offerings ---------- */
.crcw-offerings-table input.crcw-offering-name { width: 260px; margin: 0; }
.crcw-offerings-table input.crcw-rank { width: 56px; margin: 0; }
.crcw-offerings-table label.checkbox { margin: 4px 0 0 8px; }
.crcw-offerings-table td { vertical-align: middle !important; }
@media (max-width: 767px) {
	.crcw-offerings-table input.crcw-offering-name { width: 170px; }
}

/* ---------- Services > Sermon Series on a phone: name, services, edit ---------- */
@media (max-width: 767px) {
	.crcw-series-list { width: 100%; }
	.crcw-series-list td, .crcw-series-list th { font-size: 13px; }
	.crcw-series-list .crcw-col-optional { display: none; }
	.crcw-series-list td:first-child small { display: block; line-height: 1.35; margin-top: 2px; }
}

/* ---------- Home dashboard: spacing, "My family" ---------- */
.crcw-home { margin: 22px 0 30px; }
.crcw-greeting { margin: 0 0 18px; }
.crcw-home-grid { gap: 20px; }
.crcw-home-col > .crcw-card { margin-bottom: 20px; }
.crcw-home .crcw-card { padding: 18px 22px 14px; }
@media (min-width: 768px) { .crcw-home-col > .crcw-card:last-child { margin-bottom: 0; } }
.crcw-home ~ .homepage, .crcw-home ~ .member-homepage-container { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.crcw-family-list { list-style: none; margin: 0 0 10px; padding: 0; }
.crcw-family-list > li { padding: 8px 0; border-bottom: 1px solid #f0ece4; }
.crcw-family-list > li:last-child { border-bottom: 0; }
.crcw-fam-name b { font-size: 15px; }
.crcw-fam-name .muted { font-size: 13px; margin-left: 4px; }
.crcw-fam-roster { margin-top: 3px; line-height: 1.9; }
.crcw-fam-slot { display: inline-block; background: var(--sand); border-radius: 6px; padding: 0 8px; font-size: 13px; line-height: 22px; margin-right: 4px; }
.crcw-fam-away { margin-top: 3px; font-size: 13px; line-height: 1.7; }
.crcw-fam-contact { display: grid; grid-template-columns: 100px 1fr; gap: 4px 12px; margin: 4px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.crcw-fam-contact dt { color: var(--muted); font-weight: 600; }
.crcw-fam-contact dd { margin: 0; }
/* the members area's own "My Family" box is replaced by the card */
.crcw-home ~ .member-homepage-container > .member-homepage-box.family { display: none; }
@media (max-width: 767px) {
	.crcw-home { margin: 14px 0 22px; }
	.crcw-greeting { padding: 0; }
	.crcw-home-col > .crcw-card { margin-bottom: 14px; }
	.crcw-home .crcw-card { padding: 14px 16px 10px; }
	.crcw-home-grid { gap: 0; }
}

/* ---------- Persons > Newcomers (views/view_3_persons__5_newcomers.class.php) ---------- */
.crcw-newcomers { margin: 6px 0 24px; }
.crcw-newcomers-intro { color: var(--muted); max-width: 760px; }
.crcw-newcomer-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
#body .crcw-newcomer-head h3 { margin: 0; }
.crcw-newcomer-meta { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.crcw-newcomer-facts { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0 0 10px; }
.crcw-newcomer-facts dt { color: var(--muted); font-weight: 600; }
.crcw-newcomer-facts dd { margin: 0; overflow-wrap: anywhere; line-height: 1.7; }
.crcw-newcomer-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.crcw-newcomer-done { opacity: .75; }
.crcw-newcomer-setup summary { cursor: pointer; line-height: 24px; }
.crcw-newcomer-setup[open] summary { margin-bottom: 8px; }
.crcw-newcomer-setup code { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 767px) {
	.crcw-newcomer-facts { grid-template-columns: 1fr; gap: 0; }
	.crcw-newcomer-facts dt { font-size: 12px; margin-top: 6px; }
	.crcw-newcomer-actions .btn { flex: 1 1 auto; }
}

/* ---------- Members sign-in, My account, home-screen hint (crcw/include/crcw_member_login.class.php) ---------- */
.crcw-member-login h3 { margin-top: 0; }
.crcw-login-form { margin: 0; }
.crcw-login-form .crcw-label { font-weight: 600; margin: 12px 0 6px; }
.crcw-login-form input.crcw-email-input,
.crcw-login-form input.crcw-password-input,
.crcw-login-form input.crcw-code-input {
	display: block; width: 100%; height: 46px; font-size: 17px; padding: 8px 12px; margin: 0 0 10px;
	-webkit-box-sizing: border-box; box-sizing: border-box; border-radius: 8px;
}
.crcw-login-form input.crcw-code-input { font-size: 26px; letter-spacing: 8px; text-align: center; font-family: Menlo, Consolas, monospace; }
.crcw-login-form .crcw-remember { margin: 4px 0 14px; font-size: 15px; }
.crcw-login-form .crcw-remember input { margin-top: 3px; }
#login-box .crcw-login-form .btn-primary,
#login-box .crcw-login-form .btn-large { background: var(--blue); border-color: var(--blue-dark); color: #fff; text-shadow: none; background-image: none; }
#login-box .crcw-login-form .btn-primary:hover { background: var(--blue-dark); }
#login-box .crcw-login-form .btn-large { font-size: 17px; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.crcw-login-form .btn-block { width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; }
.crcw-small { font-size: 13px; }
.crcw-link-note { margin: 8px 0 0; text-align: center; }
.crcw-password-signin { margin: 22px 0 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.crcw-password-signin summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; outline: none; }
.crcw-password-signin[open] summary { margin-bottom: 4px; }
.crcw-password-signin .btn { margin-bottom: 8px; }
#login-box .crcw-link-btn { padding: 0; color: var(--blue-dark); vertical-align: baseline; font-size: 13px; }
.crcw-help { margin-top: 14px; }
@media (max-width: 640px) {
	body#login.crcw-login #login-box { width: auto; margin: 0; }
	.crcw-login-form input.crcw-email-input, .crcw-login-form input.crcw-password-input { font-size: 16px; } /* no zoom on iPhone */
}

.crcw-account { max-width: 760px; }
.crcw-account .crcw-card { margin-bottom: 18px; }
.crcw-account .crcw-devices td { vertical-align: middle; }
.crcw-account form.crcw-inline { margin: 0; }
.crcw-account .crcw-share-more { margin: 4px 0 6px 22px; }
.crcw-directory-note { margin: 4px 0 12px; }
.crcw-invites .crcw-indent { margin: 2px 0 8px 22px; }
.crcw-invites .crcw-card { max-width: 900px; margin-bottom: 18px; }

/* "Add to the home screen" hint (members home, phones only; crcw.js shows it) */
.crcw-a2hs {
	position: relative; display: none;
	background: #eaf4f7; border: 1px solid #cbe6ec; border-left: 4px solid var(--teal); border-radius: 8px;
	padding: 12px 40px 12px 14px; margin: 0 0 16px; color: #2c5560;
}
.crcw-a2hs.crcw-show { display: block; }
.crcw-a2hs b { color: var(--navy); }
.crcw-a2hs .crcw-a2hs-close {
	position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 6px; cursor: pointer;
}
.crcw-a2hs .btn { margin-top: 8px; }
.crcw-a2hs .crcw-share-icon { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; }

/* ---------- Service schedule: one row per service, roster columns (crcw/include/crcw_schedule.class.php) ---------- */
#body table.crcw-schedule { width: 100%; background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 54, .08); }
#body table.crcw-schedule th, #body table.crcw-schedule td { padding: 8px 10px; vertical-align: top; line-height: 1.4; }
#body table.crcw-schedule thead th { white-space: nowrap; position: sticky; top: 0; z-index: 2; }
#body table.crcw-schedule tbody th.crcw-sch-date { white-space: nowrap; width: 1%; font-weight: 600; color: var(--navy); background: #fdfcfa; }
.crcw-sch-day { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); line-height: 1.2; }
.crcw-sch-date .crcw-tag { display: table; margin-top: 3px; }
#body table.crcw-schedule td.crcw-sch-cong { white-space: nowrap; width: 1%; font-weight: 600; }
#body table.crcw-schedule td.crcw-sch-sermon { min-width: 220px; }
#body table.crcw-schedule td.crcw-sch-role { width: 14%; min-width: 120px; }
.crcw-sch-person { display: block; }
.crcw-sch-person + .crcw-sch-person { margin-top: 2px; }
.crcw-sch-person .crcw-clash { display: table; margin-top: 1px; }
.crcw-sch-empty { color: #a7b0b9; }
#body table.crcw-schedule td.crcw-sch-actions, #body table.crcw-schedule th.crcw-sch-actions { width: 1%; white-space: nowrap; text-align: right; }
.crcw-sch-act { display: inline-block; padding: 2px 4px; border-radius: 4px; }
.crcw-sch-act:hover, .crcw-sch-act:focus { background: #dde8f0; text-decoration: none; }
.crcw-sch-act > span { display: none; }
.crcw-sch-docs .dropdown-menu { text-align: left; }
.crcw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* this week's service, as Jethro marks it in rosters */
#body table.crcw-schedule tr.roster-next > td, #body table.crcw-schedule tr.roster-next > th { background: #eef6f8; }
#body table.crcw-schedule tr.roster-next > th.crcw-sch-date { box-shadow: inset 4px 0 0 var(--teal); }
/* second service on the same date (several congregations): the date isn't repeated */
#body table.crcw-schedule tr.crcw-sch-same-date > th.crcw-sch-date { color: transparent; }
#body table.crcw-schedule tr.crcw-sch-same-date > th.crcw-sch-date * { visibility: hidden; }
#body table.crcw-schedule tr.crcw-sch-same-date > * { border-top-style: dashed; }
.crcw-sch-footer { font-size: 12px; margin: -10px 0 20px; }
/* Phones and tablets in portrait: each service is a card (date, sermon, then one line per role) */
@media (max-width: 899px) {
	#body table.crcw-schedule, #body table.crcw-schedule tbody, #body table.crcw-schedule tr,
	#body table.crcw-schedule th, #body table.crcw-schedule td { display: block; width: auto !important; min-width: 0; }
	#body table.crcw-schedule { border: 0; background: none; box-shadow: none; }
	#body table.crcw-schedule thead { display: none; }
	#body table.crcw-schedule tbody tr {
		position: relative; margin: 0 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
		box-shadow: 0 1px 3px rgba(31, 42, 54, .08); overflow: hidden;
	}
	#body table.crcw-schedule tbody tr > * { border: 0 !important; padding: 6px 12px; }
	#body table.crcw-schedule tbody th.crcw-sch-date { background: var(--sand); padding: 8px 12px; padding-right: 140px; font-size: 15px; }
	.crcw-sch-day { display: inline; font-size: 15px; text-transform: none; letter-spacing: 0; color: inherit; }
	.crcw-sch-date .crcw-tag { display: inline-block; margin: 0 0 0 6px; }
	#body table.crcw-schedule tr.crcw-sch-same-date > th.crcw-sch-date { color: inherit; }
	#body table.crcw-schedule tr.crcw-sch-same-date > th.crcw-sch-date * { visibility: visible; }
	#body table.crcw-schedule tr.roster-next { border-color: var(--teal); }
	#body table.crcw-schedule tr.roster-next > th.crcw-sch-date { box-shadow: inset 4px 0 0 var(--teal); }
	#body table.crcw-schedule tr.roster-next > td { background: #fff; }
	#body table.crcw-schedule td.crcw-sch-cong { padding-top: 8px; color: var(--navy); }
	#body table.crcw-schedule td.crcw-sch-sermon { padding-top: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line) !important; }
	#body table.crcw-schedule td.crcw-sch-role { display: flex; gap: 10px; padding-top: 4px; padding-bottom: 4px; }
	#body table.crcw-schedule td.crcw-sch-role::before {
		content: attr(data-label); flex: 0 0 112px; color: var(--muted); font-size: 13px; font-weight: 600;
	}
	#body table.crcw-schedule td.crcw-sch-role > .crcw-sch-person:first-of-type { margin-top: 0; }
	#body table.crcw-schedule td.crcw-sch-role { flex-wrap: wrap; }
	#body table.crcw-schedule td.crcw-sch-role > .crcw-sch-person { flex: 1 1 auto; }
	#body table.crcw-schedule td.crcw-sch-role > .crcw-sch-person + .crcw-sch-person { margin: 0 0 0 122px; flex-basis: 100%; }
	#body table.crcw-schedule td.crcw-sch-role:has(> .crcw-sch-none) { display: none; }
	#body table.crcw-schedule tbody td.crcw-sch-role:last-of-type { padding-bottom: 10px; }
	/* actions in the card's top right corner */
	#body table.crcw-schedule td.crcw-sch-actions { position: absolute; top: 4px; right: 6px; padding: 0; background: none; }
	.crcw-sch-act { padding: 4px 6px; }
	#body table.crcw-schedule td.crcw-sch-actions .crcw-sch-act > span { display: none; }
	#body table.crcw-schedule td.crcw-sch-actions .crcw-sch-act > i { transform: scale(1.15); }
}
/* the sermon cell (Jethro's service summary: title, passages, series/format, notes) */
#body table.crcw-schedule td.crcw-sch-sermon p { margin: 0; }
#body table.crcw-schedule td.crcw-sch-sermon p.title { font-weight: 600; color: var(--ink); }
#body table.crcw-schedule td.crcw-sch-sermon p.format { color: var(--muted); font-size: 13px; }
#body table.crcw-schedule td.crcw-sch-sermon p.notes { color: var(--muted); font-size: 12px; font-style: italic; margin-top: 2px; }
#body table.crcw-schedule td.crcw-sch-tba p.title { font-weight: normal; color: #a7b0b9; }
.crcw-sch-spacer { visibility: hidden; }

/* ---------- Edit sermon details: one clear group per field (label, help under the label, then the box) ----------
 * The help text used to sit under each box, where it read as the next field's. Wide screens: label and help on
 * the left, the box on the right, a line between fields. Phones: label, help, box stacked. */
.crcw-fields { max-width: 860px; margin-top: 4px; }
.crcw-field {
	display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0 24px; align-items: start;
	padding: 14px 0; border-top: 1px solid var(--line);
}
.crcw-fields > .crcw-field:first-of-type { border-top: 0; padding-top: 6px; }
.crcw-field-head { padding-top: 5px; }
#body .crcw-field-label { display: block; margin: 0; font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.3; }
#body .crcw-field-help { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; font-style: normal; }
.crcw-field-input { min-width: 0; }
#body .crcw-field-input input[type=text], #body .crcw-field-input textarea {
	width: 100%; max-width: none; margin: 0; -webkit-box-sizing: border-box; box-sizing: border-box; min-height: 34px;
}
#body .crcw-field-input select { width: 100%; max-width: 360px; margin: 0; }
#body .crcw-field-input select + input, #body .crcw-field-input select + * input[type=text] { margin-top: 8px; }
#body .crcw-edit-service #field-crcw_time .crcw-field-input input { width: 120px; }
.crcw-fields .crcw-more { margin: 0; border-top: 1px solid var(--line); }
.crcw-fields .crcw-more > summary { padding: 14px 0; }
.crcw-fields .crcw-more[open] > summary { margin-bottom: 0; }
.crcw-fields .crcw-more > .crcw-field:first-of-type { border-top: 1px dashed var(--line); }
.crcw-field-actions { padding: 16px 0 8px; border-top: 1px solid var(--line); }
.crcw-field-actions .btn { margin-right: 6px; }
.crcw-field:focus-within .crcw-field-label { color: var(--blue-dark); }
@media (max-width: 767px) {
	.crcw-field { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
	.crcw-field-head { padding: 0 0 6px; }
	#body .crcw-field-input select { max-width: 100%; }
}

/* ---------- My availability: "For" family checkboxes, grouped family lines, rostered while away (crcw_roster_ui) ---------- */
.crcw-ticks { border: 0; margin: 4px 0 6px; padding: 0; min-width: 0; }
#body .crcw-ticks legend { border: 0; margin: 6px 0 4px; padding: 0; width: auto; font-size: 13px; font-weight: 600; line-height: 20px; color: inherit; }
.crcw-add-form label.crcw-tick {
	display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 9px 12px; min-height: 24px;
	background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: normal; font-size: 14px; cursor: pointer;
}
.crcw-add-form label.crcw-tick input { margin: 0; width: 18px; height: 18px; flex: 0 0 auto; }
.crcw-add-form label.crcw-tick:hover { border-color: #b9c6d2; }
.crcw-add-form label.crcw-tick:has(input:checked) { background: #eef6f8; border-color: var(--teal); }
.crcw-add-form label.crcw-tick-all { font-weight: 600; background: var(--sand); }
.crcw-ticks-none label.crcw-tick { border-color: #c0504d; }
.crcw-group-people { display: inline; }
.crcw-group-people .crcw-who { margin: 2px 4px 2px 0; }
.crcw-who-del {
	border: 0; background: none; padding: 0 0 0 4px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
}
.crcw-who-del:hover, .crcw-who-del:focus { color: #a3312d; }
.crcw-away-clash { border-color: #e8b4b2; }
#body .crcw-away-clash h3 { color: #a3312d; }
.crcw-roster-item.crcw-roster-away { border-left-color: #c0504d; }
@media (max-width: 767px) {
	.crcw-add-form label.crcw-tick { padding: 11px 12px; font-size: 15px; }
	.crcw-who-del { padding: 2px 2px 2px 8px; font-size: 18px; }
}

/* ---------- Preferred roles (My availability "Roles"; hints in the roster editor and Who's free) ---------- */
.crcw-rolepref-person > summary { cursor: pointer; padding: 6px 0; list-style: none; }
.crcw-rolepref-person > summary::-webkit-details-marker { display: none; }
.crcw-rolepref-person > summary::before { content: "\25B8"; color: var(--muted); margin-right: 6px; }
.crcw-rolepref-person[open] > summary::before { content: "\25BE"; }
.crcw-rolepref-form { margin: 4px 0 12px; }
.crcw-rolepref-team { margin: 6px 0 10px; }
.crcw-rolepref-teamname { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.crcw-rolepref-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid #f0ece4; }
.crcw-rolepref-role { flex: 1 1 160px; font-weight: 600; color: var(--ink); }
.crcw-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.crcw-seg label { margin: 0; padding: 0; font-weight: normal; cursor: pointer; }
.crcw-seg label + label { border-left: 1px solid var(--line); }
.crcw-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.crcw-seg span { display: block; padding: 6px 12px; font-size: 13px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.crcw-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
.crcw-seg .crcw-seg-prefer input:checked + span { background: #e3f1e6; color: #3c7a4c; font-weight: 600; }
.crcw-seg .crcw-seg-happy input:checked + span { background: #eef2f6; color: var(--navy); font-weight: 600; }
.crcw-seg .crcw-seg-rather_not input:checked + span { background: #fcf0d8; color: #8a5a00; font-weight: 600; }
.crcw-seg label:hover span { color: var(--ink); }
.crcw-pref { display: inline-block; font-size: 11px; line-height: 14px; padding: 0 4px; border-radius: 6px; cursor: help; }
.crcw-pref-prefer { color: #3c7a4c; background: #e3f1e6; }
.crcw-pref-rather { color: #8a5a00; background: #fcf0d8; }
@media (max-width: 767px) {
	.crcw-rolepref-row { padding: 8px 0; }
	.crcw-seg { width: 100%; }
	.crcw-seg label { flex: 1 1 0; text-align: center; }
	.crcw-seg span { padding: 10px 4px; font-size: 14px; }
}

/* ---------- Availability requests (Rosters > Availability requests; banner on My availability) ---------- */
.crcw-avreq-banner { border-color: var(--teal); border-left: 4px solid var(--teal); }
.crcw-avreq-banner.crcw-avreq-done { border-left-color: var(--green); }
.crcw-avreq-thanks { color: #3c7a4c; font-weight: 600; }
.crcw-avreq-form .crcw-avreq-label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 13px; }
.crcw-avreq-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 8px; }
.crcw-avreq-form label.crcw-tick {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: normal; cursor: pointer;
}
.crcw-avreq-form label.crcw-tick input { margin: 0; width: 18px; height: 18px; }
.crcw-avreq-form label.crcw-tick:has(input:checked) { background: #eef6f8; border-color: var(--teal); }
.crcw-avreq-roles { margin: 8px 0; }
.crcw-avreq-roles > summary { cursor: pointer; color: var(--blue); font-size: 13px; }
.crcw-avreq-roles .crcw-avreq-checks { max-height: 260px; overflow-y: auto; margin-top: 6px; }
.crcw-avreq-buttons { margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.crcw-avreq-preview { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.crcw-avreq-people li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.crcw-avreq-frame { width: 100%; max-width: 620px; height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 8px; }
.crcw-avreq-email > summary { cursor: pointer; color: var(--blue); }
.crcw-avreq-bar { height: 6px; background: #eef2f6; border-radius: 3px; overflow: hidden; margin: 6px 0 2px; max-width: 420px; }
.crcw-avreq-bar span { display: block; height: 100%; background: var(--green); }
.crcw-avreq-counts .crcw-badge { margin: 0 4px 4px 0; }

/* ---------- Availability calendar (members "My Calendar", staff "My calendar") ---------- */
.crcw-calendar .crcw-card { max-width: 980px; }
.crcw-cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#body .crcw-cal-head h3 { margin: 0; min-width: 160px; text-align: center; }
.crcw-cal-head .btn { font-size: 18px; line-height: 20px; padding: 4px 12px; }
.crcw-cal-today { margin-left: auto; }
.crcw-cal-grid { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.crcw-cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.crcw-cal-row + .crcw-cal-row { border-top: 1px solid var(--line); }
.crcw-cal-dow > div { padding: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--paper); }
.crcw-cal-day { display: flex; flex-direction: column; gap: 2px; min-height: 92px; padding: 4px 5px 6px; background: #fff; color: inherit; text-decoration: none !important; overflow: hidden; }
.crcw-cal-day + .crcw-cal-day { border-left: 1px solid var(--line); }
a.crcw-cal-day:hover, a.crcw-cal-day:focus { background: #f5f9fb; }
.crcw-cal-blank { background: var(--paper); }
.crcw-cal-num { font-size: 13px; font-weight: 600; color: var(--navy); }
.crcw-cal-is-today .crcw-cal-num { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 12px; background: var(--navy); color: #fff; }
.crcw-cal-is-sel { box-shadow: inset 0 0 0 2px var(--teal); }
.crcw-cal-is-hol { background: #fbf8ef; }
.crcw-cal-is-past .crcw-cal-num { color: #a7b0b9; }
.crcw-cal-m { display: block; font-size: 11px; line-height: 15px; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crcw-cal-asg { background: #e2f1f4; color: #1f5f6b; }
.crcw-cal-asg.crcw-cal-clash { background: #f8e1e0; color: #a3312d; box-shadow: inset 3px 0 0 #c0504d; }
.crcw-cal-asg.crcw-cal-declined { background: #eef2f6; color: #8a96a3; text-decoration: line-through; }
.crcw-cal-away { background: #f8e1e0; color: #a3312d; }
.crcw-cal-unav { background: #fcf0d8; color: #8a5a00; }
.crcw-cal-hol { background: #f3ecd9; color: #6b5a2e; }
.crcw-cal-legend { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crcw-cal-key { display: inline-block; font-size: 12px; line-height: 18px; padding: 1px 8px; border-radius: 9px; }
.crcw-cal-agenda li { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.crcw-cal-agenda-date { min-width: 56px; font-weight: 600; color: var(--navy); }
.crcw-cal-agenda-sel { background: #f5f9fb; }
.crcw-cal-daycard .crcw-roster-list { margin-top: 8px; }
.crcw-cal-links { margin-bottom: 10px; }
.crcw-cal-feed input[type=text] { max-width: 640px; }
/* phones: dots in the grid, the month listed below */
@media (max-width: 640px) {
	.crcw-cal-card { padding-left: 8px; padding-right: 8px; }
	.crcw-cal-day { min-height: 54px; padding: 3px 2px; align-items: center; flex-direction: row; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 2px 3px; }
	.crcw-cal-num { flex: 0 0 100%; text-align: center; }
	.crcw-cal-is-today .crcw-cal-num { flex: 0 0 24px; }
	.crcw-cal-m { width: 8px; height: 8px; padding: 0; border-radius: 4px; font-size: 0; line-height: 0; box-shadow: none !important; }
	.crcw-cal-m.crcw-cal-asg { background: var(--teal); }
	.crcw-cal-m.crcw-cal-asg.crcw-cal-clash { background: #c0504d; }
	.crcw-cal-m.crcw-cal-asg.crcw-cal-declined { background: #c3cbd3; }
	.crcw-cal-m.crcw-cal-away { background: #c0504d; }
	.crcw-cal-m.crcw-cal-unav { background: #e0a83c; }
	.crcw-cal-dow > div { padding: 4px 0; text-align: center; font-size: 11px; letter-spacing: 0; }
	#body .crcw-cal-head h3 { min-width: 0; flex: 1; font-size: 17px; }
}

/* ---------- Groups > List all: sub-categories read as "Parent › Child" and sit on a thin line ---------- */
#body .indent-left:has(> h3.crcw-subcat) { border-left: 3px solid var(--line, #e2ddd3); padding-left: 16px; margin-left: 4px; }
#body h3.crcw-subcat .crcw-cat-parent { color: var(--muted, #5b6875); font-weight: normal; font-size: .8em; }

/* ---------- Home: mini calendar in "My availability" (last week, this week, the next 3) ---------- */
.crcw-mini-cal { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 2px 0 8px; background: #fff; }
.crcw-mini-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.crcw-mini-row + .crcw-mini-row { border-top: 1px solid var(--line); }
.crcw-mini-dow > div { padding: 4px 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; background: var(--paper); }
.crcw-mini-this { background: #eaf5f8; box-shadow: inset 3px 0 0 var(--teal); }
.crcw-mini-day { box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 46px; padding: 4px 1px 9px; color: var(--ink); text-decoration: none !important; }
.crcw-mini-day + .crcw-mini-day { border-left: 1px solid var(--line); }
a.crcw-mini-day:hover, a.crcw-mini-day:focus { background: #f2f8fa; color: var(--ink); }
.crcw-mini-this a.crcw-mini-day:hover, .crcw-mini-this a.crcw-mini-day:focus { background: #dcf0f4; }
.crcw-mini-hol { background: #f8f2e1; }
.crcw-mini-this .crcw-mini-hol { background: #eef0e4; }
.crcw-mini-num { font-size: 13px; line-height: 22px; min-width: 24px; padding: 0 2px; text-align: center; font-weight: 600; color: var(--navy); border-radius: 12px; white-space: nowrap; }
.crcw-mini-num small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.crcw-mini-gone .crcw-mini-num { color: #a7b0b9; font-weight: 500; }
.crcw-mini-today .crcw-mini-num { box-shadow: 0 0 0 2px var(--navy); background: #fff; }
.crcw-mini-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
.crcw-mini-asg { display: inline-block; min-width: 8px; height: 8px; border-radius: 4px; background: var(--teal); }
.crcw-mini-asg:not(.crcw-mini-me) { min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; font-size: 10px; line-height: 15px; font-weight: 700; color: #fff; background: #4f9fb0; text-align: center; }
.crcw-mini-me { background: var(--blue); width: 9px; height: 9px; border-radius: 5px; }
.crcw-mini-asg.crcw-mini-clash { background: #c0504d; }
.crcw-mini-asg.crcw-mini-declined { background: #c3cbd3; }
.crcw-mini-gone .crcw-mini-asg { opacity: .55; }
.crcw-mini-bars { position: absolute; left: 4px; right: 4px; bottom: 3px; display: flex; gap: 2px; }
.crcw-mini-bars span { flex: 1; height: 4px; border-radius: 2px; }
.crcw-mini-away { background: #c0504d; }
.crcw-mini-unav { background: #e0a83c; }
.crcw-mini-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.crcw-mini-legend > span { white-space: nowrap; }
.crcw-mini-k { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 4px; vertical-align: -1px; }
.crcw-mini-k-asg { background: var(--blue); }
.crcw-mini-k-away { background: #c0504d; width: 14px; height: 4px; border-radius: 2px; vertical-align: 2px; }
.crcw-mini-k-unav { background: #e0a83c; width: 14px; height: 4px; border-radius: 2px; vertical-align: 2px; }
.crcw-mini-k-hol { background: #f3e8c8; border: 1px solid #e2d4a8; border-radius: 2px; }
.crcw-mini-full { margin-left: auto; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) {
	.crcw-mini-day { min-height: 44px; }
	.crcw-mini-num { font-size: 12px; min-width: 22px; line-height: 20px; }
	.crcw-mini-num small { display: block; line-height: 9px; }
	.crcw-mini-full { margin-left: 0; }
}

/* Full calendar: this week's row and the neighbouring months' days */
.crcw-cal-this { box-shadow: inset 3px 0 0 var(--teal); background: #eaf5f8; }
.crcw-cal-this .crcw-cal-day { background: transparent; }
.crcw-cal-this .crcw-cal-day.crcw-cal-is-hol { background: #eef0e4; }
.crcw-cal-this a.crcw-cal-day:hover, .crcw-cal-this a.crcw-cal-day:focus { background: #dcf0f4; }
.crcw-cal-is-out:not(.crcw-cal-is-hol) { background: var(--paper); }
.crcw-cal-this .crcw-cal-is-out:not(.crcw-cal-is-hol) { background: transparent; }
.crcw-cal-is-out .crcw-cal-num { color: #7d8894; font-weight: 500; }
.crcw-cal-is-out .crcw-cal-num small { font-size: 10px; text-transform: uppercase; }
.crcw-cal-is-out .crcw-cal-m { opacity: .75; }

/* ---------- Persons > Logins ---------- */
.crcw-logins-counts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.crcw-logins-count { flex: 1 1 240px; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; box-sizing: border-box; }
.crcw-logins-big { display: block; font-size: 22px; line-height: 1.4; color: var(--navy); }
.crcw-logins-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.crcw-logins-filters .btn-group { margin: 0; }
#body .crcw-logins-table { max-width: 1100px; }
#body .crcw-logins-never td:nth-child(5) { color: var(--muted); }
@media (max-width: 767px) {
	#body .crcw-logins-table, #body .crcw-logins-table tbody, #body .crcw-logins-table tr, #body .crcw-logins-table td { display: block; width: auto; }
	#body .crcw-logins-table { border: 0; background: none; box-shadow: none; }
	#body .crcw-logins-table thead { display: none; }
	#body .crcw-logins-table tbody tr { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; overflow: hidden; }
	#body .crcw-logins-table td { display: flex; gap: 10px; border: 0; padding: 3px 12px; overflow-wrap: anywhere; }
	#body .crcw-logins-table td.crcw-logins-name { background: var(--sand); font-weight: 600; padding: 8px 12px; }
	#body .crcw-logins-table td:last-child { padding-bottom: 9px; }
	#body .crcw-logins-table td[data-label]::before { content: attr(data-label); flex: 0 0 90px; color: var(--muted); font-size: 13px; font-weight: 600; }
}

/* ---------- Newsletter (person page, Persons > Newsletter, My account) ---------- */
.crcw-nl-note { display: block; color: #8a5a00; font-size: 13px; line-height: 1.4; margin: 2px 0 4px; overflow-wrap: anywhere; }
.crcw-nl-miss { color: #a3312d; font-weight: 600; }
.crcw-nl-person { margin: 10px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.crcw-nl-title { font-weight: 600; margin-right: 4px; }
.crcw-nl-person .btn { margin-left: 8px; }
.crcw-nl-look a { display: block; line-height: 1.6; }
.crcw-nl .crcw-card { max-width: 900px; margin-bottom: 16px; }
.crcw-nl-ask { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: center; margin: 0; padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.crcw-nl-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.crcw-nl-search { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crcw-nl-search input[type=search] { margin: 0; width: 200px; max-width: 100%; box-sizing: border-box; height: auto; }
.crcw-nl-bulk { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 8px; }
.crcw-nl-bulk label.checkbox { margin: 0; padding-top: 0; }
#body .crcw-nl-table td { vertical-align: middle; }
#body .crcw-nl-act { text-align: right; }
.crcw-nl-member .crcw-nl-note { margin-left: 20px; }
.crcw-nl-member .btn { margin-top: 8px; }
@media (max-width: 767px) {
	#body .crcw-nl-table tbody tr { position: relative; }
	#body .crcw-nl-table td.crcw-nl-tick { position: absolute; top: 0; left: 0; padding: 9px 12px; }
	#body .crcw-nl-table td.crcw-nl-tick input { margin: 2px 0 0; width: 18px; height: 18px; }
	#body .crcw-nl-table td.crcw-logins-name { padding-left: 42px; }
	#body .crcw-nl-table td.crcw-nl-act { justify-content: flex-end; }
	#body .crcw-nl-table td.crcw-nl-act:empty { display: none; }
}

/* ---------- Phones: readable text, finger-sized buttons, stacked detail tables (review 2026-11-30) ---------- */
@media (max-width: 767px) {
	/* 16px text, and 16px form fields so iPhones don't zoom the page when a field is tapped */
	body, #body { font-size: 16px; line-height: 1.5; }
	input, select, textarea, .uneditable-input { font-size: 16px !important; }
	input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number],
	input[type=date], select, textarea { min-height: 44px; box-sizing: border-box; }
	/* buttons at least 44px tall (Apple / Google guidance for fingers) */
	.btn, .btn-small { min-height: 44px; padding: 10px 14px; font-size: 15px; line-height: 22px; box-sizing: border-box; }
	.btn-mini { min-height: 36px; padding: 6px 10px; font-size: 14px; }
	.btn-navbar { min-height: 0; }
	/* small labels no smaller than 13px */
	.crcw-badge, .crcw-who, .crcw-count, .label, .badge { font-size: 13px; line-height: 20px; }
	.crcw-cell-extras, .crcw-cell-extras .label { font-size: 13px; }
	/* link rows wrap instead of running off the edge */
	.crcw-links { white-space: normal; display: flex; flex-wrap: wrap; gap: 4px 12px; }
	/* detail tables (person, family, group pages): label above value, nothing scrolls sideways */
	#body table.object-summary, #body table.object-summary tbody, #body table.object-summary tr,
	#body table.object-summary th, #body table.object-summary td { display: block; width: auto; text-align: left; }
	#body table.object-summary tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
	#body table.object-summary th { padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); border: 0; }
	#body table.object-summary td { padding: 2px 0 0; border: 0; overflow-wrap: anywhere; }
	#body table.object-summary td .btn { margin: 6px 6px 0 0; }
	#body .object-summary-container, #body .crcw-card { overflow-x: visible; }
	a[href^="mailto:"] { overflow-wrap: anywhere; }
}

/* ---------- First sign-in welcome (members/views/view_0_crcw_welcome.class.php) ---------- */
.crcw-welcome { max-width: 620px; margin: 0 auto; }
.crcw-welcome .crcw-card { padding: 20px 22px; }
.crcw-welcome h2 { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.crcw-welcome p, .crcw-welcome li { font-size: 16px; line-height: 1.55; }
.crcw-welcome-list { margin: 0 0 14px 20px; }
.crcw-welcome-list li { margin-bottom: 6px; }
.crcw-welcome-progress { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.crcw-welcome-progress span { width: 34px; height: 6px; border-radius: 3px; background: var(--line); }
.crcw-welcome-progress span.done { background: var(--teal, #5aa9b5); }
.crcw-welcome-progress span.now { background: var(--navy, #314155); }
.crcw-welcome-progress small { margin-left: 8px; color: var(--muted); }
.crcw-welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.crcw-welcome-actions .btn-primary { order: -1; }
.crcw-welcome-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crcw-welcome-row span { flex: 0 0 110px; color: var(--muted); }
.crcw-welcome-row b { font-weight: 600; overflow-wrap: anywhere; }
.crcw-welcome-skip { text-align: center; margin-top: 8px; }
@media (max-width: 767px) {
	.crcw-welcome .crcw-card { padding: 16px; }
	.crcw-welcome h2 { font-size: 23px; }
	.crcw-welcome-actions .btn { flex: 1 1 100%; text-align: center; }
	.crcw-welcome-row { flex-direction: column; gap: 0; }
	.crcw-welcome-row span { flex: none; font-size: 13px; }
}

/* ---------- Newcomer follow-up checklist (README 52.) ---------- */
.crcw-newcomer-steps { list-style: none; margin: 10px 0 8px; padding: 0; }
.crcw-newcomer-steps li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.crcw-newcomer-steps li form { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.crcw-step-box { width: 26px; height: 26px; border: 2px solid #9aa6b2; border-radius: 6px; background: #fff; color: #1d7a4a; font-weight: 800; line-height: 20px; padding: 0; cursor: pointer; }
.crcw-newcomer-steps li.done .crcw-step-box { border-color: #1d7a4a; background: #e8f5ee; }
.crcw-newcomer-steps li.done .crcw-step-label { text-decoration: line-through; color: var(--muted); }
.crcw-newcomer-steps li.late .crcw-step-box { border-color: #d08a12; }
.crcw-late { color: #a3312d; font-weight: 600; }
.crcw-step-detail { margin: 0 !important; width: 180px; max-width: 100%; }
.crcw-newcomer-outcome { margin-top: 6px; }
.crcw-newcomer-claim { border-left: 4px solid var(--teal, #5aa9b5); }
@media (max-width: 767px) { .crcw-step-box { width: 34px; height: 34px; } .crcw-step-detail { width: 100%; } }

/* ---------- Review 2026-11-30: same-day roster spots grouped; public welcome ---------- */
.crcw-roster-list .crcw-roster-same-day { margin-top: -9px; border-top: 1px dashed var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.crcw-roster-list .crcw-roster-same-day .crcw-roster-when { visibility: hidden; }
.crcw-public-welcome { max-width: 560px; margin: 40px auto; text-align: center; }
.crcw-public-welcome h1 { font-family: var(--serif); font-size: 30px; line-height: 1.25; }
.crcw-public-welcome p { font-size: 17px; line-height: 1.55; }

/* Phones: roster table as one card per date (crcw.js adds .crcw-roster-cards and data-label) */
@media (max-width: 767px) {
	table.roster.crcw-roster-cards, table.roster.crcw-roster-cards tbody, table.roster.crcw-roster-cards tr { display: block; width: 100%; border: 0; }
	table.roster.crcw-roster-cards thead { display: none; }
	table.roster.crcw-roster-cards tr { background: #fff; border: 1px solid var(--line) !important; border-radius: 10px; margin: 0 0 12px; padding: 8px 12px; box-sizing: border-box; }
	table.roster.crcw-roster-cards tr.roster-next { border-left: 4px solid var(--teal, #5aa9b5) !important; }
	table.roster.crcw-roster-cards th.roster-date { display: block; border: 0; padding: 2px 0 6px; text-align: left; font-size: 17px; background: none; }
	table.roster.crcw-roster-cards td { display: flex; gap: 10px; border: 0; border-top: 1px solid var(--line); padding: 6px 0; text-align: left; white-space: normal; }
	table.roster.crcw-roster-cards td::before { content: attr(data-label); flex: 0 0 42%; color: var(--muted); font-size: 14px; }
	table.roster.crcw-roster-cards td.crcw-empty-cell { display: none; }
	.crcw-roster-mail { margin-top: 4px; font-size: 14px; font-weight: normal; }
	.crcw-roster-mail summary { cursor: pointer; color: var(--navy, #314155); }
	#body .table-responsive, #body div:has(> table.roster.crcw-roster-cards) { overflow-x: visible; }
}

@media (max-width: 767px) {
	table.roster.crcw-roster-cards th.roster-date { text-align: left !important; }
	table.roster.crcw-roster-cards td, table.roster.crcw-roster-cards td * { border-left: 0 !important; border-right: 0 !important; }
	table.roster.crcw-roster-cards td > table, table.roster.crcw-roster-cards td > div { border: 0 !important; }
}
.crcw-compact .crcw-roster-same-day .crcw-roster-when { display: none; }

/* Desktop review 2026-11-30: person page boxes side by side across the full width, natural height (no inner scrollbar) */
@media (min-width: 768px) {
	.view-person .person-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; float: none; width: auto; min-width: 0; margin-right: 0; align-items: start; }
	.view-person .tab-pane:has(> img.person-photo) .person-details { width: calc(100% - 216px); float: left; }
	.view-person .person-details .details-box { width: auto !important; min-width: 0; height: auto !important; overflow: visible; float: none; margin: 0 0 15px 0; }
}
.view-person table.object-summary tr.crcw-empty-row, .view-family table.object-summary tr.crcw-empty-row { display: none; }

/* Desktop review 2026-11-30: rosters */
#body table.roster th.roster-date details.crcw-roster-mail { margin-top: 4px; font-weight: normal; font-size: 13px; text-align: left; }
#body table.roster th.roster-date details.crcw-roster-mail summary { cursor: pointer; color: var(--blue-dark, #2a5d8a); list-style: none; }
#body table.roster th.roster-date details.crcw-roster-mail summary::-webkit-details-marker { display: none; }
#body table.roster th.roster-date details.crcw-roster-mail[open] .smallprint { margin-top: 4px; }
/* the service summary column was squashed into a narrow strip */
#body table.roster div.service-field-summary, #body table.roster div[class^='service-field-bible'] { max-width: none !important; width: 24ex; }
/* clash notes in the editor wrap instead of being cut off */
#roster table.roster .crcw-clash { white-space: normal; text-overflow: clip; overflow: visible; max-width: 100%; }
/* Save stays in view at the bottom of the screen while editing a long roster */
form#roster > input[type=submit][value=Save] { position: sticky; bottom: 12px; z-index: 120; margin-top: 8px; padding: 8px 28px; font-size: 16px;
	background: var(--navy, #314155); color: #fff; border-color: var(--navy, #314155); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); text-shadow: none; }
/* the year box in date pickers showed "202" */
#body input.year-box { width: 9ex !important; min-width: 9ex; }

/* Desktop review 2026-11-30: Jethro's Search and "Notes to do now" boxes inside the staff dashboard */
.crcw-home-jethro .homepage-box { float: none; width: auto; max-width: none; margin: 0 0 16px; box-sizing: border-box;
	background: #fff; border: 1px solid var(--line, #dde3ea); border-radius: 12px; padding: 14px 16px; }
.crcw-home-jethro .homepage-box h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.3; }
.crcw-home-jethro .homepage-box h3 span { font-weight: normal; }
.crcw-home-jethro .homepage-box form { margin: 0; }
.crcw-home-jethro .homepage-box .table { margin-bottom: 6px; }
.crcw-home-jethro .homepage-box p { margin: 4px 0 0; }
/* Desktop review 2026-11-30: the schedule's row actions say what they are */
@media (min-width: 1100px) {
	#body table.crcw-schedule .crcw-sch-act > span { display: inline; margin-left: 3px; font-size: 12px; }
}
/* Desktop review 2026-11-30: service page Personnel: role and person names read as names (link only on hover) */
#service-personnel a.med-popup, #service-personnel a.med-popup:visited { text-decoration: none; color: inherit; }
#service-personnel label a.med-popup { font-weight: inherit; }
#service-personnel a.med-popup:hover, #service-personnel a.med-popup:focus { text-decoration: underline; color: var(--blue-dark, #2a5d8a); }

/* Desktop review 2026-11-30: Emails admin page: technical details only when asked for */
.crcw-emails .crcw-techbit { display: none; }
.crcw-emails.crcw-show-tech .crcw-techbit { display: inline; }
.crcw-emails code.crcw-tok { font-size: 11px; padding: 0 3px; color: #5b6673; background: #f1f3f5; border-color: #e1e5ea; white-space: normal; }
.crcw-tech-switch { float: right; margin: 6px 0 0; color: #5b6673; }

/* Add to my calendar (README 53) */
.crcw-cal-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.crcw-cal-add .btn { min-height: 40px; }
.crcw-cal-more { margin-top: 6px; }
.crcw-cal-more summary { cursor: pointer; color: var(--blue-dark, #2a5d8a); font-size: 14px; }
.crcw-cal-more input.crcw-full { width: 100%; max-width: 560px; box-sizing: border-box; }
@media (max-width: 767px) { .crcw-cal-add .btn { flex: 1 1 100%; } }

/* Sign in with Google (README 54) */
.crcw-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; font-weight: 500; text-shadow: none; }
.crcw-google-btn:hover, .crcw-google-btn:focus { background: #f7f8f8; color: #1f1f1f; }
.crcw-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; }
.crcw-or::before, .crcw-or::after { content: ""; flex: 1; border-top: 1px solid #dde3ea; }
#login-box .crcw-login-form .btn.crcw-google-btn { background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; font-weight: 500; }
#login-box .crcw-login-form .btn.crcw-google-btn:hover, #login-box .crcw-login-form .btn.crcw-google-btn:focus { background: #f7f8f8; color: #1f1f1f; }

/* CCLI report (README 55) */
.crcw-ccli-period label { margin: 0 6px; }
.crcw-ccli-period input[type=date] { width: auto; margin: 0 0 0 4px; }
.crcw-ccli-steps { margin-bottom: 8px; }
.crcw-ccli-progress { display: inline-block; margin: 0 8px; padding: 1px 8px; border-radius: 9px; background: #e7f1f3; font-size: 13px; }
.crcw-ccli-table { background: #fff; }
.crcw-ccli-table td { vertical-align: middle !important; }
.crcw-ccli-tickcol { width: 44px; text-align: center !important; }
.crcw-ccli-tick { width: 28px; height: 28px; border: 2px solid #9aa7b4; border-radius: 6px; background: #fff; color: #fff; font-size: 17px; line-height: 22px; padding: 0; cursor: pointer; }
.crcw-ccli-done .crcw-ccli-tick { background: #3c8d5a; border-color: #3c8d5a; }
.crcw-ccli-table tr.crcw-ccli-done td { background: #f1f8f3; }
.crcw-ccli-table tr.crcw-ccli-done td b { color: #4d5b66; }
.crcw-ccli-missing { border-left: 4px solid #e0a83c; }
.crcw-ccli-typed summary { cursor: pointer; }
.crcw-ccli-mark { margin: 12px 0 18px; }

/* Photos (README 56) */
.crcw-photo-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.crcw-photo-box { flex: 1 1 220px; max-width: 320px; margin: 0; padding: 12px; border: 1px solid var(--line, #dde3ea); border-radius: 10px; background: #fff; text-align: center; }
.crcw-photo-frame { width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: #eef2f5; display: flex; align-items: center; justify-content: center; }
.crcw-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.crcw-photo-empty { font-size: 34px; opacity: .45; }
.crcw-photo-label { margin-bottom: 8px; }
.crcw-photo-pick { position: relative; overflow: hidden; }
.crcw-photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 100px; }
.crcw-fam-photo { display: block; margin: 0 0 10px; }
.crcw-fam-photo img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }

/* Church calendar (README 57) */
.crcw-cc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 8px; }
.crcw-cc-heading { margin: 0; font-size: 26px; flex: 1 1 200px; text-align: center; }
.crcw-cc-nav .btn { min-width: 36px; }
.crcw-cc-modes .btn.active { background: var(--navy, #314155); color: #fff; text-shadow: none; }
.crcw-cc-actions { display: flex; gap: 6px; align-items: center; position: relative; }
.crcw-cc-legend { margin: 0 0 10px; line-height: 2; }
.crcw-cc-key { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 9px; background: var(--c); color: #fff; margin-right: 2px; }
.crcw-cc-dow { text-align: center; font-weight: 600; color: #5b6673; font-size: 13px; padding: 4px 0; }
.crcw-cc-past .crcw-cc-item { opacity: .75; }
.crcw-cc-wd, .crcw-cc-mo { display: none; }
.crcw-cc-item { display: block; background: var(--c); color: #fff !important; border-radius: 4px; padding: 1px 5px; margin: 0 0 3px; font-size: 12px; line-height: 1.35;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.crcw-cc-item:hover, .crcw-cc-item:focus { filter: brightness(1.12); }
.crcw-cc-time { font-weight: 700; }
.crcw-cc-sub { display: block; font-size: 11px; opacity: .9; white-space: normal; }
.crcw-cc-week .crcw-cc-item, .crcw-cc-list .crcw-cc-item { white-space: normal; }
.crcw-cc-masked { opacity: .85; }
.crcw-cc-more { font-size: 12px; }
.crcw-cc-list { max-width: 760px; }
.crcw-cc-lday { margin: 0 0 12px; }
.crcw-cc-lday h4 { margin: 0 0 4px; font-size: 15px; }
.crcw-cc-lday.crcw-cc-today h4::after { content: " · today"; color: var(--teal, #5aa9b5); }
.crcw-cc-list .crcw-cc-item { font-size: 14px; padding: 6px 10px; margin-bottom: 4px; border-radius: 6px; }
.crcw-cc-detail { border-left: 6px solid var(--c); }
.crcw-cc-detail h3 { margin-top: 0; }
.crcw-cc-details { white-space: normal; }
.crcw-cc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; }
.crcw-cc-fields label { margin: 0; }
.crcw-cc-fields input[type=text], .crcw-cc-fields select, .crcw-cc-fields textarea { width: 100%; box-sizing: border-box; }
.crcw-cc-wide { grid-column: 1 / -1; }
.crcw-cc-rep { display: none !important; }
.crcw-cc-repeating .crcw-cc-rep { display: block !important; }
.crcw-cc-repeating .crcw-cc-once { display: none; }
.crcw-cc-isallday .crcw-cc-timefield { display: none; }
.crcw-cc-allday { align-self: end; }
.crcw-cc-delete { margin: -6px 0 12px; }
.crcw-cc-sub-menu { position: relative; }
.crcw-cc-sub-menu summary { list-style: none; }
.crcw-cc-sub-menu summary::-webkit-details-marker { display: none; }
.crcw-cc-sub-pop { position: absolute; right: 0; top: 110%; z-index: 50; width: 250px; background: #fff; border: 1px solid var(--line, #dde3ea); border-radius: 10px; padding: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.crcw-cc-sub-pop .btn { margin-bottom: 6px; }
@media (max-width: 767px) {
	.crcw-cc-heading { order: -1; flex-basis: 100%; font-size: 22px; }
	.crcw-cc-grid { display: block; }
	.crcw-cc-dow, .crcw-cc-empty { display: none; }
	.crcw-cc-day { min-height: 0 !important; margin-bottom: 8px; }
	.crcw-cc-other.crcw-cc-empty { display: none; }
	.crcw-cc-wd, .crcw-cc-mo { display: inline; }
	.crcw-cc-item { white-space: normal; font-size: 14px; padding: 5px 8px; }
	.crcw-cc-sub-pop { right: auto; left: 0; }
}

/* Stay connected footer (README 58) */
.crcw-footer { margin-top: 40px; background: var(--navy, #314155); color: #dfe6ee; }
.crcw-footer-in { max-width: 1170px; margin: 0 auto; padding: 22px 20px 26px; }
.crcw-footer-lead { margin: 0 0 10px; }
.crcw-footer-lead b { color: #fff; font-size: 16px; margin-right: 6px; }
.crcw-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crcw-footer a { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff !important; text-decoration: none !important; font-size: 14px; }
.crcw-footer a:hover, .crcw-footer a:focus { background: rgba(255,255,255,.12); }
.crcw-footer a i { filter: invert(1); opacity: .85; }
.crcw-footer-name { margin: 14px 0 0; font-size: 12px; opacity: .7; }
@media (max-width: 767px) { .crcw-footer-lead span { display: block; margin-top: 2px; } .crcw-footer a { padding: 8px 14px; } }
@media print { .crcw-footer { display: none; } }
/* the selected Month / Week / List button: white text on navy (the site's .btn colour won) */
.crcw-cc .crcw-cc-modes .btn.active, .crcw-cc .crcw-cc-modes .btn.active:hover, .crcw-cc .crcw-cc-modes .btn.active:focus {
	background: var(--navy, #314155) !important; background-image: none !important; border-color: var(--navy, #314155) !important; color: #fff !important; text-shadow: none !important; box-shadow: none !important; }

/* Church calendar in My calendar's style (README 57) */
.crcw-cc-card .crcw-cc-bar { margin: 0 0 10px; }
.crcw-cc-card .crcw-cc-heading { font-size: 22px; }
.crcw-cc-grid .crcw-cal-day { min-height: 110px; }
.crcw-cc-week .crcw-cc-grid .crcw-cal-day { min-height: 260px; }
.crcw-cc-grid .crcw-cc-item { margin: 0; }
.crcw-cc-wd, .crcw-cc-mo { display: none; }
.crcw-cal-dow .crcw-cc-sun { color: var(--navy, #314155); }
.crcw-cc-item.crcw-cc-svc { background: var(--c); border-left: 4px solid #f2c14e; padding: 3px 6px 4px; white-space: normal; border-radius: 5px; }
.crcw-cc-svc-head { display: block; font-weight: 700; font-size: 12px; letter-spacing: .01em; }
.crcw-cc-svc .crcw-cc-title { display: block; font-size: 11.5px; font-style: italic; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crcw-cc-week .crcw-cc-svc .crcw-cc-title, .crcw-cc-list .crcw-cc-svc .crcw-cc-title { white-space: normal; }
.crcw-cc-list .crcw-cc-svc-head { font-size: 15px; }
.crcw-cc-list .crcw-cc-svc .crcw-cc-title { font-size: 14px; }
a.crcw-cc-mine { text-decoration: none !important; }
a.crcw-cc-mine:hover { filter: brightness(.96); }
.crcw-cc-list .crcw-cc-mine { display: inline-block; font-size: 13px; padding: 3px 8px; margin-top: 2px; }
.crcw-cc-card .crcw-cal-legend .crcw-cc-key { line-height: 18px; padding: 1px 8px; }
@media (max-width: 767px) {
	.crcw-cc-card .crcw-cc-grid { border: 0; }
	.crcw-cc-card .crcw-cal-row { display: block; border: 0 !important; box-shadow: none; background: none; }
	.crcw-cc-card .crcw-cal-dow, .crcw-cc-card .crcw-cc-empty { display: none !important; }
	.crcw-cc-card .crcw-cal-day { display: flex; flex-direction: column; align-items: stretch; min-height: 0 !important; margin: 0 0 8px; padding: 8px; border: 1px solid var(--line) !important; border-radius: 8px; }
	.crcw-cc-card .crcw-cal-num { flex: none; text-align: left; font-size: 15px; }
	.crcw-cc-card .crcw-cal-is-today .crcw-cal-num { width: auto; height: auto; background: none; color: var(--navy); line-height: inherit; }
	.crcw-cc-card .crcw-cal-is-today { border-color: var(--teal) !important; border-width: 2px !important; }
	.crcw-cc-card .crcw-cc-wd, .crcw-cc-card .crcw-cc-mo { display: inline; }
	.crcw-cc-card .crcw-cal-m { width: auto; height: auto; padding: 3px 8px; font-size: 13px; line-height: 18px; border-radius: 5px; }
	.crcw-cc-card .crcw-cal-m.crcw-cal-asg { background: #e2f1f4; color: #1f5f6b; }
	.crcw-cc-card .crcw-cc-svc .crcw-cc-title { white-space: normal; font-size: 13px; }
}
.crcw-cc-card { max-width: none; }
.crcw-cc-card .crcw-cal-day { overflow: hidden; }
.crcw-cal-is-past .crcw-cc-item { opacity: .8; }

/* Attendance in softer colours that suit the site (Dan, 2026-11-30): record buttons and the attendance tables */
.radio-button-group div.value-present, .attendance-stats .present *, th.present { background-color: #e3f1e7 !important; color: #1f5133 !important; }
.radio-button-group div.value-present.active, td.present { background-color: #a7d7b6 !important; color: #173f27 !important; }
.radio-button-group div.value-absent, .attendance-stats .absent *, th.absent { background-color: #f7e3e1 !important; color: #7a2622 !important; }
.radio-button-group div.value-absent.active, td.absent { background-color: #eeb2ad !important; color: #5e1b17 !important; }
.radio-button-group div.value-unknown { background-color: #f8eedb !important; color: #6b4a00 !important; }
.radio-button-group div.value-unknown.active, td.unknown { background-color: #f1d49a !important; color: #4f3600 !important; }
.radio-button-group div.active { text-shadow: none !important; font-weight: 700; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }

.crcw-cc-ahead .crcw-cc-grid .crcw-cal-day { min-height: 104px; }

/* Calendar part 2 (Dan): rooms, settings, quarter and year */
.crcw-cc-place .crcw-cc-rooms { display: none; margin: 6px 0 0; }
.crcw-cc-atchurch .crcw-cc-place .crcw-cc-rooms { display: block; }
.crcw-cc-rooms .checkbox.inline { margin: 0 12px 4px 0; padding-left: 20px; }
.crcw-cc-clash { color: #8a5a00; background: #fcf0d8; padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.crcw-cc-manage .crcw-cc-cats input[type=text] { width: 230px; margin: 0; }
.crcw-cc-manage .crcw-cc-cats input[type=color] { width: 44px; height: 28px; padding: 0; border: 1px solid var(--line); }
.crcw-cc-manage .crcw-cc-cats select { width: auto; margin: 0; }
.crcw-cc-rank { width: 60px !important; margin: 0 !important; }
.crcw-cc-qhead { font-size: 17px; margin: 14px 0 6px; }
.crcw-cc-quarter .crcw-cc-grid .crcw-cal-day { min-height: 70px; }
.crcw-cc-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.crcw-cc-mini h4 { margin: 0 0 4px; font-size: 15px; }
.crcw-cc-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.crcw-cc-mini-dow { font-size: 10px; color: var(--muted); text-align: center; }
.crcw-cc-mini-day { display: block; text-align: center; font-size: 12px; padding: 2px 0 3px; border-radius: 4px; color: var(--navy) !important; text-decoration: none !important; min-height: 26px; }
.crcw-cc-mini-day:hover { background: #eaf5f8; }
.crcw-cc-mini-past { color: #a7b0b9 !important; }
.crcw-cc-mini-today { background: var(--navy); color: #fff !important; }
.crcw-cc-dots { display: flex; justify-content: center; gap: 2px; height: 5px; margin-top: 1px; }
.crcw-cc-dots i { width: 5px; height: 5px; border-radius: 3px; display: block; }
@media (max-width: 767px) { .crcw-cc-modes { flex-wrap: wrap; } .crcw-cc-year { grid-template-columns: 1fr 1fr; } }

/* Attendance: before someone's first record it's "not part of it yet", not "unknown" */
td.crcw-att-before { background: #eef1f4 !important; color: #9aa5b1 !important; text-align: center; }

/* the calendar card always takes the full width (the year view has no wide grid to stretch it) */
.crcw-cc { display: block; width: 100%; }
.crcw-cc .crcw-cc-card { display: block; width: 100%; box-sizing: border-box; }
.crcw-cc-year { width: 100%; }

/* Event form, cleaner (2026-11-30): What / When / Where / More */
.crcw-cc-form { max-width: 860px; }
.crcw-cc-sec { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 6px; min-width: 0; }
.crcw-cc-sec legend { border: 0; margin: 0 0 6px; padding: 0 8px 0 0; width: auto; font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; line-height: 1.4; }
.crcw-cc-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin-bottom: 8px; }
.crcw-cc-row > label { margin: 0; display: flex; flex-direction: column; gap: 3px; font-weight: 600; font-size: 13px; color: #4d5b66; }
.crcw-cc-row select, .crcw-cc-row input[type=date], .crcw-cc-row input[type=time] { margin: 0; width: auto; min-width: 150px; font-weight: normal; }
.crcw-cc-row select { min-width: 220px; max-width: 330px; }
.crcw-cc-row .crcw-small { font-weight: normal; }
.crcw-cc-row > label.crcw-cc-check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; font-weight: normal; color: inherit; }
.crcw-cc-row > label.crcw-cc-check input { margin: 0; }
.crcw-cc-form .crcw-cc-full { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; font-weight: 600; font-size: 13px; color: #4d5b66; }
.crcw-cc-form .crcw-cc-full input, .crcw-cc-form .crcw-cc-full textarea { width: 100%; box-sizing: border-box; margin: 0; font-weight: normal; }
.crcw-cc-grouprow .crcw-cc-allgroups { align-self: flex-start; }
.crcw-cc-grouprow[hidden], .crcw-cc-form [hidden] { display: none !important; }
.crcw-cc-multiday-link { padding-bottom: 10px; }
.crcw-cc-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.crcw-cc-seg label { margin: 0; padding: 6px 14px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.crcw-cc-seg label + label { border-left: 1px solid var(--line); }
.crcw-cc-seg input { margin: 0; }
.crcw-cc-seg label:has(input:checked) { background: #eaf5f8; font-weight: 600; }
.crcw-cc-form .crcw-cc-rooms { display: none; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.crcw-cc-atchurch .crcw-cc-rooms { display: flex; }
.crcw-cc-room { margin: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; display: flex; gap: 6px; align-items: center; cursor: pointer; font-size: 13px; }
.crcw-cc-room input { margin: 0; }
.crcw-cc-room:has(input:checked) { background: #eaf5f8; border-color: var(--teal); }
.crcw-cc-loc-other { display: none; }
.crcw-cc-form:not(.crcw-cc-atchurch) .crcw-cc-loc-church { display: none; }
.crcw-cc-form:not(.crcw-cc-atchurch) .crcw-cc-loc-other { display: inline; }
.crcw-cc-form .crcw-cc-rep { display: none !important; }
.crcw-cc-form.crcw-cc-repeating .crcw-cc-rep { display: flex !important; }
.crcw-cc-form.crcw-cc-repeating .crcw-cc-once { display: none !important; }
.crcw-cc-form.crcw-cc-isallday .crcw-cc-timefield { display: none !important; }
@media (max-width: 767px) { .crcw-cc-row > label, .crcw-cc-row select { width: 100%; max-width: none; } }

/* Attendance trends (README 59) */
.crcw-trends { margin-bottom: 18px; }
.crcw-tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.crcw-tr-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.crcw-tr-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.crcw-tr-big { font-size: 36px; line-height: 1.1; font-weight: 700; color: var(--navy); margin: 4px 0; font-family: inherit; }
.crcw-tr-sub { font-size: 13px; }
.crcw-tr-up { color: #2f7d4a; font-weight: 600; }
.crcw-tr-down { color: #b3413b; font-weight: 600; }
.crcw-tr-flat { color: var(--muted); }
.crcw-tr-chart { width: 100%; height: auto; display: block; }
.crcw-tr-chart .bar { fill: #9cc7d1; }
.crcw-tr-chart .bar:hover { fill: #5aa9b5; }
.crcw-tr-chart .avg { fill: none; stroke: var(--navy, #314155); stroke-width: 2.2; }
.crcw-tr-chart .hol { fill: #f6efdc; }
.crcw-tr-chart .grid { stroke: #e9edf1; stroke-width: 1; }
.crcw-tr-chart .ax { font-size: 11px; fill: #7d8894; }
.crcw-tr-legend { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.crcw-tr-legend .k { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.crcw-tr-legend .k.bar { background: #9cc7d1; } .crcw-tr-legend .k.avg { background: var(--navy); height: 3px; } .crcw-tr-legend .k.hol { background: #f6efdc; border: 1px solid #eadfbf; }
.crcw-tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.crcw-tr-table td.num, .crcw-tr-table th.num { text-align: right; }
.crcw-tr-list li { padding: 3px 0; border-bottom: 1px solid #f0ece4; }
.crcw-tr-detail-head { font-size: 20px; margin: 22px 0 8px; }
@media (max-width: 767px) { .crcw-tr-cols { grid-template-columns: 1fr; } .crcw-tr-big { font-size: 30px; } }
/* Jethro's detailed statistics tables, calmer */
.attendance-stats-container, table.attendance-stats { background: #fff; }
.crcw-cc-sec:first-of-type .crcw-cc-row { align-items: flex-start; }
.crcw-trends .crcw-card { max-width: none; }
@media (min-width: 900px) { .crcw-tr-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Meetings (README 60) */
.crcw-mt-h { font-size: 24px; margin: 4px 0 2px; }
.crcw-mt-when { color: #4d5b66; margin: 0 0 12px; }
.crcw-mt-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.crcw-mt-team h3 { font-size: 17px; }
.crcw-mt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.crcw-mt-list li, .crcw-mt-acts li { padding: 5px 0; border-bottom: 1px solid #f0ece4; }
.crcw-mt-whohead { margin: 10px 0 2px; font-size: 14px; }
.crcw-mt-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crcw-mt-tick { width: 22px; height: 22px; border: 2px solid #9aa7b4; border-radius: 5px; background: #fff; color: #fff; font-size: 14px; line-height: 16px; padding: 0; cursor: pointer; }
.crcw-mt-done .crcw-mt-tick { background: #3c8d5a; border-color: #3c8d5a; }
.crcw-mt-done .crcw-mt-act-text, tr.crcw-mt-done input[type=text] { text-decoration: line-through; color: #8a96a3; }
.crcw-mt-who { background: #e2f1f4; color: #1f5f6b; padding: 0 7px; border-radius: 9px; font-size: 12px; }
.crcw-mt-due { font-size: 12px; color: #5b6673; }
.crcw-mt-late { color: #b3413b; font-weight: 600; }
.crcw-mt-headedit { margin: 0 0 12px; }
.crcw-mt-headedit summary { cursor: pointer; color: var(--blue-dark); font-size: 14px; }
.crcw-mt-heading { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; border-bottom: 2px solid var(--navy); padding-bottom: 4px; }
.crcw-mt-heading h3 { margin: 0; font-size: 18px; }
.crcw-mt-headinput { flex: 1; font-size: 18px !important; font-weight: 700; border: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 !important; padding: 2px 0 !important; color: var(--navy); }
.crcw-mt-item { margin-bottom: 10px; }
.crcw-mt-closed { opacity: .7; }
.crcw-mt-itemhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.crcw-mt-itemhead h4 { margin: 0; font-size: 16px; }
.crcw-mt-n { flex: 0 0 26px; height: 26px; border-radius: 13px; background: var(--navy); color: #fff; text-align: center; line-height: 26px; font-size: 13px; font-weight: 700; }
.crcw-mt-title { flex: 1; font-weight: 700; font-size: 16px !important; margin: 0 !important; }
.crcw-mt-tools { display: inline-flex; gap: 3px; margin-left: auto; }
.crcw-mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.crcw-mt-grid label { margin: 0; font-size: 13px; font-weight: 600; color: #4d5b66; }
.crcw-mt-grid textarea { width: 100%; box-sizing: border-box; margin: 3px 0 0; font-weight: normal; }
.crcw-mt-desc { color: #4d5b66; }
.crcw-mt-minutes { background: #f7f9fb; border-left: 3px solid var(--teal); padding: 6px 10px; margin: 6px 0; }
.crcw-mt-hist { margin: 6px 0; font-size: 13px; }
.crcw-mt-hist summary { cursor: pointer; color: var(--blue-dark); }
.crcw-mt-acts-edit { margin-top: 8px; }
.crcw-mt-acttable { width: 100%; margin-top: 3px; }
.crcw-mt-acttable td { padding: 2px 6px 2px 0; vertical-align: middle; }
.crcw-mt-acttable td:first-child { width: 22px; }
.crcw-mt-acttable input[type=text] { width: 100%; box-sizing: border-box; margin: 0; }
.crcw-mt-acttable select { width: 160px; margin: 0; }
.crcw-mt-acttable input[type=date] { width: 140px; margin: 0; }
.crcw-mt-newact input[type=text] { border-style: dashed; }
.crcw-mt-itemfoot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0ece4; }
.crcw-mt-itemfoot select { margin: 0 0 0 4px; width: auto; max-width: 220px; }
.crcw-mt-status { margin: 0; font-size: 13px; display: flex; gap: 5px; align-items: center; }
.crcw-mt-status input { margin: 0; }
.crcw-mt-bar { position: sticky; bottom: 10px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: inline-flex; gap: 6px; }
.crcw-mt-cat { background: var(--paper); }
@media (max-width: 767px) { .crcw-mt-cols, .crcw-mt-grid { grid-template-columns: 1fr; } .crcw-mt-acttable td { display: block; } .crcw-mt-acttable select, .crcw-mt-acttable input[type=date] { width: 100%; } }
@media print { .crcw-mt-tools, .crcw-mt-bar, .no-print, #jethro-nav, .crcw-footer { display: none !important; } .crcw-mt-item { break-inside: avoid; border: 1px solid #ccc; } }
.crcw-mt { max-width: 900px; }
.crcw-mt .crcw-card { max-width: none; }

/* Elders' dashboard (README 61) */
.crcw-el { max-width: 980px; }
.crcw-el .crcw-card { max-width: none; margin-bottom: 16px; }
a.crcw-el-jump, a.crcw-el-jump * { text-decoration: none !important; }
.crcw-el .crcw-tr-cards { margin-bottom: 14px; }
a.crcw-el-jump { display: block; color: inherit; text-decoration: none; }
a.crcw-el-jump:hover { border-color: #72bdcc; text-decoration: none; }
.crcw-el-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.crcw-el-head h3 { margin: 0; }
.crcw-el-head select { margin: 0; width: auto; }
.crcw-el-table td { vertical-align: top; }
.crcw-el-table tr.crcw-el-away td { background: #fdf1ef; }
.crcw-el-red { color: #b4443f; }
.crcw-el-list li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.crcw-el-list li:last-child { border-bottom: 0; }
.crcw-el-cols { columns: 2 320px; column-gap: 24px; }
.crcw-el-cols li { break-inside: avoid; }
.crcw-badge-warn { background: #fbeed9; color: #9a6410; }
@media (max-width: 640px) { .crcw-el-table th:nth-child(3), .crcw-el-table td:nth-child(3) { display: none; } }

/* ---------- Sister sites (README 62): same layout, own colours and name ---------- */
html.crcw-site-meetings {
	--navy: #1f4f55; --navy-deep: #163b40; --teal: #e0a54b; --teal-light: #f1cf96; --sand: #f3f0e6; --blue: #2f7480; --blue-dark: #245b64;
}
html.crcw-site-elders {
	--navy: #4a2f4f; --navy-deep: #36223a; --teal: #c9a24d; --teal-light: #e6cf98; --sand: #f5eff3; --blue: #6d4a74; --blue-dark: #553a5b;
}
html.crcw-site #jethro-nav-toprow .brand, html.crcw-site #jethro-public #jethro-nav-toprow h1 { position: relative; overflow: visible !important; }
html.crcw-site #jethro-nav-toprow .brand::after, html.crcw-site #jethro-public #jethro-nav-toprow h1::after {
	position: absolute; left: 172px; top: 50%; transform: translateY(-50%);
	padding: 3px 10px; border-radius: 999px; background: var(--teal); color: var(--navy-deep); text-indent: 0; display: block; width: auto; height: auto;
	font: 700 14px/1.3 var(--sans); letter-spacing: .02em; white-space: nowrap;
}
html.crcw-site-meetings #jethro-nav-toprow .brand::after, html.crcw-site-meetings #jethro-public #jethro-nav-toprow h1::after { content: "Meetings"; }
html.crcw-site-elders #jethro-nav-toprow .brand::after, html.crcw-site-elders #jethro-public #jethro-nav-toprow h1::after { content: "Elders"; }
.crcw-site-switch > a { opacity: .95; }
@media (min-width: 900px) { .navbar .nav > li.crcw-site-switch { float: right; } }

/* Meetings, part 2 (README 63): sections, standing items, blocks, decisions, links, confidential, sign-off */
.crcw-mt-roles { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.crcw-mt-roles b { color: var(--ink); font-weight: 600; }
.crcw-mt-heading h3 { letter-spacing: .04em; }
.crcw-mt-reminder { font-size: 13px; color: var(--muted); background: var(--sand); border-radius: 8px; padding: 6px 10px; margin: 4px 0 10px; }
.crcw-mt-reminder a { color: var(--blue-dark); }
.crcw-mt-sub { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; border-bottom: 1px dashed var(--line); }
.crcw-mt-sub h4 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.crcw-mt-subinput { font-weight: 600; flex: 1; margin: 0 0 4px !important; }
.crcw-mt-standing { border-left: 4px solid var(--teal) !important; padding-top: 8px !important; }
.crcw-mt-block { border-left: 4px solid #b9c6d2 !important; background: #fcfcfa; }
.crcw-mt-block h4, .crcw-mt-standing h4 { margin: 0; }
.crcw-mt-block-decisions { border-left-color: #6fae7e !important; }
.crcw-mt-decisions { margin: 4px 0 0 18px; }
.crcw-mt-decided { margin: 6px 0; padding: 6px 10px; background: #eef7f0; border-radius: 8px; font-size: 14px; }
.crcw-mt-decision textarea { width: 100%; min-height: 34px; }
.crcw-mt-decision { display: block; font-size: 13px; margin-top: 6px; }
.crcw-mt-links { margin: 6px 0; }
.crcw-mt-chip { display: inline-block; font-size: 13px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; margin: 2px 4px 2px 0; }
.crcw-mt-x { border: 0; background: none; color: #b4443f; padding: 0 2px; }
.crcw-mt-small-edit { margin: 6px 0; font-size: 13px; }
.crcw-mt-small-edit > summary { cursor: pointer; color: var(--muted); }
.crcw-mt-small-edit textarea { width: 100%; }
.crcw-mt-conf { border-left: 4px solid #8a5a8f !important; }
.crcw-badge-conf { background: #f1e6f2; color: #6d3f73; }
.crcw-mt-confhidden { color: var(--muted); font-style: italic; }
.crcw-mt-conflabel { color: #6d3f73; }
.crcw-mt-all { background: #fbeed9 !important; color: #9a6410 !important; }
.crcw-mt-lead { margin-left: 6px; }
.crcw-mt-mins { width: 56px !important; }
.crcw-mt-addhere { margin: -4px 0 8px; }
.crcw-mt-att td { padding: 2px 14px 2px 0; }
.crcw-mt-att label { display: inline; }
.crcw-mt-accept { font-weight: 600; margin: 6px 0; }
.crcw-mt-corr { margin: 2px 0 8px 18px; }
.crcw-mt-corr li { margin: 3px 0; }
.crcw-mt-corrhead { font-weight: 700; margin: 8px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.crcw-mt-rolerow select { width: auto; max-width: 200px; }
.crcw-mt-barright { float: right; }
.crcw-mt-lockbar { background: #eef7f0; border: 1px solid #cfe5d5; border-radius: 8px; padding: 8px 12px; margin: 8px 0 12px; }
.crcw-mt-signoff { border-left: 4px solid #6fae7e !important; }
.crcw-mt-sigs th { text-align: left; padding: 6px 18px 6px 0; vertical-align: top; white-space: nowrap; }
.crcw-mt-sigs td { padding: 6px 0; }
.crcw-mt-signed { color: #3c7a4c; }
.crcw-mt-sigline { margin-top: 18px; }
.print-only { display: none; }
@media print { .print-only { display: block; } .crcw-mt-reminder { background: none; padding: 0; } }
.crcw-mt-finalbar { margin: 12px 0; }
.crcw-mt-search { margin: 0 0 12px; display: flex; gap: 6px; }
.crcw-mt-search input { margin: 0 !important; max-width: 360px; }
.crcw-mt-suggest input, .crcw-mt-suggest textarea { width: 100%; }
.crcw-mt-teamlinks .btn { margin: 0 4px 6px 0; }
.crcw-mt-letterform input[type=text], .crcw-mt-letterform input[type=url], .crcw-mt-letterform textarea { width: 100%; }
.crcw-mt-wide { flex: 2; }
.crcw-mt-results li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Elders, part 2 */
.crcw-el-tabs { margin-bottom: 14px; }
.crcw-el-person h2 { margin-top: 0; }
.crcw-el-assign { margin: 8px 0 0; }
.crcw-el-assign select { width: auto; max-width: 320px; margin: 0; }
.crcw-el-noteform textarea { width: 100%; }
.crcw-el-noteform .crcw-el-fu { display: none; }
.crcw-el-noteform.kind-followup .crcw-el-fu { display: inline-block; }
.crcw-el-notes li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.crcw-el-bar { display: inline-block; width: 80px; height: 8px; background: #eee6ec; border-radius: 4px; vertical-align: middle; overflow: hidden; }
.crcw-el-bar span { display: block; height: 100%; background: #6fae7e; }
.crcw-mt-standing textarea, .crcw-mt-block textarea { width: 100%; box-sizing: border-box; }

/* Actions: tick with a note, progress notes (README 63) */
details.crcw-act-done { display: inline-block; vertical-align: top; }
details.crcw-act-done > summary { list-style: none; display: inline-block; cursor: pointer; }
details.crcw-act-done > summary::-webkit-details-marker { display: none; }
details.crcw-act-done[open] { display: block; }
.crcw-act-doneform { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.crcw-act-doneform input[type=text] { flex: 1; min-width: 200px; margin: 0 !important; }
.crcw-el-acts > li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.crcw-el-actmeta { margin-left: 30px; }
.crcw-el-actnotes { margin: 4px 0 0 30px; padding: 4px 8px; background: var(--sand); border-radius: 6px; }
.crcw-el-addnote { margin-left: 30px; }
.crcw-el-addnote > summary { cursor: pointer; color: var(--blue-dark); }
.crcw-mt-acts .crcw-el-actnotes { margin-left: 30px; }

/* Meeting page, cleaner (2026-11-30): reading view by default, contents list beside it, quieter editing */
.crcw-mt-wide-page { max-width: 1180px; font-size: 15px; }
.crcw-mt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: start; }
.crcw-mt-main { grid-column: 1; grid-row: 1; min-width: 0; }
.crcw-mt-toc { grid-column: 2; grid-row: 1; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.crcw-mt-toc ol { list-style: none; margin: 6px 0 0; padding: 0; }
.crcw-mt-toc li { margin: 0; }
.crcw-mt-toc a { display: block; padding: 2px 0; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crcw-mt-toc a:hover { color: var(--blue-dark); text-decoration: underline; }
.crcw-mt-toc .crcw-mt-toc-heading { margin-top: 8px; }
.crcw-mt-toc-h { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--navy); }
.crcw-mt-toc .crcw-mt-toc-item a, .crcw-mt-toc .crcw-mt-toc-block a, .crcw-mt-toc .crcw-mt-toc-standing a { padding-left: 8px; }
.crcw-mt-toc .crcw-mt-toc-block a, .crcw-mt-toc .crcw-mt-toc-standing a { color: var(--muted); }
@media (max-width: 1099px) { .crcw-mt-layout { display: block; } .crcw-mt-toc { display: none; } }
.crcw-mt-wide-page [id^="i"], #actsummary, #signoff { scroll-margin-top: 12px; }
.crcw-mt-back { margin: 0 0 4px; }
.crcw-mt-head { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.crcw-mt-head .crcw-mt-when { margin-bottom: 4px; font-size: 15px; }
.crcw-mt-roles { font-size: 14px; }
.crcw-mt-toolbar { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crcw-mt-wide-page .crcw-mt-heading { background: var(--navy); border: 0; border-radius: 8px; padding: 7px 12px; margin: 26px 0 10px; }
.crcw-mt-wide-page .crcw-mt-heading h3, .crcw-mt-wide-page .crcw-mt-headinput { color: #fff !important; font-size: 16px !important; letter-spacing: .05em; }
.crcw-mt-wide-page .crcw-mt-heading .btn-mini { background: rgba(255,255,255,.85); }
.crcw-mt-wide-page .crcw-mt-item, .crcw-mt-wide-page .crcw-mt-block, .crcw-mt-wide-page .crcw-mt-standing { padding: 14px 16px; margin-bottom: 12px; }
.crcw-mt-wide-page .crcw-mt-itemhead h4 { font-size: 17px; }
.crcw-mt-wide-page .crcw-mt-desc { color: var(--ink); line-height: 1.5; margin: 2px 0 6px; }
.crcw-mt-lbl { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 3px; }
.crcw-mt-minutes .crcw-mt-lbl { margin-top: 0; }
/* editing: quieter controls */
.crcw-mt-title, .crcw-mt-subinput { border: 1px solid transparent !important; background: transparent !important; box-shadow: none !important; padding: 3px 6px !important; }
.crcw-mt-title:hover, .crcw-mt-title:focus, .crcw-mt-subinput:hover, .crcw-mt-subinput:focus { border-color: var(--line) !important; background: #fff !important; }
.crcw-mt-subinput { font-size: 15px !important; color: var(--navy); }
.crcw-mt-tools { opacity: .35; transition: opacity .15s; }
.crcw-mt-heading:hover .crcw-mt-tools, .crcw-mt-sub:hover .crcw-mt-tools, .crcw-card:hover > .crcw-mt-itemhead .crcw-mt-tools, .crcw-mt-tools:focus-within { opacity: 1; }
.crcw-mt-wide-page .crcw-mt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.crcw-mt-wide-page .crcw-mt-grid label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.crcw-mt-wide-page .crcw-mt-grid label .muted { text-transform: none; letter-spacing: 0; font-weight: normal; }
.crcw-mt-wide-page textarea, .crcw-mt-wide-page input[type=text] { font-size: 15px; }
textarea.crcw-grow { resize: vertical; overflow: hidden; min-height: 38px; }
.crcw-mt-decbox, .crcw-mt-more { margin: 8px 0 0; }
.crcw-mt-decbox > summary, .crcw-mt-more > summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; }
.crcw-mt-decbox[open] > summary { color: #3c7a4c; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.crcw-mt-decbox textarea { width: 100%; box-sizing: border-box; margin: 3px 0 0; background: #f3faf5; }
.crcw-mt-wide-page .crcw-mt-itemfoot { justify-content: space-between; align-items: flex-start; }
.crcw-mt-more { flex: 1; min-width: 260px; margin: 0; }
.crcw-mt-more > summary .muted { color: var(--muted); }
.crcw-mt-morebody { margin-top: 8px; padding: 10px 12px; background: var(--paper); border-radius: 8px; font-size: 13px; }
.crcw-mt-morebody textarea { width: 100%; box-sizing: border-box; }
.crcw-mt-morebody label { display: block; margin: 0 0 8px; }
.crcw-mt-morerow { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.crcw-mt-morerow label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.crcw-mt-morerow select { margin: 0; width: auto; max-width: 220px; }
.crcw-mt-wide-page .crcw-mt-status { white-space: nowrap; color: var(--muted); }
.crcw-mt-acttable td.crcw-mt-acttext { width: 100%; }
.crcw-mt-acttable input[type=text] { border-color: var(--line); }
.crcw-mt-newact input[type=text], .crcw-mt-newact select, .crcw-mt-newact input[type=date] { opacity: .75; }
.crcw-mt-newact:focus-within input, .crcw-mt-newact:focus-within select { opacity: 1; }
.crcw-mt-barsep { display: inline-block; width: 1px; background: var(--line); margin: 0 4px; }
.crcw-mt-wide-page .crcw-mt-bar { display: flex; flex-wrap: wrap; align-items: center; max-width: 100%; box-sizing: border-box; }
.crcw-mt-teamcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.crcw-mt-teamcols > div > .crcw-card + .crcw-card { margin-top: 12px; }
@media (max-width: 767px) { .crcw-mt-teamcols { grid-template-columns: 1fr; } }
.crcw-mt-people li { padding: 4px 0; }

/* Days away: one bar across the days (the name where it starts and at the start of each week), one line per stretch in the list */
@media (min-width: 768px) {
	.crcw-cal-bar { border-radius: 0; margin-left: -5px; margin-right: -6px; padding-left: 10px; }
	.crcw-cal-bar.crcw-cal-bar-start { margin-left: 0; padding-left: 5px; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
	.crcw-cal-bar.crcw-cal-bar-end { margin-right: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
}
.crcw-cal-agenda-away .crcw-cal-agenda-date { min-width: 9em; }

/* Meetings, part 3 (2026-12-01, README 64): lighter page, where-we're-up-to, Meeting mode, letters, sign-off, register */
/* lighter: items are rows with a line between them, not boxes in boxes; softer section headings */
.crcw-mt-wide-page .crcw-mt-heading { background: transparent; border-bottom: 2px solid var(--navy); border-radius: 0; padding: 4px 2px; margin: 30px 0 6px; }
.crcw-mt-wide-page .crcw-mt-heading h3, .crcw-mt-wide-page .crcw-mt-headinput { color: var(--navy) !important; }
.crcw-mt-wide-page .crcw-mt-heading .btn-mini { background: #fff; }
.crcw-mt-wide-page .crcw-mt-item, .crcw-mt-wide-page .crcw-mt-block, .crcw-mt-wide-page .crcw-mt-standing { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; padding: 14px 4px; margin: 0; }
.crcw-mt-wide-page .crcw-mt-item.crcw-mt-conf { background: #fbf7ff; border-left: 3px solid #8d6cc4; padding-left: 12px; }
.crcw-mt-wide-page .crcw-mt-item.crcw-mt-closed { opacity: .8; }
.crcw-mt-wide-page .crcw-mt-sub { margin: 14px 0 0; }
.crcw-mt-wide-page form .crcw-mt-item, .crcw-mt-wide-page form .crcw-mt-block, .crcw-mt-wide-page form .crcw-mt-standing { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; }
/* where we're up to */
.crcw-mt-progress { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: -6px 0 16px; }
.crcw-mt-steps { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.crcw-mt-steps li { flex: 1; min-width: 120px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 3px solid var(--line); }
.crcw-mt-steps li span { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }
.crcw-mt-steps li.done { color: #3c7a4c; border-color: #6fae7e; }
.crcw-mt-steps li.done span { background: #6fae7e; }
.crcw-mt-steps li.now { color: var(--ink); font-weight: 600; border-color: var(--blue-dark); }
.crcw-mt-steps li.now span { background: var(--blue-dark); }
.crcw-mt-next { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper); border-radius: 8px; padding: 10px 12px; }
.crcw-mt-next p { margin: 2px 0 0; font-size: 14px; }
.crcw-mt-next form.crcw-inline { margin: 0; }
.crcw-mt-ok { color: #3c7a4c; }
/* minutes guide */
.crcw-mt-guide { position: relative; background: #fffbea; border: 1px solid #ecd98a; border-radius: 10px; padding: 10px 16px; margin: -6px 0 14px; font-size: 14px; }
.crcw-mt-guide .close { position: absolute; right: 10px; top: 6px; }
.crcw-mt-guide ul { margin: 4px 0 6px 18px; }
.crcw-mt-guide li { margin: 3px 0; }
/* saved note */
.crcw-mt-saved { font-size: 13px; color: #3c7a4c; margin: 0 8px; min-width: 6em; }
.crcw-mt-saved.bad { color: #b3261e; font-weight: 600; }
/* attendance: tap buttons */
.crcw-mt-att td { padding: 3px 4px; }
.crcw-mt-att label { display: inline-block; margin: 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.crcw-mt-att label input { position: absolute; opacity: 0; pointer-events: none; }
.crcw-mt-att label:has(input[value=present]:checked) { background: #e6f3e9; border-color: #6fae7e; color: #2f6a3d; font-weight: 600; }
.crcw-mt-att label:has(input[value=apology]:checked) { background: #fdf1dc; border-color: #d9a441; color: #8a5a00; font-weight: 600; }
.crcw-mt-att label:has(input[value=""]:checked) { background: var(--paper); }
.crcw-mt-att label:focus-within { outline: 2px solid var(--blue-dark); }
/* motions */
.crcw-mt-motion { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13px; margin-top: 6px; }
.crcw-mt-motion label { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.crcw-mt-motion select { width: auto; margin: 0; }
.crcw-mt-motiontext { font-size: 13px; color: #3c7a4c; font-style: italic; margin-top: 2px; }
/* contents list: folding and the current part */
.crcw-mt-toc a.on { color: var(--blue-dark); font-weight: 700; }
.crcw-mt-toc-fold { display: flex; align-items: center; gap: 4px; }
.crcw-mt-toc-fold a { flex: 1; min-width: 0; }
.crcw-mt-toc-tog { border: 0; background: transparent; color: var(--muted); width: 16px; padding: 0; font-weight: 700; cursor: pointer; }
.crcw-mt-toc [data-toc-all] { float: right; padding: 0; font-size: 12px; }
/* Meeting mode: only the current part, bigger, with a bar at the bottom */
body.crcw-mt-live #mt-form > :not(.crcw-mt-current):not(.crcw-mt-bar) { display: none !important; }
body.crcw-mt-live .crcw-mt-head, body.crcw-mt-live .crcw-mt-back, body.crcw-mt-live .crcw-mt-summary, body.crcw-mt-live .crcw-mt-delete, body.crcw-mt-live .crcw-mt-guide:not([hidden]) ~ .x { display: none; }
body.crcw-mt-live .crcw-mt-current { font-size: 17px; padding: 20px 22px !important; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
body.crcw-mt-live .crcw-mt-current textarea, body.crcw-mt-live .crcw-mt-current input[type=text] { font-size: 17px; }
body.crcw-mt-live .crcw-mt-current textarea[name$="[minutes]"] { min-height: 160px; }
body.crcw-mt-live .crcw-mt-bar { position: static; }
body.crcw-mt-live { padding-bottom: 90px; }
.crcw-mt-livebar { display: none; }
body.crcw-mt-live .crcw-mt-livebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; gap: 10px; align-items: center; padding: 10px 16px; background: var(--navy); color: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.15); }
.crcw-mt-livewhere { flex: 1; min-width: 0; }
.crcw-mt-livewhere small { display: block; opacity: .75; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crcw-mt-livewhere b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crcw-mt-clock { text-align: center; font-variant-numeric: tabular-nums; }
.crcw-mt-clock span { font-size: 22px; font-weight: 700; }
.crcw-mt-clock span.near { color: #ffd36b; }
.crcw-mt-clock span.over { color: #ff8f86; }
.crcw-mt-clock small { opacity: .75; font-size: 12px; }
.crcw-mt-clockall { border-left: 1px solid rgba(255,255,255,.25); padding-left: 10px; }
.crcw-mt-clockall small { display: block; }
.crcw-mt-clockall span { font-size: 16px; }
.crcw-mt-livebar .btn-link { color: #fff; }
@media (max-width: 767px) {
	body.crcw-mt-live .crcw-mt-livebar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
	.crcw-mt-livewhere { order: -1; flex-basis: 100%; }
	.crcw-mt-clockall { display: none; }
	body.crcw-mt-live { padding-bottom: 120px; }
}
/* letters */
.crcw-mt-cnum { display: inline-block; min-width: 26px; padding: 0 5px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.crcw-mt-letter { margin: 6px 0; }
.crcw-mt-letter.crcw-mt-dealt > b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.crcw-mt-dealtbox { display: inline-flex; gap: 3px; align-items: center; font-size: 12px; color: var(--muted); margin: 0 6px 0 0; }
.crcw-mt-letterbody > summary { cursor: pointer; font-size: 13px; color: var(--blue-dark); }
.crcw-mt-letterbody > div { max-height: 360px; overflow: auto; background: var(--paper); border-radius: 6px; padding: 8px 10px; font-size: 13px; margin-top: 4px; }
.crcw-mt-tosortnote { background: #fdf1dc; border-radius: 6px; padding: 6px 10px; }
.crcw-mt-sortlist > li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.crcw-mt-sorthead input[type=text] { width: 60%; min-width: 240px; font-weight: 600; margin: 0 6px 0 0; }
.crcw-mt-sortbtns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.crcw-mt-sortbtns label { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 2px 10px; margin: 0; font-size: 13px; cursor: pointer; }
.crcw-mt-sortbtns label:has(input:checked) { background: #e8f1fb; border-color: var(--blue-dark); }
.crcw-mt-pack { max-width: 820px; }
.crcw-mt-packletter { border-top: 2px solid var(--navy); margin-top: 20px; padding-top: 8px; page-break-before: always; }
.crcw-mt-packbody { white-space: normal; line-height: 1.5; }
/* sign-off */
.crcw-mt-sigimg { height: 44px; vertical-align: middle; background: #fff; }
.crcw-mt-sigpad canvas { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 520 / 150; border: 1px dashed var(--line); border-radius: 8px; background: #fff; touch-action: none; margin: 6px 0; }
.crcw-mt-sigpad > summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; }
.crcw-mt-tosign { border-left: 4px solid #d9a441; }
/* register */
.crcw-mt-decfilter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.crcw-mt-decfilter input[type=search] { min-width: 260px; margin: 0; }
.crcw-mt-decfilter select { width: auto; margin: 0; }
.crcw-mt-register mark { background: #fff1a8; padding: 0; }
.crcw-mt-settings label { display: block; }
.crcw-mt-settings input[type=url] { width: 100%; box-sizing: border-box; }
@media (max-width: 767px) {
	.crcw-mt-wide-page .crcw-mt-grid { grid-template-columns: 1fr; }
	.crcw-mt-steps li { min-width: 0; font-size: 12px; }
	.crcw-mt-steps li span { display: none; }
	.crcw-mt-sorthead input[type=text] { width: 100%; min-width: 0; }
}
/* pastoral contact: up to date / due / overdue (Meetings › Settings sets the days) */
.crcw-el-contact { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.crcw-el-contact-ok { background: #e6f3e9; color: #2f6a3d; }
.crcw-el-contact-due { background: #fdf1dc; color: #8a5a00; }
.crcw-el-contact-overdue, .crcw-el-contact-none { background: #fbe5e3; color: #a2271d; }
.crcw-mt-guide[hidden] { display: none; }
/* My meetings (home) and meetings on the calendars (README 64) */
.crcw-home-meet { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crcw-home-meet:last-child { border-bottom: 0; }
.crcw-home-meet > div:nth-child(2) { flex: 1; min-width: 0; }
.crcw-home-meetdate { width: 56px; text-align: center; font-weight: 700; line-height: 1.1; color: var(--navy); }
.crcw-home-meetdate small { display: block; font-weight: 400; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.crcw-cal-meet { background: #efe8f7; color: #5b3e8c; border-color: #cdb9ea; }
.crcw-badge.crcw-cal-meet { background: #efe8f7; color: #5b3e8c; }
.crcw-mini-meet { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #7a57b5; margin: 0 1px; vertical-align: middle; }
.crcw-mt-livebar { justify-content: center; }
.crcw-mt-livewhere { max-width: 620px; }
/* tick-off: the note box opens as a small pop-up under the tick, so the action line keeps its shape (2026-12-01) */
details.crcw-act-done, details.crcw-act-done[open] { display: inline-block; position: relative; }
details.crcw-act-done[open] > .crcw-act-doneform { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 340px; max-width: calc(100vw - 40px); margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
details.crcw-act-done[open] > summary { background: #e6f3e9; border-color: #6fae7e; }
.crcw-mt-notelink { margin-left: auto; font-size: 13px; opacity: .55; white-space: nowrap; }
.crcw-card:hover .crcw-mt-notelink, .crcw-mt-item:hover .crcw-mt-notelink, .crcw-mt-notelink:focus { opacity: 1; }
@media (hover: none) { .crcw-mt-notelink { opacity: .85; } }
/* my / our meetings on the church calendar */
.crcw-cc-item.crcw-cc-ours { box-shadow: 0 0 0 2px #2b3a4f inset; font-weight: 600; }
.crcw-cc-star { color: #fff; }
.crcw-cc-ourskey { border: 2px solid #2b3a4f; background: #fff; color: #2b3a4f; font-weight: 600; }

/* Phone check of the meetings and elders sites (2026-12-01) */
.crcw-mt-act-text { flex: 1 1 220px; min-width: 0; }
.crcw-mt-act > .crcw-mt-act-text ~ * { margin-left: 0; }
@media (max-width: 767px) {
	html.crcw-site #jethro-nav-toprow .brand::after { display: none; }
	.crcw-mt-toolbar { gap: 4px; }
	.crcw-mt-toolbar .btn { padding: 4px 8px; font-size: 13px; }
	.crcw-mt-toolbar .btn-primary { flex-basis: 100%; }
	.crcw-mt-wide-page .crcw-mt-bar { position: static; padding: 8px; gap: 4px; }
	.crcw-mt-wide-page .crcw-mt-bar .btn { padding: 4px 8px; }
	.crcw-mt-barsep { display: none; }
	.crcw-mt-itemhead { flex-wrap: wrap; }
	.crcw-mt-tools { margin-left: auto; }
	.crcw-mt-acttable, .crcw-mt-acttable tbody, .crcw-mt-acttable tr { display: block; width: 100%; }
	.crcw-mt-acttable tr { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0; border-bottom: 1px solid var(--line); }
	.crcw-mt-acttable td { display: block; padding: 0; }
	.crcw-mt-acttable td.crcw-mt-acttext { flex: 1 1 calc(100% - 40px); }
	.crcw-mt-acttable input[type=date], .crcw-mt-acttable select { width: auto; max-width: 48vw; margin: 0; }
	.crcw-mt-progress { padding: 10px; }
	.crcw-mt-next .crcw-mt-nextbtn { width: 100%; }
	.crcw-mt-head { padding: 12px; }
	.crcw-mt-sigs th { display: block; }
}

/* Prayer requests, My groups, Who serves (README 65) */
.crcw-pr-tabs { margin-bottom: 14px; }
.crcw-pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.crcw-pr-card { border-left: 4px solid #8d6cc4; margin-bottom: 12px; }
.crcw-pr-grid .crcw-pr-card { margin: 0; }
.crcw-pr-card.crcw-pr-answered { border-left-color: #6fae7e; background: #f6fbf7; }
.crcw-pr-card.crcw-pr-waiting { border-left-color: #d9a441; }
.crcw-pr-card.crcw-pr-closed { opacity: .7; border-left-color: var(--line); }
.crcw-pr-head { margin-bottom: 6px; }
.crcw-pr-text { line-height: 1.5; }
.crcw-pr-answer { margin-top: 8px; padding: 6px 10px; background: #eef6f0; border-radius: 6px; font-size: 14px; }
.crcw-pr-acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crcw-pr-acts form { margin: 0; }
.crcw-pr-did { color: #3c7a4c; font-weight: 600; font-size: 14px; }
.crcw-pr-upd { margin-top: 8px; }
.crcw-pr-upd > summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; }
.crcw-pr-upd textarea, .crcw-pr-new textarea, .crcw-pr-new input[type=text] { width: 100%; box-sizing: border-box; }
.crcw-pr-new { max-width: 640px; }
.crcw-pr-new label { display: block; margin-bottom: 8px; }
.crcw-pr-new label.radio, .crcw-pr-new label.checkbox { margin-left: 4px; }
.crcw-mg h2 { margin-top: 0; }
.crcw-mg-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.crcw-mg-care { border-left: 4px solid #d9a441; }
.crcw-ws-form { margin-bottom: 12px; }
.crcw-ws-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.crcw-ws-sum .crcw-card { margin: 0; }
.crcw-ws-sum b { display: block; font-size: 26px; color: var(--navy); }
.crcw-ws-sum span { color: var(--muted); font-size: 13px; }
.crcw-ws-table .num { text-align: right; width: 7em; }
.crcw-ws-hot td { background: #fdf1dc; }
.crcw-ws-free { columns: 3 220px; }
@media (max-width: 767px) {
	.crcw-mg-table thead { display: none; }
	.crcw-mg-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
	.crcw-mg-table td { display: block; border: 0 !important; padding: 1px 0 !important; }
}

/* Actions: clear rows and status labels (README 65) */
.crcw-act-chip { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; vertical-align: middle; }
.crcw-act-chip-open { background: #e8f1fb; color: #2c5a8a; }
.crcw-act-chip-due { background: #fdf1dc; color: #8a5a00; }
.crcw-act-chip-late { background: #fbe5e3; color: #a2271d; }
.crcw-act-chip-done { background: #e6f3e9; color: #2f6a3d; }
.crcw-act-list { margin: 0 0 14px; }
.crcw-act-head, .crcw-act-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 140px 92px; gap: 4px 12px; align-items: start; }
.crcw-act-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 0 4px; border-bottom: 1px solid var(--line); }
.crcw-act-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.crcw-act-row:last-child { border-bottom: 0; }
.crcw-act-text { font-size: 15px; line-height: 1.35; }
.crcw-act-isdone .crcw-act-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.crcw-act-islate { background: linear-gradient(90deg, #fdf4f3, transparent 60%); }
.crcw-act-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.crcw-act-meta a { color: var(--muted); }
.crcw-act-statuscol { padding-top: 2px; }
.crcw-act-toolcol { text-align: right; }
.crcw-act-notes { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); font-size: 13px; }
.crcw-act-notes li { margin: 2px 0; }
.crcw-act-notewhen { color: var(--muted); font-size: 12px; }
details.crcw-act-notepop > summary { list-style: none; }
details.crcw-act-notepop > summary::-webkit-details-marker { display: none; }
details.crcw-act-notepop[open] > .crcw-act-doneform { left: auto; right: 0; }
details.crcw-act-notepop[open] > summary { background: #e8f1fb; border-color: #9bbbe0; }
.crcw-act-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0 10px; }
.crcw-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.crcw-seg a { padding: 4px 12px; font-size: 13px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); background: #fff; }
.crcw-seg a:last-child { border-right: 0; }
.crcw-seg a.on { background: var(--navy); color: #fff; font-weight: 600; }
@media (max-width: 767px) {
	.crcw-act-head { display: none; }
	.crcw-act-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
	.crcw-act-statuscol { grid-column: 2; grid-row: 2; }
	.crcw-act-toolcol { grid-column: 3; grid-row: 1 / span 2; }
}
.crcw-seg a.on, .crcw-seg a.on:hover, .crcw-seg a.on:visited { color: #fff !important; text-decoration: none; }
.crcw-seg a:not(.on) { text-decoration: none !important; }

/* ---- Meetings: lighter meeting page (README 66) ---------------------------------------------------- */
.crcw-mt-h .crcw-mt-hwhen { font-weight: 400; color: var(--muted); font-size: .8em; }
.crcw-mt-head { padding: 12px 16px; }
.crcw-mt-toolbar { align-items: center; margin-top: 10px; }
.crcw-mt-toolmore { margin-left: auto; color: var(--muted); }
.crcw-mt-toolmore a { color: var(--blue-dark); }
.crcw-mt-progress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 14px; margin: -8px 0 16px; }
.crcw-mt-progress .crcw-mt-steps { margin: 0; flex: 0 1 auto; gap: 4px; }
.crcw-mt-progress .crcw-mt-steps li { flex: 0 0 auto; min-width: 0; border-top: 0; padding: 2px 8px 2px 0; font-size: 12px; }
.crcw-mt-progress .crcw-mt-steps li + li::before { content: '›'; color: var(--line); margin-right: 6px; font-weight: 400; }
.crcw-mt-progress .crcw-mt-steps li span { width: 17px; height: 17px; font-size: 10px; }
.crcw-mt-progress .crcw-mt-next { flex: 1 1 320px; background: transparent; padding: 0; font-size: 13px; }
.crcw-mt-progress .crcw-mt-next .btn-link { padding: 0 4px; font-size: 13px; }
.crcw-mt-wide-page .crcw-mt-heading h3, .crcw-mt-heading h3 { letter-spacing: 0; text-transform: none; }
.crcw-mt-toc-h { text-transform: none; letter-spacing: 0; font-size: 13px; }
.crcw-mt-toc a { text-decoration: none !important; }
.crcw-mt-toc-tog { font-size: 11px; }
.crcw-mt-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 13px; }
.crcw-mt-times label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.crcw-mt-times input[type=time] { width: 110px; margin: 0; }
.crcw-mt-times .btn-mini { margin-right: 12px; }
.crcw-mt-prevpick { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.crcw-mt-prevpick select { width: auto; max-width: 100%; margin: 0; }
.crcw-mt-decbox > summary { display: inline-block; list-style: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; background: #fff; font-size: 13px; color: var(--blue-dark); }
.crcw-mt-decbox > summary::-webkit-details-marker { display: none; }
.crcw-mt-decbox > summary:hover { border-color: var(--blue-dark); }
.crcw-mt-decbox[open] > summary { border: 0; background: transparent; padding: 0; }
.crcw-mt-quick { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.crcw-mt-acttable input[type=date].is-empty:not(:focus) { color: transparent; }
.crcw-mt-acttable input[type=date].is-empty:not(:focus)::-webkit-datetime-edit { color: transparent; }
[data-mt-allpresent] { margin: 6px 0 2px; }
.crcw-mt-mailinfo p { margin: 0 0 6px; }
.crcw-mt-mailframe { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@media (max-width: 700px) { .crcw-mt-toolmore { margin-left: 0; width: 100%; } .crcw-mt-progress .crcw-mt-steps li:not(.now) { display: none; } }

/* ---- Meetings: more contrast and room (README 66) --------------------------------------------------- */
body:has(.crcw-mt-wide-page) { background: color-mix(in srgb, var(--navy) 7%, #f6f6f7); }
.crcw-mt-wide-page { line-height: 1.55; }
.crcw-mt-wide-page .crcw-mt-head, .crcw-mt-wide-page .crcw-mt-progress, .crcw-mt-wide-page .crcw-mt-toc { border-color: color-mix(in srgb, var(--navy) 16%, #fff); box-shadow: 0 1px 3px rgba(20,20,30,.06); }
.crcw-mt-wide-page .crcw-mt-heading { border: 0 !important; padding: 0 0 0 12px !important; margin: 34px 0 12px !important; border-left: 5px solid var(--teal) !important; }
.crcw-mt-wide-page .crcw-mt-heading h3, .crcw-mt-wide-page .crcw-mt-headinput { font-size: 21px !important; color: var(--navy) !important; font-weight: 700; }
.crcw-mt-wide-page .crcw-mt-item, .crcw-mt-wide-page .crcw-mt-block, .crcw-mt-wide-page .crcw-mt-standing,
.crcw-mt-wide-page form .crcw-mt-item, .crcw-mt-wide-page form .crcw-mt-block, .crcw-mt-wide-page form .crcw-mt-standing {
	background: #fff; border: 1px solid color-mix(in srgb, var(--navy) 14%, #fff); border-radius: 12px; padding: 18px 22px; margin: 0 0 12px;
	box-shadow: 0 1px 3px rgba(20,20,30,.06);
}
.crcw-mt-wide-page .crcw-mt-standing { border-left: 5px solid var(--teal) !important; }
.crcw-mt-wide-page .crcw-mt-block { border-left: 5px solid color-mix(in srgb, var(--navy) 35%, #fff) !important; }
.crcw-mt-wide-page .crcw-mt-block-decisions { border-left-color: #6fae7e !important; }
.crcw-mt-wide-page .crcw-mt-item.crcw-mt-conf { background: #fbf8ff; border-left: 5px solid #8d6cc4 !important; padding-left: 22px; }
.crcw-mt-wide-page .crcw-mt-itemhead { margin-bottom: 8px; }
.crcw-mt-wide-page .crcw-mt-itemhead h4 { font-size: 18px; }
.crcw-mt-wide-page .crcw-mt-reminder { background: color-mix(in srgb, var(--navy) 6%, #fff); border: 1px solid color-mix(in srgb, var(--navy) 12%, #fff); color: var(--ink); padding: 10px 14px; border-radius: 10px; margin: 0 0 12px; }
.crcw-mt-wide-page .crcw-mt-sub { margin: 18px 0 8px; }
.crcw-mt-wide-page .crcw-mt-sub h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.crcw-mt-wide-page .crcw-mt-acts li { padding: 6px 0; border-top: 1px solid #f0edf2; }
.crcw-mt-wide-page .crcw-mt-acts li:first-child { border-top: 0; }
.crcw-mt-wide-page .crcw-mt-suggest, .crcw-mt-wide-page .crcw-mt-summary { border-radius: 12px; box-shadow: 0 1px 3px rgba(20,20,30,.06); }
.crcw-mt-wide-page .crcw-mt-layout { gap: 24px; }

/* Meeting mode: the current item stands out; the rest of the agenda stays below it, dimmed (scroll to see it) */
body.crcw-mt-live #mt-form > :not(.crcw-mt-current):not(.crcw-mt-bar) { display: revert !important; opacity: .45; }
body.crcw-mt-live #mt-form > .crcw-mt-heading, body.crcw-mt-live #mt-form > .crcw-mt-sub { opacity: .7; }
body.crcw-mt-live #mt-form > :not(.crcw-mt-current):not(.crcw-mt-bar):hover { opacity: .8; }
body.crcw-mt-live #mt-form > .crcw-mt-headedit, body.crcw-mt-live #mt-form > .crcw-mt-times { display: none !important; }
body.crcw-mt-live .crcw-mt-current { opacity: 1; outline: 3px solid var(--teal); outline-offset: 2px; scroll-margin-top: 16px; }
body.crcw-mt-live .crcw-mt-bar { position: sticky; }

/* ---- Meetings: Email the team (README 67) ---------------------------------------------------------- */
.crcw-mt-sendform { max-width: 820px; padding: 18px 22px; border-radius: 12px; }
.crcw-mt-sendrow { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 14px; align-items: start; margin: 0 0 14px; }
.crcw-mt-sendrow > b { padding-top: 6px; }
.crcw-mt-sendrow input[type=text], .crcw-mt-sendrow textarea { width: 100%; box-sizing: border-box; margin: 0; }
.crcw-mt-check { display: flex; gap: 8px; align-items: center; grid-template-columns: none; padding-left: 104px; }
.crcw-mt-check input { margin: 0; }
.crcw-mt-kind label { margin: 0; cursor: pointer; }
.crcw-mt-kind input { position: absolute; opacity: 0; pointer-events: none; }
.crcw-mt-tolist { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 5px; }
.crcw-mt-tolist label { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.crcw-mt-tolist label input { margin: 0; }
.crcw-mt-when2 { display: flex; flex-direction: column; gap: 6px; padding-top: 5px; }
.crcw-mt-when2 label { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crcw-mt-when2 input[type=date], .crcw-mt-when2 input[type=time] { margin: 0; width: auto; }
.crcw-mt-when2 input[type=radio] { margin: 0; }
.crcw-mt-sendbtns { display: flex; gap: 8px; justify-content: flex-end; }
.crcw-mt-maillist { max-width: 820px; border-radius: 12px; }
.crcw-mt-maillist li { padding: 5px 0; }
.crcw-mt-prevhead { margin: 24px 0 8px; font-size: 18px; }
@media (max-width: 700px) { .crcw-mt-sendrow { grid-template-columns: 1fr; } .crcw-mt-check { padding-left: 0; } }
.crcw-mt-kind input:checked + span { background: var(--navy); color: #fff !important; font-weight: 600; }

/* ---- Meetings on phones: no sideways scroll in the editor; actions as text + (who, date) (README 66) ---- */
@media (max-width: 700px) {
	.crcw-mt-wide-page .crcw-mt-item, .crcw-mt-wide-page .crcw-mt-block, .crcw-mt-wide-page .crcw-mt-standing,
	.crcw-mt-wide-page form .crcw-mt-item, .crcw-mt-wide-page form .crcw-mt-block, .crcw-mt-wide-page form .crcw-mt-standing { padding: 14px; }
	.crcw-mt-wide-page .crcw-mt-heading { flex-wrap: wrap; }
	.crcw-mt-wide-page .crcw-mt-headinput { min-width: 0; flex: 1 1 160px; }
	.crcw-mt-wide-page .crcw-mt-itemhead { flex-wrap: wrap; }
	.crcw-mt-wide-page .crcw-mt-itemhead .crcw-mt-title { min-width: 0; flex: 1 1 180px; }
	.crcw-mt-acttable, .crcw-mt-acttable tbody { display: block; width: 100%; }
	.crcw-mt-acttable tr { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 8px 0; border-bottom: 1px solid #f0edf2; }
	.crcw-mt-acttable td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
	.crcw-mt-acttable td:nth-child(2) { grid-column: 2 / -1; }
	.crcw-mt-acttable td:nth-child(3) { grid-column: 2; }
	.crcw-mt-acttable td:nth-child(4) { grid-column: 3; }
	.crcw-mt-acttable input[type=text], .crcw-mt-acttable select, .crcw-mt-acttable input[type=date] { width: 100% !important; max-width: 100%; box-sizing: border-box; margin: 0; }
	.crcw-mt-check { display: block; }
	.crcw-mt-check input { margin-right: 6px; }
	.crcw-mt-times input[type=time] { width: 100px; }
}
@media (max-width: 700px) {
	.crcw-mt-wide-page input[type=file] { max-width: 100%; width: 100%; box-sizing: border-box; }
	.crcw-mt-prevpick { flex-wrap: wrap; }
	.crcw-mt-prevpick select { min-width: 0; width: 100%; }
}

/* ---- Meetings: actions review, care snapshot, planning, tidy-up, drag (README 68) ---------------------- */
.crcw-mt-arv { margin: 8px 0 10px; }
.crcw-mt-arv > b { display: block; font-size: 14px; margin-bottom: 2px; }
.crcw-mt-arv li { padding: 4px 0; border-top: 1px solid #f0edf2; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.crcw-mt-arv li label { margin: 0; display: inline-flex; gap: 8px; align-items: center; font-weight: normal; }
.crcw-mt-arv li label input { margin: 0; }
.crcw-mt-late { color: #b0412e; }
.crcw-mt-care { background: color-mix(in srgb, var(--navy) 4%, #fff); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.crcw-mt-care p { margin: 0 0 6px; }
.crcw-mt-care-due { margin: 0 0 6px 10px; }
.crcw-mt-plan .crcw-mt-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crcw-mt-planform { margin-top: 10px; }
.crcw-mt-planform > summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; }
.crcw-mt-planform .crcw-cc-row input, .crcw-mt-planform .crcw-cc-row select { width: auto; }
.crcw-mt-months { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 6px 0; }
.crcw-mt-months label { margin: 0; display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.crcw-mt-months input { margin: 0; }
.crcw-mt-tidy { background: #fff; border: 1px solid color-mix(in srgb, var(--navy) 14%, #fff); border-radius: 12px; padding: 10px 16px; margin: 0 0 12px; }
.crcw-mt-tidy > summary { cursor: pointer; }
.crcw-mt-tidy li { padding: 3px 0; }
.crcw-mt-tidy label { display: inline-flex; gap: 8px; align-items: center; margin: 0; font-weight: normal; }
.crcw-mt-tidy label input { margin: 0; }
.crcw-mt-drag { cursor: grab; color: var(--muted); font-size: 16px; padding: 0 6px; user-select: none; }
.crcw-mt-dragging { opacity: .5; outline: 2px dashed var(--teal); }
@media (hover: none) { .crcw-mt-drag { display: none; } }

/* ---- Meetings: Prepare agenda / Take minutes, last time, how-to, three steps (README 69) ---------------- */
.crcw-mt-howto { background: #fff; border: 1px solid color-mix(in srgb, var(--navy) 14%, #fff); border-left: 5px solid var(--teal); border-radius: 12px; padding: 12px 16px; margin: -6px 0 16px; font-size: 14px; line-height: 1.5; }
.crcw-mt-howto-warn { margin-top: 8px; padding: 6px 10px; background: #fcf0d8; color: #6b4a00; border-radius: 8px; }
.crcw-mt-lasttime { background: #f4f2f5; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; color: #3d4450; }
.crcw-mt-lasttime .crcw-mt-lbl { color: var(--muted); }
.crcw-mt-lasttime details { margin-top: 4px; font-size: 13px; }
.crcw-mt-lasttime details summary { cursor: pointer; color: var(--blue-dark); }
.crcw-mt-lt-dec { margin-top: 4px; }
.crcw-mt-lbl { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.crcw-mt-bg, .crcw-mt-minbox { display: block; margin: 0 0 8px; font-weight: normal; }
.crcw-mt-bg textarea, .crcw-mt-minbox textarea { width: 100%; box-sizing: border-box; margin-top: 3px; }
.crcw-mt-minbox textarea { min-height: 96px; font-size: 15px; background: #fffef8; }
.crcw-mt-steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.crcw-mt-steps3 li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; color: var(--muted); }
.crcw-mt-steps3 li p { margin: 2px 0 6px; font-size: 13px; line-height: 1.4; }
.crcw-mt-steps3 li b { color: var(--ink); }
.crcw-mt-steps3 .crcw-mt-s3n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--line); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.crcw-mt-steps3 li.now { background: color-mix(in srgb, var(--teal) 14%, #fff); color: var(--ink); }
.crcw-mt-steps3 li.now .crcw-mt-s3n { background: var(--navy); }
.crcw-mt-steps3 li.done .crcw-mt-s3n { background: #6fae7e; }
.crcw-mt-progress:has(.crcw-mt-steps3) { display: block; padding: 10px; }
.crcw-mt-progress:has(.crcw-mt-steps3) .crcw-mt-next { margin-top: 8px; padding: 0 10px; }
@media (max-width: 700px) { .crcw-mt-steps3 { grid-template-columns: 1fr; } .crcw-mt-steps3 li:not(.now) p { display: none; } }

/* ---- Meetings: an action for more than one person (README 70) ---------------------------------------- */
.crcw-mt-also { position: relative; display: inline-block; margin-top: 3px; }
.crcw-mt-also > summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--blue-dark); padding: 1px 6px; border: 1px dashed var(--line); border-radius: 6px; white-space: nowrap; }
.crcw-mt-also > summary::-webkit-details-marker { display: none; }
.crcw-mt-also[open] > div { position: absolute; z-index: 30; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 8px 12px; min-width: 210px; }
.crcw-mt-also label { display: flex; gap: 8px; align-items: center; margin: 3px 0; font-weight: normal; white-space: nowrap; }
.crcw-mt-also label input { margin: 0; }

/* ---- Meetings: more breathing room at the top of a meeting (README 70) ------------------------------- */
.crcw-mt-wide-page .crcw-mt-back { margin: 16px 0 10px; }
.crcw-mt-wide-page .crcw-mt-head { padding: 20px 24px; margin-bottom: 14px; }
.crcw-mt-wide-page .crcw-mt-toolbar { margin-top: 14px; gap: 8px; }
.crcw-mt-progress:has(.crcw-mt-steps3) { padding: 16px 18px; margin: 0 0 20px; }
.crcw-mt-steps3 { gap: 14px; }
.crcw-mt-steps3 li { padding: 12px 14px; }
.crcw-mt-progress:has(.crcw-mt-steps3) .crcw-mt-next { margin-top: 12px; padding: 10px 4px 0; border-top: 1px solid #f0edf2; }
.crcw-mt-howto { padding: 14px 18px; margin: 0 0 18px; }
@media (max-width: 700px) { .crcw-mt-wide-page .crcw-mt-head { padding: 14px 16px; } .crcw-mt-progress:has(.crcw-mt-steps3) { padding: 12px; } }

/* ---- Calendar timeline; elders' quick "Contacted" (README 71) --------------------------------------- */
.crcw-cc-tlwrap { overflow-x: auto; margin: 8px 0; }
.crcw-cc-tl { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; }
.crcw-cc-tl th, .crcw-cc-tl td { border-bottom: 1px solid var(--line); padding: 4px 3px; text-align: center; vertical-align: middle; }
.crcw-cc-tl thead th { font-weight: 400; color: var(--muted); font-size: 12px; white-space: nowrap; }
.crcw-cc-tl thead th a { color: inherit; text-decoration: none; }
.crcw-cc-tl thead th.crcw-cc-tlnow { background: color-mix(in srgb, var(--teal) 18%, #fff); border-radius: 6px 6px 0 0; }
.crcw-cc-tl .crcw-cc-tlname { text-align: left; font-weight: 600; max-width: 220px; min-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: sticky; left: 0; background: #fff; }
.crcw-cc-tl .crcw-cc-tlcat th { text-align: left; padding-top: 12px; border-bottom: 0; background: #fff; }
.crcw-cc-tlmark { display: inline-block; min-width: 20px; padding: 1px 3px; margin: 1px; border-radius: 5px; background: var(--c); color: #fff !important; font-size: 10px; font-weight: 700; text-decoration: none !important; line-height: 16px; }
.crcw-cc-tlmark:hover { filter: brightness(1.1); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c); }
.crcw-el-quick { display: inline-block; position: relative; vertical-align: middle; }
.crcw-el-quick > summary { list-style: none; cursor: pointer; font-size: 12px; color: #3c7a4c; border: 1px solid #cfe5d5; background: #f3faf5; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.crcw-el-quick > summary::-webkit-details-marker { display: none; }
.crcw-el-quick[open] > form { position: absolute; z-index: 30; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 10px 12px; width: 270px; }
.crcw-el-quick input[type=text] { width: 100%; box-sizing: border-box; margin: 0 0 6px; }
.crcw-el-quick form div { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }

/* ---- Meetings: team page (next meeting, past by year, coming up) (README 72) --------------------------- */
.crcw-mt-nextcard { border-left: 5px solid var(--teal); }
.crcw-mt-nextwhen { font-size: 17px; margin: 0 0 4px; }
.crcw-mt-nextwhen a { font-weight: 700; }
.crcw-mt-nextbtns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; }
.crcw-mt-year { border-top: 1px solid #f0edf2; padding: 6px 0; }
.crcw-mt-year:first-of-type { border-top: 0; }
.crcw-mt-year > summary { cursor: pointer; padding: 2px 0; }
.crcw-mt-year .crcw-mt-list { margin: 4px 0 4px 14px; }
.crcw-mt-planmore > summary { cursor: pointer; color: var(--blue-dark); margin: 4px 0; }
.crcw-mt-archedit { margin-top: 10px; }
.crcw-mt-archedit > summary { cursor: pointer; color: var(--muted); }
.crcw-mt-archedit textarea { width: 100%; box-sizing: border-box; font-size: 13px; }

/* CRCW 73: roster clashes to decide (Rosters › Needs attention) */
.crcw-clash-ok { margin-left: 4px; }
.crcw-clash-review { margin: 4px 0 10px 18px; padding: 10px 12px; border: 1px solid #d9dee5; border-radius: 8px; background: #f7f9fb; }
#body .crcw-clash-review h6 { margin: 0 0 4px; font-size: 13px; color: var(--navy); }
.crcw-clash-review li { padding: 4px 0; border-top: 1px solid #e6eaef; }
.crcw-clash-review li:first-child { border-top: 0; }
.crcw-clash-review form { margin: 0 0 0 4px; }

/* CRCW 73: calendar filters (the category keys are buttons) */
button.crcw-cc-filter { font-family: inherit; font-size: 12px; border: 0; cursor: pointer; background: var(--c); color: #fff; margin-bottom: 2px; }
button.crcw-cc-filter:hover { box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
button.crcw-cc-filter.crcw-cc-off { opacity: .45; text-decoration: line-through; }
.crcw-cc-filtered { display: none !important; }

/* CRCW 73: agenda folding (crcw.js) and moving sections */
.crcw-mt-fold { border: 0; background: none; padding: 0 6px 0 0; font-size: 15px; line-height: 1; color: var(--navy, #1f3a5f); cursor: pointer; flex: none; }
.crcw-mt-fold:hover { color: #000; }
.crcw-mt-foldhid { display: none !important; }
.crcw-mt-itemfolded > :not(.crcw-mt-itemhead) { display: none !important; }
.crcw-mt-itemfolded { padding-bottom: 8px !important; }
.crcw-mt-heading .crcw-mt-foldcount { margin-left: 8px; font-weight: normal; }
.crcw-mt-headfolded { opacity: .85; }
.crcw-mt-foldbar { margin: 0 0 8px; text-align: right; }
.crcw-mt-toc .crcw-mt-tocmove { float: right; }
.crcw-mt-toc .crcw-mt-tocmove button { padding: 0 4px; font-size: 11px; line-height: 16px; }
@media print { .crcw-mt-foldhid, .crcw-mt-itemfolded > * { display: revert !important; } }

/* CRCW 73: "About" search-and-pick (agenda items) */
.crcw-pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 260px; flex: 1 1 320px; }
.crcw-pick-lbl { margin-right: 4px; }
.crcw-pick-chips { display: contents; }
.crcw-pick-chip { display: inline-flex; align-items: center; gap: 2px; background: #e8eef6; color: #1f3a5f; border-radius: 999px; padding: 1px 4px 1px 10px; font-size: 13px; }
.crcw-pick-chip.crcw-pick-fam { background: #efe8f6; color: #43305f; }
.crcw-pick-chip button { border: 0; background: none; font-size: 15px; line-height: 1; padding: 0 4px; cursor: pointer; color: inherit; }
#body .crcw-pick-q { flex: 1 1 160px; min-width: 140px; margin: 0; }
.crcw-pick-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #cfd6de; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 280px; overflow: auto; }
.crcw-pick-list li { padding: 6px 10px; cursor: pointer; font-size: 13px; }
.crcw-pick-list li:hover, .crcw-pick-list li.crcw-pick-on { background: #eef3f9; }

/* CRCW 73: a done action on the Elders › Actions list shows a green tick */
.crcw-act-isdone .crcw-mt-tick { background: #3c8d5a; border-color: #3c8d5a; }

/* CRCW 73: held over items: one faded line (title, badge, and in the editor the tick boxes) */
.crcw-badge-held { display: none; background: #e9e4f2; color: #4b3d68; }
.crcw-mt-held .crcw-badge-held { display: inline-block; }
.crcw-mt-held { opacity: .7; padding-top: 6px !important; padding-bottom: 6px !important; }
.crcw-mt-held > :not(.crcw-mt-itemhead):not(.crcw-mt-itemfoot) { display: none !important; }
.crcw-mt-held .crcw-mt-itemfoot > :not(.crcw-mt-status) { display: none !important; }
.crcw-mt-held .crcw-mt-n { background: #e9e4f2; color: #4b3d68; }
.crcw-mt-holdlbl { margin-left: 14px; }

/* Elders › Inbox (README 78) */
.crcw-el-inboxbar { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crcw-el-inboxbar form { margin: 0; }
@media (max-width: 640px) {
	.crcw-el-inboxtable thead { display: none; }
	.crcw-el-inboxtable, .crcw-el-inboxtable tbody, .crcw-el-inboxtable tr, .crcw-el-inboxtable td { display: block; width: auto; }
	.crcw-el-inboxtable tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
	.crcw-el-inboxtable td { border: 0 !important; padding: 1px 0 !important; }
	.crcw-el-inboxtable td:first-child { font-size: 12px; color: #666; }
}

/* Members header: "Logged in as" readable on the dark bar */
#jethro-public .user-detail, #jethro-public .user-detail > div { color: rgba(255,255,255,.78); }
#jethro-public .user-detail #user-menu { color: #fff; font-weight: 600; text-decoration: none; }
#jethro-public .user-detail #user-menu .caret { border-top-color: #fff; }

/* Members area: People (README 79) */
#member-list > p.crcw-directory-note { margin: 8px 0 4px; }
.crcw-dir-count { margin: 4px 0 10px; font-size: 13px; }
.crcw-dir-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.crcw-dir-az a { display: inline-block; min-width: 30px; padding: 4px 0; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
.crcw-dir-az a:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
#member-list { width: auto; max-width: none; }
.crcw-dir-grid { columns: 3 340px; column-gap: 16px; }
.crcw-dir-grid > .crcw-dir-fam { break-inside: avoid; margin: 0 0 16px; display: block; }
.crcw-dir-fam { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 6px; scroll-margin-top: 70px; }
.crcw-dir-head { display: flex; align-items: center; gap: 10px; }
.crcw-dir-head h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.crcw-dir-sub { font-family: inherit; font-size: 14px; font-weight: 400; color: #6b7480; margin-left: 4px; }
.crcw-dir-famphoto { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.crcw-dir-addr { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 2px; font-size: 13px; color: #55606b; }
.crcw-dir-addr a { color: var(--blue-dark); text-decoration: none; white-space: nowrap; }
.crcw-dir-addr [class^="icon-"], .crcw-dir-contact [class^="icon-"] { opacity: .55; margin-top: 1px; }
.crcw-dir-people { list-style: none; margin: 8px 0 0; padding: 0; }
.crcw-dir-people li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #efebe4; }
.crcw-dir-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #e6eef4; color: var(--blue-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; overflow: hidden; }
.crcw-dir-av img { width: 100%; height: 100%; object-fit: cover; }
.crcw-dir-who { min-width: 0; line-height: 1.35; }
.crcw-dir-who b { font-size: 15px; }
.crcw-dir-age { font-size: 12px; color: #6b7480; margin-left: 4px; }
.crcw-dir-contact { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; font-size: 14px; }
.crcw-dir-contact a { color: var(--blue-dark); text-decoration: none; overflow-wrap: anywhere; }
.crcw-dir-contact a:hover, .crcw-dir-addr a:hover { text-decoration: underline; }
@media (max-width: 640px) {
	.crcw-dir-grid { columns: 1; }
	.crcw-dir-grid > .crcw-dir-fam { margin-bottom: 12px; }
	.crcw-dir-fam { padding: 12px 12px 4px; }
	.crcw-dir-contact { flex-direction: column; gap: 4px; }
	.crcw-dir-contact a { padding: 2px 0; }
}

/* Members home: Search people + My groups in the left column (README 79); Jethro's own boxes underneath are not needed then */
.crcw-home-members ~ .member-homepage-container { display: none; }
.crcw-home-searchform { display: flex; gap: 6px; margin: 4px 0 2px; }
.crcw-home-searchform input[type="search"] { flex: 1 1 auto; min-width: 0; margin: 0; height: 36px; box-sizing: border-box; padding: 6px 10px; border-radius: 6px; }
.crcw-home-searchform .btn { height: 36px; }
.crcw-home-grouplist { list-style: none; margin: 0; padding: 0; }
.crcw-home-grouplist li { padding: 7px 0; border-top: 1px solid #efebe4; }
.crcw-home-grouplist li:first-child { border-top: 0; }
.crcw-home-grouplist a { text-decoration: none; color: var(--ink); font-weight: 600; }
.crcw-home-grouplist a:hover { color: var(--blue-dark); text-decoration: underline; }
.crcw-home-grouplist .muted { font-weight: 400; font-size: 13px; }
@media (max-width: 767px) {
	.crcw-home-members .crcw-home-grid { display: flex; flex-direction: column; }
	.crcw-home-members .crcw-home-col { display: contents; }
	.crcw-home-members .crcw-home-extra { order: 10; }
}

#jethro-public .crcw-dir-fam a, #jethro-public .crcw-home-grouplist a { text-decoration: none !important; }
#jethro-public .crcw-dir-fam a:hover, #jethro-public .crcw-home-grouplist a:hover { text-decoration: underline !important; }
