/*
 * Top Notch Docks v0.6.6 visual QA polish.
 * Centralized, low-risk adjustments for typography, alignment, tablet collapse,
 * and mobile density. Loaded after all page-specific styles.
 */
body.tnd-coded-route figure{margin:0}
body.tnd-coded-route img{vertical-align:middle}
body.tnd-coded-route .tnd-shell>*,
body.tnd-coded-route [class*="-grid"]>*{min-width:0}

/* Heading scale: retain hierarchy without oversized, awkward wraps. */
body.tnd-coded-route h1{font-size:clamp(42px,4.2vw,62px);line-height:1.025;letter-spacing:-.022em}
body.tnd-coded-route h2{font-size:clamp(34px,3.15vw,48px);line-height:1.08;letter-spacing:-.02em}
body.tnd-coded-route h3{font-size:clamp(22px,2vw,25px);line-height:1.17}
body.tnd-coded-route .tnd-eyebrow{font-size:12px;line-height:1.25;margin-bottom:12px}
body.tnd-coded-route .tnd-contact-hero-copy h1,
body.tnd-coded-route .tnd-sa-hero-copy h1{font-size:clamp(40px,3.7vw,56px);max-width:17ch}

/* Shared heading blocks should align from the top when one side wraps. */
body.tnd-coded-route .tnd-section-heading-split{align-items:start}
body.tnd-coded-route .tnd-section-heading-split>p{margin-top:2px}

/* Header alignment and density. */
body.tnd-coded-route .tnd-nav-row{min-height:92px;gap:22px}
body.tnd-coded-route .tnd-brand{height:84px;flex-basis:98px}
body.tnd-coded-route .tnd-logo{width:90px;max-height:82px}
body.tnd-coded-route .tnd-primary-nav{margin-left:auto;gap:18px;font-size:14px;line-height:1.2}
body.tnd-coded-route .tnd-primary-nav>a,
body.tnd-coded-route .tnd-nav-group>summary{display:flex;align-items:center;min-height:44px}
body.tnd-coded-route .tnd-nav-phone{padding:0}
body.tnd-coded-route .tnd-nav-cta{min-height:44px;padding:0 18px}

/* Review headings had several different vertical alignments across pages. */
body.tnd-coded-route .tnd-review-heading,
body.tnd-coded-route .tnd-cc-reviews-head,
body.tnd-coded-route .tnd-mc-reviews-head,
body.tnd-coded-route .tnd-dr-reviews-head,
body.tnd-coded-route .tnd-bl-reviews-head,
body.tnd-coded-route .tnd-rm-review-head,
body.tnd-coded-route .tnd-fm-review-head,
body.tnd-coded-route .tnd-fmdr-reviews-head,
body.tnd-coded-route .tnd-dv-reviews-head,
body.tnd-coded-route .tnd-projects-trust-head,
body.tnd-coded-route .tnd-sa-reviews-head,
body.tnd-coded-route .tnd-contact-review-head,
body.tnd-coded-route .tnd-funnel-review-head{align-items:start}

/* Tablet: the old two-column heroes were too cramped around 1024px. */
@media(max-width:1080px){
  /* Tablet header: switch to the same compact menu before desktop nav starts crowding. */
  body.tnd-coded-route .tnd-utility-area{display:none}
  body.tnd-coded-route .tnd-nav-row{min-height:80px}
  body.tnd-coded-route .tnd-brand{height:72px;flex-basis:84px}
  body.tnd-coded-route .tnd-logo{width:76px;max-height:70px}
  body.tnd-coded-route .tnd-menu-toggle{display:block}
  body.tnd-coded-route .tnd-primary-nav{position:absolute;top:116px;left:18px;right:18px;display:none;flex-direction:column;align-items:stretch;gap:0;background:#fff;border:1px solid var(--tnd-line);box-shadow:var(--tnd-shadow);border-radius:18px;padding:12px;max-height:calc(100vh - 134px);overflow:auto}
  body.tnd-coded-route .tnd-primary-nav.is-open{display:flex}
  body.tnd-coded-route .tnd-primary-nav a{padding:12px 14px}
  body.tnd-coded-route .tnd-primary-nav>a,
  body.tnd-coded-route .tnd-nav-group>summary{min-height:46px}
  body.tnd-coded-route .tnd-nav-cta{text-align:center;margin-top:6px}
  body.tnd-coded-route .tnd-nav-group{padding:0 14px}
  body.tnd-coded-route .tnd-nav-group>summary{padding:12px 0;font-weight:800}
  body.tnd-coded-route .tnd-nav-dropdown{position:static;box-shadow:none;border:0;border-left:2px solid var(--tnd-blue-2);border-radius:0;padding:0 0 4px 12px;margin:0 0 8px}
  body.tnd-coded-route .tnd-nav-dropdown a{padding:9px 10px}
  body.tnd-coded-route .tnd-hero-grid,
  body.tnd-coded-route .tnd-cc-hero-grid,
  body.tnd-coded-route .tnd-mc-hero-grid,
  body.tnd-coded-route .tnd-dr-hero-grid,
  body.tnd-coded-route .tnd-bl-hero-grid,
  body.tnd-coded-route .tnd-rm-hero-grid,
  body.tnd-coded-route .tnd-fm-hero-grid,
  body.tnd-coded-route .tnd-fmdr-hero-grid,
  body.tnd-coded-route .tnd-sa-hero-grid,
  body.tnd-coded-route .tnd-contact-hero-grid,
  body.tnd-coded-route .tnd-projects-hero-grid{grid-template-columns:1fr!important;gap:30px!important}
  body.tnd-coded-route .tnd-hero-copy,
  body.tnd-coded-route .tnd-cc-hero-copy,
  body.tnd-coded-route .tnd-mc-hero-copy,
  body.tnd-coded-route .tnd-dr-hero-copy,
  body.tnd-coded-route .tnd-bl-hero-copy,
  body.tnd-coded-route .tnd-rm-hero-copy,
  body.tnd-coded-route .tnd-fm-hero-copy,
  body.tnd-coded-route .tnd-fmdr-hero-copy,
  body.tnd-coded-route .tnd-sa-hero-copy,
  body.tnd-coded-route .tnd-contact-hero-copy,
  body.tnd-coded-route .tnd-projects-hero-copy{max-width:840px}
  body.tnd-coded-route .tnd-cc-hero-media,
  body.tnd-coded-route .tnd-mc-hero-media,
  body.tnd-coded-route .tnd-dr-hero-media,
  body.tnd-coded-route .tnd-bl-hero-media,
  body.tnd-coded-route .tnd-rm-hero-media,
  body.tnd-coded-route .tnd-fm-hero-media,
  body.tnd-coded-route .tnd-fmdr-hero-media,
  body.tnd-coded-route .tnd-sa-hero-media,
  body.tnd-coded-route .tnd-contact-hero-media{width:100%;min-height:0!important;aspect-ratio:16/9}
  body.tnd-coded-route .tnd-sa-hero-media>img,
  body.tnd-coded-route .tnd-contact-hero-image{min-height:0!important;height:100%!important;object-fit:cover}
  body.tnd-coded-route .tnd-projects-hero-media{width:100%;min-height:0!important}
}

@media(max-width:980px){
  body.tnd-coded-route .tnd-nav-row{min-height:80px}
  body.tnd-coded-route .tnd-brand{height:72px;flex-basis:84px}
  body.tnd-coded-route .tnd-logo{width:76px;max-height:70px}
  body.tnd-coded-route .tnd-primary-nav{top:116px;max-height:calc(100vh - 134px);overflow:auto}
  body.tnd-coded-route .tnd-primary-nav>a,
  body.tnd-coded-route .tnd-nav-group>summary{min-height:46px}
}

/* Mobile: smaller type, less dead space, more compact trust/proof blocks. */
@media(max-width:620px){
  body.tnd-coded-route{font-size:16.5px}
  body.tnd-coded-route p{font-size:16.5px;line-height:1.6}
  body.tnd-coded-route h1{font-size:37px;line-height:1.035;margin-bottom:18px;max-width:none}
  body.tnd-coded-route .tnd-contact-hero-copy h1,
  body.tnd-coded-route .tnd-sa-hero-copy h1{font-size:35px;max-width:none}
  body.tnd-coded-route h2{font-size:31px;line-height:1.09;margin-bottom:16px}
  body.tnd-coded-route h3{font-size:22px;line-height:1.18}
  body.tnd-coded-route .tnd-eyebrow{font-size:11px;letter-spacing:.12em;margin-bottom:10px}
  body.tnd-coded-route .tnd-section{padding:42px 0}
  body.tnd-coded-route .tnd-shell,
  body.tnd-coded-route .tnd-narrow{width:min(calc(100% - 28px),var(--tnd-shell))}
  body.tnd-coded-route .tnd-btn{min-height:50px;padding-inline:18px;font-size:15px}
  body.tnd-coded-route .tnd-breadcrumbs{flex-wrap:wrap;gap:6px;margin-bottom:15px;font-size:12px}

  body.tnd-coded-route .tnd-utility-inner{min-height:32px}
  body.tnd-coded-route .tnd-utility-bar{font-size:12px}
  body.tnd-coded-route .tnd-nav-row{min-height:70px}
  body.tnd-coded-route .tnd-brand{height:62px;flex-basis:72px}
  body.tnd-coded-route .tnd-logo{width:68px;max-height:61px}
  body.tnd-coded-route .tnd-menu-toggle{padding:10px}
  body.tnd-coded-route .tnd-primary-nav{top:102px;left:12px;right:12px;max-height:calc(100vh - 116px);padding:10px;border-radius:15px}
  body.tnd-coded-route .tnd-primary-nav a{padding:11px 12px}
  body.tnd-coded-route .tnd-nav-group{padding-inline:12px}
  body.tnd-coded-route .tnd-nav-group>summary{padding:11px 0}

  body.tnd-coded-route .tnd-hero,
  body.tnd-coded-route .tnd-cc-hero,
  body.tnd-coded-route .tnd-mc-hero,
  body.tnd-coded-route .tnd-dr-hero,
  body.tnd-coded-route .tnd-bl-hero,
  body.tnd-coded-route .tnd-rm-hero,
  body.tnd-coded-route .tnd-fm-hero,
  body.tnd-coded-route .tnd-fmdr-hero,
  body.tnd-coded-route .tnd-sa-hero,
  body.tnd-coded-route .tnd-contact-hero,
  body.tnd-coded-route .tnd-projects-hero{padding-top:34px!important;padding-bottom:40px!important}

  body.tnd-coded-route .tnd-hero-lede,
  body.tnd-coded-route [class*="-hero-lede"],
  body.tnd-coded-route .tnd-sa-lede,
  body.tnd-coded-route .tnd-contact-lede,
  body.tnd-coded-route .tnd-funnel-lede{font-size:17.5px!important;line-height:1.58!important}

  body.tnd-coded-route .tnd-cc-hero-media,
  body.tnd-coded-route .tnd-mc-hero-media,
  body.tnd-coded-route .tnd-dr-hero-media,
  body.tnd-coded-route .tnd-bl-hero-media,
  body.tnd-coded-route .tnd-rm-hero-media,
  body.tnd-coded-route .tnd-fm-hero-media,
  body.tnd-coded-route .tnd-fmdr-hero-media,
  body.tnd-coded-route .tnd-sa-hero-media,
  body.tnd-coded-route .tnd-contact-hero-media{min-height:0!important;aspect-ratio:4/3}
  body.tnd-coded-route .tnd-sa-hero-media>img,
  body.tnd-coded-route .tnd-contact-hero-image{min-height:0!important;height:100%!important}

  /* Keep hero trust visible without consuming half a screen. */
  body.tnd-coded-route .tnd-cc-trust-row,
  body.tnd-coded-route .tnd-mc-trust-row,
  body.tnd-coded-route .tnd-dr-trust-row,
  body.tnd-coded-route .tnd-bl-trust-row,
  body.tnd-coded-route .tnd-rm-trust,
  body.tnd-coded-route .tnd-fm-trust,
  body.tnd-coded-route .tnd-fmdr-trust-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body.tnd-coded-route .tnd-cc-trust-row span,
  body.tnd-coded-route .tnd-mc-trust-row span,
  body.tnd-coded-route .tnd-dr-trust-row span,
  body.tnd-coded-route .tnd-bl-trust-row span,
  body.tnd-coded-route .tnd-rm-trust span,
  body.tnd-coded-route .tnd-fm-trust span,
  body.tnd-coded-route .tnd-fmdr-trust-row span{padding:9px 6px!important;text-align:center;font-size:11px!important;line-height:1.28;border-radius:11px}
  body.tnd-coded-route .tnd-cc-trust-row strong,
  body.tnd-coded-route .tnd-mc-trust-row strong,
  body.tnd-coded-route .tnd-dr-trust-row strong,
  body.tnd-coded-route .tnd-bl-trust-row strong,
  body.tnd-coded-route .tnd-rm-trust strong,
  body.tnd-coded-route .tnd-fm-trust strong,
  body.tnd-coded-route .tnd-fmdr-trust-row strong{font-size:13px!important;overflow-wrap:anywhere}

  /* Four-item proof bars become compact 2x2 blocks instead of long stacks. */
  body.tnd-coded-route .tnd-cc-proofbar-grid,
  body.tnd-coded-route .tnd-mc-proofbar-grid,
  body.tnd-coded-route .tnd-dr-proofbar-grid,
  body.tnd-coded-route .tnd-bl-proofbar-grid,
  body.tnd-coded-route .tnd-rm-proof-grid,
  body.tnd-coded-route .tnd-fmdr-proofbar-grid,
  body.tnd-coded-route .tnd-dv-proofbar-grid,
  body.tnd-coded-route .tnd-projects-proofbar-grid,
  body.tnd-coded-route .tnd-sa-proofbar-grid,
  body.tnd-coded-route .tnd-contact-trust-grid{grid-template-columns:1fr 1fr!important}
  body.tnd-coded-route .tnd-cc-proofbar-grid>div,
  body.tnd-coded-route .tnd-mc-proofbar-grid>div,
  body.tnd-coded-route .tnd-dr-proofbar-grid>div,
  body.tnd-coded-route .tnd-bl-proofbar-grid>div,
  body.tnd-coded-route .tnd-rm-proof-grid>div,
  body.tnd-coded-route .tnd-fmdr-proofbar-grid>div,
  body.tnd-coded-route .tnd-dv-proofbar-grid>div,
  body.tnd-coded-route .tnd-projects-proofbar-grid>div,
  body.tnd-coded-route .tnd-sa-proofbar-grid>div,
  body.tnd-coded-route .tnd-contact-trust-grid>div{padding:13px 10px!important;border-bottom:1px solid rgba(255,255,255,.13)!important}
  body.tnd-coded-route .tnd-projects-proofbar-grid>div{border-bottom-color:#ded7ca!important}
  body.tnd-coded-route .tnd-cc-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-mc-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-dr-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-bl-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-rm-proof-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-fmdr-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-dv-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-projects-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-sa-proofbar-grid>div:nth-last-child(-n+2),
  body.tnd-coded-route .tnd-contact-trust-grid>div:nth-last-child(-n+2){border-bottom:0!important}

  /* Contact hero was too long before the project photo on phones. Details repeat below. */
  body.tnd-coded-route .tnd-contact-quick-grid{display:none!important}

  /* Keep project and gallery cards proportionate on phones. */
  body.tnd-coded-route .tnd-projects-hero-media{grid-template-rows:215px 140px!important;gap:8px!important;min-height:0!important}
  body.tnd-coded-route .tnd-project-card figure,
  body.tnd-coded-route .tnd-project-card-2 figure,
  body.tnd-coded-route .tnd-project-card-3 figure,
  body.tnd-coded-route .tnd-project-card-5 figure,
  body.tnd-coded-route .tnd-project-card-6 figure{height:220px!important}

  /* Paid funnel: prevent cramped stat tiles and oversized form heading. */
  body.tnd-coded-route .tnd-funnel-hero h1{font-size:37px!important}
  body.tnd-coded-route .tnd-funnel-form-head h2{font-size:30px!important}
  body.tnd-coded-route .tnd-funnel-trust{gap:8px}
  body.tnd-coded-route .tnd-funnel-trust>div{padding:11px 9px}

  /* Thank-you steps should always be a readable vertical list on phones. */
  body.tnd-coded-route .tnd-thank-you-steps{grid-template-columns:1fr!important}
  body.tnd-coded-route .tnd-thank-you-card{padding:30px 18px}
  body.tnd-coded-route .tnd-thank-you-card h1{font-size:36px!important}
}

@media(max-width:390px){
  body.tnd-coded-route h1{font-size:35px}
  body.tnd-coded-route h2{font-size:29px}
  body.tnd-coded-route .tnd-primary-nav{left:10px;right:10px}
  body.tnd-coded-route .tnd-cc-trust-row span,
  body.tnd-coded-route .tnd-mc-trust-row span,
  body.tnd-coded-route .tnd-dr-trust-row span,
  body.tnd-coded-route .tnd-bl-trust-row span,
  body.tnd-coded-route .tnd-rm-trust span,
  body.tnd-coded-route .tnd-fm-trust span,
  body.tnd-coded-route .tnd-fmdr-trust-row span{font-size:10.5px!important}
}
