/* akaturk.com — navigation v3 (2026-11-22). Linked from partials/akaturk_nav.html after v2 and scoped to
   .aka-nav--v3, so a cached page with the older markup is not touched.
   What changed for the reader:
   - every entry carries a line icon in its own colour; hover and the current page are a tinted pill;
   - a signed-in member or admin gets ONE account button with a menu instead of two or three links, so the
     bar keeps the same shape whoever looks at it and the search control never loses its place;
   - search is a round button of fixed size (a labelled field only on very wide screens);
   - nothing wraps: the brand, the tools and the account never shrink, the links hide their icons first.
   Bar height (--aka-nav-h), the 1100 px panel breakpoint and the data-aka-* hooks are unchanged. */

.aka-nav--v3 [data-c="uni"] { --nc: 193, 18, 31; }
.aka-nav--v3 [data-c="aca"] { --nc: 79, 70, 229; }
.aka-nav--v3 [data-c="journals"] { --nc: 5, 150, 105; }
.aka-nav--v3 [data-c="explore"] { --nc: 124, 58, 237; }
.aka-nav--v3 [data-c="stats"] { --nc: 217, 119, 6; }
.aka-nav--v3 [data-c="advisor"] { --nc: 219, 39, 119; }
.aka-nav--v3 [data-c="other"] { --nc: 71, 85, 105; }
.aka-nav--v3 [data-c="acct"] { --nc: 2, 132, 199; }
.aka-nav--v3 [data-c="admin"] { --nc: 193, 18, 31; }

.aka-nav--v3 .aka-nav__ico {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgb(var(--nc, 71, 85, 105));
}
.aka-nav--v3 .aka-nav__icon-btn { display: none; }

/* ── Desktop bar ── */
@media (min-width: 1101px) {
  .aka-nav--v3 .aka-nav__inner { max-width: 1440px; padding-inline: clamp(0.9rem, 1.6vw, 1.5rem); gap: 0.5rem; }
  .aka-nav--v3 .aka-brand { flex: none; margin-right: 0.2rem; }
  .aka-nav--v3 .aka-nav__panel { justify-content: flex-start; flex-wrap: nowrap; gap: 0.4rem; min-width: 0; }
  .aka-nav--v3 .aka-nav__links { flex: 0 1 auto; flex-wrap: nowrap; gap: 0.1rem; margin-left: 0.2rem; min-width: 0; }

  .aka-nav--v3 .aka-nav__links > a,
  .aka-nav--v3 .aka-nav__drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.44rem 0.6rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2b3445;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .aka-nav--v3 .aka-nav__links > a::after,
  .aka-nav--v3 .aka-nav__drop-btn::after { display: none; }
  .aka-nav--v3 .aka-nav__links > a:hover,
  .aka-nav--v3 .aka-nav__drop-btn:hover,
  .aka-nav--v3 .aka-nav__drop.open > .aka-nav__drop-btn { background: rgba(var(--nc, 71, 85, 105), 0.09); color: #141a2b; }
  .aka-nav--v3 .aka-nav__links > a[aria-current="page"],
  .aka-nav--v3 .aka-nav__links .aka-nav__drop-btn[aria-current="page"] {
    background: rgba(var(--nc, 71, 85, 105), 0.12);
    color: rgb(var(--nc, 71, 85, 105));
    font-weight: 700;
  }
  .aka-nav--v3 .aka-nav__links > a:focus-visible,
  .aka-nav--v3 .aka-nav__drop-btn:focus-visible,
  .aka-nav--v3 .aka-nav__icon-btn:focus-visible { outline: 2px solid rgb(var(--nc, 193, 18, 31)); outline-offset: 2px; }
  .aka-nav--v3 .aka-nav__chev { flex: none; margin-left: -0.05rem; opacity: 0.55; }

  /* menus: icon chip + label */
  .aka-nav--v3 .aka-nav__drop-menu { min-width: 252px; padding: 0.4rem; border-radius: 14px; }
  .aka-nav--v3 .aka-nav__drop-menu--end { left: auto; right: 0; }
  .aka-nav--v3 .aka-nav__drop-menu a,
  .aka-nav--v3 .aka-nav__logout button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.42rem 0.6rem 0.42rem 0.45rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: #2b3445;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  .aka-nav--v3 .aka-nav__drop-menu .aka-nav__ico {
    box-sizing: content-box;
    padding: 6px;
    border-radius: 9px;
    background: rgba(var(--nc, 71, 85, 105), 0.1);
  }
  .aka-nav--v3 .aka-nav__drop-menu a:hover,
  .aka-nav--v3 .aka-nav__drop-menu a:focus-visible,
  .aka-nav--v3 .aka-nav__logout button:hover,
  .aka-nav--v3 .aka-nav__logout button:focus-visible { background: rgba(var(--nc, 71, 85, 105), 0.08); color: #141a2b; outline: none; }
  .aka-nav--v3 .aka-nav__drop-menu a[aria-current="page"] { background: rgba(var(--nc, 71, 85, 105), 0.1); color: rgb(var(--nc, 71, 85, 105)); }
  .aka-nav--v3 .aka-nav__logout { display: block; margin: 0.3rem 0 0; padding-top: 0.3rem; border-top: 1px solid #eef0f4; }
  .aka-nav--v3 .aka-nav__drop-menu a[data-c="other"] { margin-top: 0.3rem; }

  /* tools on the right: fixed sizes, never squeezed */
  .aka-nav--v3 .aka-nav__find { flex: none; margin-left: auto; }
  .aka-nav--v3 .aka-nav__find-btn {
    justify-content: center;
    min-width: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #f4f5f8;
    color: #3a4353;
  }
  .aka-nav--v3 .aka-nav__find-btn span,
  .aka-nav--v3 .aka-nav__find-btn kbd { display: none; }
  .aka-nav--v3 .aka-nav__auth { flex: none; gap: 0.4rem; margin-left: 0.1rem; padding-left: 0.6rem; }
  .aka-nav--v3 .aka-nav__lang { flex: none; }
  .aka-nav--v3 .aka-nav__icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--nc), 0.09);
    color: rgb(var(--nc));
    transition: background 0.15s ease;
  }
  .aka-nav--v3 .aka-nav__icon-btn:hover,
  .aka-nav--v3 .aka-nav__icon-btn[aria-current="page"] { background: rgba(var(--nc), 0.18); }
  .aka-nav--v3 .aka-nav__icon-btn .aka-nav__ico { width: 18px; height: 18px; color: inherit; }
  .aka-nav--v3 .aka-nav__acct {
    height: 36px;
    padding: 0 0.7rem 0 0.55rem;
    border: 1px solid rgba(var(--nc), 0.3);
    border-radius: 999px;
    background: rgba(var(--nc), 0.07);
    font-weight: 700;
    color: #141a2b;
  }
  .aka-nav--v3 .aka-nav__acct:hover,
  .aka-nav--v3 .aka-nav__drop.open > .aka-nav__acct { background: rgba(var(--nc), 0.14); }
  .aka-nav--v3 .aka-nav__acct .aka-nav__ico { width: 17px; height: 17px; }
}

/* 1101–1279 px: labels only on the links, compact brand and account (the bar must hold seven entries) */
@media (min-width: 1101px) and (max-width: 1279px) {
  .aka-nav--v3 .aka-nav__links > a > .aka-nav__ico,
  .aka-nav--v3 .aka-nav__links .aka-nav__drop-btn > .aka-nav__ico { display: none; }
  .aka-nav--v3 .aka-nav__links > a,
  .aka-nav--v3 .aka-nav__links .aka-nav__drop-btn { padding: 0.42rem 0.48rem; font-size: 0.8rem; }
  .aka-nav--v3 .aka-brand__text span { display: none; }
  .aka-nav--v3 .aka-nav__acct { padding: 0 0.5rem; }
  .aka-nav--v3 .aka-nav__acct > span { display: none; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .aka-nav--v3 .aka-brand__text span { display: none; }
}
/* very wide: the search control reads as a field again */
@media (min-width: 1560px) {
  .aka-nav--v3 .aka-nav__find-btn { justify-content: flex-start; width: auto; min-width: 168px; padding: 0 0.6rem 0 0.75rem; border-radius: 999px; }
  .aka-nav--v3 .aka-nav__find-btn span,
  .aka-nav--v3 .aka-nav__find-btn kbd { display: inline; }
}

/* ── Phone and tablet panel ── */
@media (max-width: 1100px) {
  .aka-nav--v3 .aka-nav__links > a,
  .aka-nav--v3 .aka-nav__drop-menu a,
  .aka-nav--v3 .aka-nav__logout button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  .aka-nav--v3 .aka-nav__links > a > .aka-nav__ico,
  .aka-nav--v3 .aka-nav__drop-menu .aka-nav__ico {
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    padding: 7px;
    border-radius: 10px;
    background: rgba(var(--nc, 71, 85, 105), 0.1);
  }
  .aka-nav--v3 .aka-nav__links > a,
  .aka-nav--v3 .aka-nav__drop-menu a { padding-top: 0.42rem; padding-bottom: 0.42rem; }
  .aka-nav--v3 .aka-nav__drop-btn { justify-content: flex-start; }
  .aka-nav--v3 .aka-nav__drop-btn .aka-nav__ico { display: none; }  /* group names are small headings */
  .aka-nav--v3 .aka-nav__links > a[aria-current="page"],
  .aka-nav--v3 .aka-nav__drop-menu a[aria-current="page"] { background: rgba(var(--nc, 193, 18, 31), 0.09); color: rgb(var(--nc, 193, 18, 31)); }
  /* the account group reads like the other groups: heading + rows */
  .aka-nav--v3 .aka-nav__drop--acct { flex: 1 1 100%; }
  .aka-nav--v3 .aka-nav__logout { display: block; flex: none; margin: 0; }
  .aka-nav--v3 .aka-nav__logout button {
    width: 100%;
    padding: 0.42rem 0.8rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    color: #1f2737;
    text-align: left;
    cursor: pointer;
  }
}
