/* AHM Hosting V3.0.61 — Borderless mobile header icons, WHOIS globe icon; no hero/content/PDF changes. */
@media screen {
  .sidebar-footer { flex: 0 0 auto; min-height: 0; }
  .sidebar-footer a { min-width: 0; }
  .sidebar-footer img { width: 86px; max-width: 100%; height: auto; }
}
/* Keep the founder link in the visible sidebar area, including landscape tablets.
   The sidebar itself still scrolls away with the page as requested. */
@media screen and (min-width: 768px) {
  .site > .sidebar {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
  }
  .site > .sidebar .brand { flex: 0 0 auto; }
  .site > .sidebar .tool-navigation {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }
  .site > .sidebar .sidebar-footer { flex: 0 0 auto; margin-top: 10px; }
}
@media screen and (min-width: 768px) and (max-height: 700px) {
  .site > .sidebar { padding-top: 13px; padding-bottom: 12px; }
  .site > .sidebar .brand { padding: 2px 0 12px; }
  .site > .sidebar .nav-link { min-height: 38px; padding-block: 8px; }
  .site > .sidebar .sidebar-footer { padding-top: 9px; margin-top: 8px; }
  .site > .sidebar .sidebar-footer img { width: 78px; }
}
/* Off-canvas navigation: visible founder logo + independently scrollable links. */
@media screen and (max-width: 767px) {
  .sidebar {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .sidebar .brand { flex: 0 0 auto; }
  .sidebar .tool-navigation {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  .sidebar .sidebar-footer { flex: 0 0 auto; margin-top: 10px; }
  .mobile-header { justify-content: space-between; }
  .mobile-header .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .mobile-header .menu-toggle svg { width: 28px; height: 28px; }
  .mobile-header .ahm-menu-close { display: none; }
  .menu-open .mobile-header .ahm-menu-lines { display: none; }
  .menu-open .mobile-header .ahm-menu-close { display: block; }
  .mobile-header .mobile-quick-search {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    color: var(--ink);
  }
  /* No persistent outline / border / box for either header icon.
     The full 44px tap target stays usable, while SVGs gain more visual size. */
  .mobile-header .menu-toggle,
  .mobile-header .mobile-quick-search,
  .mobile-header .menu-toggle:is(:hover, :active, :focus),
  .mobile-header .mobile-quick-search:is(:hover, :active, :focus) {
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-header .mobile-quick-search svg { width: 28px; height: 28px; }
  /* Keyboard and assistive-switch focus remains perceivable without a box. */
  .mobile-header .menu-toggle:focus-visible,
  .mobile-header .mobile-quick-search:focus-visible { outline: none !important; }
  .mobile-header .menu-toggle:focus-visible::after,
  .mobile-header .mobile-quick-search:focus-visible::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1d57df;
    pointer-events: none;
  }
  html.ahm-pointer-input .mobile-header .menu-toggle:focus::after,
  html.ahm-pointer-input .mobile-header .mobile-quick-search:focus::after { content: none; }
  .mobile-header .mobile-brand { z-index: 1; }
}
@media screen and (max-width: 767px) and (max-height: 540px) {
  .sidebar { padding-top: 12px; padding-bottom: 9px; }
  .sidebar .brand { padding: 3px 0 9px; }
  .sidebar .sidebar-footer { padding-top: 8px; }
  .sidebar .sidebar-footer img { width: 75px; }
}
@media screen and (min-width: 768px) {
  .mobile-header .mobile-quick-search { display: none; }
}

/* V3.0.63 — Align the founder credit with the actual .site inner left edge.
   A single viewport rail separator replaces the two out-of-step right borders
   previously drawn by the scrolling sidebar and the fixed footer. The menu
   itself still scrolls away, while the founder logo stays at bottom-left. */
@media screen and (min-width: 768px) {
  .site {
    /* Desktop .site is max 1320px wide with a 1px outer border.
       On narrower desktop screens it has 32px gutters. */
    --ahm-rail-left: max(33px, calc((100vw - 1320px) / 2 + 1px));
  }
  .site > .sidebar {
    border-right: 0;
  }
  .site::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: calc(var(--ahm-rail-left) + var(--sidebar) - 1px);
    width: 1px;
    background: var(--line);
    z-index: 31;
    pointer-events: none;
  }
  .site > .sidebar .sidebar-footer {
    position: fixed;
    z-index: 1;
    inset: auto auto 0 var(--ahm-rail-left);
    width: var(--sidebar);
    max-width: var(--sidebar);
    margin: 0;
    padding: 15px 17px max(20px, env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .site { --ahm-rail-left: 17px; }
  .site > .sidebar .sidebar-footer {
    padding-inline: 13px;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }
}
@media screen and (min-width: 768px) and (max-height: 700px) {
  .site > .sidebar .sidebar-footer {
    padding-top: 9px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

/* V3.0.98 — Desktop footer must stay WITHIN the sidebar flex column.
   A viewport-fixed founder credit painted on top of scrollable navigation and
   could cover the last menu links. Navigation alone is independently scrollable. */
@media screen and (min-width:768px) {
  .site > .sidebar .sidebar-footer {
    position: static;
    inset: auto;
    z-index: auto;
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin: 9px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .site > .sidebar .tool-navigation {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
  }
}
@media screen and (min-width:768px) and (max-height:700px) {
  .site > .sidebar .sidebar-footer { padding-top: 9px; margin-top: 7px; }
}
/* V3.0.74: 14 toolbox entries grouped under accessible nested headings. */
.tool-navigation .nav-section-caption{
  padding:16px 13px 4px;color:#718099;font-size:10px;font-weight:850;
  line-height:1.5;letter-spacing:.085em;
}
.tool-navigation .nav-tool-group{min-width:0;margin-top:2px;}
.tool-navigation .nav-tool-group-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  cursor:pointer;list-style:none;color:#345477;background:#f5f8fd;
  font-size:12px;font-weight:800;line-height:1.3;padding:12px 11px;
  border-radius:9px;transition:background .15s;
}
.tool-navigation .nav-tool-group-toggle:hover{background:#eaf2ff;}
.tool-navigation .nav-tool-group-toggle::-webkit-details-marker{display:none;}
.tool-navigation .nav-tool-group-toggle::before{
  content:'';width:6px;height:6px;border-right:2px solid #3c659a;
  border-bottom:2px solid #3c659a;transform:rotate(-45deg);transition:transform .15s;
}
.tool-navigation .nav-tool-group[open] > .nav-tool-group-toggle::before{transform:rotate(45deg);}
.tool-navigation .nav-tool-group-toggle span{margin-left:auto;font-size:10px;color:#5372a0;}
.tool-navigation .nav-tool-group-toggle:focus-visible{outline:2px solid #4261a8;outline-offset:-2px;}
.tool-navigation .nav-tool-group-items{display:flex;flex-direction:column;gap:2px;padding:6px 0 8px 9px;}
.tool-navigation .nav-link-sub{min-width:0;min-height:31px;padding:7px 9px;
  font-size:12px;line-height:1.4;overflow-wrap:normal;word-break:normal;
  border-left:2px solid #e6edf7;border-radius:0 8px 8px 0;
}
.tool-navigation .nav-link-sub.active{border-left-color:#275bdd;}
@media (max-width:767px){.tool-navigation .nav-link-sub{min-height:38px;padding-block:10px;}}

/* V3.0.75 — single expandable primary group, direct category pages. */
.tool-navigation .nav-primary-group { margin-top:4px; }
.tool-navigation .nav-primary-group .nav-tool-group-items { padding:5px 0 10px 5px; gap:3px; }
.tool-navigation .nav-primary-group .nav-link { min-width:0; margin-left:5px; font-size:13px; line-height:1.45; }
.tool-navigation .nav-primary-group .nav-tool-group-toggle { min-height:43px; font-size:13px; color:#26496f; }
.tool-navigation .nav-link { min-width:0; }
@media(max-width:767px){
  .tool-navigation .nav-primary-group .nav-link { min-height:44px; }
}

/* V3.0.84: Match Site Denetimleri / Olusturucular to Temel Analizler.
   Every nested link uses the same Manrope weight, 13px size, 19px outline SVG,
   spacing, hover/active colors and click target as the original six tools. */
.tool-navigation .nav-extra-group { margin-top:4px; }
.tool-navigation .nav-extra-group > .nav-tool-group-items {
  padding:5px 0 10px 5px;
  gap:3px;
}
.tool-navigation .nav-extra-group .nav-link {
  min-width:0;
  min-height:42px;
  margin-left:5px;
  padding:11px 13px;
  font-size:13px;
  font-weight:600;
  line-height:1.45;
  gap:13px;
  overflow-wrap:normal;
  word-break:normal;
}
.tool-navigation .nav-extra-group .nav-link > span { min-width:0; overflow-wrap:break-word; }
.tool-navigation .nav-extra-group .nav-link svg { width:19px; height:19px; flex:0 0 19px; }
.tool-navigation .nav-extra-group > .nav-tool-group-toggle {
  min-height:43px;
  font-size:13px;
  font-weight:800;
  color:#26496f;
}
@media (max-width:767px) {
  .tool-navigation .nav-extra-group .nav-link { min-height:44px; }
}
