/* Shared behavior and contrast; each theme's header.css owns its desktop design. */
body .sm-site-chrome { display: contents; }
body .sm-site-chrome.is-inner { display: block; }
body .sm-site-chrome [data-site-header] {
    z-index: 100;
}
body .sm-site-chrome.is-inner [data-site-header] { position: relative; inset: auto; transform: none; margin-inline: auto; }
body .sm-site-chrome [data-site-header] *,
body .sm-site-chrome [data-site-header] *::before,
body .sm-site-chrome [data-site-header] *::after { box-sizing: border-box; }
body .sm-site-chrome [data-site-header] a { text-decoration: none; }
body .sm-site-chrome [data-site-header] :is([class$="-brand"], [class$="-brand"] strong, [class$="-brand"] small, [data-site-nav] > a, [data-site-nav-group] > a, [class$="-top-socials"] a) { color: var(--theme-on-header); }
body .sm-site-chrome [data-site-menu-panel] { display: contents; }
body .sm-site-chrome .sm-site-menu-toggle { display: none; }
body .sm-site-chrome [data-site-nav] { min-width: 0; }
body .sm-site-chrome [data-site-nav] > a::after { transform: scaleX(0); opacity: 0; }
body .sm-site-chrome [data-site-nav] > a:is(.is-active,:hover)::after { transform: scaleX(1); opacity: 1; }
body .sm-site-chrome [data-site-nav] a.is-active { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--color-accent); }
/* C already draws its active indicator with ::after. Keep one visible line. */
body .sm-site-chrome [data-site-nav].sm-c-nav a.is-active { text-decoration: none; }
body .sm-site-chrome [data-site-nav-group] { position: relative; display: flex; align-items: center; gap: 3px; }
body .sm-site-chrome .sm-site-submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 36px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 10px; flex-shrink: 0; }
body .sm-site-chrome [data-site-nav-group] [data-site-submenu] {
    display: none; position: absolute; inset: 100% auto auto 0; min-width: 210px; max-width: min(320px, 90vw);
    height: auto; padding: 10px; border: 1px solid var(--theme-line); border-radius: 6px;
    background: var(--theme-surface); color: var(--theme-panel-text); box-shadow: 0 12px 24px var(--theme-shadow);
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; z-index: 110;
}
body .sm-site-chrome [data-site-submenu] a { display: block; white-space: normal; padding: 10px; color: var(--theme-panel-text); line-height: 1.5; }
body .sm-site-chrome [data-site-submenu] a:hover { background: var(--theme-soft); }
body .sm-site-chrome [data-site-nav-group].is-submenu-open [data-site-submenu] { display: grid; }
body .sm-site-chrome [data-site-header] a[href$="/altyapi-kayit"] { background: var(--theme-action) !important; color: var(--theme-on-action) !important; border: 1px solid var(--color-accent); }
body .sm-site-chrome [data-site-header] a[href$="/altyapi-kayit"]:hover { background: var(--theme-action-hover); color: var(--theme-on-action-hover); }
body .sm-site-chrome [data-site-header] :is(a,button):focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
/* Header surface and copy use the same role on home and inner pages. */

@media (min-width: 1101px) {
    body .sm-site-chrome [data-site-nav-group]:is(:hover,:focus-within):not(.is-submenu-closed) [data-site-submenu] { display: grid; }
    body .sm-site-chrome [data-site-header] { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: clamp(12px,1.5vw,28px); }
    body .sm-site-chrome [data-site-nav] { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(8px,1vw,20px); }
    body .sm-site-chrome [data-site-header] > [class$="-brand"] { max-width: 270px; }
}
@media (max-width: 1100px) {
    body .sm-site-chrome [data-site-header] { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; height: auto; padding-block: 14px; }
    body .sm-site-chrome [data-site-header] > [class$="-brand"] { min-width: 0; max-width: calc(100% - 58px); }
    body .sm-site-chrome [data-site-header] [class$="-brand"] img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
    body .sm-site-chrome [data-site-header] [class$="-brand"] :is(strong,span) { font-size: 16px; overflow-wrap: anywhere; }
    body .sm-site-chrome .sm-site-menu-toggle { display: grid; flex: 0 0 44px; place-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 5px; background: transparent; color: var(--theme-on-header); cursor: pointer; }
    body .sm-site-chrome .sm-site-menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
    body .sm-site-chrome [data-site-menu-panel] { display: none; position: absolute; inset: 100% 0 auto; width: 100%; height: auto; max-height: 75vh; overflow-y: auto; padding: 20px; background: var(--theme-header-bg); color: var(--theme-on-header); border: 1px solid var(--theme-line); box-shadow: 0 12px 24px var(--theme-shadow); z-index: 110; }
    body .sm-site-chrome [data-site-header].is-menu-open [data-site-menu-panel] { display: grid; gap: 20px; }

    body .sm-site-chrome [data-site-nav] { display: flex; flex-direction: column; align-items: stretch; justify-content: start; flex-wrap: nowrap; gap: 0; width: 100%; margin: 0; }
    body .sm-site-chrome [data-site-nav] > a,
    body .sm-site-chrome [data-site-nav-group] > a { display: block; flex: 1; min-height: 44px; padding: 12px 0; line-height: 1.5; }
    body .sm-site-chrome [data-site-nav-group] { display: flex; flex-wrap: wrap; gap: 0; }
    body .sm-site-chrome .sm-site-submenu-toggle { width: 44px; height: 44px; }
    body .sm-site-chrome [data-site-nav-group] [data-site-submenu] { display: none; position: static; flex: 0 0 100%; width: 100%; max-width: none; margin-bottom: 8px; box-shadow: none; }
    body .sm-site-chrome [data-site-nav-group].is-submenu-open [data-site-submenu] { display: grid; }
    body .sm-site-chrome [data-site-header] a[href$="/altyapi-kayit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; }
    body .sm-site-chrome [data-site-header] :is([class$="-header-actions"],[class$="-header-side"],[class$="-tools"],[class$="-actions"]) { display: flex; flex-wrap: wrap; width: 100%; gap: 16px; margin: 0; }
}

body [class$="-hero"]:has([data-site-header].is-menu-open) { overflow: visible; z-index: 120; }
