/* LinRT Wiki V12: BSP / distribution align to LEFT EDGE of linrt-brand.
   First full-width row: brand + navigation / languages.
   Second full-width row: BSP + distribution LEFT; login/logout RIGHT.
   This is appended AFTER the V4 / V9 / V10 / V11 styles, and does NOT
   change hero, sidebar, body width, DokuWiki ACLs or routing. */
.linrt-wiki .linrt-header-in {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-height: 0;
  padding-top: 9px;
  padding-bottom: 9px;
}
.linrt-wiki .linrt-header-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-width: 0;
  width: 100%;
}
.linrt-wiki .linrt-header-primary .linrt-brand { flex: 0 0 auto; }
.linrt-wiki .linrt-header-primary .linrt-header-right {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.linrt-wiki .linrt-header-primary .linrt-header-top-row {
  width: 100%;
  justify-content: flex-end;
}
.linrt-wiki .linrt-header-in > .linrt-header-action-row {
  width: 100%;
  max-width: none;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e8f0f4;
  box-sizing: border-box;
}
/* Action row remains a deterministic V11 grid across translated UI and sessions. */
@media (max-width: 880px) {
  .linrt-wiki .linrt-header-primary { flex-wrap: wrap; gap: 6px 16px; }
  .linrt-wiki .linrt-header-primary .linrt-header-right {
    flex: 1 1 100%;
    width: 100%;
    align-items: stretch;
  }
  .linrt-wiki .linrt-header-primary .linrt-header-top-row {
    justify-content: space-between;
    gap: 4px 10px;
  }
}
@media (max-width: 680px) {
  .linrt-wiki .linrt-header-primary .linrt-header-top-row .linrt-language {
    justify-content: flex-end;
    width: 100%;
  }
  .linrt-wiki .linrt-header-in > .linrt-header-action-row { margin-top: 7px; padding-top: 8px; }
}

/* LinRT V13.3 — Wiki centered rounded frame max-width 1160px, matching commercial and support.
   Crucial: use body > .dokuwiki.linrt-wiki to override v4's more-specific width:100%/max-width:none. (load after V12).
   Unchanged: locale links, native DokuWiki login/logout, ACL and version/distribution routing. */
html { background:#f5f8fa; }
body { background:#f5f8fa; }
body > .dokuwiki.linrt-wiki { box-sizing:border-box; display:block; width:calc(100% - 32px); max-width:1160px; min-width:0; margin:16px auto 22px;
  border:1px solid #dbe6ee; border-radius:17px; background:#fff;
  box-shadow:0 12px 34px rgba(12,37,58,.08); }
.linrt-wiki .linrt-header { border-radius:16px 16px 0 0; }
.linrt-wiki .linrt-header-in { padding-top:9px; padding-bottom:9px; }
.linrt-wiki .linrt-unified-nav { border-bottom:1px solid #dbe6ee; background:#f8fbfd; }
.linrt-wiki .linrt-unified-nav-inner { min-height:51px; display:flex; padding-top:8px; padding-bottom:8px; align-items:center; }
.linrt-wiki .linrt-unified-nav-inner > .linrt-header-action-row { width:100%; margin:0; padding:0; border:0; }
.linrt-wiki .linrt-unified-nav-inner .linrt-version-form label { font-size:11px; color:#3b5870; font-weight:800; }
.linrt-wiki .linrt-unified-nav-inner .linrt-version-form select,
.linrt-wiki .linrt-unified-nav-inner .linrt-version-form button { border-radius:8px; }
.linrt-wiki .linrt-footer { border-radius:0 0 16px 16px; }
@media(max-width:520px) { body > .dokuwiki.linrt-wiki { width:calc(100% - 16px); margin:8px auto 14px; } }

/* LinRT V13.4 — header link typography matches osTicket/Commercial (12px/650).
   Does not affect language buttons, nav BSP/Distro, or DokuWiki ACLs. */
.linrt-wiki .linrt-main-nav a { font-size:12px; font-weight:650; }

/* LinRT V13.6 — 80px primary menu/language header on wide desktops.
   Responsive header is intentionally content-sized at <=940px. */
@media (min-width:941px) {
  .linrt-wiki .linrt-header { box-sizing:border-box; height:80px; min-height:80px; }
  .linrt-wiki .linrt-header-in { box-sizing:border-box; height:100%; min-height:0; padding-top:0; padding-bottom:0; flex-wrap:nowrap; }
}
