/* AchtarFoto integrated editorial shell — scoped to demo components. */
/* The old Home remains stored, but its menu link starts disabled.
   This first-paint guard also covers cached and owner-managed public menus.
   Admin may explicitly re-enable it via navigation.home.link. */
html:not([data-af-home-link-enabled="1"]) :is(.demo-desktop-nav,.demo-mobile-menu,.dp-desktop-nav,.dp-mobile-nav,.ds-desktop-links,.ds-mobile-links,.da-desktop-nav,.da-mobile-nav,.dc-desktop-nav,.dc-mobile-nav) a:is([href="/"],[href^="/?"],[href="/index.html"],[href^="/index.html?"]){display:none!important}

.ai-lang{display:flex;align-items:center;gap:5px;flex:none;margin-left:4px;border-left:1px solid #cbb9a477;padding-left:12px}
.ai-lang a{padding:9px 5px;min-width:26px;min-height:36px;display:inline-grid;place-items:center;color:#d5c7b6;text-decoration:none;font:700 10px/1 Arial,sans-serif;letter-spacing:.04em;opacity:.7}
.ai-lang a[aria-current="true"]{color:#fff;opacity:1;border-bottom:1px solid #d3ad81}
.ai-lang a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ai-preview{position:fixed;z-index:40;bottom:5px;right:9px;padding:4px 7px;background:#e3d4c6e8;color:#292016;border:1px solid #bda17e66;font:8px/1.4 Arial,sans-serif;letter-spacing:.07em;pointer-events:none}
.ai-skip{position:fixed;z-index:100;top:-90px;left:12px;padding:13px;background:#fff;color:#151515}.ai-skip:focus{top:10px}
.ds-desktop-links,.da-desktop-nav,.dc-desktop-nav,.dp-desktop-nav,.demo-desktop-nav{gap:clamp(14px,2vw,35px)}
.ds-footer a,.da-footer a,.dc-footer a{color:inherit;border-bottom:1px solid #cbb19b;text-decoration:none}
.dc-direct{max-width:1770px;margin:0 auto;padding:50px clamp(24px,6vw,110px) clamp(100px,10vw,160px)}
.dc-direct-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:30px;border-top:1px solid #7a675477}
.dc-direct-links a{display:flex;flex-direction:column;gap:13px;min-height:100px;justify-content:center;padding:25px 20px 21px 0;border-bottom:1px solid #7a675477;color:#eee6db;text-decoration:none;font:11px/1.5 Arial,sans-serif;letter-spacing:.17em}
.dc-direct-links small{color:#b9aa98;font:15px/1.6 Georgia,serif;letter-spacing:0}
.dc-direct-links a:hover{color:#d6b897}
.dc-direct-links a:focus-visible{outline:2px solid #e6d1ba;outline-offset:4px}
.dc-form-end #dc-send-error{flex-basis:100%;font:12px/1.5 Arial,sans-serif;color:#f0b193}
@media(max-width:1100px){
 .ds-desktop-links,.da-desktop-nav,.dc-desktop-nav{gap:13px}
}
@media(max-width:900px){
 .ai-lang{padding-left:9px;margin-left:auto;margin-right:6px}
 .dp-header,.demo-header{gap:9px}
}
@media(max-width:790px){
 .da-header,.ds-header,.dc-header{gap:9px}
 .dc-direct-links{grid-template-columns:1fr;margin-top:12px}
 .dc-direct-links a{padding:14px 0;min-height:70px}
 .dc-direct{padding:15px 23px 90px}
 .ai-preview{font-size:8px;bottom:3px}
}
@media(max-width:375px){.ai-lang{gap:0;padding-left:6px;margin:0}.ai-lang a{min-width:23px;font-size:9px}.dc-brand,.da-logo,.ds-logo,.dp-logo,.demo-wordmark{letter-spacing:-.05em!important}}

/* Discreet portfolio content switch for previews: original approved design
   or actual public photos retrieved read-only from the Admin. */
.ai-content-modes{display:flex;gap:16px;flex-wrap:wrap;align-items:center;border-top:1px solid #7c6d5d54;padding:12px 0}
.ai-content-modes a{display:inline-flex;align-items:center;min-height:35px;font:10px/1.4 Arial,sans-serif!important;letter-spacing:.13em;color:#bdb0a0!important;border:0!important;text-decoration:none}
.ai-content-modes a[aria-current="page"]{color:#f3e6d3!important;border-bottom:1px solid #c9af90!important}
.ai-content-modes a:hover{color:#fff!important}
@media(max-width:790px){.ai-content-modes{padding-top:18px}.ai-content-modes a{margin:5px 0;min-height:32px}}

/* AchtarFoto public navigation · Desktop browser only.
   Reorder the existing hamburger; the touch/PWA hamburger stays in its original place. */
@media (hover:hover) and (pointer:fine) and (max-width:900px){
 .demo-header .demo-menu-toggle{order:-2;margin:0 14px 0 0;flex:none}
 .demo-header .demo-wordmark{order:-1;margin-right:auto}
}
@media (hover:hover) and (pointer:fine) and (max-width:790px){
 .dp-header .dp-menu-trigger,.da-header .da-menu-button,
 .dc-header .dc-menu-button,.ds-header .ds-menu-toggle{
   order:-2;margin:0 14px 0 0;flex:none
 }
 .dp-header .dp-logo,.da-header .da-logo,
 .dc-header .dc-brand,.ds-header .ds-logo{order:-1;margin-right:auto}
}
/* Mobile/PWA: scroll the existing menu when vertical space is limited.
   No links clipped by short screens, zoom, virtual keyboard or safe-area insets. */
@media (max-width:900px){
 .demo-mobile-menu:not([hidden]),.dp-mobile-nav:not([hidden]),
 .da-mobile-nav:not([hidden]),.dc-mobile-nav:not([hidden]),.ds-mobile-links:not([hidden]){
   box-sizing:border-box;top:0;bottom:0;min-height:0;max-height:100dvh;
   height:100dvh;overflow-x:hidden;overflow-y:auto;
   overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
   justify-content:flex-start;gap:clamp(12px,3svh,28px);
   padding-top:max(94px,calc(env(safe-area-inset-top) + 82px));
   padding-bottom:max(30px,calc(env(safe-area-inset-bottom) + 20px));
 }
 .demo-mobile-menu a,.dp-mobile-nav a,.da-mobile-nav a,
 .dc-mobile-nav a,.ds-mobile-links a{flex:none;max-width:100%;overflow-wrap:anywhere}
}
@media (max-width:900px) and (min-height:680px){
 .demo-mobile-menu:not([hidden]),.dp-mobile-nav:not([hidden]),
 .da-mobile-nav:not([hidden]),.dc-mobile-nav:not([hidden]),.ds-mobile-links:not([hidden]){
   justify-content:safe center;
 }
}
