@font-face {
  font-family: "Neo Sans";
  src: url("NeoSL24.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Neo Sans";
  src: url("NeoSM23.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Neo Sans";
  src: url("NeoSans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --text: #111;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Neo Sans", Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 48px 64px;
  padding-left: clamp(48px, 20vw, 360px);
  padding-top: 100px;
}

.hero {
  width: min(1200px, 100%);
}

.page--internal {
  align-items: flex-start;
  padding-top: 100px;
  padding-right: 48px;
  padding-bottom: 64px;
  padding-left: clamp(48px, 20vw, 360px);
}

/* Padrão compacto (como em results.php) */
.page--internal .hero__title {
  font-size: 40pt;
  line-height: 1.1;
}

.page--internal .hero__text {
  font-size: 25pt;
}

.content {
  margin-top: 28px;
  width: min(980px, 100%);
}

.field {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

label {
  font-weight: 500;
  font-size: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: min(520px, 100%);
  font: inherit;
  font-size: 18px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: rgba(17, 17, 17, 0.55);
}

.btn,
.hero__link,
button {
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
}

.btn:hover,
.hero__link:hover,
button:hover {
  border-color: rgba(17, 17, 17, 0.5);
}

.muted {
  color: rgba(17, 17, 17, 0.7);
}

.error {
  margin-top: 16px;
  color: #8a1f1f;
  font-weight: 500;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
}

th, td {
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
}

th {
  background: rgba(17, 17, 17, 0.04);
  font-weight: 500;
}

.actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__logo {
  width: 256px;
  height: auto;
  display: block;
  margin-top: 0;
}

.hero__title {
  margin: 184px 0 0 0;
  font-size: 40pt;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 300;
}

.hero__title .medium {
  font-weight: 500;
}

.hero__text {
  margin: 90px 0 0 0;
  font-size: 25pt;
  line-height: 1.25;
  font-weight: 300;
}

/* Exceção: página de resultados sem margem no topo e com topo compacto */
.page--results {
  padding-top: 0;
}

.page--results .hero__logo {
  margin-top: 24px;
}

.page--results .hero__title {
  margin-top: 56px;
}

.page--results .hero__text {
  margin-top: 24px;
}

.hero__links {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Compat: evita quebras em páginas antigas */
form { margin: 0; }