/* Te Maru - one look for the forms website (phone first), the admin pages and the sign-in page.
   One colour set. Each colour has one meaning everywhere: red = overdue, amber = late, green = on time,
   blue = due now, purple = approval, grey = missed / not needed. */

:root {
	/* Te Maru brand guide (April 2025), Tue 20 Oct 2026: primary green #006243 must always be prominent. */
	--temaru-brand: #006243;
	--temaru-brand-700: #004d35;
	--temaru-brand-100: #b3d4c6;
	--temaru-brand-50: #e6f0eb;
	--temaru-chrome: #006243;    /* Te Maru green: menu, sign-in page */
	--temaru-accent: #b3d4c6;    /* Light green, for decoration on the green menu only (too light for text) */
	--temaru-ink: #18181b;
	--temaru-muted-c: #5f6168;
	--temaru-line: #e4e4e7;
	--temaru-bg: #f6f6f7;
	--temaru-card: #fff;

	--temaru-ok: #1d8048;      --temaru-ok-bg: #e5f3ea;
	--temaru-late: #a8660b;    --temaru-late-bg: #fcf1dd;   --temaru-late-fill: #e0a326;
	--temaru-bad: #b8352a;     --temaru-bad-bg: #fbe8e6;
	--temaru-due: #1f5fa8;     --temaru-due-bg: #e6eef8;
	--temaru-none: #6b7478;    --temaru-none-bg: #eef0f1;   --temaru-missed-fill: #8a9497;
	--temaru-appr: #6a4ab0;    --temaru-appr-bg: #efeafa;

	--temaru-r-lg: 16px;
	--temaru-r: 12px;
	--temaru-r-sm: 8px;
	--temaru-shadow: 0 1px 2px rgba(20, 20, 24, .06), 0 4px 16px rgba(20, 20, 24, .06);
	--temaru-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Old names, still used in a few places. */
	--temaru-green: var(--temaru-ok);
	--temaru-amber: var(--temaru-late);
	--temaru-red: var(--temaru-bad);
	--temaru-grey: var(--temaru-muted-c);
	--temaru-soft: var(--temaru-bg);
}
[hidden] { display: none !important; }
.temaru-tree, .temaru-card, .temaru-progress, .temaru-q, .temaru-status-box, .temaru-location-block, .temaru-side, .temaru-side * { box-sizing: border-box; }

/* ======================================================================
   Forms website: its own full page
   ====================================================================== */

body.temaru-app {
	margin: 0;
	background: var(--temaru-bg);
	color: var(--temaru-ink);
	font: 16px/1.5 var(--temaru-font);
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}
body.temaru-app a { color: var(--temaru-brand); }
body.temaru-app h2 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
body.temaru-app h3 { font-size: 17px; }

.temaru { font-size: 16px; line-height: 1.5; color: var(--temaru-ink); }
.temaru *, .temaru *::before, .temaru *::after { box-sizing: border-box; }
.temaru-main { max-width: 680px; margin: 0 auto; padding: 16px 16px 40px; }

/* Top bar */
.temaru-appbar {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 12px;
	padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
	background: var(--temaru-card); border-bottom: 1px solid var(--temaru-line);
}
.temaru-appbar-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.temaru-appbar-title strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.temaru-appbar-title span { font-size: 13px; color: var(--temaru-muted-c); }
.temaru-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--temaru-brand) !important; background: var(--temaru-brand-50); flex: none; }

/* Logo, or first letters in a brand square */
.temaru-mark {
	display: inline-grid; place-items: center; flex: none;
	border-radius: 10px; background: var(--temaru-brand); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em;
}
.temaru-mark-img { background: none; border-radius: 0; }
.temaru-mark-img img { display: block; }
.temaru-logo { border-radius: 6px; }
.temaru-avatar {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
	background: var(--temaru-brand-50); color: var(--temaru-brand); font-size: 13px; font-weight: 700;
}

/* "Me" menu */
.temaru-me { margin-left: auto; position: relative; }
.temaru-me > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.temaru-me > summary::-webkit-details-marker { display: none; }
.temaru-me > summary:focus-visible { outline: 3px solid var(--temaru-brand-100); }
.temaru-me-menu {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 30;
	background: var(--temaru-card); border: 1px solid var(--temaru-line); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow);
	padding: 8px; display: flex; flex-direction: column;
}
.temaru-me-menu strong { padding: 8px 10px; border-bottom: 1px solid var(--temaru-line); margin-bottom: 4px; }
.temaru-me-menu a { padding: 10px; border-radius: var(--temaru-r-sm); text-decoration: none; font-weight: 500; }
.temaru-me-menu a:hover { background: var(--temaru-brand-50); }

/* Page tabs: across the top on a computer, fixed at the bottom on a phone */
.temaru-nav {
	display: flex; justify-content: center; gap: 4px;
	background: var(--temaru-card); border-bottom: 1px solid var(--temaru-line); padding: 0 16px;
}
.temaru-nav a {
	display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px;
	text-decoration: none; font-weight: 600; font-size: 15px; color: var(--temaru-muted-c) !important;
	border-bottom: 2px solid transparent;
}
.temaru-nav a:hover { color: var(--temaru-ink) !important; }
.temaru-nav a.is-current { color: var(--temaru-brand) !important; border-bottom-color: var(--temaru-brand); }

@media (max-width: 700px) {
	.temaru-nav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
		border-top: 1px solid var(--temaru-line); border-bottom: 0;
		padding: 4px 0 calc(6px + env(safe-area-inset-bottom)); gap: 0;
		box-shadow: 0 -2px 12px rgba(20, 20, 24, .05);
	}
	.temaru-nav a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; border: 0; }
	.temaru-nav a .temaru-icon { width: 24px; height: 24px; }
	.temaru-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	/* Filling in a form: the Send button takes the bottom of the screen instead of the tabs. */
	.temaru-view-fill .temaru-nav, .temaru-view-report .temaru-nav { display: none; }
	.temaru-view-fill .temaru-main, .temaru-view-report .temaru-main { padding-bottom: 24px; }
}

/* Send button stays in reach at the bottom of the screen */
.temaru-send-bar {
	position: sticky; bottom: 0; z-index: 10;
	margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: var(--temaru-card); border-top: 1px solid var(--temaru-line);
}
@media (min-width: 701px) { .temaru-send-bar { margin: 16px 0 0; border: 0; background: none; padding: 0; position: static; } }

/* Headers inside pages */
.temaru-org-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.temaru-location-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 4px 0 8px; color: var(--temaru-muted-c); }
h2.temaru-location-head, h2.temaru-org-head { font-size: 1.4em; color: var(--temaru-ink); }
.temaru-item > .temaru-logo { flex: 0 0 auto; }
.temaru-logo-picker { display: inline-flex; align-items: center; gap: 6px; }
.temaru-location-ticks label { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0; }
.temaru-form-buttons { margin: 20px 0 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.temaru-status-box label { margin-right: 8px; }

/* Notices */
.temaru-notice { padding: 12px 16px; border-radius: var(--temaru-r); margin: 0 0 16px; border: 1px solid transparent; }
.temaru-notice p { margin: 0; }
.temaru-notice-success { background: var(--temaru-ok-bg); color: #145c33; border-color: #c4e3d0; }
.temaru-notice-error { background: var(--temaru-bad-bg); color: #8a241c; border-color: #f0c9c4; }

/* To do list */
.temaru-toggle { color: var(--temaru-muted-c); font-size: 14px; margin: 4px 0 8px; }
.temaru-group {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: var(--temaru-muted-c); margin: 24px 0 10px !important;
}
.temaru-group-overdue { color: var(--temaru-bad); }
.temaru-group-approval { color: var(--temaru-appr); }
.temaru-count { background: var(--temaru-none-bg); color: var(--temaru-none); border-radius: 999px; padding: 1px 8px; font-size: 12px; letter-spacing: 0; }
.temaru-group-overdue .temaru-count { background: var(--temaru-bad-bg); color: var(--temaru-bad); }
.temaru-group-approval .temaru-count { background: var(--temaru-appr-bg); color: var(--temaru-appr); }
.temaru-list { list-style: none; margin: 0; padding: 0; }
.temaru-item {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px; margin: 0 0 8px;
	background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow);
	border-left: 4px solid transparent;
}
.temaru-item-overdue { border-left-color: var(--temaru-bad); }
.temaru-item-open { border-left-color: var(--temaru-due); }
.temaru-item-anytime { border-left-color: var(--temaru-brand-100); }
.temaru-waiting-box { border-left-color: var(--temaru-appr) !important; }
.temaru-item-main { flex: 1; min-width: 0; }
.temaru-item-main strong { font-size: 16px; }
.temaru-muted { color: var(--temaru-muted-c); font-size: .9em; }
.temaru-warn { color: var(--temaru-late); font-weight: 600; }
.temaru-instructions {
	background: var(--temaru-brand-50); color: var(--temaru-brand-700);
	border-radius: var(--temaru-r); padding: 12px 16px; margin: 12px 0 18px;
}
.temaru-instructions p { margin: 6px 0 0; overflow-wrap: anywhere; }
.temaru-done { padding: 28px 16px; text-align: center; background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); color: var(--temaru-ok); font-weight: 600; }

/* Buttons */
.temaru-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: var(--temaru-r-sm);
	background: var(--temaru-brand); color: #fff !important; text-decoration: none;
	font: 600 15px/1 var(--temaru-font); border: 1px solid var(--temaru-brand); cursor: pointer; white-space: nowrap;
	transition: background .15s, box-shadow .15s;
}
.temaru-button:hover { background: var(--temaru-brand-700); border-color: var(--temaru-brand-700); }
.temaru-button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--temaru-brand-100); }
.temaru-button-light { background: var(--temaru-card); color: var(--temaru-brand) !important; border-color: var(--temaru-brand-100); }
.temaru-button-light:hover { background: var(--temaru-brand-50); border-color: var(--temaru-brand-100); }
.temaru-button-big { width: 100%; min-height: 52px; font-size: 17px; }

/* Filling in a form: each question is a card */
.temaru-form .temaru-field {
	margin: 0 0 12px; padding: 16px; border: 0;
	background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow);
	min-inline-size: 0;
}
.temaru-form label, .temaru-form legend { display: block; font-weight: 600; margin-bottom: 10px; }
.temaru-form legend { float: left; width: 100%; }
.temaru-form legend + * { clear: both; }
.temaru-form input[type="text"], .temaru-form input[type="number"], .temaru-form input[type="date"], .temaru-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; font: 16px/1.4 var(--temaru-font); color: var(--temaru-ink);
	border: 1px solid #d4d4d8; border-radius: var(--temaru-r-sm); background: #fff;
}
.temaru-form textarea { min-height: 96px; }
.temaru-form input:focus, .temaru-form textarea:focus, .temaru-filter select:focus {
	outline: none; border-color: var(--temaru-brand); box-shadow: 0 0 0 3px var(--temaru-brand-100);
}
.temaru-choices label {
	display: flex; align-items: center; gap: 12px; font-weight: 500;
	min-height: 48px; padding: 10px 14px; margin: 0 0 8px;
	border: 1.5px solid var(--temaru-line); border-radius: var(--temaru-r-sm); background: #fff; cursor: pointer;
}
.temaru-choices label:has(input:checked) { border-color: var(--temaru-brand); background: var(--temaru-brand-50); color: var(--temaru-brand-700); }
.temaru-choices input { width: 20px; height: 20px; accent-color: var(--temaru-brand); margin: 0; }
.temaru-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.temaru-yesno label { justify-content: center; margin: 0; min-height: 52px; font-weight: 600; }
.temaru-req { color: var(--temaru-bad); }

.temaru-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.temaru-filter select {
	min-height: 40px; padding: 0 32px 0 12px; font: 15px var(--temaru-font); max-width: 100%;
	border: 1px solid var(--temaru-line); border-radius: var(--temaru-r-sm); background-color: #fff; color: var(--temaru-ink);
}

/* One sent form */
.temaru-submission h2 { margin-bottom: 4px; }
.temaru-meta { color: var(--temaru-muted-c); }
.temaru-answers { background: var(--temaru-card); border-radius: var(--temaru-r); overflow: hidden; box-shadow: var(--temaru-shadow); }
.temaru-answers th, .temaru-answers td { border: 0 !important; border-bottom: 1px solid var(--temaru-line) !important; padding: 10px 14px !important; }
.temaru-answers tr:last-child th, .temaru-answers tr:last-child td { border-bottom: 0 !important; }
.temaru-answers th { width: 45%; background: #fafbfb; font-weight: 600; }
.temaru-void, .temaru-extra { padding: 12px 16px; border-radius: var(--temaru-r); margin: 12px 0; }
.temaru-void { background: var(--temaru-bad-bg); color: #8a241c; }
.temaru-extra { background: var(--temaru-late-bg); color: #6e4306; }
.temaru-note { border-left: 4px solid var(--temaru-late-fill); padding: 6px 14px; margin: 8px 0; background: var(--temaru-card); border-radius: 0 var(--temaru-r-sm) var(--temaru-r-sm) 0; }
.temaru-note p { margin: 4px 0; }
.temaru-inline-form { margin: 16px 0; }
.temaru-inline-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.temaru-inline-form textarea, .temaru-inline-form input[type="text"] { width: 100%; max-width: 520px; box-sizing: border-box; margin-bottom: 8px; border-radius: var(--temaru-r-sm); }
/* Boxes on a sent form (approval note, correction note, void reason): same as every other text box. */
.temaru-submission textarea, .temaru-submission input[type="text"],
body.temaru-shell .temaru-submission textarea, body.temaru-shell .temaru-submission input[type="text"] {
	padding: 10px 14px; font: 16px/1.4 var(--temaru-font); color: var(--temaru-ink);
	border: 1px solid #d4d4d8; border-radius: var(--temaru-r-sm); background: #fff; box-sizing: border-box;
}
.temaru-submission textarea { min-height: 96px; }
.temaru-submission textarea:focus, .temaru-submission input[type="text"]:focus { outline: none; border-color: var(--temaru-brand); box-shadow: 0 0 0 3px var(--temaru-brand-100); }

/* ======================================================================
   Badges: soft colour with a dot. Same meaning everywhere.
   ====================================================================== */
.temaru-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6;
	background: var(--temaru-none-bg); color: var(--temaru-none); vertical-align: middle; white-space: nowrap;
}
.temaru-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.temaru-badge-on_time, .temaru-badge-approved { background: var(--temaru-ok-bg); color: var(--temaru-ok); }
.temaru-badge-late { background: var(--temaru-late-bg); color: var(--temaru-late); }
.temaru-badge-overdue, .temaru-badge-rejected { background: var(--temaru-bad-bg); color: var(--temaru-bad); }
.temaru-badge-open, .temaru-badge-upcoming { background: var(--temaru-due-bg); color: var(--temaru-due); }
.temaru-badge-missed_caught_up, .temaru-badge-not_needed { background: var(--temaru-none-bg); color: var(--temaru-none); }
.temaru-badge-waiting { background: var(--temaru-appr-bg); color: var(--temaru-appr); }
/* Form statuses and sent-form labels: outlined, so they do not look like task results. */
.temaru-badge-active { background: #fff; color: var(--temaru-ok); box-shadow: inset 0 0 0 1px #b9dcc6; }
.temaru-badge-paused, .temaru-badge-extra { background: #fff; color: var(--temaru-late); box-shadow: inset 0 0 0 1px #edcf95; }
.temaru-badge-void { background: #fff; color: var(--temaru-bad); box-shadow: inset 0 0 0 1px #eab7b1; }
.temaru-badge-draft, .temaru-badge-retired { background: #fff; color: var(--temaru-none); box-shadow: inset 0 0 0 1px #d3d8d9; }

.temaru-approve-panel {
	border: 1.5px solid var(--temaru-appr); background: #faf8fe; border-radius: var(--temaru-r);
	padding: 14px 16px; margin: 14px 0; display: grid; gap: 8px; max-width: 640px;
}
.temaru-approve-panel textarea { width: 100%; border-radius: var(--temaru-r-sm); }
.temaru-approve-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.temaru-checker-list { max-height: 180px; overflow-y: auto; border: 1px solid var(--temaru-line); border-radius: var(--temaru-r-sm); padding: 6px 10px; background: #fff; max-width: 520px; }
.temaru-checker-list label { display: block; margin: 2px 0; }
.temaru-note-small { display: block; font-size: 11px; color: var(--temaru-muted-c); margin-top: 2px; }

/* ======================================================================
   Dashboard pieces
   ====================================================================== */
.temaru-period { margin: 4px 0 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.temaru-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 12px 0 16px; }
.temaru-card {
	display: block; padding: 16px 18px; background: var(--temaru-card);
	border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); color: var(--temaru-muted-c); font-weight: 500;
	border-top: 3px solid var(--temaru-brand);
}
.temaru-card-num { display: block; font-size: 30px; font-weight: 700; color: var(--temaru-ink); line-height: 1.2; }
.temaru-card-overdue { border-top-color: var(--temaru-bad); }
.temaru-card-overdue .temaru-card-num { color: var(--temaru-bad); }
.temaru-card-approval { border-top-color: var(--temaru-appr); }
.temaru-card-approval .temaru-card-num { color: var(--temaru-appr); }
a.temaru-card { text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.temaru-card:hover, a.temaru-card:focus { box-shadow: 0 2px 4px rgba(20, 20, 24, .08), 0 8px 24px rgba(20, 20, 24, .1); transform: translateY(-1px); }
a.temaru-card::after { content: "View tasks ›"; display: block; font-size: 12px; color: var(--temaru-brand); margin-top: 6px; }
.temaru-legend { font-size: 13px; color: var(--temaru-muted-c); }
.temaru-legend a { color: inherit; text-decoration: none; margin-right: 6px; }
.temaru-legend a:hover { text-decoration: underline; }
.temaru-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; }
.temaru-legend span:first-child { margin-left: 0; }
.temaru-bar { display: flex; height: 10px; min-width: 80px; border-radius: 5px; overflow: hidden; background: var(--temaru-line); margin: 6px 0 16px; }
.temaru-bar-cell .temaru-bar { margin: 4px 0; }
.temaru-seg { display: block; height: 100%; }
.temaru-seg-on_time { background: var(--temaru-ok); }
.temaru-seg-late { background: var(--temaru-late-fill); }
.temaru-seg-missed { background: var(--temaru-missed-fill); }
.temaru-seg-overdue { background: var(--temaru-bad); }
.temaru-seg-open { background: var(--temaru-due); }
.temaru-seg-upcoming { background: #d5e1ef; }
.temaru-table { margin-bottom: 24px; }
.temaru-row-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0; }
.temaru-status-box, .temaru-location-block {
	background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); border: 0;
}
.temaru-status-box { padding: 10px 18px; margin: 12px 0; }
.temaru-location-block { padding: 4px 18px 18px; margin: 20px 0; }
details.temaru-fold { padding: 0 18px; }
details.temaru-fold[open] { padding-bottom: 18px; }
details.temaru-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0; font-size: 15px; }
details.temaru-fold > summary::-webkit-details-marker { display: none; }
details.temaru-fold > summary::before { content: "▸"; color: var(--temaru-muted-c); width: 12px; }
details.temaru-fold[open] > summary::before { content: "▾"; }
.temaru-fold-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.temaru-fold-all { margin: 8px 0 0; font-size: 13px; }
.temaru-site-wrap { margin: 0 20px 0 0; }
.temaru-site-bar { margin: 8px 0; color: var(--temaru-muted-c); }
.temaru-site-frame { width: 100%; height: calc(100vh - 110px); min-height: 500px; border: 1px solid var(--temaru-line); border-radius: var(--temaru-r); background: #fff; }
.temaru-row-current td { background: var(--temaru-brand-50) !important; }
.temaru-email-editor { max-width: 900px; }
.temaru-email-edit > td { padding: 0 12px 16px !important; background: #f4f4f5 !important; white-space: normal !important; }
.temaru-email-edit .temaru-email-editor p > .description { display: block; margin-top: 4px; }
.temaru-email-edit .temaru-email-editor { margin: 8px 0 0; padding: 4px 18px 18px; }
.temaru-fixed-part { background: var(--temaru-bg); border: 1px dashed #c3cccb; border-radius: var(--temaru-r-sm); padding: 8px 10px; color: var(--temaru-muted-c); font-size: 13px; }
.temaru-email-preview { border-radius: var(--temaru-r); padding: 14px 18px; background: #fff; max-width: 700px; box-shadow: var(--temaru-shadow); }
.temaru-email-subject { background: #fafbfb; margin: -14px -18px 12px; padding: 10px 18px; border-bottom: 1px solid var(--temaru-line); font-size: 13px; border-radius: var(--temaru-r) var(--temaru-r) 0 0; }
/* Sites and staff: three areas (Enterprise, Add a site, Sites), each under its own heading with a rule. */
.temaru-group-head { display: flex; align-items: center; gap: 10px; margin: 36px 0 12px; font-size: 13px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--temaru-muted-c) !important; }
.temaru-group-head span { font-weight: 600; letter-spacing: 0; background: var(--temaru-line); color: var(--temaru-ink); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.temaru-group-head::after { content: ""; flex: 1; border-top: 2px solid #d4d4d8; }
.temaru-fold-all + .temaru-group-head { margin-top: 16px; }
details.temaru-fold { border-left: 5px solid var(--temaru-brand); margin: 14px 0; }
details.temaru-fold.temaru-org-block { border-left-color: var(--temaru-chrome); }
details.temaru-fold > summary { margin: 0 -18px; padding: 14px 18px; font-size: 16px; border-radius: 0 var(--temaru-r) var(--temaru-r) 0; }
details.temaru-fold[open] > summary { background: #f4f4f5; border-bottom: 2px solid #d4d4d8; border-radius: 0 var(--temaru-r) 0 0; margin-bottom: 14px; }
.temaru-add-location { margin: 8px 0; padding: 14px 18px; background: transparent; box-shadow: none; border: 2px dashed #d4d4d8; }
details.temaru-fold.temaru-add-location { margin-top: 14px; padding: 0 18px; border-left: 2px dashed #d4d4d8; }
details.temaru-fold.temaru-add-location[open] { padding-bottom: 18px; }
/* Clear breaks between sites (Mon 12 Oct 2026): a border all round, more space, and an open site stands out further. */
details.temaru-fold { margin: 22px 0; border-style: solid; border-color: #d4d4d8; border-width: 1px 1px 1px 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
details.temaru-fold:not(.temaru-org-block):not(.temaru-add-location) { border-left-color: var(--temaru-brand); }
details.temaru-fold.temaru-org-block { border-left-color: var(--temaru-chrome); }
details.temaru-fold.temaru-add-location { border: 2px dashed #d4d4d8; box-shadow: none; }
details.temaru-fold:not(.temaru-add-location)[open] { margin: 32px 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
details.temaru-fold > summary { font-size: 17px; }

/* Live month score */
.temaru-progress { background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); padding: 16px; margin: 0 0 16px; }
.temaru-progress-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.temaru-progress-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.temaru-progress-past { margin-top: 12px; color: var(--temaru-muted-c); }
.temaru-bar-big { height: 16px; border-radius: 8px; margin: 8px 0 6px; }
.temaru-progress .temaru-bar { margin-bottom: 6px; }
.temaru-trend { margin: 8px 0 0; font-weight: 600; font-size: 14px; }
.temaru-hist { font-size: 12px; color: var(--temaru-muted-c); }
.temaru-hist a { text-decoration: none; }
.temaru-hist strong { color: var(--temaru-ink); }
.temaru-trend-up { color: var(--temaru-ok); }
.temaru-trend-down { color: var(--temaru-bad); }

/* Calendar (dashboard and forms website) */
.temaru-view-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--temaru-line); margin: 0 0 16px; }
.temaru-view-tabs a { padding: 10px 14px; text-decoration: none; color: var(--temaru-muted-c); font-weight: 600; border-bottom: 2px solid transparent; }
.temaru-view-tabs a:hover { color: var(--temaru-ink); }
.temaru-view-tabs a.is-current { color: var(--temaru-brand); border-bottom-color: var(--temaru-brand); }
.temaru-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 12px; }
.temaru-cal-nav strong { font-size: 17px; flex: 1; text-align: center; }
.temaru-cal-nav a { text-decoration: none; white-space: nowrap; font-weight: 600; }
.temaru-cal-nav .temaru-cal-today { font-size: 12px; }
.temaru-cal { border-radius: var(--temaru-r); overflow: hidden; background: var(--temaru-card); box-shadow: var(--temaru-shadow); }
.temaru-cal-head, .temaru-cal-days, .temaru-cal-lanes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.temaru-cal-head div { font-size: 11px; font-weight: 600; color: var(--temaru-muted-c); padding: 6px; background: #fafbfb; border-bottom: 1px solid var(--temaru-line); text-transform: uppercase; letter-spacing: .04em; }
.temaru-short { display: none; }
.temaru-cal-week { border-bottom: 1px solid var(--temaru-line); }
.temaru-cal-week:last-child { border-bottom: 0; }
.temaru-cal-days div { font-size: 11px; padding: 4px 6px; min-height: 20px; border-right: 1px solid #eef1f1; }
.temaru-cal-days div:last-child { border-right: 0; }
.temaru-cal-days .is-out { color: #b6bfbe; }
.temaru-cal-days .is-today { background: var(--temaru-brand-50); color: var(--temaru-brand); font-weight: 700; }
.temaru-cal-lanes { grid-auto-rows: 22px; gap: 2px 0; padding: 0 2px 4px; min-height: 8px; }
.temaru-ev {
	margin: 0 2px; border-radius: 5px; font-size: 11px; padding: 2px 6px; white-space: nowrap; overflow: hidden;
	color: #fff; display: flex; align-items: center; gap: 4px; border-left: 3px solid rgba(0, 0, 0, .2); text-decoration: none;
}
a.temaru-ev:hover { filter: brightness(1.08); }
.temaru-ev-name { overflow: hidden; text-overflow: ellipsis; }
.temaru-due { margin-left: auto; font-size: 10px; font-weight: 700; }
.temaru-ev.cont-left { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.temaru-ev.cont-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.temaru-st-on_time { background: var(--temaru-ok); color: #fff !important; }
.temaru-st-late { background: var(--temaru-late-fill); color: #3d2600 !important; }
.temaru-st-missed { background: var(--temaru-missed-fill); color: #fff !important; }
.temaru-st-overdue { background: var(--temaru-bad); color: #fff !important; }
.temaru-st-open { background: var(--temaru-due); color: #fff !important; }
.temaru-st-upcoming { background: var(--temaru-due-bg); color: var(--temaru-due) !important; border-left-color: var(--temaru-due); }
.temaru-st-not_needed { background: var(--temaru-none-bg); color: var(--temaru-none) !important; border-left-color: #c3c9cb; }
.temaru-cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--temaru-muted-c); margin: 8px 0 14px; }
.temaru-cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.temaru-agenda h3 { font-size: 15px; margin: 16px 0 6px; }
.temaru-agenda h4 { font-size: 13px; margin: 12px 0 4px; color: var(--temaru-muted-c); }
.temaru-agenda-row { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--temaru-r-sm); margin-bottom: 6px; font-size: 14px; background: var(--temaru-card); box-shadow: var(--temaru-shadow); }
.temaru-agenda-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) {
	.temaru-long { display: none; }
	.temaru-short { display: inline; }
	.temaru-cal-lanes { grid-auto-rows: 18px; }
	.temaru-ev { font-size: 10px; padding: 1px 4px; }
	.temaru-cal-days div { padding: 2px 4px; }
}

/* Dashboard layout: sites tree on the left, results on the right */
.temaru-dash { display: flex; gap: 24px; align-items: flex-start; }
.temaru-dash-main { flex: 1; min-width: 0; overflow-x: auto; padding: 4px 4px 12px; margin: -4px; }
.temaru-tree {
	flex: 0 0 220px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto;
	background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); padding: 12px; font-size: 13px;
}
.temaru-tree ul { list-style: none; margin: 2px 0 2px 14px; padding: 0; }
.temaru-tree > ul { margin-left: 0; }
.temaru-tree li { margin: 2px 0; }
.temaru-tree summary { cursor: pointer; padding: 2px 0; list-style: none; display: flex; align-items: center; }
.temaru-tree summary::-webkit-details-marker { display: none; }
.temaru-tree summary::before { content: "▸"; color: var(--temaru-muted-c); width: 14px; flex: none; font-size: 12px; }
.temaru-tree details[open] > summary::before { content: "▾"; }
.temaru-tree li:not(:has(> details)) { padding-left: 14px; }
.temaru-tree a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; color: var(--temaru-ink); }
.temaru-tree a:hover { background: var(--temaru-brand-50); }
.temaru-tree a.is-current { background: var(--temaru-brand); color: #fff; }
.temaru-tree a.is-current .temaru-muted { color: var(--temaru-brand-100); }
.temaru-tree-org { font-size: 14px; margin-bottom: 6px; }
.temaru-group-row th { background: var(--temaru-brand-50) !important; color: var(--temaru-brand-700); font-weight: 700; }
.temaru-filter-bar { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
@media (max-width: 1100px) {
	.temaru-dash { flex-direction: column; align-items: stretch; }
	.temaru-tree { position: static; max-height: none; width: 100%; flex-basis: auto; }
}

/* Question builder */
.temaru-q {
	display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 0 0 10px;
	background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); max-width: 900px;
}
.temaru-q-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--temaru-brand-50); color: var(--temaru-brand); font-weight: 700; font-size: 13px; flex: none; }
.temaru-q-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.temaru-q-label { width: 100%; }
.temaru-q-settings { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.temaru-q-options { width: 100%; max-width: 400px; }
.temaru-q-tools { display: flex; gap: 4px; }

@media (max-width: 480px) {
	.temaru-item { flex-direction: column; align-items: stretch; }
	.temaru-item > .temaru-logo { display: none; }
	.temaru-item .temaru-button { width: 100%; }
}

/* ======================================================================
   Admin pages: our own menu instead of the WordPress menus
   ====================================================================== */
body.temaru-shell { background: var(--temaru-bg); color: var(--temaru-ink); }
body.temaru-shell #adminmenumain, body.temaru-shell #wpfooter, body.temaru-shell #screen-meta-links, body.temaru-shell #screen-meta { display: none !important; }
body.temaru-shell #wpcontent, body.temaru-shell #wpfooter { margin-left: 232px !important; padding-left: 0 !important; }
body.temaru-shell #wpbody-content { padding-bottom: 40px; }
body.temaru-shell .wrap { margin: 0; padding: 24px 28px; max-width: 1480px; }
body.temaru-shell .wrap > h1, body.temaru-shell .wrap > h1.wp-heading-inline { font-size: 24px; font-weight: 700; line-height: 1.3; padding: 0 0 16px; color: var(--temaru-ink); }
body.temaru-shell .wrap h2 { color: var(--temaru-ink); }
body.temaru-shell a { color: var(--temaru-brand); }
body.temaru-shell a:hover { color: var(--temaru-brand-700); }
body.temaru-shell a:focus { box-shadow: 0 0 0 2px var(--temaru-brand-100); outline: none; }

.temaru-side {
	position: fixed; left: 0; top: 0; bottom: 0; width: 232px; z-index: 9990;
	display: flex; flex-direction: column;
	background: var(--temaru-chrome); color: #e6f0eb; font-size: 14px;
}
.temaru-side-top { display: flex; align-items: center; padding: 18px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.temaru-side-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff !important; min-width: 0; }
.temaru-side-brand small { display: block; margin-top: 8px; font-size: 12px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.temaru-side .temaru-mark { background: #fff; color: var(--temaru-brand); }
.temaru-side .temaru-mark-img { background: #fff; border-radius: 8px; padding: 3px; }
.temaru-side-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 8px; }
.temaru-side-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.temaru-side-nav a {
	display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 1px 0; border-radius: var(--temaru-r-sm);
	color: #d4d4d8 !important; text-decoration: none; font-weight: 500;
}
.temaru-side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.temaru-side-nav a:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
.temaru-side-nav a.is-current { background: rgba(255, 255, 255, .1); color: #fff !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--temaru-accent); }
.temaru-side-nav .temaru-icon { opacity: .85; flex: none; }
.temaru-side-pill { margin-left: auto; background: #fff; color: var(--temaru-appr); font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 8px; line-height: 18px; }
.temaru-side-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .55; padding: 16px 12px 6px; }
.temaru-side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.temaru-side-foot .temaru-avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.temaru-side-user { display: flex; flex-direction: column; min-width: 0; color: #fff; font-weight: 600; line-height: 1.35; }
.temaru-side-user a { color: #d4d4d8 !important; font-weight: 400; font-size: 13px; }

@media (max-width: 960px) {
	body.temaru-shell #wpcontent { margin-left: 0 !important; }
	.temaru-side { position: sticky; bottom: auto; width: auto; height: auto; }
	.temaru-side-toggle { display: block; }
	.temaru-side-nav, .temaru-side-foot { display: none; }
	.temaru-side-top { border-bottom: 0; }
	.temaru-side.is-open .temaru-side-nav, .temaru-side.is-open .temaru-side-foot { display: flex; }
	.temaru-side.is-open .temaru-side-nav { flex-direction: column; max-height: 70vh; }
	body.temaru-shell .wrap { padding: 20px 16px; }
}

/* Site picker at the top of the menu */
.temaru-side { overflow: visible; }
.temaru-picker { position: relative; margin: 12px 12px 4px; }
.temaru-picker > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: 10px; color: #fff;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.temaru-picker > summary::-webkit-details-marker { display: none; }
.temaru-picker > summary:hover { background: rgba(255, 255, 255, .16); }
.temaru-picker > summary:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); }
.temaru-picker[open] > summary { background: #fff; color: var(--temaru-ink); border-color: #fff; }
.temaru-picker .temaru-mark { background: #fff; color: var(--temaru-brand); font-size: 10px; border-radius: 7px; }
.temaru-picker .temaru-mark-img { background: #fff; padding: 2px; border-radius: 6px; }
.temaru-picker .temaru-mark-img img { max-width: 40px !important; }
.temaru-picker-t { flex: 1; min-width: 0; line-height: 1.25; }
.temaru-picker-t small { display: block; font-size: 11px; opacity: .7; }
.temaru-picker-t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.temaru-picker-chev { opacity: .8; transition: transform .15s; }
.temaru-picker[open] .temaru-picker-chev { transform: rotate(180deg); }
.temaru-picker-panel {
	position: absolute; left: 0; top: calc(100% + 6px); width: 320px; max-width: calc(100vw - 24px); z-index: 10000;
	background: #fff; color: var(--temaru-ink); border-radius: var(--temaru-r); box-shadow: 0 12px 40px rgba(0, 0, 0, .28); overflow: hidden;
}
.temaru-picker-search { padding: 10px; border-bottom: 1px solid var(--temaru-line); }
.temaru-picker-search input { width: 100%; }
.temaru-picker-list, .temaru-picker-list ul { list-style: none; margin: 0; padding: 0; }
.temaru-picker-list { max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; }
.temaru-picker-list li { margin: 0; }
.temaru-picker-list ul { padding-left: 18px; }
.temaru-picker-list summary { list-style: none; display: flex; align-items: center; cursor: pointer; }
.temaru-picker-list summary::-webkit-details-marker { display: none; }
.temaru-picker-list summary::before { content: "▸"; width: 18px; flex: none; color: var(--temaru-muted-c); font-size: 16px; line-height: 1; text-align: center; }
.temaru-picker-list details[open] > summary::before { content: "▾"; }
.temaru-picker-list > li > a.temaru-picker-row, .temaru-picker-list ul > li > a.temaru-picker-row { margin-left: 18px; }
.temaru-picker-row {
	flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
	padding: 7px 8px; border-radius: var(--temaru-r-sm); color: var(--temaru-ink) !important; text-decoration: none; font-size: 14px;
}
.temaru-picker-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.temaru-picker-row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--temaru-muted-c); white-space: nowrap; }
.temaru-picker-row:hover { background: var(--temaru-brand-50); }
.temaru-picker-row.is-current { background: var(--temaru-brand); color: #fff !important; }
.temaru-picker-row.is-current em { color: var(--temaru-brand-100); }
.temaru-picker-form { font-size: 13px; color: var(--temaru-muted-c) !important; }
.temaru-picker-sep { height: 1px; background: var(--temaru-line); margin: 6px 4px; }
.temaru-picker-hint { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--temaru-muted-c); border-top: 1px solid var(--temaru-line); background: #fafbfb; }
@media (max-width: 960px) { .temaru-picker { margin: 0 12px 12px; } }

/* Sites and staff: each list (form admins, staff, enterprise admins, leadership) is its own box with a coloured head */
.temaru-people-sec { margin: 16px 0; border: 1px solid var(--temaru-line); border-left: 4px solid var(--temaru-none); border-radius: var(--temaru-r-sm); background: #fbfcfc; padding: 0 14px 14px; }
.temaru-people-sec .temaru-sec-head {
	display: flex; align-items: center; gap: 8px; margin: 0 -14px 10px; padding: 10px 14px;
	font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	background: var(--temaru-none-bg); color: var(--temaru-ink); border-radius: 0 var(--temaru-r-sm) 0 0;
}
.temaru-people-sec > .description { margin: 0 0 10px; }
/* Sub-sections roll up (closed by default). */
details.temaru-sub > summary.temaru-sec-head { cursor: pointer; list-style: none; }
details.temaru-sub > summary::-webkit-details-marker { display: none; }
details.temaru-sub > summary::before { content: "\25B8"; width: 12px; color: var(--temaru-muted-c); }
details.temaru-sub[open] > summary::before { content: "\25BE"; }
details.temaru-sub:not([open]) { padding-bottom: 0; }
details.temaru-sub:not([open]) > summary.temaru-sec-head { margin-bottom: 0; border-radius: 0 var(--temaru-r-sm) var(--temaru-r-sm) 0; }
.temaru-details-form { display: grid; gap: 10px; max-width: 520px; }
.temaru-details-form label { display: grid; gap: 4px; font-weight: 600; }
.temaru-details-form input[type="text"], .temaru-details-form input[type="email"], .temaru-details-form textarea { width: 100%; font-weight: 400; }
.temaru-address { display: grid; gap: 6px; }
.temaru-address > label { display: grid; gap: 4px; font-weight: 600; }
.temaru-address textarea { width: 100%; font-weight: 400; }
.temaru-address-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.temaru-address-results { margin: 0; padding: 6px 10px; list-style: none; background: #fff; border: 1px solid var(--temaru-line); border-radius: var(--temaru-r-sm); box-shadow: var(--temaru-shadow); }
.temaru-address-results li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--temaru-line); }
.temaru-address-results li:last-child { border-bottom: 0; }
.temaru-address-results .button-link { text-align: left; }
.temaru-people-sec { overflow-x: auto; }
.temaru-people-sec .widefat { box-shadow: none; border: 1px solid var(--temaru-line); }
.temaru-people-sec .temaru-row-form { margin-top: 10px; }
.temaru-edit-person { display: inline-block; vertical-align: top; margin: 2px 0; }
/* Row buttons (Edit, Resend invite, Mark as left, Remove) on one line, lined up. */
.temaru-people-sec td .temaru-row-form { vertical-align: top; margin: 2px 0; }
.temaru-edit-person > summary { list-style: none; }
.temaru-edit-person > summary::-webkit-details-marker { display: none; }
.temaru-edit-person[open] > summary { background: var(--temaru-brand-50); }
.temaru-edit-person form { display: grid; gap: 6px; margin: 8px 0; padding: 10px; min-width: 220px; background: #fff; border: 1px solid var(--temaru-line); border-radius: var(--temaru-r-sm); box-shadow: var(--temaru-shadow); white-space: normal; }
.temaru-edit-person label { display: grid; gap: 2px; font-weight: 600; font-size: 12px; }
.temaru-edit-person input[readonly] { background: var(--temaru-bg); color: var(--temaru-muted-c); }
.temaru-new-person { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--temaru-line); }
.temaru-new-person h4 { margin: 0 0 4px; font-size: 14px; }
.temaru-new-person-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.temaru-new-person-fields label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
/* Staff stay neutral grey: blue already means "due now". */
/* Every sub-section is the same grey (Mon 12 Oct 2026): the titles say what each one is. */
.temaru-people-sec { border-left-color: #9aa5a8; }
.temaru-people-sec .temaru-count { background: #6b7478; color: #fff; }

/* Under a bar: overdue checks from before the bar's period */
.temaru-earlier { margin: 6px 0 0; font-size: 13px; color: var(--temaru-bad); }
.temaru-earlier a { color: var(--temaru-bad) !important; }

/* Yellow bar: you are looking at a site you are not a member of (also the form Preview) */
.temaru-visitor-bar {
	margin: 0 0 16px; padding: 12px 16px; border-radius: var(--temaru-r-sm);
	background: #fff6d6; color: #5c4400; border: 1px solid #f0d27a; border-left: 4px solid #e0a326; font-size: 14px;
}
.temaru-picker-view { margin-left: 6px; font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 999px; background: #fff6d6; color: #5c4400; white-space: nowrap; }
.temaru-picker-row.is-current .temaru-picker-view { background: #fff; }

/* Sortable table headers (assets/table-sort.js) */
.temaru-sort {
	all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
	font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; border-radius: 4px;
}
.temaru-sort::after { content: "↕"; font-size: 11px; opacity: .35; }
.temaru-sort:hover { color: var(--temaru-brand); }
.temaru-sort:hover::after { opacity: .8; }
.temaru-sort:focus-visible { outline: 2px solid var(--temaru-brand-100); outline-offset: 2px; }
th[aria-sort="ascending"] .temaru-sort, th[aria-sort="descending"] .temaru-sort { color: var(--temaru-brand); }
th[aria-sort="ascending"] .temaru-sort::after { content: "▲"; opacity: 1; }
th[aria-sort="descending"] .temaru-sort::after { content: "▼"; opacity: 1; }
.temaru-nowrap { white-space: nowrap; }
/* Site logo + name in any table cell: one line, never the logo above the name. */
.temaru-table td:has(.temaru-logo) { white-space: nowrap; }

/* Where you are, above the page title */
.temaru-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--temaru-muted-c); margin: 0 0 4px; }
.temaru-crumbs a { text-decoration: none; }
.temaru-crumbs a:hover { text-decoration: underline; }
.temaru-crumbs strong { color: var(--temaru-ink); font-weight: 600; }
/* WordPress parts inside our admin pages, in our colours */
body.temaru-shell .button, body.temaru-shell .button-secondary {
	min-height: 34px; line-height: 32px; padding: 0 14px; border-radius: var(--temaru-r-sm);
	border-color: var(--temaru-brand-100); color: var(--temaru-brand); background: #fff; font-weight: 600;
}
body.temaru-shell .button:hover, body.temaru-shell .button-secondary:hover { background: var(--temaru-brand-50); border-color: var(--temaru-brand-100); color: var(--temaru-brand-700); }
body.temaru-shell .button:focus { box-shadow: 0 0 0 3px var(--temaru-brand-100); border-color: var(--temaru-brand); outline: none; }
body.temaru-shell .button-primary, body.temaru-shell .button.button-primary {
	background: var(--temaru-brand); border-color: var(--temaru-brand); color: #fff;
}
body.temaru-shell .button-primary:hover, body.temaru-shell .button.button-primary:hover { background: var(--temaru-brand-700); border-color: var(--temaru-brand-700); color: #fff; }
body.temaru-shell .button-small { min-height: 28px; line-height: 26px; padding: 0 10px; font-size: 12px; }
body.temaru-shell .button-link-delete, body.temaru-shell .submitdelete { color: var(--temaru-bad); }
body.temaru-shell .page-title-action { border-radius: var(--temaru-r-sm); border-color: var(--temaru-brand); color: var(--temaru-brand); background: #fff; padding: 6px 12px; top: -2px; }

body.temaru-shell input[type="text"], body.temaru-shell input[type="email"], body.temaru-shell input[type="number"],
body.temaru-shell input[type="date"], body.temaru-shell input[type="search"], body.temaru-shell input[type="password"],
body.temaru-shell input[type="url"], body.temaru-shell textarea, body.temaru-shell select {
	border: 1px solid #d4d4d8; border-radius: var(--temaru-r-sm); color: var(--temaru-ink); min-height: 36px;
}
body.temaru-shell input:focus, body.temaru-shell textarea:focus, body.temaru-shell select:focus {
	border-color: var(--temaru-brand); box-shadow: 0 0 0 3px var(--temaru-brand-100); outline: none;
}
body.temaru-shell select:hover { color: var(--temaru-brand); }
/* Native ticks and dots, in the brand colour. */
body.temaru-shell input[type="checkbox"], body.temaru-shell input[type="radio"] {
	-webkit-appearance: auto; appearance: auto; accent-color: var(--temaru-brand); width: 16px; height: 16px; min-height: 0; margin: 0 4px 0 0; box-shadow: none;
}
body.temaru-shell input[type="checkbox"]::before, body.temaru-shell input[type="radio"]::before { content: none !important; }

body.temaru-shell .widefat {
	border: 0; border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); overflow: hidden; background: var(--temaru-card);
}
body.temaru-shell .widefat thead th, body.temaru-shell .widefat thead td, body.temaru-shell .widefat tfoot th, body.temaru-shell .widefat tfoot td {
	background: #fafbfb; color: var(--temaru-muted-c); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
	border-bottom: 1px solid var(--temaru-line);
}
body.temaru-shell .widefat td, body.temaru-shell .widefat th { padding: 10px; vertical-align: middle; }
body.temaru-shell .widefat tbody tr td, body.temaru-shell .widefat tbody tr th { border-top: 1px solid var(--temaru-line); }
body.temaru-shell .widefat tbody tr:first-child td, body.temaru-shell .widefat tbody tr:first-child th { border-top: 0; }
body.temaru-shell .striped > tbody > :nth-child(odd), body.temaru-shell ul.striped > :nth-child(odd) { background: #fff; }
body.temaru-shell .widefat tbody tr:hover td { background: #fafcfc; }
body.temaru-shell .form-table { background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); border-collapse: separate; margin-bottom: 8px; }
body.temaru-shell .form-table th { color: var(--temaru-ink); padding-left: 20px; }
body.temaru-shell .form-table td { padding-right: 20px; }
body.temaru-shell .form-table tr + tr > * { border-top: 1px solid var(--temaru-line); }
@media (max-width: 782px) { body.temaru-shell .form-table th, body.temaru-shell .form-table td { padding-left: 16px; padding-right: 16px; } }

body.temaru-shell .notice, body.temaru-shell div.updated, body.temaru-shell div.error {
	border: 0; border-left: 4px solid var(--temaru-brand); border-radius: var(--temaru-r-sm); box-shadow: var(--temaru-shadow); margin: 0 32px 16px 32px;
}
body.temaru-shell .wrap .notice, body.temaru-shell .wrap div.updated, body.temaru-shell .wrap div.error { margin: 0 0 16px; }
body.temaru-shell .notice-success, body.temaru-shell div.updated { border-left-color: var(--temaru-ok); }
body.temaru-shell .notice-warning { border-left-color: var(--temaru-late-fill); }
body.temaru-shell .notice-error, body.temaru-shell div.error { border-left-color: var(--temaru-bad); }

body.temaru-shell .nav-tab-wrapper, body.temaru-shell .wrap h2.nav-tab-wrapper { border-bottom: 1px solid var(--temaru-line); padding: 0; margin-bottom: 16px; }
body.temaru-shell .nav-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin: 0 4px -1px 0; padding: 10px 14px; font-size: 14px; color: var(--temaru-muted-c); }
body.temaru-shell .nav-tab:hover { background: none; color: var(--temaru-ink); }
body.temaru-shell .nav-tab-active, body.temaru-shell .nav-tab-active:hover { color: var(--temaru-brand); border-bottom-color: var(--temaru-brand); background: none; }
body.temaru-shell .postbox, body.temaru-shell .card { border: 0; border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); }
body.temaru-shell .subsubsub a.current { color: var(--temaru-brand); }
body.temaru-shell .description { color: var(--temaru-muted-c); }

/* ======================================================================
   Sign-in page
   ====================================================================== */
body.temaru-login {
	background: radial-gradient(ellipse at 55% 35%, #00754f, #006243 60%, #004d35) fixed;
	font-family: var(--temaru-font); color: var(--temaru-ink);
}
body.temaru-login #login { width: 380px; max-width: calc(100% - 32px); padding-top: 10vh; }
body.temaru-login #login h1 a {
	background-size: cover; background-position: center; width: 100%; height: 0; padding-top: 54.5%; margin-bottom: 8px; border-radius: var(--temaru-r-lg);
}
body.temaru-login #loginform, body.temaru-login #lostpasswordform, body.temaru-login #registerform {
	border: 0; border-radius: var(--temaru-r-lg); box-shadow: var(--temaru-shadow); padding: 24px; margin-top: 12px;
}
body.temaru-login label { font-weight: 600; font-size: 14px; }
body.temaru-login input[type="text"], body.temaru-login input[type="password"], body.temaru-login input[type="email"] {
	border: 1px solid #d4d4d8; border-radius: var(--temaru-r-sm); min-height: 46px; font-size: 16px; padding: 6px 12px; box-shadow: none;
}
body.temaru-login input:focus { border-color: var(--temaru-brand); box-shadow: 0 0 0 3px var(--temaru-brand-100); outline: none; }
body.temaru-login .button-primary {
	background: var(--temaru-brand); border-color: var(--temaru-brand); border-radius: var(--temaru-r-sm);
	min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600;
}
body.temaru-login .button-primary:hover, body.temaru-login .button-primary:focus { background: var(--temaru-brand-700); border-color: var(--temaru-brand-700); box-shadow: 0 0 0 3px var(--temaru-brand-100); }
body.temaru-login .button.wp-hide-pw { color: var(--temaru-brand); }
body.temaru-login input[type="checkbox"] { accent-color: var(--temaru-brand); }
body.temaru-login input[type="checkbox"]:checked { background: var(--temaru-brand); border-color: var(--temaru-brand); }
body.temaru-login #nav, body.temaru-login #backtoblog { text-align: center; }
body.temaru-login #nav a, body.temaru-login #backtoblog a { color: #e6f0eb; }
body.temaru-login #nav a:hover, body.temaru-login #backtoblog a:hover { color: #fff; }
body.temaru-login .message, body.temaru-login .notice, body.temaru-login #login_error {
	border-radius: var(--temaru-r-sm); border-left-width: 4px; box-shadow: var(--temaru-shadow);
}
body.temaru-login .message, body.temaru-login .notice-info { border-left-color: var(--temaru-brand); }
body.temaru-login .language-switcher { display: none; }

/* ======================================================================
   Help: "? Help" panel, field tips, Help page (includes/class-temaru-help.php, assets/help.js)
   ====================================================================== */
.temaru-help-btn {
	display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; cursor: pointer;
	border-radius: 999px; border: 1px solid var(--temaru-brand-100); background: #fff; color: var(--temaru-brand);
	font: 600 13px var(--temaru-font); box-shadow: var(--temaru-shadow);
}
.temaru-help-btn:hover, .temaru-help-btn.is-on { background: var(--temaru-brand); color: #fff; border-color: var(--temaru-brand); }
.temaru-help-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--temaru-brand); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.temaru-help-btn:hover .temaru-help-q, .temaru-help-btn.is-on .temaru-help-q { background: #fff; color: var(--temaru-brand); }
.temaru-help-top { position: fixed; top: 16px; right: 22px; z-index: 9991; }
.temaru-side-help { padding: 0 10px 8px; }
.temaru-side-help a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--temaru-r-sm); color: #fff !important; text-decoration: none; font-weight: 600; background: rgba(255, 255, 255, .08); }
.temaru-side-help a:hover, .temaru-side-help a.is-current { background: rgba(255, 255, 255, .18); }
@media (max-width: 960px) {
	.temaru-help-top { position: absolute; top: 18px; right: 56px; }
	.temaru-help-btn { box-shadow: none; }
	.temaru-side-help { display: none; }
	.temaru-side.is-open .temaru-side-help { display: block; }
}

.temaru-help-dim { position: fixed; inset: 0; background: rgba(10, 30, 30, .3); z-index: 99998; }
.temaru-help {
	position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw; z-index: 99999;
	display: flex; flex-direction: column; background: #fff; color: var(--temaru-ink);
	box-shadow: -12px 0 40px rgba(0, 0, 0, .18); font: 14px/1.5 var(--temaru-font);
}
.temaru-help[hidden], .temaru-help-dim[hidden] { display: none !important; }
.temaru-help-grab { display: none; }
.temaru-help-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--temaru-line); }
.temaru-help-head .temaru-help-q { width: 28px; height: 28px; font-size: 15px; }
.temaru-help-head strong { display: block; font-size: 16px; }
.temaru-help-head small { display: block; font-size: 12px; color: var(--temaru-muted-c); }
.temaru-help-role { display: inline-block; font-size: 11px; background: var(--temaru-brand-50); color: var(--temaru-brand-700); border-radius: 999px; padding: 0 8px; font-weight: 600; }
.temaru-help-close { margin-left: auto; background: none; border: 0; font-size: 18px; color: var(--temaru-muted-c); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.temaru-help-close:hover { background: var(--temaru-bg); }
.temaru-help-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.temaru-help-body h4 { margin: 18px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--temaru-muted-c); }
.temaru-help-body h4:first-child { margin-top: 0; }
.temaru-help-body p { margin: 0 0 8px; }
.temaru-how { border: 1px solid var(--temaru-line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.temaru-how summary { padding: 10px 12px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.temaru-how summary::-webkit-details-marker { display: none; }
.temaru-how summary::after { content: "▸"; color: var(--temaru-muted-c); }
.temaru-how[open] summary::after { content: "▾"; }
.temaru-how ol { margin: 0; padding: 0 14px 12px 32px; }
.temaru-how li { margin: 3px 0; }
.temaru-words { margin: 0; }
.temaru-words dt { font-weight: 600; }
.temaru-words dd { margin: 0 0 8px; color: var(--temaru-muted-c); }
.temaru-help-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--temaru-line); background: #fafbfb; font-size: 13px; }
.temaru-help-foot a { color: var(--temaru-brand); font-weight: 600; text-decoration: none; }
/* Phones: the help slides up from the bottom. */
@media (max-width: 700px) {
	.temaru-help { top: auto; left: 0; width: auto; max-height: 82vh; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); }
	.temaru-help-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: #d4d4d8; margin: 8px auto 0; }
}
.temaru-me-menu a .temaru-icon { width: 16px; height: 16px; vertical-align: -3px; }
/* Forms website: "? Help" in the top bar, next to the initials. */
.temaru-appbar-help { margin-left: auto; text-decoration: none; box-shadow: none; flex: none; }
.temaru-appbar-help + .temaru-me { margin-left: 8px; }
@media (max-width: 420px) { .temaru-appbar-help { padding: 0 7px; } .temaru-appbar-help .temaru-help-word { display: none; } }

/* ⓘ tips next to fields */
.temaru-tipwrap { position: relative; display: inline-block; vertical-align: middle; }
.temaru-i {
	display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; cursor: pointer;
	border: 1.5px solid var(--temaru-brand); background: #fff; color: var(--temaru-brand); font: italic 700 11px Georgia, serif;
}
.temaru-i[aria-expanded="true"], .temaru-i:hover { background: var(--temaru-brand); color: #fff; }
.temaru-tip {
	position: absolute; top: calc(100% + 8px); left: -12px; z-index: 50; width: 300px; max-width: 80vw;
	background: var(--temaru-ink); color: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	font: 400 13px/1.5 var(--temaru-font); text-align: left; white-space: normal;
}
.temaru-tip[hidden] { display: none !important; }
.temaru-tip::before { content: ""; position: absolute; top: -6px; left: 16px; width: 12px; height: 12px; background: var(--temaru-ink); transform: rotate(45deg); }
.temaru-tip b { display: block; margin-bottom: 2px; }
.temaru-tip-ex { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); color: var(--temaru-brand-100); }

/* Help page */
.temaru-help-page { max-width: 900px; }
.temaru-help-search { display: flex; align-items: center; gap: 10px; height: 48px; border: 1px solid #d4d4d8; border-radius: 10px; padding: 0 14px; background: #fff; margin: 8px 0 20px; }
.temaru-help-search input { flex: 1; border: 0 !important; box-shadow: none !important; font: 16px var(--temaru-font); background: transparent; min-height: 0 !important; outline: none; }
.temaru-help-group h2 { font-size: 13px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--temaru-muted-c) !important; margin: 22px 0 8px !important; }
/* Help page: two parts, Forms (navy) and Safety (purple), Mon 12 Oct 2026. */
.temaru-help-part { --temaru-part: #154064; border-left: 6px solid var(--temaru-part); padding: 2px 0 6px 14px; margin: 26px 0; }
.temaru-help-part.is-safety { --temaru-part: #3e1354; }
.temaru-help-part.is-both { --temaru-part: #6b7478; }
.temaru-help-part.is-hub { --temaru-part: #006243; }
.temaru-help-part-head { margin: 0 0 4px !important; font-size: 22px !important; color: var(--temaru-part) !important; }
.temaru-help-group h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--temaru-muted-c); margin: 18px 0 8px; }
.temaru-help-part-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; color: #fff; background: #154064; }
.temaru-help-part-tag.is-safety { background: #3e1354; }
.temaru-help-part-tag.is-both { background: #6b7478; }
.temaru-help-part-tag.is-hub { background: #006243; }
.temaru-help-topic.is-hub { border-left: 4px solid #006243; }
.temaru-help-topic.is-both { border-left: 4px solid #6b7478; }
.temaru-help-topic.is-safety { border-left: 4px solid #3e1354; }
.temaru-help-topic.is-checks { border-left: 4px solid #154064; }
.temaru-help-topic { background: #fff; border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); margin-bottom: 8px; }
.temaru-help-topic > summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.temaru-help-topic > summary::-webkit-details-marker { display: none; }
.temaru-help-topic > summary::after { content: "▸"; color: var(--temaru-muted-c); }
.temaru-help-topic[open] > summary::after { content: "▾"; }
.temaru-help-topic .temaru-help-body { padding: 0 16px 14px; }
.temaru-help-topic-words { background: #fff; border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); padding: 14px 16px; }
.temaru-help-none { color: var(--temaru-muted-c); }
/* ======================================================================
   Safety (incidents and near misses). Same pieces as Forms.
   ====================================================================== */

/* Level and status badges: same dot badges as Forms */
.temaru-badge-lvl-near_miss { background: var(--temaru-none-bg); color: var(--temaru-none); }
.temaru-badge-lvl-minor { background: var(--temaru-ok-bg); color: var(--temaru-ok); }
.temaru-badge-lvl-moderate { background: var(--temaru-late-bg); color: var(--temaru-late); }
.temaru-badge-lvl-serious { background: var(--temaru-bad-bg); color: var(--temaru-bad); }
.temaru-badge-inc-new { background: var(--temaru-due-bg); color: var(--temaru-due); }
.temaru-badge-inc-investigating { background: var(--temaru-late-bg); color: var(--temaru-late); }
.temaru-badge-inc-closed { background: var(--temaru-ok-bg); color: var(--temaru-ok); }
.temaru-badge-inc-duplicate { background: var(--temaru-none-bg); color: var(--temaru-none); }
/* Log pills: Confidential is red, Shown in Forms is the brand colour (decided Fri 9 Oct 2026) */
.temaru-badge-confidential { background: var(--temaru-bad-bg); color: var(--temaru-bad); }
.temaru-badge-shared { background: var(--temaru-brand-50); color: var(--temaru-brand-700); box-shadow: inset 0 0 0 1px var(--temaru-brand-100); }

/* Phone: Report an incident button at the top of To do */
.temaru-report-btn {
	display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px;
	background: var(--temaru-bad-bg); color: #8a241c !important; border: 1px solid #f0c9c4; border-radius: var(--temaru-r);
	text-decoration: none; box-shadow: var(--temaru-shadow);
}
.temaru-report-btn .temaru-icon { width: 28px; height: 28px; flex: none; }
.temaru-report-btn strong { display: block; font-size: 17px; }
.temaru-report-btn small { display: block; font-size: 13px; opacity: .85; }
.temaru-item-report { border-left-color: var(--temaru-bad); }

/* Phone: the report form */
.temaru-emergency { background: var(--temaru-bad-bg); color: #8a241c; border-radius: var(--temaru-r-sm); padding: 10px 14px; font-weight: 700; margin: 0 0 12px; }
.temaru-steps { display: none; gap: 4px; margin: 0 0 8px; }
.temaru-steps-on .temaru-steps { display: flex; }
.temaru-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--temaru-line); }
.temaru-steps span.is-on { background: var(--temaru-brand); }
.temaru-step-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--temaru-muted-c); margin: 8px 0; }
.temaru-step-error { background: var(--temaru-bad-bg); color: #8a241c; border-radius: var(--temaru-r-sm); padding: 10px 14px; font-weight: 600; }
.temaru-step-bar { display: flex; gap: 8px; }
.temaru-step-bar .temaru-button { flex: 1; min-height: 52px; font-size: 16px; }
.temaru-step-bar [data-step-back] { flex: .6; }
.temaru-mic { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; color: var(--temaru-muted-c); font-weight: 400; }
.temaru-mic .temaru-icon { width: 18px; height: 18px; color: var(--temaru-brand); }
.temaru-when { display: flex; gap: 8px; }
.temaru-when input[type="date"] { flex: 1; }
.temaru-form input[type="time"], .temaru-form select {
	min-height: 48px; padding: 10px 12px; font: 16px/1.4 var(--temaru-font); color: var(--temaru-ink);
	border: 1px solid #d4d4d8; border-radius: var(--temaru-r-sm); background: #fff; max-width: 100%;
}
.temaru-person label { font-weight: 600; margin: 12px 0 6px; }
.temaru-person legend { display: flex; justify-content: space-between; align-items: center; }
.temaru-person-row { display: flex; gap: 8px; }
.temaru-person-row select { flex: 0 0 40%; }
.temaru-q { font-weight: 600; margin: 14px 0 8px; }
.temaru-link-btn { background: none; border: 0; color: var(--temaru-brand); font: 500 14px var(--temaru-font); cursor: pointer; padding: 4px; }
.temaru-bodymap-pics { display: flex; gap: 8px; justify-content: center; }
.temaru-bodymap-pics figure { margin: 0; flex: 1; max-width: 170px; text-align: center; }
.temaru-bodymap-pics svg, .temaru-headmap svg { width: 100%; height: auto; display: block; }
.temaru-bodymap-pics figcaption { font-size: 11px; color: var(--temaru-muted-c); margin-top: 4px; }
.temaru-area { fill: #f4f4f5; stroke: #a1a1aa; stroke-width: 1; cursor: pointer; }
.temaru-area:hover { fill: var(--temaru-brand-50); }
.temaru-area.is-on { fill: #f3a59c; stroke: var(--temaru-bad); stroke-width: 1.5; }
.temaru-zone { fill: transparent; cursor: pointer; }
.temaru-zone:hover { fill: rgba(0, 98, 67, .12); }
.temaru-head-art { fill: none; stroke: #71717a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.temaru-head-art .temaru-head-skin { fill: #fbf7f4; }
.temaru-head-art .temaru-head-dot { fill: #71717a; stroke: none; }
.temaru-head-art text { stroke: none; }
.temaru-headmap { border: 2px solid var(--temaru-brand-100); border-radius: var(--temaru-r); padding: 10px; margin: 10px auto; background: #fff; max-width: 300px; }
.temaru-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.temaru-chip { background: var(--temaru-bad-bg); color: var(--temaru-bad); border: 0; border-radius: 999px; padding: 5px 10px; font: 600 13px var(--temaru-font); cursor: pointer; }
.temaru-area-list summary { cursor: pointer; color: var(--temaru-brand); font-size: 14px; margin: 4px 0; }
.temaru-area-list div { columns: 2; font-size: 14px; }
.temaru-area-list label { font-weight: 400; margin: 2px 0; display: flex; gap: 6px; align-items: center; break-inside: avoid; }
.temaru-check .temaru-answers { margin-bottom: 12px; }
.temaru-sent { text-align: center; padding: 20px 16px; background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); margin-bottom: 16px; }
.temaru-sent-tick { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--temaru-ok-bg); color: var(--temaru-ok); font-size: 30px; font-weight: 700; }

/* Admin: one incident */
.temaru-inc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .temaru-inc-grid { grid-template-columns: minmax(0, 1fr); } }
.temaru-box { background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); padding: 16px 18px; margin: 0 0 20px; }
.temaru-box > h2 { margin-top: 0; }
.temaru-box .temaru-answers { box-shadow: none; border: 1px solid var(--temaru-line); }
.temaru-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--temaru-line); margin: 12px 0 16px; flex-wrap: wrap; }
.temaru-tabs a { padding: 8px 12px; color: var(--temaru-muted-c) !important; text-decoration: none; border-bottom: 2px solid transparent; font-weight: 600; }
.temaru-tabs a.is-current { color: var(--temaru-brand) !important; border-bottom-color: var(--temaru-brand); }
.temaru-stack-form { display: grid; gap: 10px; max-width: 620px; }
.temaru-stack-form > label, .temaru-stack-form fieldset, .temaru-worksafe label, .temaru-shared-box label { display: grid; gap: 4px; font-weight: 600; }
.temaru-stack-form textarea, .temaru-stack-form input[type="text"] { width: 100%; }
.temaru-stack-form .temaru-inline, .temaru-stack-form fieldset label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin-right: 12px; }
.temaru-stack-form fieldset { border: 0; padding: 0; margin: 0; }
.temaru-stack-form .button { justify-self: start; }
.temaru-worksafe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.temaru-worksafe-box { display: grid; gap: 10px; border: 2px solid #9aa5a8; background: #f4f6f7; border-radius: var(--temaru-r); padding: 10px 12px; }
.temaru-worksafe-box fieldset { margin: 0; }
.temaru-shared-box { border: 2px dashed var(--temaru-brand-100); background: var(--temaru-brand-50); border-radius: var(--temaru-r); padding: 10px 12px; }
.temaru-shared-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--temaru-brand-700); }
.temaru-shared-warn { background: var(--temaru-late-bg); color: #6e4306; border-radius: var(--temaru-r-sm); padding: 8px 10px; font-size: 13px; margin: 6px 0 0; }
.temaru-edit-details { margin-top: 12px; }
.temaru-edit-details > summary { list-style: none; display: inline-block; }
.temaru-edit-details > summary::-webkit-details-marker { display: none; }
.temaru-edit-details form { margin-top: 12px; }
.temaru-log { list-style: none; margin: 16px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--temaru-line); }
.temaru-log li { position: relative; margin: 0 0 14px; }
.temaru-log li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--temaru-line); }
.temaru-log li.is-shared::before { background: var(--temaru-brand); }
.temaru-log-meta { font-size: 12px; color: var(--temaru-muted-c); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.temaru-needs { list-style: disc; padding-left: 20px; }
.temaru-card-open { border-top-color: var(--temaru-due); }
.temaru-card-open .temaru-card-num { color: var(--temaru-due); }
.temaru-head-label { font: 600 11px var(--temaru-font); fill: var(--temaru-muted-c); pointer-events: none; }
.temaru-late-date { color: var(--temaru-bad); font-weight: 600; }
tr.temaru-before-row td { background: var(--temaru-brand-50) !important; }
.temaru-close-decide { display: grid; gap: 12px; margin-top: 12px; }
.temaru-linked-incidents { margin: 12px 0 20px; max-width: 900px; }
.temaru-linked-incidents .temaru-answers { box-shadow: none; border: 1px solid var(--temaru-line); }
.temaru-make-action { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--temaru-line); border-radius: var(--temaru-r-sm); background: #fafafa; }

/* Safety dashboard (step 6) */
.temaru-safety-filters { margin: 4px 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
a.temaru-card-link, span.temaru-card-link { display: block; color: inherit !important; text-decoration: none; }
.temaru-card-late { border-top-color: var(--temaru-late); }
.temaru-card-late .temaru-card-num { color: var(--temaru-late); }
.temaru-safety-charts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
@media (max-width: 1100px) { .temaru-safety-charts { grid-template-columns: minmax(0, 1fr); } }
.temaru-bars { display: flex; gap: 6px; align-items: flex-end; height: 150px; padding-top: 8px; }
.temaru-bar-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; }
.temaru-bar-stack { display: flex; flex-direction: column; gap: 1px; }
.temaru-bar-col small { text-align: center; font-size: 11px; color: var(--temaru-muted-c); margin-top: 4px; }
.temaru-seg { display: block; border-radius: 2px; }
.temaru-seg-near_miss { background: #a1a1aa; }
.temaru-seg-minor { background: var(--temaru-ok); }
.temaru-seg-moderate { background: var(--temaru-late-fill); }
.temaru-seg-serious { background: var(--temaru-bad); }
.temaru-seg-none { background: var(--temaru-due); }
.temaru-seg-incident, .temaru-seg-staff, .temaru-seg-visitor, .temaru-seg-contractor, .temaru-seg-child, .temaru-seg-other { background: var(--temaru-brand); }
.temaru-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--temaru-muted-c); }
.temaru-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.temaru-hbar { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 5px 0; }
.temaru-hbar .t { width: 110px; }
.temaru-hbar .b { height: 10px; border-radius: 2px; display: inline-block; }
.temaru-box h3 { font-size: 13px; margin: 14px 0 6px; }
.temaru-tog { background: none; border: 0; color: var(--temaru-brand); font-weight: 700; cursor: pointer; padding: 0 4px; }
.temaru-levels-row td { background: #fcfcfd; }
.temaru-levels-row .temaru-badge { margin-right: 4px; }
.temaru-gps { margin-top: 10px; }
.temaru-gps .temaru-icon { width: 18px; height: 18px; }
.temaru-ok-text { color: var(--temaru-ok); }
.temaru-photo-preview, .temaru-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.temaru-photo-preview img, .temaru-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--temaru-r-sm); border: 1px solid var(--temaru-line); display: block; }

/* Safety calendar (16.12): each week = day numbers, then one row per incident; small icons coloured by level */
.temaru-scal-days, .temaru-scal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.temaru-scal-days div { font-size: 11px; padding: 4px 6px; color: var(--temaru-muted-c); border-right: 1px solid #eef1f1; }
.temaru-scal-row div { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-height: 26px; padding: 2px 5px; border-right: 1px solid #eef1f1; border-top: 1px dashed #eef1f1; }
.temaru-scal-days div:last-child, .temaru-scal-row div:last-child { border-right: 0; }
.temaru-scal-days .is-out, .temaru-scal-row .is-out { background-color: #fbfbfc; color: #b6bfbe; }
.temaru-scal-days .is-today, .temaru-scal-row .is-today { background-color: var(--temaru-brand-50); }
.temaru-scal-days .is-today { color: var(--temaru-brand); font-weight: 700; }
.temaru-scal-empty div { min-height: 30px; }
.temaru-scal-num-label { font-size: 11px; font-weight: 700; color: var(--temaru-ink) !important; text-decoration: none; margin-right: 2px; white-space: nowrap; }
.temaru-scal-num-label:hover { text-decoration: underline; }
.temaru-ci { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 11px/1 var(--temaru-font); color: #fff !important; text-decoration: none !important; flex: none; }
.temaru-ci:hover, .temaru-ci:focus-visible { outline: 2px solid var(--temaru-ink); outline-offset: 1px; }
.temaru-ci-lvl-near_miss { background: #8a8a92; }
.temaru-ci-lvl-minor { background: var(--temaru-ok); }
.temaru-ci-lvl-moderate { background: var(--temaru-late-fill); color: #3d2a05 !important; }
.temaru-ci-lvl-serious { background: var(--temaru-bad); }
.temaru-ci-lvl-none { background: var(--temaru-due); }
.temaru-ci-closed, .temaru-ci-due, .temaru-ci-overdue { border-radius: 4px; }
.temaru-ci-activity { font-size: 10px; }
.temaru-ci-key { background: #fff !important; color: var(--temaru-ink) !important; box-shadow: inset 0 0 0 1.5px var(--temaru-ink); }
.temaru-cal-legend .temaru-ci { vertical-align: middle; }
.temaru-cal-legend-sep { border-left: 1px solid var(--temaru-line); }
.temaru-scal-list { display: none; }
.temaru-scal-list .temaru-agenda-row { color: var(--temaru-ink) !important; text-decoration: none; }
@media (max-width: 700px) {
	.temaru-scal { display: none; }
	.temaru-scal-list { display: block; }
}
.temaru-inline-form textarea, .temaru-inline-form input[type="text"] { display: block; }

/* Safety tags (16.13) */
.temaru-harm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.temaru-harm-list label { margin: 0; min-height: 44px; font-size: 14px; }
.temaru-tagpick { border: 1px solid var(--temaru-line); border-radius: var(--temaru-r-sm); padding: 8px 10px; max-height: 260px; overflow-y: auto; background: #fff; }
.temaru-tagpick-search { width: 100%; margin-bottom: 6px; }
.temaru-tagpick-group strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--temaru-muted-c); margin: 8px 0 2px; }
.temaru-tagpick-item { display: inline-flex !important; align-items: center; gap: 4px; margin: 2px 10px 2px 0 !important; font-weight: 400 !important; }
.temaru-tagpick-item:has(input:checked) { color: var(--temaru-brand-700); font-weight: 600 !important; }
.temaru-tag { display: inline-block; background: var(--temaru-brand-50); color: var(--temaru-brand-700); border: 1px solid var(--temaru-brand-100); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; margin: 1px 2px; }
.temaru-tag-harm { background: var(--temaru-none-bg); color: var(--temaru-ink); border-color: var(--temaru-line); }
.temaru-tags-admin td form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.temaru-similar { background: var(--temaru-late-bg); border: 1px solid #f0d9a8; border-radius: var(--temaru-r-sm); padding: 8px 10px; margin: 8px 0; }
:where(.temaru-hbar .b) { background: var(--temaru-brand); }
.temaru-box > form.temaru-row-form:has(.temaru-tagpick) { display: block; }
.temaru-box .temaru-tagpick { max-width: 720px; }
.temaru-tags-admin input[type="text"] { min-width: 280px; }

/* Phone: Safety tab badge (16.15) */
.temaru-nav a[data-badge] { position: relative; }
.temaru-nav a[data-badge]::after { content: attr(data-badge); position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--temaru-bad); color: #fff; font: 700 11px/18px var(--temaru-font); text-align: center; }
@media (min-width: 701px) { .temaru-nav a[data-badge]::after { position: static; display: inline-block; margin-left: 4px; } }
.temaru-tagpick { overflow-x: hidden; }

/* Phone: Forms and Safety are equal sections (Fri 9 Oct 2026). Te Maru secondary colours (Tue 20 Oct 2026): Forms navy, Safety purple. */
.temaru { --temaru-safety: #3e1354; --temaru-safety-50: #f1ecf4; --temaru-safety-100: #d6c6df; --temaru-checks: #154064; }
.temaru-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 16px; background: var(--temaru-card); border-bottom: 1px solid var(--temaru-line); }
.temaru-switch a { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: var(--temaru-r-sm); font-weight: 700; font-size: 16px; text-decoration: none; color: var(--temaru-muted-c) !important; background: var(--temaru-bg); border: 1.5px solid var(--temaru-line); }
.temaru-switch a .temaru-icon { width: 20px; height: 20px; }
.temaru-switch .temaru-switch-checks.is-current { background: var(--temaru-checks); border-color: var(--temaru-checks); color: #fff !important; }
.temaru-section-checks .temaru-nav a.is-current { color: var(--temaru-checks) !important; border-bottom-color: var(--temaru-checks); }
.temaru-switch .temaru-switch-safety.is-current { background: var(--temaru-safety); border-color: var(--temaru-safety); color: #fff !important; }
.temaru-switch a[data-badge]::after { content: attr(data-badge); position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--temaru-bad); color: #fff; font: 700 12px/20px var(--temaru-font); border: 2px solid #fff; }
.temaru-section-checks .temaru-appbar { box-shadow: inset 0 -3px 0 var(--temaru-checks); }
.temaru-section-safety .temaru-appbar { box-shadow: inset 0 -3px 0 var(--temaru-safety); }
.temaru-section-safety .temaru-nav a.is-current { color: var(--temaru-safety) !important; border-bottom-color: var(--temaru-safety); }
.temaru-section-safety h2:first-child { color: var(--temaru-safety); }

/* Safety calendar: one line per incident, 3 and 6 month timeline, list with selection (Fri 9 Oct 2026) */
.temaru-scal-spans { margin: 4px 0 6px; }
.temaru-scal-row { position: relative; }
.temaru-scal-row > div.ln { background-image: linear-gradient(var(--lvl), var(--lvl)); background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 50%; }
.temaru-scal-row > div.ln-start { background-size: calc(100% - 4px) 3px; background-position: 100% 50%; }
.temaru-scal-row > div.ln-end { background-size: 50% 3px; background-position: 0 50%; }
.temaru-scal-row > div.ln-now::after { content: "→"; margin-left: auto; color: var(--lvl); font-weight: 700; }
.temaru-lvl-near_miss { --lvl: #8a8a92; } .temaru-lvl-minor { --lvl: var(--temaru-ok); } .temaru-lvl-moderate { --lvl: var(--temaru-late-fill); } .temaru-lvl-serious { --lvl: var(--temaru-bad); } .temaru-lvl-none { --lvl: var(--temaru-due); }
.temaru-scal-row .temaru-scal-num-label { background: #fff; padding: 0 3px; border-radius: 3px; }
.temaru-line-key { display: inline-block; width: 22px; height: 3px; background: var(--temaru-ink); vertical-align: middle; margin-right: 4px; }
.has-sel .temaru-scal-row:not(.is-sel), .has-sel .temaru-tl-row:not(.is-sel) { opacity: .25; }
.temaru-scal-row.is-sel > div, .temaru-tl-row.is-sel { background-color: var(--temaru-brand-50); }
/* Timeline: numbers on the left, time scrolls and drags (Fri 9 Oct 2026) */
.temaru-tl { display: flex; background: var(--temaru-card); border-radius: var(--temaru-r); box-shadow: var(--temaru-shadow); overflow: hidden; }
.temaru-tl-labels { flex: 0 0 170px; border-right: 1px solid var(--temaru-line); background: #fff; z-index: 1; }
.temaru-tl-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.temaru-tl-scroll.is-dragging { cursor: grabbing; }
.temaru-tl-inner { position: relative; }
.temaru-tl-headcell { position: relative; height: 34px; border-bottom: 1px solid var(--temaru-line); }
.temaru-tl-row { height: 28px; border-bottom: 1px dashed #eef1f1; position: relative; }
.temaru-tl-label { display: flex; align-items: center; gap: 6px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.temaru-tl-month { position: absolute; top: 2px; font-size: 11px; font-weight: 700; color: var(--temaru-muted-c); border-left: 1px solid var(--temaru-line-strong, #d4d4d8); padding-left: 4px; height: 100%; white-space: nowrap; }
.temaru-tl-dayno { position: absolute; bottom: 2px; font-size: 10px; text-align: center; color: var(--temaru-muted-c); }
.temaru-tl-dayno.is-weekend { color: #b6bfbe; }
.temaru-tl-line { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--lvl); }
.temaru-tl-line.is-open::after { content: "→"; position: absolute; right: -12px; top: -9px; color: var(--lvl); font-weight: 700; }
.temaru-tl-day { position: absolute; top: 5px; display: flex; gap: 1px; transform: translateX(-50%); }
.temaru-tl-day .temaru-ci { width: 17px; height: 17px; font-size: 10px; }
.temaru-tl-today { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--temaru-brand); pointer-events: none; }
.temaru-tl-today span { position: absolute; top: 2px; left: 4px; font-size: 10px; color: var(--temaru-brand); font-weight: 700; background: #fff; }
.temaru-tl-tip { margin: 0 0 6px; }
/* List under the calendar */
.temaru-scal-list2 { margin-top: 20px; }
.temaru-scal-listhead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.temaru-scal-selbar { display: flex; gap: 8px; align-items: center; }
.temaru-scal-item { align-items: flex-start; }
.temaru-scal-item-main { flex: 1; min-width: 0; }
.temaru-scal-item-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 2px; }
.temaru-scal-list { display: none !important; }
@media (max-width: 700px) {
	.temaru-scal-spans { display: none; }
}

/* Incident name (Fri 9 Oct 2026) */
.temaru-inc-name { font-size: 12px; color: var(--temaru-muted-c); }
.temaru-tl-labels { flex-basis: 260px; }
.temaru-tl-name { cursor: pointer; overflow: hidden; text-overflow: ellipsis; color: var(--temaru-ink); }

/* Forms timeline: one row per form, each window a block in its status colour (Fri 9 Oct 2026) */
.temaru-tl-win { position: absolute; top: 6px; height: 16px; border-radius: 3px; cursor: pointer; box-shadow: inset -1px 0 0 #fff; box-sizing: border-box; }
.temaru-tl-win.temaru-st-upcoming { border: 1px dashed var(--temaru-due); }
.temaru-tl-group { display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 700; background: #f4f6f6; white-space: nowrap; overflow: hidden; }
[data-ftl] .temaru-cal-legend { margin: 8px 0; }
[data-form-list] .temaru-agenda-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Safety calendar list: Coming up (Fri 9 Oct 2026) */
.temaru-scal-coming > h3 { margin: 18px 0 6px; padding-top: 10px; border-top: 1px solid var(--temaru-line); }

/* Safety calendar: the number of an open incident is a Safety purple chip (Fri 9 Oct 2026) */
.temaru-scal-num-label.is-open { background: #3e1354 !important; color: #fff !important; padding: 0 4px; border-radius: 3px; }

/* Safety per month graph: number axis, three graphs that fade, Open now (Fri 9 Oct 2026) */
.temaru-trend { display: flex; gap: 6px; margin-top: 8px; }
.temaru-trend-axis { position: relative; width: 26px; height: var(--h); flex: none; }
.temaru-trend-axis span { position: absolute; right: 0; transform: translateY(50%); font-size: 10px; color: var(--temaru-muted-c); line-height: 1; }
.temaru-trend-plot { position: relative; flex: 1; display: flex; gap: 10px; }
.temaru-trend-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed #e4e8e8; }
.temaru-trend-sets { position: relative; flex: 1; height: calc(var(--h) + 20px); }
.temaru-trend-set { position: absolute; inset: 0 0 auto 0; height: calc(var(--h) + 20px); padding-top: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.temaru-trend-set.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.temaru-trend .temaru-bars { height: calc(var(--h) + 20px); padding-top: 0; }
.temaru-trend-open { flex: 0 0 52px; border-left: 1px solid var(--temaru-line); padding-left: 10px; }
.temaru-bar-col.is-open-now small { font-weight: 700; color: var(--temaru-ink); white-space: nowrap; }
.temaru-bar-col.is-open-now .temaru-bar-stack { outline: 2px solid #3e1354; outline-offset: 1px; border-radius: 2px; }
.temaru-trend .temaru-bar-col small { height: 16px; line-height: 16px; margin-top: 4px; }

/* An open incident number, anywhere in Safety: a Safety purple chip (Fri 9 Oct 2026) */
.temaru-inc-num.is-open { display: inline-block; background: #3e1354; color: #fff !important; padding: 0 5px; border-radius: 3px; font-weight: 700; line-height: 1.5; }
h1 .temaru-inc-num.is-open, h2 .temaru-inc-num.is-open { line-height: 1.3; padding: 0 8px; border-radius: 5px; }

/* Forms calendar: a selected form (month bars) and its list (Fri 9 Oct 2026) */
.has-sel .temaru-ev:not(.is-sel) { opacity: .25; }
.temaru-ev.is-sel { box-shadow: 0 0 0 2px var(--temaru-ink); }
[data-ftl] .temaru-scal-item { display: flex; gap: 8px; align-items: flex-start; }
[data-ftl] .temaru-scal-item .temaru-agenda-tag { flex: none; min-width: 84px; text-align: center; }

/* Safety export: the [[site]] shown like the Forms export (Fri 9 Oct 2026) */
.temaru-export-site { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.temaru-export-site .description { font-weight: 400; margin: 0; }

/* Admin: the [[site]] logo line is above the page title, so a sent record does not repeat it (Fri 9 Oct 2026) */
.temaru-admin .temaru-submission > .temaru-location-head { display: none; }

/* The hub (Tue 13 Oct 2026): a third phone section in Te Maru green, and its admin pages. Menu headings roll up and down. */
.temaru { --temaru-hub: #006243; --temaru-hub-50: #e3efe9; --temaru-hub-navy: #154064; --temaru-hub-gold: #8b4627; --temaru-hub-char: #3e1354; --temaru-hub-cream: #fcfcf5; }
.temaru-switch { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.temaru-switch .temaru-switch-hub.is-current { background: var(--temaru-hub); border-color: var(--temaru-hub); color: #fff !important; }
.temaru-section-hub .temaru-appbar { box-shadow: inset 0 -3px 0 var(--temaru-hub); }
.temaru-section-hub .temaru-nav a.is-current { color: var(--temaru-hub) !important; border-bottom-color: var(--temaru-hub); }
.temaru-section-hub h2:first-child { color: var(--temaru-hub); }
.temaru-hub-hero { position: relative; overflow: hidden; background: var(--temaru-hub); color: #fff; border-radius: 18px; padding: 22px 20px 44px; margin: 0 0 -26px; }
.temaru-hub-hero::before { content: ""; position: absolute; right: -24px; top: -16px; width: 190px; height: 190px; opacity: .13; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M5 70 L50 20 L95 70 M20 70 L50 38 L80 70 M35 70 L50 55 L65 70' fill='none' stroke='white' stroke-width='6' stroke-linejoin='round' stroke-linecap='round'/></svg>") no-repeat center / contain; }
.temaru-hub-hero h2 { color: #fff !important; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.1; margin: 0 0 8px; position: relative; }
.temaru-hub-hero p { margin: 0; position: relative; opacity: .92; }
.temaru-hub-search { position: relative; margin: 0 12px 16px; }
.temaru-hub-search .temaru-icon { position: absolute; left: 16px; top: 15px; color: var(--temaru-hub); }
.temaru-hub-search input[type="search"] { width: 100%; min-height: 50px; border: 0; border-radius: 999px; padding: 0 18px 0 46px; font-size: 16px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.temaru-hub-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.temaru-hub-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 112px; padding: 14px; border-radius: 18px; color: #fff !important; text-decoration: none; background: var(--temaru-hub); }
.temaru-hub-tile .temaru-icon { width: 30px; height: 30px; stroke-width: 2; }
.temaru-hub-tile b { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.15; }
.temaru-hub-tile small { display: block; font-size: 12px; opacity: .9; margin-top: 2px; }
.temaru-hub-t2 { background: var(--temaru-hub-char); }
.temaru-hub-t3 { background: var(--temaru-hub-navy); }
.temaru-hub-t4 { background: var(--temaru-hub-gold); color: #fff !important; }
.temaru-hub-wide { grid-column: span 2; flex-direction: row; align-items: center; min-height: 70px; background: #f1ead6; color: #004a33 !important; }
.temaru-hub-wide small { color: var(--temaru-muted-c); }
.temaru-hub-back { margin: 0 0 4px; font-size: 14px; }
.temaru-hub-back a { font-weight: 600; text-decoration: none; }
h3.temaru-hub-group, h3.temaru-hub-scope { font-family: Georgia, "Times New Roman", serif; color: var(--temaru-hub); font-size: 19px; margin: 22px 0 8px; }
h3.temaru-hub-scope { border-bottom: 2px solid var(--temaru-hub-50); padding-bottom: 4px; }
.temaru-hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.temaru-hub-card { display: flex; gap: 12px; align-items: flex-start; background: var(--temaru-card); border: 1px solid var(--temaru-line); border-radius: 16px; padding: 12px 14px; }
.temaru-hub-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--temaru-hub-50); color: var(--temaru-hub); }
.temaru-hub-ic.temaru-hub-logo { background: none; width: auto; height: auto; }
.temaru-hub-body { min-width: 0; display: grid; gap: 3px; }
.temaru-hub-note, .temaru-hub-where, .temaru-hub-checked { font-size: 13px; color: var(--temaru-muted-c); }
.temaru-hub-checked { font-size: 12px; }
.temaru-hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.temaru-hub-call, .temaru-hub-web { display: inline-block; min-height: 34px; line-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.temaru-hub-call { background: var(--temaru-hub); color: #fff !important; }
.temaru-hub-call-hot { background: var(--temaru-bad); }
.temaru-hub-web { background: var(--temaru-hub-50); color: var(--temaru-hub) !important; }
.temaru-hub-tag { display: inline-block; justify-self: start; width: max-content; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 9px; margin-left: 0; }
.temaru-hub-tag-emergency, .temaru-hub-tag-afterhours { background: var(--temaru-bad-bg); color: var(--temaru-bad); }
.temaru-hub-tag-site { background: var(--temaru-due-bg); color: var(--temaru-due); margin-left: 0; }
.temaru-hub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.temaru-hub-chip { font-size: 13px; font-weight: 600; border: 1px solid var(--temaru-line); background: #fff; border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--temaru-ink) !important; }
.temaru-hub-chip.is-on { background: var(--temaru-hub); border-color: var(--temaru-hub); color: #fff !important; }
.temaru-hub-quote { background: var(--temaru-hub-50); border-left: 5px solid var(--temaru-hub); border-radius: 12px; padding: 12px 14px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; color: #004a33; }
.temaru-hub-manage { margin-top: 18px; }

/* Menu headings that roll up and down */
details.temaru-side-group > summary.temaru-side-label { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
details.temaru-side-group > summary.temaru-side-label::-webkit-details-marker { display: none; }
details.temaru-side-group > summary.temaru-side-label::after { content: "\25B8"; font-size: 11px; transition: transform .15s; }
details.temaru-side-group[open] > summary.temaru-side-label::after { transform: rotate(90deg); }
details.temaru-side-group > summary.temaru-side-label:hover { opacity: 1; }

/* Hub admin pages */
/* Groups look like the sub-sections on Sites and staff (grey box, upper-case head with a count). */
.temaru-hub-group .temaru-sec-head { flex-wrap: wrap; }
.temaru-hub-section { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--temaru-muted-c); }
.temaru-hub-tools { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }
.temaru-hub-table form { display: inline; margin: 0; }
/* The buttons in a group heading sit on one line: their forms take no room of their own. */
.temaru-hub-tools form { display: contents; }
.temaru-hub-tools .button { margin: 0; line-height: 2; min-height: 30px; vertical-align: middle; }
.temaru-hub-renameform { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--temaru-line); border-radius: var(--temaru-r-sm); align-items: end; }
.temaru-hub-renameform[hidden] { display: none; }
.temaru-hub-renameform label { display: grid; gap: 4px; font-weight: 600; flex: 1 1 240px; }
.temaru-hub-renameform input[type="text"] { width: 100%; }
.temaru-hub-addgroup { margin: 12px 0 0; }
.temaru-hub-addgroup label { display: inline-grid; gap: 2px; font-weight: 600; font-size: 12px; }
.temaru-hub-where { margin: 0; }
.temaru-hub-form .description { font-weight: 400; }
.temaru-hub-rule { background: #fcf1dd; border: 1px solid #e8c47c; border-radius: 8px; padding: 7px 10px; }
.temaru-hub-form { max-width: 620px; }
.temaru-hub-form select { justify-self: start; }
.temaru-hub-counts { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.temaru-hub-counts a { display: block; min-width: 120px; padding: 10px 14px; border: 1px solid var(--temaru-line); border-radius: 12px; text-decoration: none; background: #fff; }
.temaru-hub-counts b { display: block; font-size: 26px; line-height: 1.2; color: var(--temaru-ink); }
.temaru-hub-counts span { font-size: 13px; color: var(--temaru-muted-c); }
.temaru-hub-counts a.is-warn b { color: var(--temaru-late); }
.temaru-hub-box { border-left: 5px solid #006243; }
.temaru-hub-textwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .temaru-hub-textwrap { grid-template-columns: 1fr; } }
.temaru-hub-preview { border: 8px solid #1b1b1b; border-radius: 26px; overflow: hidden; background: #fcfcf5; font-size: 12px; }
.temaru-hub-pv-head { background: #006243; color: #fff; padding: 14px 14px 30px; display: grid; gap: 4px; }
.temaru-hub-pv-head b { font-family: Georgia, serif; font-size: 20px; line-height: 1.1; }
.temaru-hub-pv-search { margin: -16px 12px 0; background: #fff; border-radius: 999px; padding: 8px 14px; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); color: #777; position: relative; }
.temaru-hub-pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
.temaru-hub-pv-tile { border-radius: 12px; background: #006243; color: #fff; padding: 10px; min-height: 62px; }
.temaru-hub-pv-tile.temaru-hub-t2 { background: #3e1354; }
.temaru-hub-pv-tile.temaru-hub-t3 { background: #154064; }
.temaru-hub-pv-tile.temaru-hub-t4 { background: #8b4627; color: #fff; }
.temaru-hub-pv-tile b { font-family: Georgia, serif; font-size: 13px; display: block; }
.temaru-hub-pv-tile small { font-size: 10px; opacity: .9; }
.temaru-hub-ic.temaru-hub-fav { background: #fff; border: 1px solid var(--temaru-line); }
.temaru-hub-ic img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.temaru-hub-favimg { vertical-align: middle; border-radius: 3px; }
.temaru-hub-notetext.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.temaru-hub-more { justify-self: start; border: 0; background: none; padding: 2px 0; font: 600 13px/1.4 var(--temaru-font); color: var(--temaru-hub); cursor: pointer; }
/* Our camps: web address and email written out, each with a small icon (Tue 13 Oct 2026). */
.temaru-hub-contact { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.temaru-hub-contact .temaru-icon { width: 16px; height: 16px; flex: none; color: var(--temaru-muted-c); }
.temaru .temaru-hub-contact a { color: var(--temaru-hub, #006243) !important; font-weight: 600; overflow-wrap: anywhere; }
/* Our camps: People at each camp, a roll-down table that sorts by its headings (Tue 13 Oct 2026). */
.temaru-sr, .temaru .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.temaru-hub-site { flex-wrap: wrap; }
.temaru-hub-site > .temaru-hub-body { flex: 1 1 0; min-width: 0; }
.temaru-hub-site > .temaru-hub-people { flex: 1 1 100%; min-width: 0; }
.temaru-hub-peopletable .temaru-hub-rolecol { width: 34px; padding-left: 2px; padding-right: 2px; text-align: center; }
.temaru-hub-peopletable th.temaru-hub-rolecol .temaru-sort { gap: 0; }
.temaru-hub-people { margin-top: 8px; border-top: 1px solid var(--temaru-line); padding-top: 6px; }
.temaru-hub-people > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--temaru-hub, #006243); padding: 4px 0; }
.temaru-hub-people > summary::-webkit-details-marker { display: none; }
.temaru-hub-people > summary::after { content: "\25B8"; font-size: 11px; color: var(--temaru-muted-c); }
.temaru-hub-people[open] > summary::after { content: "\25BE"; }
.temaru-hub-people > summary .temaru-icon { width: 18px; height: 18px; }
.temaru-hub-people-wrap { overflow-x: auto; }
.temaru-hub-peopletable { width: 100%; margin: 6px 0 8px; border-collapse: collapse; font-size: 13px; background: #fff; }
.temaru-hub-peopletable th, .temaru-hub-peopletable td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--temaru-line); vertical-align: middle; }
.temaru-hub-peopletable th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--temaru-muted-c); }
.temaru-hub-peopletable td:nth-child(2) a { overflow-wrap: anywhere; }
.temaru .temaru-hub-peopletable a { color: var(--temaru-hub, #006243) !important; }
.temaru-hub-peopletable .temaru-sort:hover, .temaru-hub-peopletable th[aria-sort] .temaru-sort { color: inherit; }
.temaru-hub-role { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 3px; border-radius: 50%; background: #eef2f3; color: #4b5563; }
.temaru-hub-role .temaru-icon { width: 14px; height: 14px; }
.temaru-hub-role.is-form_admin { background: #e3eefa; color: #154064; }
.temaru-hub-role.is-incident_admin { background: #f1ecf4; color: #3e1354; }
.temaru-hub-role.is-ent_admin { background: #fdeee6; color: #006243; }
.temaru-hub-role.is-leadership { background: #f1ecfa; color: #6d28d9; }
.temaru-hub-rolekey { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 12px; color: var(--temaru-muted-c); }
.temaru-hub-rolekey > span { display: inline-flex; align-items: center; gap: 4px; }
/* Hub: emergency numbers on the home, camp pages and the map (Tue 13 Oct 2026). */
.temaru-hub-tiles + .temaru-hub-sos, .temaru-hub-sos + .temaru-hub-tiles { margin-top: 12px; }
.temaru-hub-sos { margin: 0 12px 16px; background: #fff; border: 2px solid #b42318; border-radius: 16px; overflow: hidden; }
.temaru-hub-sos ul { list-style: none; margin: 0; padding: 0; }
.temaru-hub-sos li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-top: 1px solid #f3d6d3; }
.temaru-hub-sos li:first-child { border-top: 0; }
.temaru .temaru-hub-sos-call { display: inline-flex; align-items: center; gap: 6px; flex: none; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 999px; background: #b42318; color: #fff !important; text-decoration: none; font-size: 16px; white-space: nowrap; }
.temaru-hub-sos-call .temaru-icon { width: 18px; height: 18px; }
.temaru-hub-sos li > span { display: grid; gap: 2px; min-width: 0; }
.temaru-hub-sos small { color: var(--temaru-muted-c); font-size: 12px; line-height: 1.3; }
.temaru-hub-sos strong { font-size: 14px; line-height: 1.25; }
.temaru .temaru-hub-sitelink { color: inherit !important; text-decoration: none; }
.temaru-hub-camphead { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.temaru-hub-camphead h2 { margin: 0; }
.temaru-hub-campnote { margin: 0 0 8px; }
.temaru-hub-campcontact { display: grid; gap: 4px; margin: 0 0 12px; }
.temaru-hub-mapwrap { margin: 0 0 14px; }
.temaru-hub-map { position: relative; z-index: 0; isolation: isolate; height: 60vh; min-height: 320px; border-radius: 16px; border: 1px solid var(--temaru-line); overflow: hidden; }
.temaru-hub-map.is-small { height: 240px; min-height: 0; }
.temaru-hub-mapnote { margin: 6px 2px 0; font-size: 12px; color: var(--temaru-muted-c); }
.temaru-hub-mapwrap .temaru-hub-chips { margin-bottom: 8px; }
button.temaru-hub-chip { font-family: inherit; font-size: 13px; font-weight: 600; line-height: inherit; cursor: pointer; }
.temaru-hub-pop { display: grid; gap: 4px; font-size: 14px; }
.temaru-hub-pop-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.temaru-hub-pop .temaru-hub-pop-links a { font-weight: 600; color: #006243 !important; }
.temaru-hub-pop .temaru-hub-pop-links a.temaru-hub-pop-call { color: #b42318 !important; }
.temaru-hub-pin { background: none; border: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.temaru-hub-pin svg { display: block; }
.temaru-hub-pop-logo { display: block; max-width: 140px; max-height: 48px; width: auto; height: auto; object-fit: contain; margin-bottom: 4px; }
.temaru-hub-pin-img { position: relative; }
.temaru-hub-pin-img img { position: absolute; left: 5px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; object-fit: contain; padding: 1px; box-sizing: border-box; }
.temaru-details-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.temaru-details-logo > strong { min-width: 80px; }
.temaru-details-logo > .description { flex-basis: 100%; }
/* Light icons (a white shape on see-through) go on a dark background so they do not vanish on white (Tue 13 Oct 2026). */
.temaru-hub-pin-img.is-dark img { background: #313131; }
.temaru-hub-pin-org.is-dark img { background: #006243; }
.temaru-hub-ic.temaru-hub-fav.is-dark { background: #313131; border-color: #313131; }
.temaru-hub-favimg.is-dark { background: #313131; padding: 2px; border-radius: 4px; }
/* Small icon background: a light and a dark circle showing the icon itself, and Auto (Tue 13 Oct 2026). */
.temaru-logo-picker[data-what="icon"] .temaru-logo-preview { display: none; }
.temaru-icon-bg { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.temaru-bg-opt { display: inline-flex !important; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-weight: 400 !important; font-size: 12px; }
.temaru-bg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.temaru-bg-circle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--temaru-line); }
.temaru-bg-opt.is-white .temaru-bg-circle { background: #fff; }
.temaru-bg-opt.is-dark .temaru-bg-circle { background: #313131; border-color: #313131; }
.temaru-bg-circle img { width: 24px; height: 24px; object-fit: contain; }
.temaru-bg-opt input:checked + .temaru-bg-circle { box-shadow: 0 0 0 3px var(--temaru-brand); }
.temaru-bg-opt input:focus-visible + .temaru-bg-circle, .temaru-bg-opt.is-auto input:focus-visible + .temaru-bg-label { outline: 2px solid var(--temaru-brand); outline-offset: 2px; }
.temaru-bg-opt.is-suggested .temaru-bg-circle { border-style: dashed; border-color: var(--temaru-brand); }
.temaru-bg-opt.is-auto .temaru-bg-label { padding: 4px 10px; border: 1px solid var(--temaru-line); border-radius: 999px; }
.temaru-bg-opt.is-auto input:checked + .temaru-bg-label { background: var(--temaru-brand); border-color: var(--temaru-brand); color: #fff; }
.temaru-hub-favbox { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--temaru-line); }
.temaru-hub-favbox.is-dark { background: #313131; border-color: #313131; }
.temaru-hub-favbox img { width: 24px; height: 24px; object-fit: contain; }
/* Hub admin in the order of the hub (Wed 14 Oct 2026). */
.temaru-hub-scopehead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; font-size: 14px; }
p.temaru-hub-scopehead { margin: 4px 0 6px; }
.temaru-hub-campsnote { padding: 14px 18px; border-left: 6px solid #9aa5a8; }
.temaru-hub-campsnote strong { display: block; font-size: 16px; margin-bottom: 4px; }
.temaru-hub-addgroup { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 10px 0 4px; }
.temaru-hub-addgroup label { display: grid !important; gap: 4px; font-weight: 600; font-size: 13px; }
.temaru-hub-addgroup .button { margin: 0; }
.temaru-hub-groupfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.temaru-hub-groupfoot form { margin: 0; }
.temaru .temaru-hub-cardlink, .temaru-admin .temaru-hub-cardlink { color: var(--temaru-brand); }
.temaru-hub-renameform .temaru-hub-poslabel { flex: 0 0 auto; }
details.temaru-hub-scopefold { background: #fff; border-left-color: var(--temaru-brand); }
details.temaru-hub-scopefold > summary.temaru-sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
details.temaru-hub-scopefold[open] > summary.temaru-sec-head { margin-bottom: 6px; }
.temaru-hub-table .temaru-hub-iccol { width: 34px; padding-right: 0; }
.temaru-hub-ic.is-small { width: 30px; height: 30px; border-radius: 8px; }
.temaru-hub-ic.is-small img { width: 20px; height: 20px; }
.temaru-hub-ic.is-small .temaru-icon { width: 16px; height: 16px; }
.temaru-hub-chips + .temaru-hub-chips { margin-top: -6px; }
.temaru-hub-maplist { margin-top: 12px; }
.temaru-hub-maplist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.temaru-hub-maplist-ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--temaru-line); border-radius: 12px; background: #fff; overflow: hidden; }
.temaru-hub-maplist-ul li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; border-top: 1px solid var(--temaru-line); }
.temaru-hub-maplist-ul li:first-child { border-top: 0; }
.temaru-hub-maplist-ul li > button { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.temaru-hub-maplist-ul li > button:hover { background: var(--temaru-hub-50); }
.temaru-hub-maplist-ul strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.temaru-hub-maplist-sub { font-size: 12px; color: var(--temaru-muted-c); overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; }
.temaru-hub-maplist-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #6b7478; }
.temaru-hub-maplist-ul li.is-camp .temaru-hub-maplist-dot { background: #006243; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.temaru-hub-maplist-call { flex: none; margin-right: 2px; padding: 4px 10px; border-radius: 999px; background: var(--temaru-hub); color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none; }
.temaru-hub-maplist-open { flex: none; width: 34px; height: 34px; margin-right: 6px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--temaru-muted-c); }
.temaru-hub-maplist-open::before { content: "\25BE"; font-size: 16px; }
.temaru-hub-maplist-open[aria-expanded="true"]::before { content: "\25B4"; }
.temaru-hub-maplist-open:hover { background: var(--temaru-hub-50); }
.temaru-hub-maplist-card { flex: 0 0 100%; margin: 0; padding: 0 10px 10px; list-style: none; }
.temaru-hub-maplist-card > li { margin: 0; }
.temaru-hub-maplist-ul li > .temaru-hub-maplist-open { flex: none; width: 34px; padding: 0; justify-content: center; overflow: visible; }
.temaru-hub-pick { position: relative; display: inline-flex; margin: 0; }
.temaru-hub-pick::after { content: "\25BE"; position: absolute; right: 11px; top: 50%; transform: translateY(-52%); font-size: 12px; pointer-events: none; color: var(--temaru-ink); }
.temaru-hub-pick:has(.is-on)::after { color: #fff; }
select.temaru-hub-chip { font-family: inherit; line-height: inherit; height: auto; min-height: 0; margin: 0; padding: 4px 28px 4px 12px; cursor: pointer; -webkit-appearance: none; appearance: none; max-width: 100%; }
select.temaru-hub-chip option { color: var(--temaru-ink); background: #fff; }
.temaru-hub-rich h3 { font-family: Georgia, "Times New Roman", serif; color: var(--temaru-hub); font-size: 18px; margin: 16px 0 6px; }
.temaru-hub-rich h4 { font-size: 15px; margin: 12px 0 4px; }
.temaru-hub-rich ul, .temaru-hub-rich ol { margin: 6px 0 10px 22px; padding: 0; }
.temaru-hub-rich a { color: var(--temaru-hub); }

/* Settings → Modules (Tue 20 Oct 2026): which parts each site uses. */
.temaru-modules { max-width: 980px; }
.temaru-modules th, .temaru-modules td { text-align: center; vertical-align: middle; }
.temaru-modules th:first-child, .temaru-modules td:first-child { text-align: left; }
.temaru-modules th a.temaru-module-all, .temaru-modules th span { display: block; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.temaru-modules .temaru-module-soon { color: #a1a1aa; }
.temaru-modules tr.temaru-module-new td { background: #fafafa; border-top: 2px solid var(--temaru-line); }
.temaru-admin .temaru-modules td.is-changed { background: #e6f0eb !important; }
.temaru-module-tg { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--temaru-muted-c); }
.temaru-module-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.temaru-module-tr { width: 38px; height: 22px; border-radius: 999px; background: #d4d4d8; position: relative; transition: background .15s; }
.temaru-module-tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.temaru-module-tg input:checked + .temaru-module-tr { background: var(--temaru-ok, #1d8048); }
.temaru-module-tg input:checked + .temaru-module-tr::after { left: 19px; }
.temaru-module-tg input:focus-visible + .temaru-module-tr { outline: 2px solid var(--temaru-checks); outline-offset: 2px; }
.temaru-module-lb { width: 44px; text-align: left; }
.temaru-modules-bar .is-dirty { color: var(--temaru-checks); font-weight: 600; }
.temaru-modules th { white-space: nowrap; }
