.site-header {
  background: rgba(13, 34, 55, 0.98);
  border-bottom-color: #29445e;
}

.brand strong,
.site-header nav a {
  color: #fff;
}

.brand small {
  color: #9fb1c2;
}

.site-header nav a:hover {
  color: #b8d9fa;
}

.nav-cta {
  border-color: #49627a;
  background: #183651;
}

.hero {
  min-height: 590px;
  padding-top: 74px;
  padding-bottom: 74px;
}

.hero-shot {
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.hero-shot img {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  clip-path: none;
}

.section {
  scroll-margin-top: 76px;
  padding-top: 82px;
  padding-bottom: 82px;
}

/* Alternate broad, quiet fields instead of drawing a rule between every topic. */
#how,
#tar,
#installation {
  background: #eef3f8;
  box-shadow: 0 0 0 100vmax #eef3f8;
  clip-path: inset(0 -100vmax);
}

.section h2 {
  margin-bottom: 28px;
}

.task-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: 64px;
  align-items: center;
}

.task-section-reverse {
  grid-template-columns: minmax(520px, 1.28fr) minmax(300px, 0.72fr);
}

.task-copy p,
.task-copy li {
  color: var(--muted);
}

.task-copy ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.plain-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

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

.folder-shot img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.control-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.control-copy {
  min-height: 220px;
  padding: 34px 34px 28px;
}

.control-copy h2 {
  margin: 0 0 15px;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.control-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.control-card figure {
  margin: 0;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
}

.control-card img {
  width: 100%;
  height: auto;
}

.installation-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 50px;
}

.installation-heading > p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.installation-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.installation-tabs button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 12px;
  align-items: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.installation-tabs button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 850;
}

.installation-tabs button strong {
  font-size: 0.94rem;
}

.installation-tabs button small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.installation-tabs button[aria-selected="true"] {
  border-color: var(--blue);
  background: #edf5ff;
  box-shadow: inset 0 -3px 0 var(--blue);
}

.installation-tabs button[aria-selected="true"] > span {
  background: var(--blue);
  color: #fff;
}

.installation-tabs button:focus-visible {
  outline: 3px solid rgba(35, 108, 224, 0.3);
  outline-offset: 2px;
}

.installation-panel {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.installation-panel[hidden] {
  display: none;
}

.builder-form,
.builder-output {
  min-width: 0;
}

.builder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.panel-heading h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
}

.builder-form > .panel-heading,
.builder-form > fieldset,
.builder-form > .builder-error {
  grid-column: 1 / -1;
}

.builder-form > label,
.builder-fields label,
.builder-form legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.builder-form input:not([type="checkbox"]),
.builder-form select {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #c8d6e4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.builder-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-form legend {
  margin-bottom: 9px;
}

.volume-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.volume-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.86rem;
  cursor: pointer;
}

.volume-options input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.builder-fields {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 12px;
}

.builder-error {
  margin: 0;
  color: #b4232f;
  font-weight: 700;
}

.builder-output .code-block {
  margin-top: 0;
}

.output-note,
.runner-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.signin-step {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(480px, 1.3fr);
  gap: 44px;
  align-items: center;
}

.builder-form,
.builder-output,
.signin-step,
.runner-setup,
.runner-copy,
.signin-shot,
.setup-shot {
  min-width: 0;
}

.runner-setup {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(560px, 1.25fr);
  gap: 54px;
  align-items: center;
  margin: 0;
}

.runner-copy > p {
  color: var(--muted);
}

.code-block {
  position: relative;
  margin-top: 24px;
}

.code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 62px 20px 20px;
  border: 1px solid #29445e;
  border-radius: 3px;
  background: var(--navy);
  color: #e6eef6;
  font-size: 0.78rem;
  line-height: 1.65;
}

.code-actions {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.code-actions button {
  padding: 7px 10px;
  border: 1px solid #49627a;
  border-radius: 4px;
  background: #183651;
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.runner-note {
  margin-top: 18px;
  font-size: 0.86rem;
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}

.setup-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.signin-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #eaf2f9;
}

.signin-shot img,
.setup-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.aws-reminders {
  position: relative;
  margin-bottom: 88px;
  padding: 68px 36px 36px;
  border: 1px solid #e3a9b0;
  background: #fff;
}

.reminder-tab {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 9px 17px;
  border-radius: 0 0 4px 0;
  background: #bd2638;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reminder-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid #efd2d6;
}

.reminder-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.7vw, 3.7rem);
}

.reminder-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.reminder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding-top: 34px;
}

.reminder-grid article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  min-width: 0;
}

.reminder-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fae9eb;
  color: #bd2638;
  font-weight: 850;
}

.reminder-grid h3 {
  margin: 2px 0 14px;
  font-size: 1.25rem;
}

.reminder-grid ol {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.reminder-grid a {
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}

.reminder-footnote {
  margin: 34px 0 0;
  padding: 18px 20px;
  border-left: 4px solid #bd2638;
  background: #fff2f3;
  color: #52667a;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header nav {
    background: var(--navy);
  }

  .menu {
    color: #fff;
    border-color: #49627a;
    background: #183651;
  }

  .task-section,
  .task-section-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .task-section-reverse .plain-shot {
    order: 2;
  }

  .controls,
  .installation-heading,
  .signin-step,
  .runner-setup,
  .reminder-heading,
  .reminder-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .installation-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .control-copy {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .aws-reminders {
    margin-bottom: 60px;
    padding: 64px 22px 24px;
  }

  .installation-panel {
    padding: 22px;
  }

  .builder-form,
  .volume-options,
  .builder-fields {
    grid-template-columns: 1fr;
  }

  .installation-tabs {
    gap: 8px;
  }

  .installation-tabs button {
    grid-template-columns: 32px 1fr;
    min-height: 88px;
    padding: 12px;
  }

  .installation-tabs button > span {
    width: 30px;
    height: 30px;
  }

  .installation-tabs button strong {
    font-size: 0.82rem;
  }

  .installation-tabs button small {
    font-size: 0.68rem;
  }

  .code-block pre {
    font-size: 0.7rem;
  }

  .code-actions {
    position: static;
    padding: 10px;
    background: var(--navy);
  }

  .code-block pre {
    padding-top: 18px;
  }
}
