/* Rounded header. Unlink this file to restore the original style.css header. */
body.ws26 #main-header {
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  width: min(calc(100% - 32px), 1120px);
  max-width: none;
  height: 62px;
  margin-inline: auto;
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  transition: width .72s cubic-bezier(.22,1,.36,1);
  isolation: isolate;
}
body.ws26 #main-header.is-condensed { width: min(calc(90% - 28.8px), 1008px); }
body.ws26 #main-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: calc(100% + 2px);
  transform: translateX(-50%);
  border: 1px solid var(--ws-line-soft);
  border-radius: 48px;
  box-sizing: border-box;
  background: var(--ws-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: width .72s cubic-bezier(.22,1,.36,1), top .72s cubic-bezier(.22,1,.36,1), border-radius .72s cubic-bezier(.22,1,.36,1);
}
body.ws26 #main-header:not(.is-condensed)::before {
  width: 100vw;
  top: calc(-1px - max(12px, env(safe-area-inset-top, 0px)));
  border-radius: 0;
}
body.ws26 #main-header:not(.scroll-ready),
body.ws26 #main-header:not(.scroll-ready)::before { transition: none; }
@media (prefers-reduced-motion: reduce) {
  body.ws26 #main-header, body.ws26 #main-header::before { transition: none; }
}
html[data-theme="light"] body.ws26 #main-header .logo-img { filter: var(--ws-invert); }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) body.ws26 #main-header .logo-img { filter: var(--ws-invert); }
}
:is(body.ws26 #main-header, .pr-nav) .nav-sub-cols a[aria-disabled="true"] {
  color: var(--ws-text-3); background: transparent; cursor: default;
}
body.ws26 #main-header > .container {
  padding-inline: 20px;
  max-width: none;
}
body.ws26 #main-header .nav-menu {
  gap: 2px;
}
body.ws26 #main-header .nav-link {
  padding: 9px 14px;
  border-radius: 99px;
}
body.ws26 #main-header .nav-link:hover,
body.ws26 #main-header .nav-link.is-active {
  background: transparent;
}
body.ws26 #main-header .nav-link::after {
  display: block;
  left: 14px;
  bottom: 3px;
}
body.ws26 #main-header .nav-link:hover::after,
body.ws26 #main-header .nav-link.is-active::after {
  width: calc(100% - 28px);
}
@media (max-width: 760px) {
  body.ws26 #main-header {
    height: 58px;
  }
  body.ws26 #main-header > .container {
    padding-inline: 14px;
  }
  body.ws26 #main-header .menu-toggle {
    border-radius: 50%;
  }
  body.ws26 #main-header .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--ws-line-soft);
    border-radius: 24px;
    visibility: hidden;
    pointer-events: none;
  }
  body.ws26 #main-header .nav-menu.is-active {
    visibility: visible;
    pointer-events: auto;
  }
  body.ws26 #main-header .nav-link {
    padding: 16px;
    border: 0;
    color: var(--ws-text);
  }
}

/* Apps menu (2026-11-10): hover/focus list of the web apps. */
:is(body.ws26 #main-header, .pr-nav) .nav-has-menu { position: relative; }
:is(body.ws26 #main-header, .pr-nav) .nav-caret { width: 9px; height: 6px; margin-left: 6px; vertical-align: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
:is(body.ws26 #main-header, .pr-nav) .nav-has-menu:hover .nav-caret,
:is(body.ws26 #main-header, .pr-nav) .nav-has-menu:focus-within .nav-caret { transform: rotate(180deg); }
:is(body.ws26 #main-header, .pr-nav) .nav-sub {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 120;
  min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: var(--ws-bg); border: 1px solid var(--ws-line-soft); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
:is(body.ws26 #main-header, .pr-nav) .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
:is(body.ws26 #main-header, .pr-nav) .nav-has-menu:hover .nav-sub,
:is(body.ws26 #main-header, .pr-nav) details.nav-has-menu[open] .nav-sub,
:is(body.ws26 #main-header, .pr-nav) .nav-has-menu:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
:is(body.ws26 #main-header, .pr-nav) .nav-sub a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ws-text); text-decoration: none;
}
:is(body.ws26 #main-header, .pr-nav) .nav-sub a:hover, :is(body.ws26 #main-header, .pr-nav) .nav-sub a:focus-visible { background: var(--ws-surface); }
:is(body.ws26 #main-header, .pr-nav) .nav-sub-tag { font-size: 12px; font-weight: 600; color: var(--ws-text-3); }
@media (max-width: 760px) {
  body.ws26 #main-header .nav-caret { display: none; }
  body.ws26 #main-header .nav-sub {
    position: static; min-width: 0; padding: 0 0 6px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    opacity: 1; visibility: inherit; transform: none; transition: none;
  }
  body.ws26 #main-header .nav-sub::before { display: none; }
  body.ws26 #main-header .nav-sub a { padding: 12px 16px; color: var(--ws-text-2); }
}

/* v3: one Tools menu: Plugins, Apps and the apps under it */
body.ws26 #main-header .nav-sub .nav-sub-child a { padding: 8px 12px 8px 26px; font-weight: 500; color: var(--ws-text-2); }
body.ws26 #main-header .nav-sub .nav-sub-child a:hover, body.ws26 #main-header .nav-sub .nav-sub-child a:focus-visible { color: var(--ws-text); }
@media (max-width: 760px) {
  body.ws26 #main-header .nav-sub .nav-sub-child a { padding: 10px 16px 10px 32px; }
}
@media (max-width: 760px) {
  /* the list follows the closed menu instead of showing over the page */
  body.ws26 #main-header .nav-has-menu:hover .nav-sub, body.ws26 #main-header .nav-has-menu:focus-within .nav-sub { visibility: inherit; transform: none; }
}

/* v4: Tools menu in two columns: Plugins | Apps */
:is(body.ws26 #main-header, .pr-nav) .nav-sub-cols { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 0 6px; padding: 8px; }
:is(body.ws26 #main-header, .pr-nav) .nav-sub-col { display: flex; flex-direction: column; }
:is(body.ws26 #main-header, .pr-nav) .nav-sub-cols a { padding: 9px 12px; font-weight: 500; white-space: nowrap; }
:is(body.ws26 #main-header, .pr-nav) .nav-sub-cols a.nav-sub-head { margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-text-3); }
:is(body.ws26 #main-header, .pr-nav) .nav-sub-cols a.nav-sub-head:hover, :is(body.ws26 #main-header, .pr-nav) .nav-sub-cols a.nav-sub-head:focus-visible { color: var(--ws-text); }
@media (max-width: 760px) {
  body.ws26 #main-header .nav-sub-cols { grid-template-columns: 1fr 1fr; gap: 0 8px; padding: 0 0 8px 16px; }
  body.ws26 #main-header .nav-sub-cols a { padding: 9px 0; white-space: normal; }
}
