/* Maya Odontologia: the palette and page CSS the service pages share with the home page
   (the home page keeps its own copy inline). Palette printed by start.mjs brand. */
:root {
	--p-bg: #f7f3e9;
	--p-surface: #ede6d6;
	--p-ink: #262a1c;
	--p-muted: #5e5a4b;
	--p-accent: #373f1e;
	--p-accent-ink: #f7f3e9;
	--p-action: #373f1e;
	--p-action-ink: #f7f3e9;
	--p-inv-bg: #262a1c;
	--p-inv-surface: #323628;
	--p-inv-ink: #f7f3e9;
	--p-inv-muted: #a0a094;
	--p-inv-accent: #f7f3e9;
	--p-inv-accent-ink: #262a1c;
	--p-inv-action: #f7f3e9;
	--p-inv-action-ink: #262a1c;
	--font-display: "Source Serif 4", Georgia, serif;
	--font-text: "Libre Franklin", system-ui, sans-serif;
	--display-weight: 400;
	--display-tracking: -0.02em;
	--display-tracking-xl: -0.026em;
}

/* picture-develops: a room of the clinic beside the list of the other services */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 628 / 520; }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 1023px) { .develop { aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* the clinic's own line drawings (orthodontics, oral surgery) on its surface, whole */
.hero__media--icon > img, .tile__media--icon > img { object-fit: contain !important; padding: 14%; }

/* a dentist's tile: the name underlines on hover, as on the home page */
a.tile .tile__head h3 { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size var(--m-out, 120ms) var(--m-ease, ease); }
a.tile:is(:hover, :focus-visible) .tile__head h3 { background-size: 100% 1px; transition-duration: var(--m-in, 150ms); }

/* the services index: eight tiles in two rows of one screen */
#lista .tile { --tile-ratio: 3 / 2; }
@media (max-width: 1023px) { #lista .grid > .tile { grid-column: auto / span 6; } }

/* the address in the footer: the real one is long, so it is set at the lead size */
.footer__address { font-size: var(--t-lead); line-height: 1.35; }
@media (min-width: 640px) and (max-width: 1023px) { .closing__links > .grid > * { grid-column: auto / span 6; } }

/* a dentist's link page: the links under the button */
.hero__text > .ic-list { margin-top: var(--s-6); }
