* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #172033;
  background: #f4f6f8;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1360px, 100%);
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  color: #fff;
  background: #14213d;
}

header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

header p {
  margin: 6px 0 0;
  color: #dbe7ff;
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  color: #fff;
  white-space: nowrap;
}

main {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

#site-nav {
  position: sticky;
  top: 16px;
  align-self: start;
  padding: 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
}

#site-nav strong {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  color: #637083;
  text-transform: uppercase;
}

#site-nav a,
#site-nav .nav-toggle {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #26364f;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

#site-nav a.active,
#site-nav a:hover,
#site-nav .nav-toggle.active,
#site-nav .nav-toggle:hover {
  background: #e9f2ff;
  color: #0a58ca;
  text-decoration: none;
}

.nav-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.nav-caret {
  margin-left: 10px;
  color: #64748b;
  font-size: 12px;
}

.nav-link,
.nav-group,
.nav-group + .nav-group,
.nav-group + .nav-link,
.nav-link + .nav-group,
.nav-link + .nav-link {
  margin-top: 2px;
}

.nav-children {
  margin: 4px 0 8px 14px;
  padding: 3px 0 3px 10px;
  border-left: 2px solid #e2e8f0;
}

#site-nav .nav-children a {
  padding: 7px 10px;
  color: #516070;
  font-size: 14px;
  font-weight: 600;
}

#site-nav .nav-children a.active {
  color: #0a58ca;
}

.content {
  min-width: 0;
}

section {
  padding: 28px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

h3 {
  margin: 30px 0 10px;
  font-size: 21px;
}

h4 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.subtle {
  margin: 8px 0 22px;
  color: #64748b;
  font-size: 16px;
}

ul,
ol {
  padding-left: 24px;
}

li + li {
  margin-top: 6px;
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid #1f7aec;
  border-radius: 6px;
  background: #edf5ff;
}

.warning {
  border-left-color: #d97706;
  background: #fff7ed;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 18px 0 28px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot.mobile-shot {
  width: min(320px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.shot.mobile-shot img {
  width: 100%;
}

.annotated-shot {
  position: relative;
}

.annotated-shot img {
  width: 100%;
}

.shot-ring {
  position: absolute;
  border: 2px solid #f5a400 !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .95), 0 2px 8px rgba(245, 164, 0, .18) !important;
  pointer-events: none;
}

.shot figcaption {
  padding: 10px 12px;
  border-top: 1px solid #d8dee8;
  color: #516070;
  font-size: 14px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.pager a {
  padding: 10px 14px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}

.toplink {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}

footer {
  padding: 22px 32px 34px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 860px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  #site-nav {
    position: static;
  }

  section {
    padding: 20px;
  }
}
