/* Standalone text actions share the existing UI tokens. Local component files
   own geometry, colour, hover and focus; none of those are reset here. */
body :is(
  .lnk,.lnk-back,.dm-action-link,.n-item,.n-hamburger,
  .h-cta,.h-secondary,.ftr2-nav-link,.ftr2-bottom-legal a,
  .ft-navlist a,.ft-legal a,.dm-page-path a,.dm-case-pagination a,
  .dm-project-nav a,.dm-termin-calendly,
  .wf-interne-list a,a.wf-dl-cat,a.blog-cat,a.prj-card-cat,a.tl,
  .wp-block-details .dm-acc-trigger
){
  font-family:var(--ff-u,var(--fm,'Silka Mono',monospace))!important;
  font-size:var(--sz-u,17px)!important;
  line-height:var(--lh-u,24px)!important;
  font-weight:var(--fw-u,400)!important;
  letter-spacing:var(--ls-u,.3px)!important;
}
/* Project metadata links keep their values' size instead of the action size. */
body .dm-detail-preview__facts .lnk{
  font-size:inherit!important;
}
/* Inline prose has its paragraph's typography and resting colour. Explicit
   action links keep their role, including actions placed in their own p. */
body :is(
  a.dm-inline-link,
  .dm-contact-intro a.lnk,
  .dm-service-step p a.lnk,
  .page-template-page-service-frankfurt-php :is(.step-body,.ux-faq-answer) a:not(.lnk),
  .entry-content :is(p,li,dd) a:not(.lnk):not(.lnk-back):not(.dm-action-link):not(.wp-block-button__link),
  .step-body :is(p,li) a:not(.lnk):not(.dm-action-link),
  p.step-body a:not(.lnk):not(.dm-action-link),
  .dm-article-practice :is(p,li) a:not(.lnk):not(.dm-action-link),
  .ux-faq-answer a:not(.lnk):not(.dm-action-link),
  .dm-inquiry :is(p,label) a:not(.lnk):not(.dm-action-link)
):not(:has(img,picture,svg,video,canvas)){
  font:inherit!important;
  letter-spacing:inherit!important;
  color:inherit!important;
  display:inline!important;
  white-space:normal!important;
  padding:0!important;
  background-image:none!important;
  text-decoration-line:var(--dm-inline-link-decoration,underline)!important;
}

/* Enlarged article actions need their own space before the full desktop grid. */
@media (max-width:1280px){
  body .dm-sticknav:not(.dm-sticknav--projects) .dm-sticknav__inner{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:var(--s3,12px) var(--gutter,24px);
  }
  body .dm-sticknav:not(.dm-sticknav--projects) :is(.lnk,.lnk-back){
    flex:0 1 auto;
    max-width:100%;
    white-space:normal;
  }
}

/* Silka text actions use the footer's text-only line and arrow spacing.
   Native decoration is also the progressive baseline before scripts run. */
body :is(a.dm-action-link,a.h-cta,a.h-secondary,.ft-navlist a,.ft-legal a,.dm-page-path a,.dm-case-pagination a,.dm-project-nav a,a.dm-termin-calendly,.wf-interne-list a,a.wf-dl-cat,a.blog-cat,a.prj-card-cat,a.tl,p.tl > a){
  background-image:none!important;
  border-bottom-color:transparent;
  text-decoration-line:underline!important;
}
html body a.dm-text-link,html body a:has(.dm-text-link-label){
  --dm-inline-link-decoration:none;
  background-image:none!important;
  text-decoration-line:none!important;
}
body .dm-text-link .dm-text-link-label,body a:has(.dm-text-link-label) .dm-text-link-label{
  text-decoration-line:underline!important;
  text-decoration-thickness:var(--dm-link-line-width,1px)!important;
  text-underline-offset:var(--dm-link-line-offset,7px)!important;
  text-decoration-skip-ink:none!important;
}
body .dm-text-link:is(:hover,:focus-visible) .dm-text-link-label,body a:has(.dm-text-link-label):is(:hover,:focus-visible) .dm-text-link-label{ text-decoration-line:none!important; }
body .dm-text-link .dm-link-ink--arrow,body a:has(.dm-text-link-label) .dm-link-ink--arrow{
  display:inline-block;
  margin-left:8px;
  text-decoration:none!important;
}
body .dm-text-link .dm-link-ink--leading,body a:has(.dm-text-link-label) .dm-link-ink--leading{margin-left:0;margin-right:8px}
body .dm-text-link--before::before,body .dm-text-link--after::after{content:none!important}
/* Active navigation remains identifiable while the pointer is over it. */
body .dm-text-link.nav-active .dm-text-link-label{text-decoration-line:underline!important}

/* Component flex gaps and old shortcut badges must not add a second arrow gap. */
html body a:is(.dm-text-link,:has(.dm-text-link-label)){column-gap:0!important}
body a.dm-text-link :is(.dm-external-label,.dm-project-nav__key){display:inline;margin:0;padding:0;border:0}
body a.dm-text-link--inline:is(:hover,:focus-visible) .dm-text-link-label{text-decoration-line:underline!important}
/* A stationary version of the existing pink ink mask for keyboard navigation. */
body a.dm-text-link:focus-visible .dm-link-ink{
  background-color:currentColor;
  background-image:radial-gradient(ellipse 90px 72px at 50% 50%,#d3188f 0%,#d3188f 46%,transparent 100%);
  background-clip:text;-webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
@media(forced-colors:active){
  body a.dm-text-link:focus-visible .dm-link-ink{background:none;-webkit-text-fill-color:currentColor}
}

/* Long service actions must remain within their responsive content column. */
body :is(.dm-service-story,.dm-service-page) a.dm-text-link{max-width:100%;white-space:normal;overflow-wrap:break-word}

/* Optical arrow motion: transforms preserve the resting 8px layout gap.
   dm-ink-hover is set only by a genuine mouse pointer, never keyboard/touch. */
body .dm-link-ink--arrow[data-dm-arrow="←"]{--dm-arrow-x:-2px;--dm-arrow-y:0px}
body .dm-link-ink--arrow[data-dm-arrow="→"]{--dm-arrow-x:2px;--dm-arrow-y:0px}
body .dm-link-ink--arrow[data-dm-arrow="↑"]{--dm-arrow-x:0px;--dm-arrow-y:-2px}
body .dm-link-ink--arrow[data-dm-arrow="↓"]{--dm-arrow-x:0px;--dm-arrow-y:2px}
body .dm-link-ink--arrow[data-dm-arrow="↗"]{--dm-arrow-x:1.414214px;--dm-arrow-y:-1.414214px}
body .dm-link-ink--arrow[data-dm-arrow="↘"]{--dm-arrow-x:1.414214px;--dm-arrow-y:1.414214px}
body .dm-link-ink--arrow[data-dm-arrow="↙"]{--dm-arrow-x:-1.414214px;--dm-arrow-y:1.414214px}
body .dm-link-ink--arrow[data-dm-arrow="↖"]{--dm-arrow-x:-1.414214px;--dm-arrow-y:-1.414214px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  body a .dm-link-ink--arrow[data-dm-arrow]{transition:transform 150ms ease-out}
  body a.dm-ink-hover:hover .dm-link-ink--arrow[data-dm-arrow]{transform:translate(var(--dm-arrow-x,0px),var(--dm-arrow-y,0px))}
}
