html {
  scroll-padding-top: 5em;
}

body {
  margin: 0;
}

.Header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding-left: 32px!important;
  padding-right: 32px!important;
  z-index: 32;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-header-text);
  background-color: var(--color-header-bg);
}

.Header-link {
  align-items: center;
  display: flex;
  font-weight: 600;
  color: var(--color-header-logo);
  white-space: nowrap;
}

.Header-item {
  margin-right: 16px;
}

.octicon {
  fill: currentColor;
}

.Header-search {
  max-width: 272px;
  width: 100%;
  transition: .2s ease-in-out;
  transition-property: max-width, padding-bottom, padding-top;
}

.Header-search:focus-within {
  max-width: 544px;
}

.Header-search-label {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-white);
  vertical-align: middle;
  background-color: var(--color-header-search-bg);
  border: 1px solid var(--color-header-search-border);
  border-radius: 6px;
  box-shadow: none;
}

.Header-search-label:focus-within {
  background-color: hsla(0, 0%, 100%, .175);
  border-color: var(--color-state-focus-border);
  outline: none;
}

.Header-search-input {
  min-height: 28px;
  width: 100%;
  padding: 5px 12px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 14px;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 6px;
  color: #fff;
}

.Header-search-input:focus {
  border: 0;
  box-shadow: none;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-color: var(--color-state-focus-border);
  outline: none;
}

::placeholder {
  color: #c2c3c4;
  opacity: 1;
}

.switch-theme {
  top: -2px;
  left: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-profile-color-modes-toggle-thumb-bg);
  cursor: pointer;
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.details-reset>summary {
  outline: none;
}

.sticky-header {
  position: sticky;
  top: 0;
}

.tippy-box {
  border-radius: 10px;
}

.tippy-content {
  border-radius: 10px;
  background-color: var(--color-bg-table-of-contents-container);
  border: 1px solid var(--color-border-primary);
  overflow-y: hidden;
  padding: 0;
}

#table-of-contents {
  max-height: 30em;
  overflow-y: auto;
}
#table-of-contents > nav ul {
  list-style-type: none;
}

#table-of-contents > nav > ul li > a {
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 0.5em;
  border-radius: 6px;
  display: block;
}

#table-of-contents > nav > ul li > a.table-of-contents-option-selected {
  background-color: var(--color-bg-table-of-contents-option-selected);
  color: var(--color-fg-table-of-contents-option-selected);
}

#table-of-contents > nav ul > li {
  margin-left: 1em;
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
}

#table-of-contents > nav > ul > li {
  margin-left: 0;
}

@media (max-width: 1200px) {
  .Header {
    padding-left: 24px!important;
    padding-right: 24px!important;
  }
}

@media (max-width: 1200px) {
  .Header {
    padding-left: 16px!important;
    padding-right: 16px!important;
  }
  .mobile-none {
    display: none!important;
  }
  .Header-search {
    max-width: 100%;
  }
}

.pinned-item-desc img {
  max-width: 100%;
}

.ratio-16x9 {
  position: relative;
  width: 100% !important;
  max-width: 1920px !important;   /* Set your desired max width – 1000px, 1200px, etc. */
  margin: 40px auto !important;   /* Centers it with spacing */
  padding-bottom: 56.25% !important;  /* Keeps 16:9 ratio (9/16 = 0.5625) */
  height: 0 !important;
  overflow: hidden;
}

.ratio-16x9 iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.image-row {
    display: flex;       /* This turns on the horizontal layout */
    justify-content: center; /* Centers the images on the page */
    gap: 20px;          /* Adds space between the two images */
    flex-wrap: wrap;    /* VERY IMPORTANT: On mobile, it lets them stack again */
}

.profile-img {
    /* Set a reasonable maximum size for desktop */
    max-width: 300px; 
    
    /* Ensure it scales down on small screens */
    width: 100%; 
    height: auto;
    
    /* Optional: make it a circle if it's a headshot */
    border-radius: 50%; 
    display: block;
}

.bio-text {
    text-align: left; /* Keep left-aligned for readability, or 'center' for style */
}

