:root {
  color-scheme: light;
  --navy: #0b253a;
  --ocean: #075985;
  --blue: #0284c7;
  --sky: #e0f2fe;
  --foam: #f8fafc;
  --white: #ffffff;
  --ink: #17202a;
  --muted: #566573;
  --line: #d7e3ea;
  --success: #16794b;
  --error: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--foam);
}

a { color: inherit; }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ocean);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-link {
  color: var(--ocean);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover { text-decoration: underline; }

main {
  min-height: calc(100vh - 126px);
}

.convocacao {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 64px;
  align-items: center;
}

.convocacao__copy {
  padding: 12px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1, h2, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.event-date {
  width: fit-content;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
}

.event-date__day {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--ocean);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.event-date__details {
  font-size: 16px;
  line-height: 1.45;
}

.participants {
  max-width: 650px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.participants img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 6px;
  background: var(--navy);
}

.participants__copy {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}

.participants__copy .participacao__label {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.participants__copy strong {
  color: var(--navy);
  font-size: 16px;
}

.participants__copy > span:not(.participacao__label) {
  color: var(--muted);
  font-size: 14px;
}

.participacao__label {
  display: block;
  color: var(--ocean);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(11, 37, 58, .10);
}

.form-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 27px;
}

form {
  margin-top: 28px;
}

label {
  display: block;
  margin: 20px 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #aebfca;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .14);
}

button {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--ocean);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover { background: #064a70; }
button:disabled { cursor: wait; opacity: .65; }

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }

footer {
  min-height: 58px;
  padding: 18px 20px;
  color: #dbeafe;
  background: var(--navy);
  font-size: 13px;
  text-align: center;
}

.results {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.results__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.results h1 {
  font-size: 38px;
}

.total-box {
  width: 110px;
  min-height: 82px;
  padding: 12px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--ocean);
}

.total-box span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.total-box strong {
  font-size: 30px;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--navy);
  background: #edf6fa;
  font-size: 13px;
}

td { font-size: 15px; }
tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 40px 18px; color: var(--muted); text-align: center; }

@media (max-width: 820px) {
  .convocacao {
    padding: 42px 0 56px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .lead { font-size: 18px; }
}

@media (max-width: 560px) {
  .topbar__inner, .convocacao, .results {
    width: calc(100% - 28px);
  }

  .brand > span:last-child { display: none; }
  .convocacao { padding-top: 34px; }
  h1 { font-size: 38px; }
  .participants { grid-template-columns: 94px minmax(0, 1fr); gap: 15px; }
  .participants img { width: 94px; height: 108px; }
  .participants__copy { grid-template-columns: 1fr; gap: 2px; }
  .participants__copy strong:not(:first-of-type) { margin-top: 7px; }
  .form-panel { padding: 24px 20px; }
  .results h1 { font-size: 30px; }
  .results__heading { align-items: center; }
  .total-box { width: 86px; }
  th, td { min-width: 145px; padding: 14px; }
}
