/*
 * The front end: the agency page, the family view, and the caregiver's day.
 *
 * The caregiver's day is the one that matters here, and it is designed for a
 * phone held in one hand in somebody's hallway. So: big targets, high
 * contrast, no columns, and the two things that can hurt somebody - the
 * alerts line and the blocked-credentials box - at the top and impossible to
 * scroll past by accident.
 */

.thh {
	--thh-accent: #2a6b8f;
	max-width: 46rem;
	margin: 0 auto;
	line-height: 1.55;
}

.thh h2 {
	margin: 0 0 .5rem;
}

.thh-hero {
	margin-bottom: 1.5rem;
}

.thh-strapline {
	font-size: 1.1rem;
	color: #444;
	margin: .2rem 0;
}

.thh-where {
	color: #555;
}

.thh-none {
	color: #666;
	font-style: italic;
}

.thh-note {
	color: #555;
	font-size: .95rem;
	border-left: 3px solid #ddd;
	padding-left: .9rem;
}

.thh-flash {
	padding: .75rem 1rem;
	border-radius: 4px;
	border-left: 4px solid var(--thh-accent);
	background: #f2f7fa;
	margin: 1rem 0;
}

.thh-flash-error {
	border-left-color: #b32d2e;
	background: #fcf0f1;
}

.thh-flash-success {
	border-left-color: #007017;
	background: #f0f7f1;
}

/* ── the caregiver's day ─────────────────────────────────────────────── */

.thh-visit {
	border: 1px solid #ddd;
	border-left: 5px solid var(--thh-accent);
	border-radius: 6px;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
	background: #fff;
}

.thh-visit h3 {
	margin: 0 0 .4rem;
	font-size: 1.15rem;
}

.thh-alerts {
	background: #fcf0f1;
	border: 1px solid #e6b3b4;
	border-radius: 4px;
	padding: .6rem .8rem;
	margin: .5rem 0;
}

.thh-access {
	color: #555;
}

.thh-phone a,
.thh-office a {
	font-size: 1.15rem;
	font-weight: 600;
}

.thh-blocked {
	background: #fcf0f1;
	border: 2px solid #b32d2e;
	border-radius: 6px;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
}

.thh-tasks {
	list-style: none;
	margin: .75rem 0;
	padding: 0;
}

.thh-tasks li {
	padding: .5rem 0;
	border-bottom: 1px solid #eee;
}

.thh-task-name {
	display: block;
	font-weight: 600;
	margin-bottom: .25rem;
}

/* Wide enough to hit with a thumb, and spaced so the wrong one is hard to
   catch. This is filled in standing up, often in bad light. */
.thh-task-state {
	display: inline-block;
	margin: .15rem .75rem .15rem 0;
	padding: .35rem .1rem;
	min-width: 5.5rem;
}

.thh-clock {
	margin-top: .85rem;
}

.thh-button {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	background: var(--thh-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.thh-button:hover,
.thh-button:focus {
	filter: brightness(1.08);
}

.thh-field {
	display: block;
	margin: .75rem 0;
}

.thh-field span {
	display: block;
	font-weight: 600;
	margin-bottom: .2rem;
}

.thh-field input,
.thh-field select,
.thh-field textarea {
	width: 100%;
	padding: .6rem .7rem;
	font-size: 1rem;
	border: 1px solid #bbb;
	border-radius: 4px;
	box-sizing: border-box;
}

.thh-daynav {
	margin: 1.5rem 0;
	text-align: center;
}

.thh-started {
	font-weight: 600;
}

.thh-done {
	color: #005c12;
}

.thh-evv-warn {
	color: #8a5700;
}

/* The honeypot. Hidden from people, left in the DOM for the machines. */
.thh-hp {
	position: absolute;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

/* ── the family view and the service list ────────────────────────────── */

.thh-list {
	list-style: none;
	margin: .5rem 0 1rem;
	padding: 0;
}

.thh-list li {
	padding: .45rem 0;
	border-bottom: 1px solid #eee;
}

.thh-services h4 {
	margin: 1rem 0 .3rem;
}

.thh-licence p {
	font-size: .95rem;
	color: #555;
}

@media screen and (max-width: 600px) {
	.thh {
		padding: 0 .75rem;
	}

	.thh-task-state {
		display: block;
		margin: .2rem 0;
	}
}
