/* D1 publishing candidate only. No runtime stylesheet changes. */
.auth-logout-form { margin: 0; }
.toplinks:has(> .auth-logout-form) { align-items: center; }
.toplinks > .auth-logout-form { display: flex; align-items: center; }
.toplinks .auth-logout {
  appearance: none; display: inline-flex; align-items: center;
  min-height: 24px; padding: 0; border: 0; border-radius: 0;
  background: var(--green-950); color: #dcece3;
  font: inherit; line-height: inherit; cursor: pointer;
}
.toplinks .auth-logout:hover { background: var(--green-950); color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.toplinks .auth-logout:focus-visible { outline: 3px solid #dcece3; outline-offset: 2px; }
.drawer-body > .auth-logout-form { width: 100%; }
.drawer-body .auth-logout {
  appearance: none; display: flex; align-items: center; width: 100%;
  min-height: 50px; padding: 15px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: var(--paper); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.drawer-body .auth-logout:hover { background: var(--green-50); color: var(--green-800); }
.drawer-body .auth-logout:focus-visible { outline: 3px solid var(--green-700); outline-offset: -3px; }
@media (max-width: 820px) {
  .toplinks > .auth-logout-form { display: none; }
  /* Preserve the baseline's first-two-utility-link hiding despite the inserted form. */
  .toplinks > .auth-logout-form ~ a:nth-of-type(-n+2) { display: none; }
}
