/* The Smileline directory (smileline.io/dentists): the "Hills" boards the
   owner picked, ported 1:1. Desktop first; the block at the end is the phone
   boards (390 px). Rendered by apps/api/src/network/pages.tsx. */

@font-face {
	font-family: "CooperLtBT";
	src: url("/dentists/assets/cooper-light.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Geist";
	src: url("/dentists/assets/geist-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

body {
	margin: 0;
}
a {
	color: #1c1917;
}
a:hover {
	color: #14532d;
}
/* Keyboard focus, on every control and link: a dark ring with white on both
   sides of it, so it stands at least 3:1 against whatever it sits on (the
   white cards, the grey page, the dark buttons, the photo). :focus-visible
   only, so nothing changes at rest, or for a tap or a click. */
:focus-visible {
	outline: 3px solid #1c1917;
	outline-offset: 2px;
	box-shadow: 0 0 0 7px #ffffff;
}
/* A search field and a visit row show the focus of the control inside them
   as one shape. Where a browser cannot say so, the control keeps the ring
   above. */
@supports selector(:has(*)) {
	.search__field :focus-visible,
	.visit :focus-visible {
		outline: 0;
		box-shadow: none;
	}
	.search__field:has(:focus-visible) {
		outline: 3px solid #1c1917;
		outline-offset: -3px;
		border-radius: 20px;
	}
	.visit:has(:focus-visible) {
		outline: 3px solid #1c1917;
		outline-offset: 2px;
		box-shadow: 0 0 0 7px #ffffff;
	}
}
[hidden] {
	/* biome-ignore lint/complexity/noImportantStyles: the hidden attribute
	   must win over every display rule on the page. */
	display: none !important;
}
.m-only {
	display: none;
}

.page {
	box-sizing: border-box;
	min-height: 100vh;
	background: #f5f5f4;
	color: #1c1917;
	font-family: Geist, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

/* ── the photo band: header, title, search bar ── */
.hero {
	position: relative;
	min-height: 440px;
	overflow: hidden;
}
.hero--practice {
	min-height: 380px;
}
.hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 32%;
}
.top {
	position: relative;
	max-width: 1160px;
	margin: 0 auto;
	padding: 28px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.brand {
	font-family: CooperLtBT, Georgia, serif;
	font-size: 26px;
	text-decoration: none;
	color: #1c1917;
}
.top__link {
	height: 44px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 15px;
	text-decoration: none;
	color: #1c1917;
}
.hero__body {
	position: relative;
	max-width: 1160px;
	margin: 0 auto;
	padding: 36px 32px 104px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}
.hero__body--town {
	padding-top: 20px;
	gap: 24px;
}
.hero__body--practice {
	padding: 20px 32px 84px;
	gap: 20px;
}
.crumbs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 14px;
}
.title {
	margin: 0;
	font-family: CooperLtBT, Georgia, serif;
	font-weight: 400;
	font-size: 88px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #1c1917;
}
.title--practice {
	font-size: 80px;
}
.pill {
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 14px;
	padding: 10px 20px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	font-size: 15px;
}
.pill__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}
.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #15803d;
	display: inline-block;
}

.search {
	width: 100%;
	max-width: 820px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 8px;
	border-radius: 28px;
	background: #ffffff;
	box-shadow: 0 20px 50px rgba(28, 25, 23, 0.2);
	text-align: left;
}
.search__pair {
	display: contents;
}
.search__field {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 8px 20px;
}
.search__field--where {
	flex: 1.2 1 180px;
}
.search__field--what {
	flex: 1 1 140px;
}
.search__field--when {
	flex: 1 1 170px;
}
.search__field label {
	font-size: 12px;
	font-weight: 600;
	color: #57534e;
}
.search__field input,
.search__field select {
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 17px;
	color: #1c1917;
	padding: 0;
	min-width: 0;
}
.search__field:focus-within label {
	color: #1c1917;
}
.search__sep {
	width: 1px;
	height: 36px;
	background: #d6d3d1;
}
.search__go {
	height: 60px;
	padding: 0 32px;
	border: 0;
	border-radius: 22px;
	background: #1c1917;
	color: #ffffff;
	font: inherit;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
}

/* ── search and town pages: the list ── */
.list {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 44px 32px 96px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 8px 10px;
}
.list__count {
	margin: 0;
	font-family: CooperLtBT, Georgia, serif;
	font-size: 30px;
	line-height: 1.15;
}
.card {
	background: #ffffff;
	border-radius: 28px;
	padding: 28px 32px;
	box-shadow: 0 12px 36px rgba(28, 25, 23, 0.08);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 40px;
}
.card__info {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.card__name {
	margin: 0;
	font-family: CooperLtBT, Georgia, serif;
	font-weight: 400;
	font-size: 30px;
	line-height: 1.15;
}
.card__name a {
	text-decoration: none;
}
.card__address {
	margin: 0;
	font-size: 15px;
	color: #57534e;
}
.day {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}
.day--today {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #14532d;
}
.times {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.time {
	min-width: 84px;
	height: 52px;
	box-sizing: border-box;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: #f5f5f4;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}
.time--first,
.time--first:hover {
	background: #1c1917;
	color: #ffffff;
}
/* While a card's times load: the buttons' own shape, nothing to read. */
.time--loading {
	animation: time-loading 1.2s ease-in-out infinite;
}
@keyframes time-loading {
	50% {
		opacity: 0.45;
	}
}
@media (prefers-reduced-motion: reduce) {
	.time--loading {
		animation: none;
	}
}
.nearby {
	padding: 28px 8px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	align-items: baseline;
	font-size: 16px;
}
.nearby__label {
	font-size: 14px;
	font-weight: 500;
	color: #57534e;
}

/* ── practice page ── */
.practice {
	position: relative;
	max-width: 1096px;
	margin: 0 auto;
	padding: 44px 32px 96px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
}
.book {
	flex: 999 1 560px;
	min-width: 0;
	background: #ffffff;
	border-radius: 28px;
	padding: 32px;
	box-shadow: 0 12px 36px rgba(28, 25, 23, 0.08);
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.book__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
}
.book__title {
	margin: 0;
	font-family: CooperLtBT, Georgia, serif;
	font-weight: 400;
	font-size: 34px;
	line-height: 1.15;
}
.visits {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.visits legend {
	padding: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: #57534e;
}
.visit {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	box-sizing: border-box;
	padding: 10px 18px;
	border-radius: 16px;
	background: #f5f5f4;
	cursor: pointer;
}
.visit input {
	width: 18px;
	height: 18px;
	accent-color: #1c1917;
}
.visit__name {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.visit__title {
	font-weight: 500;
}
.visit__sub {
	font-size: 13px;
	color: #57534e;
}
.visit__length {
	font-size: 14px;
	color: #57534e;
}
.visit:has(input:checked) {
	background: #1c1917;
	color: #ffffff;
}
.visit:has(input:checked) input {
	accent-color: #ffffff;
}
.visit:has(input:checked) .visit__sub,
.visit:has(input:checked) .visit__length {
	color: #e7e5e4;
}
.pick {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #57534e;
}
.days {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.dayrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
}
.dayrow__name {
	margin: 0;
	flex: 0 0 150px;
	font-size: 16px;
	font-weight: 600;
}
.dayrow .times {
	flex: 1 1 320px;
}
.see-all {
	align-self: flex-start;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-size: 15px;
}
.note {
	margin: 0;
	font-size: 14px;
	color: #57534e;
}
.side {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.panel {
	background: #ffffff;
	border-radius: 28px;
	padding: 28px;
	box-shadow: 0 12px 36px rgba(28, 25, 23, 0.08);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.panel--team {
	gap: 14px;
}
.panel__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #57534e;
}
.panel__text {
	margin: 0;
	font-size: 16px;
}
.actions {
	display: flex;
	gap: 8px;
}
.action {
	flex: 1;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: #f5f5f4;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
}
.hours {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 20px;
	font-size: 15px;
}
.hours dd {
	margin: 0;
	text-align: right;
}
.hours .is-today {
	font-weight: 600;
}
.hours .is-closed {
	color: #57534e;
}
.member {
	display: flex;
	align-items: center;
	gap: 14px;
}
.member__face {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #e7e5e4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	object-fit: cover;
}
.member__text {
	display: flex;
	flex-direction: column;
}
.member__name {
	font-weight: 500;
}
.member__role {
	font-size: 14px;
	color: #57534e;
}

/* ── phone boards (390 px) ── */
@media (max-width: 640px) {
	.d-only {
		display: none;
	}
	.m-only {
		display: inline;
	}
	.hero,
	.hero--practice {
		min-height: 0;
	}
	.hero__photo {
		object-position: 60% 40%;
	}
	/* The sky runs lower, so the practice's name stays on it. */
	.hero--practice .hero__photo {
		inset: auto;
		left: 0;
		top: 0;
		height: 170%;
		object-position: 60% 0%;
	}
	.top {
		padding: 18px 16px;
		flex-wrap: nowrap;
		gap: 12px;
	}
	.brand {
		font-size: 24px;
	}
	.top__link {
		height: auto;
		min-height: 44px;
		padding: 0 14px;
		font-size: 14px;
	}
	.hero__body,
	.hero__body--town {
		padding: 20px 16px 40px;
		align-items: stretch;
		gap: 22px;
	}
	.hero__body--practice {
		padding: 12px 16px 56px;
		align-items: center;
		gap: 16px;
	}
	.crumbs {
		align-self: center;
	}
	.hero__body--practice .crumbs {
		display: none;
	}
	.title {
		font-size: 46px;
		line-height: 1.02;
	}
	.title--practice {
		font-size: 44px;
	}
	.pill {
		padding: 8px 16px;
		font-size: 14px;
	}
	.search {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 2px;
		border-radius: 26px;
		box-shadow: 0 16px 40px rgba(28, 25, 23, 0.2);
	}
	.search__pair {
		display: flex;
		gap: 0;
	}
	.search__field,
	.search__field--where,
	.search__field--what,
	.search__field--when {
		flex: 1;
		padding: 8px 16px;
	}
	.search__field--where {
		flex: none;
	}
	.search__sep {
		width: auto;
		height: 1px;
		margin: 0 16px;
		background: #e7e5e4;
	}
	.search__pair .search__sep {
		width: 1px;
		height: auto;
		margin: 10px 0;
	}
	.search__go {
		margin-top: 6px;
		height: 56px;
		padding: 0;
		border-radius: 20px;
	}
	.list {
		padding: 28px 16px 56px;
		gap: 12px;
	}
	.list__head {
		flex-wrap: nowrap;
		padding: 0 4px 6px;
	}
	.list__count {
		font-size: 24px;
	}
	.card {
		border-radius: 24px;
		padding: 22px 20px;
		box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 14px;
	}
	.card__info {
		flex: none;
		gap: 4px;
	}
	.card__name {
		font-size: 26px;
	}
	.card__address {
		font-size: 14px;
	}
	.times,
	.dayrow .times {
		flex: none;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
	}
	.time {
		min-width: 0;
		height: 50px;
		padding: 0;
		display: flex;
		border-radius: 14px;
		font-size: 15px;
	}
	/* Four to a row, as drawn. */
	.times .time:nth-child(n + 5) {
		display: none;
	}
	.nearby {
		padding: 20px 4px 0;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 2px;
	}
	.nearby a {
		min-height: 44px;
		display: flex;
		align-items: center;
		font-size: 17px;
	}
	.practice {
		padding: 20px 16px 56px;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 12px;
	}
	.book {
		flex: none;
		border-radius: 24px;
		padding: 22px 20px;
		box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
		gap: 22px;
	}
	.book__title {
		font-size: 28px;
	}
	.book__head .day {
		display: none;
	}
	.visits {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}
	.visits legend {
		padding: 0 0 10px;
	}
	.visit {
		min-height: 58px;
		padding: 8px 16px;
		border-radius: 14px;
	}
	.pick,
	.days {
		gap: 16px;
	}
	.dayrow {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 8px;
	}
	.dayrow__name {
		flex: none;
	}
	.see-all {
		align-self: stretch;
		display: flex;
	}
	.side {
		flex: none;
		gap: 12px;
	}
	.panel {
		border-radius: 24px;
		padding: 22px 20px;
		box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
	}
	.action {
		height: 50px;
		border-radius: 14px;
		font-size: 16px;
	}
}
