/* design-fix 19.11.2026 (reports/design-audit-2026-11-19.md). Injected last by src/middleware.ts on every page. Bump the file name on change (/dt-* is cached immutable). */

/* P0-1 home: decorative grid (inset:-40px) pushed the page to 410px on phones */
.s26-stage{overflow:clip}
@media (max-width:900px){.s26-stage .s26-grid{inset:0}}

/* P0-2/3 phones: chat + accessibility buttons sat on top of the bottom bar (phone link hidden, CTA covered).
   Lift them above the bar while it is shown (the bar hides itself while the cookie bar is open). */
@media (max-width:900px){
  html body:not(:has(#cb:not([hidden]))):has(.mbar) .dtc-launch,
  html body:not(:has(#cb:not([hidden]))):has(.mbar) .a11y-btn{bottom:84px!important}
  html body:not(:has(#cb:not([hidden]))):has(.mbar) .dtc-teaser{bottom:150px!important}
  html body:not(:has(#cb:not([hidden]))):has(.mbar) .a11y-panel{bottom:132px!important}
}

/* P1-4 service heroes: opening answer was cut with "..." on phones; show it in full */
section.hx p.lp.ans{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}

/* P1-7 posts: h1 clearly above h2 on phones, no negative tracking on Hebrew headings */
h1{letter-spacing:normal!important}
@media (max-width:600px){main:has(.prose) section.hx h1{font-size:32px!important;line-height:1.2}/* !important: the post template sets font-size inline */}

/* P1-8 post tables: short Hebrew words ("ערוץ") must not break mid-word */
.tblw :is(th,td){word-break:normal;overflow-wrap:normal;hyphens:none}
.tblw tr>:first-child{min-width:4.5em}

/* P1-9 text under 12px: home hero cards and the code-built mock graphics */
.s26-card small{font-size:12px}
.gx-stage :is(small,em,b,.gx-chip,.tick){font-size:12px!important}
.gx-in text{font-size:12px}

/* range sliders (home calculator): 28px hit area, the visible track stays 8px */
html .s26-f input[type=range]{height:28px!important;border-block:10px solid transparent!important;background-clip:padding-box;border-radius:14px}

/* footer legal links: not by colour alone, 24px target */
.flegal2 a{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:24px}
@media (max-width:768px){.flegal2 a{min-height:44px}}
/* links inside sentences (consent label, phone/WhatsApp hint): 24px box without moving the line */
.consent a,.nqhint a,.nqi-trust a,aside p>a[href="/about"]{padding-block:3px}

/* P2-10 /automation: "all FAQs" button glued to the next heading */
.moreb:has(+ .h2x){margin-bottom:32px}

/* P2-15 selection in brand colours */
::selection{background:#ff7a1a;color:#002145}

/* ===== design-fix 2 (20.11.2026), reports/design-fix2-2026-11-20.md ===== */
/* 1 phones: the call/WhatsApp bar stays visible while the cookie bar is open; the cookie bar is a compact strip
   (text + one row of actions) that sits above the bar. Accept and decline have the same size and weight */
@media (max-width:640px){
  html body:has(#cb:not([hidden])) .mbar{display:flex}
  html body #cb.cb{bottom:86px!important;padding:10px 12px!important;gap:8px!important}
  #cb .cbt b{display:none}
  #cb .cbt p{font-size:13px;line-height:1.45}
  html body #cb.cb .cba{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;align-items:stretch;margin:0!important}
  html body #cb.cb .cba button{flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:40px;margin:0!important;white-space:nowrap;order:0!important}
  html body #cb.cb .cba button.lk{flex:0 0 auto!important;padding-inline:6px!important}
  /* floating chat/a11y buttons go above the cookie strip, so the call button in the bar stays tappable */
  html body:has(#cb:not([hidden])) :is(.a11y-btn,.dtc-launch){bottom:calc(var(--dtfb,200px) + 8px)!important}
  html body:has(#cb:not([hidden])) .dtc-teaser{display:none!important}
}
/* decline is as prominent as accept on every width (filled, same size) */
html body #cb.cb .cba button[data-a=none]{background:#fff!important;color:#002145!important;border-color:#fff!important}
/* 2 phones/tablets: the article lead-magnet slide-in stays under 25% of the screen until it is opened
   (title + CTA; the description and the form appear after the tap) and never covers the bottom bar */
@media (max-width:899px){
  html body:has(.mbar) .dtp-sl .dtpop{bottom:86px!important}
  .dtp-sl .dtpop:not(.open){grid-template-columns:56px 1fr;padding:12px 14px!important;row-gap:10px}
  .dtp-sl .dtpop:not(.open) .dtp-d{display:none}
  .dtp-sl .dtpop:not(.open) .dtp-fig{grid-row:1;margin:0}
  .dtp-sl .dtpop:not(.open) .dtp-t{font-size:16px;line-height:1.35;margin:0;padding-inline-end:40px;align-self:center}
  .dtp-sl .dtpop:not(.open) .dtp-go{min-height:44px;margin:0}
}
/* 6 kit-demo: 24px targets for links inside sentences and the consent box; orange text on white to AA (4.7:1) */
.dk-alt a,.dk-cons a{padding-block:3px}
.dk-cons input[type=checkbox]{width:24px;height:24px}
.dk-flow-lead [data-st]{color:#c25100}
/* 8 article: the TOC is now first in the DOM (keyboard order = what phones show); desktop keeps it in the side column */
@media (min-width:1000px){
  .w4-grid>nav.w4-toc{grid-column:2;grid-row:1}
  .w4-grid>.w4-col{grid-column:1;grid-row:1}
}
/* 5 topic tabs (/automation, /crm...): an intentional horizontal strip (role=tablist, scroll-snap, arrows/Home/End,
   starts at the right edge in RTL). A tab wider than the strip could never be shown whole: long labels wrap instead */
@media (max-width:640px){
  .dtx-nav>.dtx-t{max-width:100%}
  .dtx-nav>.dtx-t .dtx-l{white-space:normal;text-wrap:balance;text-align:start}
}
/* ===== design-fix 2b (20.11.2026): home hero (header.hero, z-index 90, ~800px tall) covered the call/WhatsApp bar
   on short phones and landscape. The bar sits above the hero; the mobile menu panel (also inside the hero) hides it while open */
@media (max-width:900px){
  html body .mbar{z-index:91!important}
  html body:has(details.mm[open]) .mbar{display:none!important}
}

/* ===== design-fix 3 (22.11.2026), reports/design-fix3-2026-11-22.md ===== */
/* CLS: the floating chat/a11y buttons lift above the cookie strip with translate (a transform is not a layout shift);
   before, their `bottom` jumped 112px the moment the strip appeared */
@media (max-width:640px){
  html body:has(#cb:not([hidden])):has(.mbar) :is(.a11y-btn,.dtc-launch){bottom:84px!important;translate:0 calc(76px - var(--dtfb,200px))}
}
/* cookie strip in short viewports (landscape phones, 360-500px tall): one row, text beside the actions, <=20% of the height
   (:has() prefix: matches the specificity of the 380px desktop card rule in dt-elements.v5.css).
   Decline stays filled and the same size as accept */
@media (max-height:500px) and (min-width:901px){html body:has(#cb:not([hidden])) #cb.cb{width:min(880px,calc(100vw - 340px))!important;max-width:none!important}}/* leaves the corner chat/a11y buttons uncovered */
@media (max-height:500px){
  html body:has(#cb:not([hidden])) #cb.cb{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;padding:8px 12px!important}
  #cb .cbt b{display:none}
  #cb .cbt p{font-size:13px!important;line-height:1.4!important;margin:0!important}
  html body #cb.cb .cba{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;margin:0!important;align-items:stretch}
  html body #cb.cb .cba button{flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:44px!important;margin:0!important;padding-inline:14px!important;white-space:nowrap;order:0!important}
  html body #cb.cb .cba button.lk{flex:0 0 auto!important;padding-inline:8px!important}
}
@media (max-height:500px) and (max-width:900px){
  html body #cb.cb{bottom:86px!important}
  html body:has(#cb:not([hidden])):has(.mbar) :is(.a11y-btn,.dtc-launch){bottom:84px!important;translate:0 calc(76px - var(--dtfb,200px))}
}
/* touch widths: real standalone controls get a 44px target (links inside sentences keep the WCAG inline exception) */
a.bl2-go{display:flex;align-items:center;min-height:24px}
@media (max-width:900px){
  html body #cb.cb .cba button{min-height:44px!important}/* a 38px !important min-height sits lower in the stack */
  html body #cb.cb .cba button.lk{min-height:44px!important}
  html body .bl2-ch h3 a{padding-block:10px}/* inline: a bigger hit box without moving the heading */
  header.hero nav.nav-fixed a.logo{min-height:44px}
  html .s26-f input[type=range]{height:44px!important;border-block-width:18px!important}
  html body :is(ul.rel-list>li>a,.bl2-int button,.bl2-cc ul li a,a.bl2-go,.s26-pc button.s26-mv){min-height:44px}/* html body: the page CSS sets 40-42px with higher specificity */
  html body .bl2-pg a{min-width:44px;min-height:44px}
  html body p.pcat a{padding-block:10px;margin-block:-10px}
  html body p.w4-meta>a{padding-block:6px;margin-block:-6px}
  html body :is(p.pl-links,p.fullg)>a{display:inline-flex;align-items:center;min-height:44px}
  p.t2-k{display:flex;flex-direction:column;align-items:flex-start}
  p.t2-k a{display:inline-flex;align-items:center;min-height:44px}
}
/* /tools at 390: a one-word name ("monday.com") pushed the card header past the card and the list clipped it.
   The name drops under the logo when it does not fit */
.t2-h{flex-wrap:wrap}
.t2-h h3{min-width:0;overflow-wrap:anywhere}
/* /ai-agents: the filter chips are meant to be a horizontal scroll strip (dt-strips.v37: nowrap + overflow-x:auto), but an older
   `overflow:visible!important` won, so the row overflowed the phone and the section cut it off (chips unreachable by touch) */
@media (max-width:640px){main .ag-fl .ag-fg{min-width:0;max-width:100%}main .ag-fl .ag-cs{min-width:0;max-width:100%;justify-content:flex-start!important;overflow-x:auto!important;overscroll-behavior-x:contain}}
/* WCAG 2.5.8: plain links inside body sentences (inline exception) still get a 24px box; vertical padding on an inline box
   does not move the line */
main p>a:not([class]){padding-block:2px}
/* /whatsapp-bot mock chat: white on WhatsApp green was 4.14:1, the input placeholder 2.94:1. WhatsApp's dark teal header (7.5:1)
   and a darker placeholder (5:1) */
.gx-stage .wa-hd{background:#075E54!important}
.gx-stage .wa-in span{color:#5f6b85!important}
/* mock graphics (whatsapp chat, integrations hub): 11.4-11.98px text to 12px */
.gx-stage :is(.wa-m,.wa-in span,.ih-cap){font-size:12px!important}
/* home: the hero (z-index 90) covered the chat and accessibility buttons (70/80) on the first screen. They sit above it
   (below the bottom bar's panels, the cookie strip and the popup); hidden while the mobile menu is open, like the bar */
html body :is(.a11y-btn,.dtc-launch,.dtc-teaser){z-index:92!important}
@media (max-width:900px){html body:has(details.mm[open]) :is(.a11y-btn,.dtc-launch,.dtc-teaser){display:none!important}}
