/* DenScore Directory — reproduces the legacy Elementor listing design
   (values taken from the 2025-07 template's Elementor settings/CSS).
   Typography comes from the theme, as on the legacy pages (Elementor default
   fonts are disabled site-wide). */

.ds-page {
	--ds-teal: #58BFC8;       /* decorative: borders, gradient */
	--ds-teal-dark: #1F8089;  /* behind/under text: 4.7:1 with white (WCAG AA) */
	--ds-teal-grad: #62BFC6;
	--ds-red: #A51818;        /* pill text: 5.0:1 on pink, AA at any weight (legacy #ED3F37 was 2.6:1) */
	--ds-pink: #FFC2C3;
	--ds-ink: #000;
	--ds-shadow: 0 10px 20px 0 rgba(142, 142, 142, .5);
	color: var(--ds-ink);
}
.ds-page h1, .ds-page h2, .ds-page h3 { line-height: 1.2; }
.ds-page img { max-width: 100%; height: auto; }

/* Theme .sec_pad is 120px top; that spacing sat under the tall title strip.
   With the compact strip it leaves a big empty band, so tighten it. */
.ds-area.sec_pad { padding-top: 40px; }
.ds-title-banner:not(.ds-title-banner--compact) + .ds-area.sec_pad { padding-top: 80px; }

/* Breadcrumbs (new) */
.ds-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 16px; font-size: 14px; }
.ds-breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #888; }
.ds-page .ds-breadcrumbs a { color: var(--ds-teal-dark); }
.ds-breadcrumbs [aria-current] { color: #000; }

/* Hero: gradient card + photos (legacy section 1) */
.ds-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.ds-hero__card {
	display: flex; flex-direction: column;
	margin-right: 5px; border-radius: 20px; overflow: hidden;
	background-image: linear-gradient(277deg, #FFFFFF 0%, var(--ds-teal-grad) 100%);
}
.ds-eyebrow { font-size: 20px; margin: 0 0 20px 20px; padding-top: 180px; color: #000; font-weight: 600; line-height: 1; }
.ds-page .ds-h1 { font-size: 50px; color: #000; margin: 0 0 20px 20px; }
.ds-intro { font-size: 18px; margin: 0 20px 0 20px; color: #000; }
.ds-intro p { margin: 0 0 10px; }
.ds-updated { font-size: 14px; margin: 0 20px 20px; color: #333; }
/* Google "Add to preferred sources" button: a Code Snippets snippet inserts it after the H1
   (inside the hero card) with an inline margin — line it up with the heading and intro. */
.ds-hero__card > div:has(> [google-add-preferred-source-btn]) { margin: 0 20px 20px !important; }
.ds-hero__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: auto; min-height: 0; align-items: end; }
.ds-hero__pic { width: 100%; display: block; }
.ds-hero__side { display: flex; align-items: center; }
.ds-hero__sidepic { width: 100%; display: block; }

/* Red pill section headings */
.ds-section { padding-top: 80px; }
.ds-page h2.ds-pill {
	display: table; margin: 0 auto; max-width: 100%;
	padding: 10px 20px; border-radius: 40px; background: var(--ds-pink);
	color: var(--ds-red); font-size: 20px; text-align: center; line-height: 1.3;
}
.ds-blurb { text-align: center; font-size: 16px; padding-top: 20px; color: #000; }
.ds-blurb p { margin: 0; }

/* Practice text block (name / Address / Phone) */
.ds-practice { font-size: 16px; color: #000; }
.ds-page .ds-practice__name { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: #000; }
.ds-practice p { margin: 0 0 10px; }
.ds-page .ds-practice a { color: var(--ds-teal-dark); }

/* Top 3: white shadow cards with tooth rank images */
.ds-cards { list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ds-card { background: #fff; border-radius: 20px; box-shadow: var(--ds-shadow); padding: 10px 10px 20px; text-align: center; }
.ds-card__rank { display: block; margin: 0 auto 20px; width: 97px; height: auto; }
.ds-card__rank--num { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: var(--ds-teal); color: #fff; font-size: 28px; font-weight: 700; }

/* Featured (sponsored) practice: white shadow card, info left, profile toggles right */
.ds-featured {
	display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-top: 20px;
	background: #fff; border-radius: 20px; box-shadow: 0 10px 20px 0 rgba(152, 152, 152, .5); padding: 10px;
}
.ds-featured__main { padding: 20px 0 20px 10px; }
.ds-featured__img { display: block; margin: 0 auto 20px; max-width: 300px; }
.ds-sponsored { font-size: 10px; margin: 0 0 20px; color: #000; }
.ds-featured__profile { padding: 10px; }

/* "Other Top": teal-bordered boxes */
.ds-others { list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ds-other { border: 3px solid var(--ds-teal); border-radius: 20px; padding: 30px; }

/* Buttons */
.ds-page .ds-btn {
	display: inline-block; font-size: 16px; line-height: 1; padding: 12px 24px;
	border-radius: 40px; border: 3px solid var(--ds-teal); text-decoration: none;
	transition: all .3s;
}
.ds-page .ds-btn--teal, .ds-page .ds-btn--cta { background: var(--ds-teal-dark); border-color: var(--ds-teal-dark); color: #fff; }
.ds-page .ds-btn--teal:hover, .ds-page .ds-btn--cta:hover { background: #fff; color: var(--ds-teal-dark); }
.ds-page .ds-btn--outline { background: #fff; color: #000; font-family: "Poppins", sans-serif; font-weight: normal; }
.ds-page .ds-btn--outline:hover { color: var(--ds-teal-dark); }

/* Partner CTA: image | teal heading | teal button */
.ds-cta {
	display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 157px;
	margin-top: 80px; border-radius: 20px; overflow: hidden;
}
.ds-cta__img { position: relative; overflow: hidden; min-height: 157px; }
.ds-page .ds-cta__pic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: left center; }
.ds-page .ds-cta__pic--mobile { display: none; }
.ds-page .ds-cta__heading { background: var(--ds-teal-dark); color: #fff; font-size: 20px; font-weight: 600; margin: 0; padding: 60px 20px 30px 40px; line-height: 1.2; }
.ds-cta__action { background: var(--ds-teal-dark); border-radius: 0 20px 20px 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 70px; }
.ds-page .ds-btn--cta { border-color: #fff; }
.ds-directions { font-size: 14px; white-space: nowrap; }
.ds-page .ds-practice a.ds-directions { color: var(--ds-teal-dark); text-decoration: underline; }

/* Toggles (FAQ + profile) — native <details>, legacy look */
.ds-faq-box { margin-top: 20px; border: 3px solid var(--ds-teal); border-radius: 20px; overflow: hidden; }
.ds-toggle summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 15px 40px 15px 15px; font-size: 16px; font-weight: 600; color: #000; line-height: 1.3;
}
.ds-toggle summary::-webkit-details-marker { display: none; }
.ds-toggle summary::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 2px solid #1D1B20; border-bottom: 2px solid #1D1B20; transform: rotate(45deg); transition: transform .2s;
}
.ds-toggle[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ds-toggle__body { padding: 0 15px 15px; color: #000; }
.ds-toggle__body p:last-child { margin-bottom: 0; }
.ds-faq-box .ds-toggle + .ds-toggle { border-top: 1px solid var(--ds-teal); }
.ds-featured__profile .ds-toggle { border-bottom: 1px solid #d5d8dc; }

/* Link button groups */
.ds-links__group + .ds-links__group { padding-top: 80px; }
.ds-buttons { list-style: none; margin: 0; padding: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.ds-buttons li { padding: 1rem; }
.ds-buttons--cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.ds-buttons--cols li { text-align: center; }

/* Title strip (see dsd_title_banner_mode()) */
.ds-title-banner .breadcrumb_content_two h1 { margin-bottom: 0; }
/* Fallback heights; JS sets the header's real height. !important because theme
   responsive.css forces `.blog_breadcrumb_area{height:300px !important}` on phones. */
.blog_breadcrumb_area.ds-title-banner--compact { height: 100px !important; }
@media (max-width: 767px) { .blog_breadcrumb_area.ds-title-banner--compact { height: 66px !important; } }

/* Tablet */
@media (max-width: 1024px) {
	.ds-eyebrow { padding-top: 60px; }
	.ds-page .ds-h1 { font-size: 40px; }
	.ds-buttons--cols { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (legacy: centred text, inner hero photos and desktop CTA image hidden) */
@media (max-width: 767px) {
	.ds-hero { grid-template-columns: 1fr; }
	.ds-hero__card { margin: 0 0 16px; text-align: center; }
	.ds-eyebrow { padding-top: 30px; margin-left: 0; }
	.ds-page .ds-h1 { font-size: 32px; margin: 0 10px 16px; }
	.ds-intro, .ds-updated { margin-left: 10px; margin-right: 10px; }
	.ds-hero__card > div:has(> [google-add-preferred-source-btn]) { margin: 0 10px 16px !important; }
	.ds-hero__pics { display: none; }
	.ds-hero__side { display: none; } /* tall stock photo: rankings first on phones */
	.ds-section { padding-top: 30px; }
	.ds-area.sec_pad { padding-top: 20px; }
	.ds-cards, .ds-others, .ds-featured { grid-template-columns: 1fr; }
	.ds-featured__main { text-align: center; padding-left: 0; }
	.ds-cta { grid-template-columns: 1fr; margin-top: 30px; }
	.ds-cta__img { min-height: 0; }
	.ds-page .ds-cta__pic { position: static; height: auto; }
	.ds-page .ds-cta__pic--desktop { display: none; }
	.ds-page .ds-cta__pic--mobile { display: block; }
	.ds-page .ds-cta__heading { padding: 20px; text-align: center; }
	.ds-cta__action { border-radius: 0 0 20px 20px; padding: 0 20px 20px; }
	.ds-links__group + .ds-links__group { padding-top: 30px; }
	.ds-buttons--cols { grid-template-columns: 1fr; }
}
