:root {
  --global-nav-height: 50px;
  --logo-sidebar-width: 220px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: "Helvetica";
  background: #fff;
  color: #444;
  margin: 0;
  padding: 0;
}
h1 {
  font-size: 65px;
  line-height: 1.2em;
  border-bottom: #CCC solid 1px;
  padding: 20px 0;
}
h3 {
  font-weight: 300;
}
p,
dl,
ul {
  margin: 16px 10px;
}
ul {
  padding-left: 20px;
}
dd {
  margin-left: 20px;
}
a {
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
.node-sticky {
  border: 1px solid #ccc;
  margin: 16px 4px;
  padding: 5px;
  background: #F0F7FF;
}
/* === Sticky site header === */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: stretch;
  height: var(--global-nav-height);
}
#header-logo {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  flex-shrink: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease;
  text-decoration: none !important;
}
#header-logo img {
  height: 34px;
  width: auto;
  display: block;
  padding: 0 10px 0 14px;
}
body.scrolled #header-logo {
  max-width: 140px;
  opacity: 1;
}
/* === Global nav tabs === */
#global-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
a.nav-tab:hover {
  color: #222;
  text-decoration: none !important;
}
span.nav-tab.active {
  color: #222;
  border-bottom-color: #222;
  cursor: default;
}
/* === Body layout === */
#logo-sidebar {
  float: left;
  width: var(--logo-sidebar-width);
  padding: 28px 16px;
}
#logo-sidebar a {
  display: block;
  text-decoration: none !important;
}
#logo-sidebar img {
  width: 100%;
  height: auto;
  display: block;
}
#page-content::after {
  content: '';
  display: table;
  clear: both;
}
/* === Homepage three-column layout === */
.homepage-wrap {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 24px;
}
.homepage-text {
  flex: 1;
  min-width: 0;
}
.homepage-profile {
  flex-shrink: 0;
  padding-top: 8px;
}
.profile-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
/* === Mobile === */
@media (max-width: 768px) {
  #logo-sidebar {
    display: none;
  }
  #header-logo {
    max-width: 140px;
    opacity: 1;
  }
  .homepage-wrap {
    flex-direction: column;
    padding: 16px;
    /* sidebar hidden, so no left offset needed */
    margin-left: 0;
  }
  .homepage-profile {
    align-self: center;
  }
}
