/* Consistent account navigation in the top-right header corner. */
header.has-account-actions {
  position: relative;
  padding-right: 225px;
  min-height: 110px;
}
header.has-account-actions.single-account-action { padding-right: 125px; }
header .header-actions {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  border: 0;
}
header .header-actions a { color: white; font-weight: 600; }
header .header-actions button {
  font: inherit;
  font-size: 11.2px;
  font-weight: 700;
  border: 0;
  border-radius: 4.8px;
  padding: 8px 12px;
  color: #07585c;
  background: #e6f2f0;
  cursor: pointer;
  white-space: nowrap;
}
header .header-actions :focus-visible { outline: 3px solid #e87932; outline-offset: 3px; }
header [hidden] { display: none !important; }
@media (max-width: 640px) {
  header.has-account-actions,
  header.has-account-actions.single-account-action {
    padding-top: 70px;
    padding-right: 20px;
  }
  header .header-actions { top: 16px; right: 20px; }
}

/* Match the homepage brand while keeping the page title in its navigation. */
header.study-brand {
  display: block;
  padding: 24px 225px 24px 36px;
}
.study-brand .header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.study-brand .header-logo {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid white;
}
.study-brand .header-text h1 {
  margin: 0;
  color: white;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.1;
}
@media (max-width: 700px) {
  header.study-brand { padding: 70px 20px 20px; }
  .study-brand .header-content { gap: 14px; }
  .study-brand .header-logo { width: 65px; height: 65px; border-radius: 13px; }
  .study-brand .header-text h1 { font-size: 20px; letter-spacing: 2px; }
}

header.study-brand.single-account-action { padding-right: 125px; }
header.study-brand.brand-no-actions { padding-right: 36px; }
.page-title { margin: 12px 0 20px; font-size: 25px; }
@media (max-width: 700px) {
  header.study-brand.single-account-action { padding-right: 20px; }
  header.study-brand.brand-no-actions { padding: 20px; }
}
