/* Medicio integration overrides. The vendor assets/css/main.css remains unchanged. */
/* Clip horizontal overflow without creating a scroll container for the sticky header. */
html:has(body.public-website),
body.public-website {
  overflow-x: clip;
  overflow-y: visible;
}
body.public-website { background:#fff; color:#444; font-family:Roboto,Arial,sans-serif; font-size:16px; line-height:1.7; }
.public-website .website-shell { --heading-color:#283c40; --default-color:#444; --surface-color:#fff; --background-color:#fff; --accent-color:#3fbbc0; --contrast-color:#fff; --heading-font:Poppins,Arial,sans-serif; --default-font:Roboto,Arial,sans-serif; overflow:clip; }
.public-website .website-custom { --accent-color:#e96b16; --heading-color:#3d1914; --default-color:#4e4745; }
.website-shell section { scroll-margin-top:100px; }
.website-shell .website-topbar { background:var(--accent-color); color:white; padding:8px 0; font-size:14px; }
.website-shell .website-topbar a { color:white; }
.website-shell .website-header { position:sticky; top:0; z-index:100; background:#fff; box-shadow:0 3px 22px #0000000c; }
.website-header-inner { display:flex; gap:24px; align-items:center; min-height:86px; }
.website-logo { margin-right:auto; font-size:24px; font-weight:700; color:var(--heading-color); }
.website-logo img { width:165px; max-height:64px; object-fit:contain; }
.website-header nav { display:flex; align-items:center; gap:22px; }
.website-header nav a { font-size:14px; font-weight:600; color:var(--heading-color); white-space:nowrap; }
.website-header nav a:hover { color:var(--accent-color); }
.website-shell .website-button { display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:6px; background:var(--accent-color); color:white; font-weight:600; padding:12px 24px; font-size:15px; cursor:pointer; }
.website-shell .website-button:hover { background:var(--heading-color); color:white; }
.website-menu-toggle { display:none; border:0; background:transparent; font-size:27px; color:var(--heading-color); }

html:has(.website-mobile-drawer[open]) { overflow-y: hidden; }
.website-mobile-drawer {
  inset: 0 0 0 auto;
  width: min(360px, calc(100% - 40px));
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface-color);
  color: var(--heading-color);
  box-shadow: -8px 0 32px #0003;
}
.website-mobile-drawer::backdrop { background: rgb(0 0 0 / 55%); }
.website-mobile-drawer[open] { animation: website-drawer-enter .24s ease-out; }
@keyframes website-drawer-enter { from { transform: translateX(100%); } }
.website-drawer-inner { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.website-drawer-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--heading-color);
  color: #fff;
}
.website-drawer-heading button {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #fff6;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}
.website-mobile-drawer nav { padding: 8px 16px 24px; }
.website-shell .website-mobile-drawer nav :is(a, .reference-nav-trigger) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  color: var(--heading-color);
  white-space: normal;
}
.website-mobile-drawer .reference-nav-trigger {
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: start;
}
.website-mobile-drawer .reference-nav-trigger[aria-expanded=true] i { transform: rotate(180deg); }
.website-mobile-drawer nav > div { border-bottom: 1px solid #eadfd9; }
.website-mobile-drawer .reference-dropdown { padding-inline: 8px; background: #fcfaf8; }
.website-mobile-drawer .mega-menu > .container { width: 100%; padding: 8px; }
.website-mobile-drawer :is(a, button):focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.website-skip { position:absolute; left:16px; top:-80px; padding:12px; background:#fff; z-index:200; }
.website-skip:focus { top:8px; }
.website-shell a:focus-visible,.website-shell button:focus-visible,.website-shell summary:focus-visible { outline:3px solid var(--accent-color); outline-offset:4px; }
.website-shell .website-hero { position:relative; min-height:560px; padding:0; display:flex; align-items:end; background:#edf7f7; }
.website-hero-image { position:absolute; inset:0; width:100%; height:100%!important; object-fit:cover; }
.website-hero-copy { position:relative; z-index:1; padding:24px 28px; margin:0 auto 65px; width:min(620px,85%); text-align:center; border-radius:18px; background:#2a0f0cc9; backdrop-filter:blur(8px); color:white; }
.website-hero-copy span { color:#ffb270; text-transform:uppercase; font-size:14px; letter-spacing:.12em; }
.website-hero-copy h1 { color:white; font-size:clamp(28px,3.1vw,42px); margin:10px 0 20px; }
.website-shell .website-hero-custom { min-height:clamp(410px,43vw,680px); border-bottom:4px solid var(--accent-color); }
.website-shell .website-hero-detail { background: var(--heading-color); }
.website-hero-detail .website-hero-image { object-fit: contain; }
.website-slide-controls { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:14px; z-index:2; padding:5px 12px; border-radius:30px; background:#2a0f0cbb; }
.website-slide-controls button { color:white; background:transparent; border:0; min-height:32px; min-width:32px; }
.website-slide-controls .website-slide-dot { width:14px; height:14px; min-height:14px; min-width:14px; padding:0; background:#ffffff80; border-radius:50%; }
.website-slide-controls .website-slide-dot[aria-pressed=true] { background:#fff; }
@media (max-width: 575px) {
  .website-hero-detail .website-slide-controls { gap: 6px; }
}
.website-template-hero { position:relative; padding:32px; margin-bottom:60px; background:#fffffff0; border-top:4px solid var(--accent-color); text-align:center; }
.website-template-hero h1 { font-size:clamp(30px,4vw,48px); }
.website-shell section { padding:70px 0; }
.website-shell .section-title { padding-bottom:36px; }
.website-shell .section-title h2 { font-size:32px; }
.website-shell .tf-section-eyebrow { font-size:14px; }
.website-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.website-card-cell { min-width:0; }
.website-card-cell>.d-flex { height:100%; margin-bottom:0!important; }
.website-card-cell .icon-box { width:100%; }
.website-shell .tf-products-showcase .icon-box { padding-bottom:22px; }
.website-shell .tf-products-showcase .icon-box img { object-fit:contain; background:#fff; }
.website-shell .tf-products-showcase .icon-box .title { font-size:18px; }
.website-shell .tf-doctor-stories .website-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.website-shell .tf-doctor-stories .testimonial-item { padding:0; }
.website-shell .tf-doctor-stories .testimonial-item p { min-height:0; margin:0 0 22px; }
.website-shell .testimonial-img { width:72px!important; height:72px!important; border-radius:50%; object-fit:contain; }
.website-shell .tf-promise-card img { max-height:none; object-fit:contain; }
.website-shell .tf-docmep-card { width:min(1320px,calc(100% - 32px)); margin:auto; }
.website-shell .faq-list { list-style:none; margin:0; padding:0; }
.website-shell .faq-list li { border-bottom:1px solid #eadfd9; padding:18px 0; }
.website-shell .faq-list summary { font-size:18px; font-weight:600; color:var(--heading-color); cursor:pointer; }
.website-shell .faq-list p { padding:16px 0 0; }
.website-shell .tf-partner-item { padding:20px; display:flex; justify-content:center; align-items:center; }
.website-shell .tf-partner-item img { max-width:100%; max-height:64px; object-fit:contain; }
.website-shell .website-contact label { display:block; margin-bottom:5px; font-size:14px; }
.website-shell .website-contact .form-control { background:#fff; color:#333; border:1px solid #cbd2d4; padding:12px; font-size:16px; }
.website-shell .website-map { padding:0; }
.website-map iframe { border:0; width:100%; height:330px; display:block; }
.website-shell .website-footer { background:var(--heading-color); color:#fff; padding:40px 0; font-size:14px; }
.website-footer a { color:#fff!important; text-decoration:underline; }
.website-shell .teethfast-aligner #hero { height:440px; padding:0; }
.website-shell .teethfast-aligner .carousel,.website-shell .teethfast-aligner .carousel-inner,.website-shell .teethfast-aligner .carousel-item { height:100%; background-size:cover; background-position:center; }
@media(max-width:1199px) { .website-header-inner { gap:16px; } .website-header nav { gap:12px; } .website-logo img { width:135px; } }
@media(max-width:991px) { .website-menu-toggle { display:inline-grid; place-items:center; min-width:44px; min-height:44px; } .website-header #website-navigation { display:none; } .website-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:575px) { .website-shell section { padding:45px 0; } .website-header-inner { min-height:72px; gap:10px; } .website-shell .website-login { padding:9px 16px; } .website-hero-copy { padding:18px; } .website-hero-copy h1 { font-size:27px; } .website-card-grid,.website-shell .tf-doctor-stories .website-card-grid { grid-template-columns:1fr; } .website-shell .website-topbar { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .website-shell * { transition:none!important; animation:none!important; } }
/* TeethFast supplies a white wordmark, so its custom header uses the brand brown. */
.website-custom .website-header,.website-custom .website-header nav { background:#3d1914; }
.website-custom .website-header-inner { min-height: 66px; }
.website-custom .website-logo img { max-height: 46px; }
.website-shell.website-custom .website-login { min-height: 44px; padding-block: 6px; }
.website-custom .website-header nav > div > a,.website-custom .website-menu-toggle { color:#fff; }
.website-custom .website-header nav > div > a:hover { color:#ffb270; }
.website-shell .website-hero-copy.container { width:calc(100% - 48px)!important; max-width:620px!important; }
.website-shell .website-hero-custom:not(.website-hero-detail) .website-hero-copy.container {
  max-width: 780px !important;
  background: rgb(42 15 12 / 40%);
  backdrop-filter: none;
}
.website-hero-custom:not(.website-hero-detail) .website-hero-copy :is(span, h1) {
  text-shadow: 0 1px 4px rgb(0 0 0 / 85%);
}
.website-shell .website-aligner-hero { position:relative; height:clamp(360px,40vw,560px); padding:0; background:#3d1914; }
.website-aligner-hero>img { width:100%; height:100%!important; object-fit:cover; }
.website-header .reference-nav-trigger{background:none;border:0;color:white;font:inherit;font-size:14px;font-weight:600;padding:8px 0}
.website-header .reference-dropdown{position:absolute;top:100%;background:white;color:#44271e;padding:1rem;border-radius:0 0 12px 12px;box-shadow:0 10px 32px #260e0c30;max-height:72vh;overflow:auto}
.website-header .reference-dropdown a{display:block;color:#44271e;white-space:normal;padding:5px 0}
.website-header .reference-dropdown a:hover{color:#a74713}
.website-header .reference-mega{left:3%;right:3%;padding:1.5rem}
.reference-mega .tf-product-mega-heading{border-bottom:1px solid #ecded8;margin-bottom:1rem}
.reference-mega .tf-product-mega-label{font-weight:bold;margin:.6rem 0 0}
.reference-page img,.reference-page iframe{max-width:100%}
.reference-page .carousel-item{height:clamp(300px,42vw,600px);background-size:cover;background-position:center}
.reference-page .carousel-inner{height:100%}
.reference-page .carousel-item .container{background:#34160fd6;color:white;padding:20px;text-align:center;position:absolute;bottom:5%;left:5%;width:90%}
.reference-page .carousel-item h2{color:white}
.reference-page .entry,.reference-page .icon-box{border-radius:12px;padding:1rem;background:white;box-shadow:0 5px 25px #30170b12}
.reference-page .entry-title{font-size:1.35rem;margin:1rem 0}
.reference-page #hero{padding:0}
.reference-page .entry-content img{height:auto}
.reference-page .cart{position:relative!important;top:auto!important;right:auto!important;text-align:right}
.reference-video{width:100%;background:white;border:1px solid #decfc7;padding:1rem;border-radius:12px;text-align:left}
.reference-video img{width:100%;max-height:220px;object-fit:cover}
.reference-video strong,.reference-video span{display:block}
.reference-player{position:fixed;inset:0;z-index:1200;background:#161616;display:grid;grid-template-rows:auto minmax(0,1fr);gap:.75rem;padding:1rem}
.reference-player-close {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: #3d1914;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.reference-player-close:hover { background: #ffeadc; }
.reference-player-close:focus-visible { outline: 2px solid #ffb270; outline-offset: 3px; }
.reference-player video,.reference-player iframe{width:100%;height:100%}
@media(max-width:991px){.reference-page .col-6:has(.entry){width:100%}}
.website-custom .website-header .tf-android-app{display:inline-flex;align-items:center;position:relative;color:white}
.website-custom .website-header .tf-android-app-new{position:absolute;top:-10px;right:-13px;color:white;background:#ad470a;border-radius:8px;font-size:10px;line-height:1.2;padding:1px 4px}
#footer .social-links{display:flex;gap:.8rem}#footer .footer-links ul{list-style:none;padding:0}#footer .footer-links li{display:flex;align-items:center;gap:.4rem}#footer .copyright{text-align:center;padding:1rem}

.tf-public-site #footer .footer-top { padding-block: 16px; }
.tf-public-site #footer .footer-top .row { row-gap: 16px; }
.tf-public-site #footer .footer-top :is(.footer-info, .footer-links, .footer-newsletter) { margin-bottom: 0; }
.tf-public-site #footer .footer-top h4 { margin-bottom: 8px; }
.tf-public-site #footer .footer-top .footer-links ul { margin-bottom: 0; }
.tf-public-site #footer .footer-top .footer-links ul li { padding-block: 4px; }
.tf-public-site #footer .footer-top .footer-contact,
.tf-public-site #footer .footer-top .social-links { margin-top: 8px; }
.tf-public-site #footer .footer { padding-block: 8px; }
.tf-public-site #footer .copyright { padding-block: 4px; }

/* Stack each public footer heading above its links. */
.tf-public-site #footer .footer-top .footer-links {
  display: block;
  text-align: start;
}
.tf-public-site #footer .footer-top .footer-links a {
  font-size: 1rem;
  color: #69351f;
}
.tf-public-site #footer .footer-top .footer-links a:hover,
.tf-public-site #footer .footer-top .footer-links a:focus-visible {
  text-decoration: underline;
}

/* Carry the hover target through the gap between the trigger and its panel. */
@media (min-width: 992px) {
  .website-custom #website-navigation { align-self: stretch; align-items: stretch; }
  .website-custom #website-navigation > div { display: flex; align-items: center; }
}

.tf-public-site #footer .footer-top .social-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  color: #fff;
  background: #3d1914;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.tf-public-site #footer .footer-top .social-links a:is(:hover, :focus-visible) {
  color: #fff;
  background: #873e1e;
}

.tf-public-site .website-shell .section-title h2::after {
  inset-inline: 0;
  margin-inline: auto;
}

/* Keep each footer accent attached to its heading as the page scrolls. */
.tf-public-site #footer .footer-top h4 {
  position: relative;
}

.website-shell .tf-blog-index { padding-block:clamp(2rem,4vw,4rem); }
.tf-blog-index h1 { margin:0 0 1.5rem; }
.tf-blog-layout,.tf-blog-grid { display:grid; gap:1.5rem; }
.tf-blog-layout { grid-template-columns:minmax(0, 1fr) minmax(230px,28%); align-items:start; }
.tf-blog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.tf-blog-card,.tf-blog-recent { background:white; border:1px solid #e6ddd7; border-radius:14px; overflow:hidden; }
.tf-blog-card,.tf-blog-copy { display:flex; flex-direction:column; }
.tf-blog-card img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#f5efeb; }
.tf-blog-copy,.tf-blog-recent { padding:1.25rem; }
.tf-blog-copy { flex:1; align-items:flex-start; gap:.75rem; }
.tf-blog-copy h2,.tf-blog-recent h2 { font-size:1.3rem; line-height:1.35; margin:0; }
.tf-blog-index h2 a,.tf-blog-recent li a { color:#3d1914; }
.tf-blog-copy p { margin:0 0 .4rem; }
.tf-blog-index small { color:#6e5d53; }
.tf-blog-copy .tf-blog-more { margin-top:auto; font-weight:600; color:#934212; }
.tf-blog-recent ul { list-style:none; margin:0; padding:0; }
.tf-blog-recent li { padding:1rem 0; border-bottom:1px solid #e6ddd7; }
.tf-blog-recent li:last-child { border:0; padding-bottom:0; }
.tf-blog-recent small { display:block; }
@media(max-width:991px){ .tf-blog-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:575px){ .tf-blog-grid { grid-template-columns:minmax(0,1fr); } }

.website-shell .tf-blog-article { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.tf-blog-article .tf-blog-layout { margin-top: 1rem; }
.tf-article-copy { min-width: 0; padding: clamp(1rem, 3vw, 2.5rem); border: 1px solid #e6ddd7; border-radius: 14px; background: white; line-height: 1.75; overflow-wrap: break-word; }
.tf-article-copy h1 { font-size: clamp(1.85rem, 3.3vw, 2.9rem); line-height: 1.15; text-wrap: balance; }
.tf-article-copy h2 { margin-top: 2rem; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.tf-article-copy .tf-article-cover { display: block; width: 100%; height: clamp(160px, 23vw, 300px); object-fit: contain; margin-bottom: 1.5rem; }
.tf-article-copy p img { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; }
.tf-article-copy footer, .tf-article-byline { color: #69594f; font-size: .95rem; }
.tf-article-table { overflow-x: auto; margin-bottom: 1rem; }
.tf-article-table table { width: 100%; min-width: 32rem; border-collapse: collapse; }
.tf-article-table :is(th, td) { padding: .6rem; border: 1px solid #e6ddd7; text-align: start; }
.tf-article-table thead { background: #f6efeb; }

/* Article sidebars follow the Bootstrap column instead of the admin drawer. */
.tf-public-site .reference-page .blog .sidebar {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  transform: none;
  z-index: auto;
  margin-inline: 0;
  background: white;
}

.tf-public-site .tf-post-search { margin-bottom: 1.5rem; }
.tf-post-search label { display: block; }
.tf-post-search-controls { display: flex; gap: .5rem; }
.tf-post-search-controls input {
  min-width: 0;
  flex: 1;
  padding: .55rem .7rem;
  border: 1px solid #89766d;
  border-radius: .4rem;
  color: #341b13;
  background: #fff;
}
.tf-post-search-controls button {
  padding: .55rem .85rem;
  border: 0;
  border-radius: .4rem;
  background: #783516;
  color: #fff;
}
.tf-post-search-controls :focus-visible { outline: 3px solid #9c481c; outline-offset: 2px; }
.tf-post-search [role="status"]:empty { margin: 0; }
.tf-post-search [role="status"]:not(:empty) { margin: .6rem 0 0; }

.tf-public-site .reference-mega .tf-product-mega-card > h5 {
  margin: 0 0 .4rem;
  padding: 0;
  color: var(--accent-color);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
