/*
 * TEG-VETCLINIC - the client page when the plugin draws the whole page.
 *
 * public.css is loaded first and styles the sections themselves; this file is
 * only the shell around them - the top bar, the hero, the page heads, the
 * footer - plus the handful of resets a page with no theme behind it needs.
 */

:root { color-scheme: light; }

* { box-sizing: border-box; }

body.tvc-app {
	--tvc-accent: #14707f;
	--tvc-teal: #14707f;
	--tvc-teal-dark: #0f5560;
	--tvc-sand: #f6f1e7;
	--tvc-ink: #2b3440;
	--tvc-red: #c0392b;
	--tvc-red-soft: #fbeceb;
	--tvc-line: #e3ddd0;
	--tvc-muted: #6f7a89;
	margin: 0;
	background: #fff;
	color: var(--tvc-ink);
	font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.tvc-app.tvc-font-serif { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; }

body.tvc-app a { color: var(--tvc-teal); }
body.tvc-app img { max-width: 100%; height: auto; }

.tvc-skip {
	position: absolute;
	left: -9999px;
	background: var(--tvc-teal);
	color: #fff;
	padding: 10px 18px;
	z-index: 20;
}

.tvc-skip:focus { left: 8px; top: 8px; }

/* ── the top bar ────────────────────────────────────────────────────── */

.tvc-topbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 22px;
	background: var(--tvc-teal-dark);
	color: #fff;
	position: relative;
}

.tvc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tvc-brand-mark { display: block; }
.tvc-brand-name { color: #fff; font-size: 1.15em; font-weight: 700; letter-spacing: .02em; }

.tvc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }

.tvc-nav-item {
	color: #e4f1f3;
	text-decoration: none;
	padding: 7px 13px;
	border-radius: 999px;
	font-size: .95em;
	white-space: nowrap;
}

.tvc-nav-item:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tvc-nav-on { background: #fff; color: var(--tvc-teal-dark); font-weight: 600; }
.tvc-nav-on:hover { background: #fff; color: var(--tvc-teal-dark); }
.tvc-nav-staff { font-size: .85em; opacity: .8; }

.tvc-nav-sep {
	color: #b8dbe0;
	font-size: .72em;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin: 0 6px 0 14px;
	border-left: 1px solid rgba(255, 255, 255, .3);
	padding-left: 14px;
}

.tvc-nav-toggle,
.tvc-nav-burger { display: none; }

/* ── the demo banner ────────────────────────────────────────────────── */

.tvc-demo {
	background: #fdf0dd;
	color: #8a4b09;
	padding: 10px 22px;
	text-align: center;
	font-size: .92em;
}

/* ── the hero and the section heads ─────────────────────────────────── */

.tvc-hero {
	background: var(--tvc-sand) center/cover no-repeat;
	min-height: 300px;
	display: flex;
	align-items: flex-end;
}

.tvc-hero-inner {
	max-width: 1040px;
	margin: 0 auto;
	width: 100%;
	padding: 34px 22px;
}

.tvc-hero-name {
	margin: 0;
	font-size: 2.6em;
	line-height: 1.1;
	color: var(--tvc-teal-dark);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.tvc-hero-sub { margin: 6px 0 0; color: var(--tvc-ink); font-size: 1.05em; }

.tvc-pagehead { background: var(--tvc-sand); border-bottom: 1px solid var(--tvc-line); }

.tvc-pagehead-inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 26px 22px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.tvc-pagehead-inner h1 { margin: 0; font-size: 1.9em; color: var(--tvc-teal-dark); line-height: 1.15; }
.tvc-pagehead-lead { margin: 4px 0 0; color: var(--tvc-muted); }

/* ── the body ───────────────────────────────────────────────────────── */

.tvc-main {
	max-width: 1040px;
	margin: 0 auto;
	padding: 30px 22px 60px;
}

.tvc-main:focus { outline: none; }
.tvc-intro { margin-bottom: 26px; font-size: 1.08em; }

.tvc-tiles {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
}

.tvc-tile { margin: 0; }

.tvc-tile a {
	display: block;
	height: 100%;
	background: #fff;
	border: 1px solid var(--tvc-line);
	border-top: 3px solid var(--tvc-teal);
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	color: var(--tvc-ink);
}

.tvc-tile a:hover { border-color: var(--tvc-teal); box-shadow: 0 2px 8px rgba(15, 85, 96, .12); }
.tvc-tile-name { display: block; font-weight: 700; color: var(--tvc-teal-dark); margin: 10px 0 4px; font-size: 1.1em; }
.tvc-tile-lead { display: block; font-size: .9em; color: var(--tvc-muted); }

/*
 * The out-of-hours panel. It is the loudest thing on the page and it is meant
 * to be: the person who needs it is reading at eleven at night with a dog on
 * the back seat, and they should not have to look for it.
 */
.tvc-emergency {
	background: var(--tvc-red-soft);
	border: 2px solid var(--tvc-red);
	border-radius: 10px;
	padding: 16px 20px;
	margin: 0 0 26px;
}

.tvc-emergency-lab {
	display: block;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .78em;
	font-weight: 700;
	color: var(--tvc-red);
}

.tvc-emergency-num {
	display: inline-block;
	font-size: 1.6em;
	font-weight: 700;
	color: var(--tvc-red);
	text-decoration: none;
	margin: 2px 0;
}

.tvc-emergency-note { display: block; font-size: .9em; color: var(--tvc-ink); }

/* The practical questions, as a description list. */
.tvc-faq { margin: 20px 0 0; }
.tvc-faq dt { font-weight: 700; color: var(--tvc-teal-dark); margin-top: 16px; }
.tvc-faq dd { margin: 4px 0 0; }

/* ── the footer ─────────────────────────────────────────────────────── */

.tvc-foot {
	background: var(--tvc-sand);
	border-top: 3px solid var(--tvc-teal);
	margin-top: 40px;
}

.tvc-foot-inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 28px 22px 40px;
}

.tvc-foot p { margin: 0 0 4px; }
.tvc-foot-name { font-weight: 700; color: var(--tvc-teal-dark); font-size: 1.1em; }
.tvc-foot span + span::before { content: " · "; color: var(--tvc-muted); }
.tvc-foot-emerg { font-weight: 700; color: var(--tvc-red); margin-top: 6px; }
.tvc-foot-small { font-size: .85em; color: var(--tvc-muted); margin-top: 8px; }
.tvc-foot-nav { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tvc-foot-nav a { font-size: .9em; }

/* ── narrow screens: the menu folds behind a burger ─────────────────── */

@media (max-width: 860px) {
	.tvc-nav-burger {
		display: block;
		margin-left: auto;
		color: #fff;
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
		padding: 4px 8px;
	}

	.tvc-nav {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		margin: 8px 0 0;
		gap: 0;
	}

	.tvc-nav-toggle:checked ~ .tvc-nav { display: flex; }
	.tvc-nav-item { border-radius: 6px; padding: 10px 12px; }
	.tvc-nav-sep { border-left: 0; padding: 10px 12px 0; margin: 0; }
	.tvc-hero { min-height: 200px; }
	.tvc-hero-name { font-size: 1.9em; }
	.tvc-pagehead-inner img { width: 40px; height: 40px; }
}

@media print {
	.tvc-topbar, .tvc-foot-nav, .tvc-demo, .tvc-skip, .tvc-noprint { display: none !important; }
	body.tvc-app { background: #fff; }
}
