/* ==========================================================================
   Kira QA round (video 11/24, Trenton's calls 11/25). Loaded after style.css.
   Item numbers refer to kira_qa/plan.md. Square corners, brand palette only.
   ========================================================================== */

/* 1. Nav overlay: doctor names under Meet Our Doctors get a small square button frame */
.tt-menu__sub{gap:8px;margin:2px 0 8px 0}
.tt-v2 .tt-menu__sub a{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #cfd6d8;background:#fff;font-size:13.5px;line-height:1.3;color:#000;text-decoration:none;transition:color .2s ease,border-color .2s ease}
.tt-v2 .tt-menu__sub a:hover,.tt-v2 .tt-menu__sub a:focus-visible{color:var(--tt-magenta);border-color:var(--tt-magenta)}

/* 2. Reviewer names: one dash and a space before every name, drawn by CSS (copy stays dash-free) */
.tt-rev__who::before,
body.tt-v2 blockquote .name::before,
body.tt-v2 section.content blockquote > h5:last-child::before{content:"\2014\00a0"}

/* 6. Homepage Braces & Aligners cards: white hover with the drop shadow (Kira's call) */
.tt-ortho__card:hover{background:#fff}

/* 8. Homepage reviews opening quote mark: in from the edge on tablet and mobile */
@media (max-width:1023px){.tt-rev__q--o{left:0;top:-40px}}
@media (max-width:767px){.tt-rev__q--o{font-size:200px;top:-34px}}

/* 9. Homepage split intros: no keyline under the intro on tablet and mobile */
@media (max-width:1023px){.tt-split{border-bottom:0;padding-bottom:0}}

/* 11. Homepage How We Help photo: taller on tablet so the face is not cut off */
@media (min-width:768px) and (max-width:1023px){
  .tt-help__img{aspect-ratio:4/5;min-height:0;height:auto}
  .tt-help__img img{object-position:50% 25%}
}

/* 12. Homepage Braces & Aligners cards: 23px between the copy and Learn More */
.tt-v2 .tt-ortho__card p{margin-bottom:23px}

/* 14. Homepage How We Make Care Simple: step 01 photo keeps the girl in frame on tablet */
@media (max-width:1023px){.tt-steps .tt-step:nth-child(1) .tt-step__img > div{background-position:72% 50%!important}}

/* 15 + 16. Interior heroes: same button row spacing as Oral Surgery everywhere */
.tt-m .hero-p .btns,.tt-m .hero-o .btns{display:flex;gap:14px;margin-top:38px!important;flex-wrap:wrap}

/* 17. Breadcrumbs removed sitewide (markup removed too; this catches cached copies) */
.tt-m .crumbs,nav.crumbs{display:none!important}

/* 19. No-header forms: the location select text sits centered in the field */
body.tt-v2 section.content .gform_wrapper select{line-height:normal!important;padding-top:0!important;padding-bottom:0!important}

/* 20 + 21. Interior and no-header review cards (mockup M2): white card, brand offset block,
   ink caps title like the homepage, 20px quote, ink caps name */
body.tt-v2 section.content blockquote{box-shadow:10px 10px 0 var(--tt-cyan)}
body.tt-v2 section.content blockquote h3,body.tt-v2 section.content blockquote h4{font-family:Outfit,Helvetica,sans-serif!important;font-size:12px!important;font-weight:600!important;letter-spacing:.18em!important;text-transform:uppercase!important;line-height:1.7!important;color:#000!important;margin:0 0 12px!important}
body.tt-v2 section.content blockquote p{font-size:20px!important;line-height:1.55!important;color:#000!important}
body.tt-v2 section.content blockquote .name,body.tt-v2 section.content blockquote > h5:last-child{display:block;margin-top:22px!important;font-family:Outfit,Helvetica,sans-serif!important;font-size:12.5px!important;font-weight:600!important;letter-spacing:.14em!important;text-transform:uppercase!important;color:#000!important}
body.tt-v2 section.content blockquote .stars{margin:0 0 16px!important;font-size:14px}
@media (max-width:767px){body.tt-v2 section.content blockquote p{font-size:18px!important}}
/* no-header review column (orange): keep the black block (round 1 #4), room for it inside the slider,
   equal-height slides so a longer review never gets clipped */
body.tt-v2.page-template-no-header .cta-reviews-carousel .owl-stage{display:flex}
body.tt-v2.page-template-no-header .cta-reviews-carousel .owl-item{display:flex}
body.tt-v2.page-template-no-header .cta-reviews-carousel .item{display:flex;width:100%;padding:0 12px 12px 0;box-sizing:border-box}
body.tt-v2.page-template-no-header .cta-reviews-carousel blockquote{width:100%;margin:0!important;box-shadow:10px 10px 0 #000!important}
body.tt-v2.page-template-no-header .cta-reviews-carousel .owl-stage-outer{height:auto!important;clip-path:inset(0 3px 0 0)}

/* 22. Meet Our Doctors grid: 32px between the bio and the Meet Dr. button */
body.tt-v2 .dr-wrapper .content .btn{margin-top:32px!important}
body.tt-v2 .dr-wrapper .content p{margin-bottom:0}

/* 24. Blog pagination: square keyline boxes, current page cyan, magenta hover */
body.tt-v2 .wp-pagenavi{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;border:0}
body.tt-v2 .wp-pagenavi a,body.tt-v2 .wp-pagenavi span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;margin:0!important;padding:0 12px!important;box-sizing:border-box;border:1px solid var(--tt-line)!important;border-radius:0!important;background:#fff!important;background-image:none!important;box-shadow:none!important;color:#000!important;font-family:Outfit,Helvetica,sans-serif;font-size:14px;font-weight:500;text-decoration:none!important;transition:color .2s ease,border-color .2s ease}
body.tt-v2 .wp-pagenavi span.current{background:var(--tt-cyan)!important;border-color:var(--tt-cyan)!important;color:#fff!important}
body.tt-v2 .wp-pagenavi a:hover,body.tt-v2 .wp-pagenavi a:focus-visible{color:var(--tt-magenta)!important;border-color:var(--tt-magenta)!important}
body.tt-v2 .wp-pagenavi span.pages,body.tt-v2 .wp-pagenavi span.extend{border-color:transparent!important;background:transparent!important}

/* 26. Blog post "You Might Also Like": homepage tan section, square white cards, magenta eyebrow */
body.tt-v2 .related-posts{background:var(--tt-warm)!important;padding:72px 0;margin-top:56px}
body.tt-v2 .related-posts #related_posts{max-width:var(--tt-wrap);margin:0 auto;padding:0 var(--tt-gut);box-sizing:border-box;background:transparent!important}
body.tt-v2 .related-posts h2{margin:0 0 32px!important;font-family:Outfit,Helvetica,sans-serif!important;font-size:12px!important;font-weight:600!important;letter-spacing:.18em!important;text-transform:uppercase!important;color:var(--tt-magenta)!important;text-align:left}
body.tt-v2 .related-posts ul.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0!important;padding:0!important;list-style:none}
body.tt-v2 .related-posts ul.row > li{width:auto!important;max-width:none!important;flex:none!important;padding:0!important;margin:0!important;background:#fff;border:1px solid var(--tt-line);display:flex;flex-direction:column;transition:box-shadow .3s ease}
body.tt-v2 .related-posts ul.row > li:hover{box-shadow:0 18px 40px rgba(0,0,0,.12)}
body.tt-v2 .related-posts .featured-image-wrap{aspect-ratio:16/10;overflow:hidden;border-radius:0!important}
body.tt-v2 .related-posts .featured-image{width:100%;height:100%;background-size:cover!important;background-position:center!important;border-radius:0!important}
body.tt-v2 .related-posts .relatedcontent{padding:24px 26px 28px;background:#fff!important}
body.tt-v2 .related-posts .relatedcontent h3{margin:0!important;font-size:20px!important;line-height:1.35!important;font-weight:500!important}
body.tt-v2 .related-posts .relatedcontent h3 a{color:#000!important;text-decoration:none!important}
body.tt-v2 .related-posts .relatedcontent h3 a:hover{color:var(--tt-magenta)!important}
body.tt-v2 .related-posts .post-date{display:block;margin-top:12px;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--tt-muted)}
@media (max-width:767px){body.tt-v2 .related-posts{padding:56px 0}body.tt-v2 .related-posts #related_posts{padding:0 20px}body.tt-v2 .related-posts ul.row{grid-template-columns:1fr}}

/* 28. Pediatric Dental Services, Sedation Dentistry (mockup M4): intro paired with its option cards */
@media (min-width:768px){
  .tt-m .band-c#sedation-dentistry .wrap{display:grid!important;grid-template-columns:auto minmax(0,1fr);column-gap:48px;align-items:start}
  .tt-m .band-c#sedation-dentistry .sedhead{display:contents!important}
  .tt-m .band-c#sedation-dentistry .sedhead > h2{grid-column:1;grid-row:1 / span 3}
  .tt-m .band-c#sedation-dentistry .sedhead > div,.tt-m .band-c#sedation-dentistry .sedgrid,.tt-m .band-c#sedation-dentistry .wrap > p{grid-column:2}
}
.tt-m .band-c#sedation-dentistry .sedgrid{margin-top:24px!important}
.tt-m .band-c#sedation-dentistry .sedgrid > div{padding:24px 22px 26px!important}
.tt-m .band-c#sedation-dentistry .sedgrid h3{font-size:19px!important;line-height:1.3}
.tt-m .band-c#sedation-dentistry .wrap > p{margin-top:24px!important}
@media (max-width:767px){.tt-m .band-c#sedation-dentistry .sedhead{border-bottom:0!important;padding-bottom:0!important}.tt-m .band-c#sedation-dentistry .sedgrid{grid-template-columns:1fr!important}}

/* 29. Pediatric Dental Emergencies: divider lines removed (Trenton's call) */
body.page-id-34721 section.content hr{display:none!important}
body.page-id-34721 section.content hr + h4{margin-top:36px}

/* 30. Icons: solid and static where nothing is clickable; clickable rows keep outline fill on hover */
.tt-m .kgrid > *:not(:has(a)) .ico,.tt-m .callout:not(:has(a)) .ico{background:var(--cyan);color:#fff}
.tt-m .callout:not(:has(a)):hover{background:transparent;padding-left:16px}
.tt-m .warm .callout:not(:has(a)):hover{background:transparent}
.tt-m .kgrid > *:not(:has(a)):hover{background:#fff;box-shadow:none;transform:none}
@media (max-width:767px){.tt-m .callout:not(:has(a)):hover{padding-left:0}}

/* 32. Oral Surgery, When Oral Surgery May Be Needed: both columns start level */
.tt-m .two > .p{margin-top:0!important}

/* 33. Invisalign intro: wider column, balanced lines (no widow) */
body.page-id-34705 section.content .fl-row:first-child .fl-rich-text{max-width:760px;margin-left:auto;margin-right:auto}
body.page-id-34705 section.content .fl-row:first-child .fl-rich-text :is(p,h2){text-wrap:balance}
body.page-id-34705 section.content .fl-row:first-child .fl-col-content{max-width:none!important}

/* 34. Invisalign journey step numbers: solid brand cyan tile, white number, square */
body.tt-v2 section.content span.number{background:var(--tt-cyan)!important;background-image:none!important;color:#fff!important;border-radius:0!important;box-shadow:none!important}

/* 35. FAQ accordions (mockup M6): white tiles, keyline, cyan line on the open item, magenta icons */
body.tt-v2 .fl-accordion-item{background:#fff!important;border:1px solid var(--tt-line)!important;margin:0 0 8px!important;padding:0 28px;transition:box-shadow .2s ease}
body.tt-v2 .fl-accordion-item:last-child{border-bottom:1px solid var(--tt-line)!important;margin-bottom:0!important}
body.tt-v2 .fl-accordion-item.fl-accordion-item-active{box-shadow:inset 3px 0 0 var(--tt-cyan)}
body.tt-v2 .fl-accordion-button{padding:22px 0!important;background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important}
body.tt-v2 .fl-accordion-button:focus-visible{outline:2px solid var(--tt-cyan)!important;outline-offset:4px}
body.tt-v2 .fl-accordion-button-label{outline:none!important}
body.tt-v2 .fl-accordion-button-icon,body.tt-v2 .fl-accordion-button-icon i{color:var(--tt-magenta)!important}
body.tt-v2 .fl-accordion-content{background:transparent!important;padding:20px 0 24px!important;border-top:1px solid var(--tt-line)}
body.tt-v2 .fl-accordion-content > :last-child{margin-bottom:0}
@media (max-width:767px){body.tt-v2 .fl-accordion-item{padding:0 18px}}

/* 36. Orthodontic office pages: team heading starts level with the body copy */
.tt-m .split-h.tt-team-h{align-items:start}

/* 37. Orthodontic office cards: 23px between the copy and the link */
.tt-m .card .bd .p:last-of-type{margin-bottom:0}
.tt-m .card .bd .tlink{margin-top:23px!important}

/* 18 + 38. Sticky photo with stacked rows (mockups M3, M5). Rows carry the class tt-stick */
.tt-stick-grid{display:grid;grid-template-columns:5fr 7fr;gap:56px;align-items:start}
.tt-stick-grid .tt-stick-aside{position:sticky;top:calc(var(--tt-hdr) + var(--tt-admin) + 32px)}
.tt-stick-grid .tt-stick-aside .eyebrow{margin-bottom:10px}
.tt-stick-grid .tt-stick-aside h2{margin:0 0 28px}
.tt-stick-grid .tt-stick-photo{aspect-ratio:4/5;overflow:hidden;background:var(--tt-warm)}
.tt-stick-grid .tt-stick-photo img{width:100%;height:100%;object-fit:cover;display:block}
.tt-stick-rows{border:1px solid var(--tt-line);display:flex;flex-direction:column;gap:1px;background:var(--tt-line)}
.tt-stick-row{display:grid;grid-template-columns:76px minmax(0,1fr);gap:24px;padding:32px 36px 32px 28px;background:#fff;transition:background .25s ease,box-shadow .3s ease}
.tt-stick-row:hover{background:var(--tt-warm);box-shadow:inset 4px 0 0 #f6662f}
.tt-stick-row .num{font-size:44px;font-weight:300;line-height:.9;color:var(--tt-cyan);transition:color .25s ease}
.tt-stick-row:hover .num{color:#f6662f}
.tt-stick-row h3{margin:0 0 10px!important;font-size:22px!important;font-weight:500!important;line-height:1.3!important;color:#000!important}
.tt-stick-row p{margin:0 0 10px!important}
.tt-stick-row p:last-child{margin-bottom:0!important}
@media (max-width:991px){
  .tt-stick-grid{grid-template-columns:1fr;gap:32px}
  .tt-stick-grid .tt-stick-aside{position:static}
  .tt-stick-grid .tt-stick-photo{aspect-ratio:16/10}
  .tt-stick-row{grid-template-columns:52px minmax(0,1fr);gap:14px;padding:24px 20px}
  .tt-stick-row .num{font-size:34px}
}
/* M5: Beaver Builder rows with a photo column and a text column (class tt-stick on the row) */
@media (min-width:992px){
  body.tt-v2 section.content .fl-row.tt-stick .fl-col-group{display:flex;align-items:stretch}
  body.tt-v2 section.content .fl-row.tt-stick .fl-col:first-child{width:41.66%!important;padding-right:56px;box-sizing:border-box}
  body.tt-v2 section.content .fl-row.tt-stick .fl-col:last-child{width:58.34%!important}
  body.tt-v2 section.content .fl-row.tt-stick .fl-col:first-child > .fl-col-content{position:sticky;top:calc(var(--tt-hdr) + var(--tt-admin) + 32px)}
}
body.tt-v2 section.content .fl-row.tt-stick .fl-module-photo img{width:100%;aspect-ratio:4/5;object-fit:cover}
body.tt-v2 section.content .fl-row.tt-stick .fl-col:last-child .fl-module ~ .fl-module{border-top:1px solid var(--tt-line);margin-top:28px;padding-top:28px}
body.tt-v2 section.content .fl-row.tt-stick .fl-col:last-child .fl-rich-text .eyebrow{display:block;margin:0 0 24px!important;padding-bottom:18px;border-bottom:1px solid var(--tt-line);font-family:Outfit,Helvetica,sans-serif!important;font-size:11.5px!important;font-weight:600!important;letter-spacing:.22em!important;text-transform:uppercase!important;line-height:1.6!important;color:var(--tt-magenta)!important}
body.tt-v2 section.content .fl-row.tt-stick .fl-col:last-child .fl-rich-text :is(h3,h4) br{display:none}
body.tt-v2 section.content .fl-row.tt-stick .fl-col:last-child .fl-rich-text :is(h3,h4):not(.eyebrow){font-size:24px!important;font-weight:500!important;line-height:1.3!important;margin:0 0 12px!important}

/* 39. Contact intro: balanced eyebrow (no lone word) and 32px above Get Started */
body.page-id-34730 section.content .fl-row:first-child .fl-html .eyebrow{max-width:760px;margin-left:auto;margin-right:auto;text-wrap:balance}
body.page-id-34730 section.content .fl-row:first-child .fl-html .btn{margin-top:32px}

/* 40. Contact office blocks: the map starts level with the location heading */
@media (min-width:992px){
  body.page-id-34730 section.content .fl-row:has(.fl-col-group + .fl-col-group iframe) .fl-row-content{display:grid;grid-template-columns:minmax(0,38fr) minmax(0,62fr);column-gap:0;align-items:start}
  body.page-id-34730 section.content .fl-row:has(.fl-col-group + .fl-col-group iframe) .fl-row-content > .fl-col-group:first-child{grid-column:1;grid-row:1}
  body.page-id-34730 section.content .fl-row:has(.fl-col-group + .fl-col-group iframe) .fl-row-content > .fl-col-group + .fl-col-group{display:contents}
  body.page-id-34730 section.content .fl-row:has(.fl-col-group + .fl-col-group iframe) .fl-row-content > .fl-col-group + .fl-col-group > .fl-col{width:auto!important;float:none}
  body.page-id-34730 section.content .fl-row:has(.fl-col-group + .fl-col-group iframe) .fl-row-content > .fl-col-group + .fl-col-group > .fl-col:first-child{grid-column:1;grid-row:2}
  body.page-id-34730 section.content .fl-row:has(.fl-col-group + .fl-col-group iframe) .fl-row-content > .fl-col-group + .fl-col-group > .fl-col:last-child{grid-column:2;grid-row:1 / span 2}
  body.page-id-34730 section.content .fl-row:has(.fl-col-group + .fl-col-group iframe) .fl-row-content > .fl-col-group:first-child .fl-col{width:100%!important}
}

/* 41. Forms outside the band: labels above the fields (placeholders cleared in Gravity Forms) */
body.tt-v2 section.content .gform_wrapper .gfield_label{display:block!important}
