:root {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #232532;
  background: #f4f4f9;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid #dedee8;
  padding: 22px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header strong {
  letter-spacing: -0.5px;
  font-size: 20px;
}
header strong span {
  font-size: 14px;
  font-weight: 400;
  color: #666779;
}
.badge {
  border: 1px solid #dedee8;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px;
}
.intro {
  max-width: 700px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #626078;
}
h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 15px 0 20px;
}
p {
  line-height: 1.6;
  color: #656575;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin-top: 0;
}
nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f4f4f9;
  padding: 10px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
nav a {
  padding: 10px 16px;
  border: 1px solid #dedee8;
  color: #484656;
  text-decoration: none;
  border-radius: 8px;
  background: #fff;
}
section {
  background: #fff;
  padding: 30px;
  border: 1px solid #e2e1eb;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px #24243a04;
  scroll-margin-top: 85px;
}
details {
  border-top: 1px solid #e7e6ee;
  padding: 17px 0;
}
summary {
  font-weight: 650;
  cursor: pointer;
  margin-bottom: 15px;
}
.grid,
#regs,
#cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
#cards {
  gap: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: #454454;
  margin: 8px 0 14px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: #242332;
  background: #fff;
  border: 1px solid #d8d7e3;
  border-radius: 7px;
  padding: 11px;
  margin-top: 7px;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 74px;
}
input[type="file"] {
  font-size: 12px;
  background: #f7f7fa;
  padding: 14px;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bdb5ed;
  outline-offset: 2px;
}
article {
  border: 1px solid #e0dfea;
  border-radius: 10px;
  padding: 20px;
  background: #fdfdff;
  min-width: 0;
}
article p {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
button,
.filebutton {
  font: inherit;
  cursor: pointer;
  border: 1px solid #d7d5e2;
  background: #fff;
  border-radius: 7px;
  padding: 11px 16px;
  color: #373545;
  margin: 0;
  min-height: 44px;
}
button:hover,
.filebutton:hover {
  background: #f0eef8;
}
button.primary {
  background: #2b293b;
  color: #fff;
  border-color: #2b293b;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.filebutton {
  position: relative;
  overflow: hidden;
}
.filebutton input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
pre {
  font-family: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  background: #f4f3f9;
  border-radius: 8px;
  padding: 16px;
  max-height: 400px;
  overflow: auto;
}
pre:empty {
  display: none;
}
.small,
footer {
  font-size: 12px;
}
footer {
  text-align: center;
  padding: 14px 24px 35px;
  color: #6d6a7e;
}
@media (max-width: 640px) {
  header {
    padding: 18px;
    align-items: flex-start;
  }
  header strong span {
    display: block;
    margin-top: 4px;
  }
  .badge {
    white-space: normal;
  }
  main {
    padding: 30px 16px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1.3px;
  }
  section {
    padding: 22px 18px;
  }
  .grid,
  #regs,
  #cards {
    grid-template-columns: 1fr;
  }
  .actions > * {
    width: 100%;
    text-align: center;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  nav a {
    font-size: 14px;
    padding: 12px;
    min-height: 44px;
  }
  section { scroll-margin-top: 125px; padding: 22px 12px; }
  article { padding: 14px; }
  label { font-size: 14px; margin-bottom: 6px; }
  input, select, textarea { font-size: 16px; border-color: #afadbf; }
  .grid { gap: 8px; }
  h1 { font-size: 30px; }
  .intro { margin-bottom: 18px; }
  main { padding-top: 18px; }
  .intro {
    margin-bottom: 25px;
  }
}
