/* A single offset: fixed header, followed by a small, responsive reading gap. */
:root {
  --atl-nav-gap: clamp(22px, 2.5vw, 40px);
  --atl-line-ease: cubic-bezier(.22, 1, .36, 1);
  --atl-line-color: #c2a878;
}
html.atl-section-nav {
  scroll-padding-top: calc(var(--atl-header-height, 84px) + var(--atl-nav-gap)) !important;
}
html.atl-section-nav [data-section-anchor] {
  scroll-margin-top: var(--atl-section-inset, 0px) !important;
}
html[data-section-moving] { scroll-behavior: auto !important; }
html[data-section-moving] .nav[data-hidden] { transform: none; }
[data-section-anchor]:focus:not(:focus-visible),
[data-section-anchor] :is(h1, h2)[tabindex='-1']:focus:not(:focus-visible) { outline: none !important; }

/* Fine, tapered gold strokes. Only transforms and opacity animate. */
.nav__links a::after,
.footer__col a[href^='#']::after,
.menu__list a > [data-i18n]::after,
.nav__cta::after,
.btn[href='#contact'] > [data-i18n]::after,
html.atl-section-nav [data-nav] [data-navlink]::after,
html #aur-mobile-menu a::after,
html #kaplama a > [data-i18n]::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: auto;
  bottom: -5px;
  width: auto;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--atl-line-color) 12%, currentColor 50%, var(--atl-line-color) 88%, transparent);
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--atl-line-ease), opacity .3s ease;
}
.nav__links a,
.footer__col a[href^='#'],
.menu__list a > [data-i18n],
.btn[href='#contact'] > [data-i18n],
html #aur-mobile-menu a,
html #kaplama a > [data-i18n] { position: relative; }
.menu__list a > [data-i18n],
.btn[href='#contact'] > [data-i18n],
html #kaplama a > [data-i18n] { display: inline-block; }
.nav__links a::after { bottom: 6px; }
.nav__links a, html.atl-section-nav [data-nav] [data-navlink] {
  display: inline-flex; align-items: center; min-height: 44px;
}
html.atl-section-nav [data-nav] [data-navlink]::after { bottom: 4px; }
.footer__col a[href^='#']::after { bottom: 5px; }
.nav__cta::after { inset-inline: 26px; bottom: 10px; background: currentColor; }
.btn[href='#contact'] > [data-i18n]::after { background: currentColor; bottom: -4px; }
html #aur-mobile-menu a { align-self: flex-start; width: fit-content; max-width: 100%; }
html.atl-section-nav[dir='rtl'] #aur-mobile-menu a { align-self: flex-end; }
html #kaplama a:hover { padding-left: 0; }

/* The active chapter stays quietly marked; a hover opens the stroke fully. */
.nav__links a[aria-current='location']::after,
.menu__list a[aria-current='location'] > [data-i18n]::after,
html.atl-section-nav [data-nav] [data-navlink][aria-current='location']::after,
html #aur-mobile-menu a[aria-current='location']::after,
html #kaplama a[aria-current='location'] > [data-i18n]::after {
  transform: scaleX(1); opacity: .65;
}
.nav__links a:focus-visible::after,
.footer__col a[href^='#']:focus-visible::after,
.menu__list a:focus-visible > [data-i18n]::after,
.nav__cta:focus-visible::after,
.btn[href='#contact']:focus-visible > [data-i18n]::after,
html.atl-section-nav [data-nav] [data-navlink]:focus-visible::after,
html #aur-mobile-menu a:focus-visible::after,
html #kaplama a:focus-visible > [data-i18n]::after {
  transform: scaleX(1); transform-origin: left center; opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after,
  .footer__col a[href^='#']:hover::after,
  .menu__list a:hover > [data-i18n]::after,
  .nav__cta:hover::after,
  .btn[href='#contact']:hover > [data-i18n]::after,
  html.atl-section-nav [data-nav] [data-navlink]:hover::after,
  html #aur-mobile-menu a:hover::after,
  html #kaplama a:hover > [data-i18n]::after {
    transform: scaleX(1); transform-origin: left center; opacity: 1;
    transition-duration: .68s, .2s;
  }
}
html.atl-section-nav[dir='rtl'] :is(.nav__links a, .footer__col a[href^='#'], .nav__cta, [data-navlink], #aur-mobile-menu a)::after,
html.atl-section-nav[dir='rtl'] :is(.menu__list a, .btn[href='#contact'], #kaplama a) > [data-i18n]::after { transform-origin: left center; }
html.atl-section-nav[dir='rtl'] :is(.nav__links a, .footer__col a[href^='#'], .nav__cta, [data-navlink], #aur-mobile-menu a):is(:hover, :focus-visible)::after,
html.atl-section-nav[dir='rtl'] :is(.menu__list a, .btn[href='#contact'], #kaplama a):is(:hover, :focus-visible) > [data-i18n]::after { transform-origin: right center; }
@media (prefers-reduced-motion: reduce) {
  html.atl-section-nav { scroll-behavior: auto !important; }
  .nav__links a::after, .footer__col a[href^='#']::after,
  .menu__list a > [data-i18n]::after, .nav__cta::after,
  .btn[href='#contact'] > [data-i18n]::after, html.atl-section-nav [data-nav] [data-navlink]::after,
  html #aur-mobile-menu a::after, html #kaplama a > [data-i18n]::after { transition: none !important; }
}
