/*
 * TEG-VETCLINIC - the shortcodes, wherever a theme puts them.
 *
 * Everything is scoped under .tvc-public so that a theme's own headings,
 * lists and forms are left alone, and every rule inherits the theme's font on
 * purpose: this is the practice's page, not the plugin's.
 *
 * The red is reserved here too. On a client page it means one thing - a
 * vaccination that has gone past its date, or a bill that has - and if it
 * meant anything else the one that mattered would be missed.
 */

.tvc-public {
	--tvc-teal: #14707f;
	--tvc-teal-dark: #0f5560;
	--tvc-sand: #f6f1e7;
	--tvc-ink: #2b3440;
	--tvc-red: #c0392b;
	--tvc-red-soft: #fbeceb;
	--tvc-amber: #b45309;
	--tvc-line: #e3ddd0;
	--tvc-muted: #6f7a89;
	color: var(--tvc-ink);
}

.tvc-public * { box-sizing: border-box; }

.tvc-public h3.tvc-h,
.tvc-public .tvc-h { color: var(--tvc-teal-dark); margin: 1.6em 0 .5em; }
.tvc-public .tvc-h4 { color: var(--tvc-teal-dark); margin: 1.2em 0 .4em; font-size: 1.05em; }
.tvc-public .tvc-hint { display: block; color: var(--tvc-muted); font-size: .86em; margin-top: 3px; }
.tvc-public .tvc-lead { font-size: 1.05em; }
.tvc-public .tvc-lab { color: var(--tvc-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .8em; }

.tvc-public .tvc-empty,
.tvc-public .tvc-closed {
	background: var(--tvc-sand);
	border-left: 4px solid var(--tvc-teal);
	padding: 12px 16px;
	border-radius: 0 6px 6px 0;
}

.tvc-public .tvc-warn {
	background: var(--tvc-red-soft);
	border-left: 4px solid var(--tvc-red);
	padding: 12px 16px;
	border-radius: 0 6px 6px 0;
	font-weight: 600;
}

.tvc-public .tvc-bad { color: var(--tvc-red); font-weight: 600; }
.tvc-public .tvc-flash { padding: 10px 16px; border-radius: 6px; margin: 0 0 16px; }
.tvc-public .tvc-flash.tvc-ok { background: #e3f0ea; color: #1f5745; }
.tvc-public .tvc-flash.tvc-bad { background: var(--tvc-red-soft); color: #8a1f11; }
.tvc-public .tvc-flash.tvc-info { background: var(--tvc-sand); color: var(--tvc-ink); }

.tvc-public .tvc-btn {
	display: inline-block;
	background: var(--tvc-teal);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 9px 22px;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.tvc-public .tvc-btn:hover,
.tvc-public .tvc-btn:focus { background: var(--tvc-teal-dark); color: #fff; }
.tvc-public .tvc-cta { margin: 18px 0 0; }

/* ── the forms ──────────────────────────────────────────────────────── */

.tvc-pform { margin: 8px 0 0; }
.tvc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 20px; }
.tvc-field { margin: 0 0 14px; }
.tvc-field label { display: block; font-weight: 600; margin-bottom: 4px; }

.tvc-field input[type="text"],
.tvc-field input[type="email"],
.tvc-field input[type="tel"],
.tvc-field input[type="date"],
.tvc-field input[type="number"],
.tvc-field select,
.tvc-field textarea {
	width: 100%;
	max-width: 420px;
	padding: 8px 10px;
	border: 1px solid var(--tvc-line);
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.tvc-field input:focus,
.tvc-field select:focus,
.tvc-field textarea:focus { outline: 2px solid var(--tvc-teal); outline-offset: 1px; }
.tvc-check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.tvc-check input { margin-top: .25em; }
.tvc-req { color: var(--tvc-teal); }
.tvc-submit { margin: 18px 0 0; }

/* What is already on repeat, so the owner can copy the name exactly. */
.tvc-current {
	background: var(--tvc-sand);
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 16px;
	font-size: .94em;
}

.tvc-mini-list { list-style: none; margin: 6px 0 0; padding: 0; }
.tvc-mini-list li { padding: 4px 0; border-bottom: 1px solid var(--tvc-line); }
.tvc-mini-list li:last-child { border-bottom: 0; }

/* The honeypot. Hidden from people and from screen readers, left in the DOM. */
.tvc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── a client's own page ────────────────────────────────────────────── */

.tvc-acc-sec { margin: 0 0 26px; }

.tvc-pcard {
	background: #fff;
	border: 1px solid var(--tvc-line);
	border-top: 3px solid var(--tvc-teal);
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0 0 16px;
}

.tvc-pcard-name { margin: 0 0 4px; font-size: 1.1em; color: var(--tvc-teal-dark); }
.tvc-pcard-meta { margin: 0 0 10px; color: var(--tvc-muted); font-size: .9em; }
.tvc-pcard-links { margin: 10px 0 0; font-size: .92em; }

.tvc-ptable { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.tvc-ptable th,
.tvc-ptable td { text-align: left; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--tvc-line); vertical-align: top; }
.tvc-ptable thead th { font-size: .82em; text-transform: uppercase; letter-spacing: .06em; color: var(--tvc-muted); }
.tvc-ptable tbody th { color: var(--tvc-muted); font-weight: 600; white-space: nowrap; width: 1%; }
.tvc-ptable tfoot th,
.tvc-ptable tfoot td { border-top: 2px solid var(--tvc-ink); border-bottom: 0; padding-top: 10px; }
.tvc-ptable .num { text-align: right; white-space: nowrap; }

.tvc-due-overdue { color: var(--tvc-red); font-weight: 700; }
.tvc-due-due_soon { color: var(--tvc-amber); font-weight: 600; }
.tvc-due-ok { color: var(--tvc-teal-dark); }
.tvc-overdue { color: var(--tvc-red); font-weight: 700; }
.tvc-soon { color: var(--tvc-amber); font-weight: 600; }
.tvc-public tr.tvc-row-overdue td { background: var(--tvc-red-soft); }

.tvc-public .tvc-pill {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 999px;
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .03em;
	background: #ece9f4;
	color: #4b3f74;
	vertical-align: middle;
}

/* ── the team ───────────────────────────────────────────────────────── */

.tvc-people {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.tvc-person {
	background: var(--tvc-sand);
	border: 1px solid var(--tvc-line);
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0;
	text-align: center;
}

.tvc-person img { display: block; margin: 0 auto 8px; }
.tvc-person-name { display: block; font-weight: 700; color: var(--tvc-teal-dark); }
.tvc-person-role { display: block; font-size: .88em; color: var(--tvc-muted); }

@media (max-width: 600px) {
	.tvc-fields { grid-template-columns: 1fr; }
	.tvc-ptable thead { display: none; }
	.tvc-ptable tbody td { display: block; border-bottom: 0; padding: 2px 0; }
	.tvc-ptable tbody tr { display: block; border-bottom: 1px solid var(--tvc-line); padding: 8px 0; }
}
