@font-face {
  font-family: Roboto;
  src: url("/static/roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #003770;
  --banner: #183767;
  --action: #2e72e0;
  --action-hover: #2059b5;
  --ink: #212529;
  --muted: #536270;
  --line: #cbd1d7;
  --shell: min(1116px, calc(100% - 48px));
  color: var(--ink);
  font: 400 100%/1.5 Roboto, Arial, sans-serif;
  background: #f5f7fa;
}
*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.19; }
h1 { font-size: clamp(2rem, 3.5vw, 2.625rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
h3 { font-size: 1.13rem; margin: 24px 0 6px; }
a { color: #175cb6; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #0967b4; outline-offset: 3px;
}
.banner :focus-visible, footer :focus-visible { outline-color: #fff; }
.wrap { width: var(--shell); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -90px; z-index: 5; background: white; padding: 10px; }
.skip:focus { top: 4px; }
.utility { background: #efefef; }
.utility nav { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 36px; }
.utility a { color: var(--navy); text-decoration: none; text-transform: uppercase; font-size: .76rem; font-weight: 500; padding-block: 9px; }
.utility a:hover, .mast nav a:hover, .foot a:hover { text-decoration: underline; }
.masthead { background: white; border-bottom: 1px solid #dce3eb; }
.mast { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 20px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { display: block; max-width: 100%; height: auto; margin-left: -2.5%; }
.mast nav { display: flex; align-items: center; gap: 32px; }
.mast nav a { color: var(--navy); text-decoration: none; }
.foot a { color: #fff; text-decoration: none; }
.foot .brand img { filter: brightness(0) invert(1); }
.mast nav a { padding-block: 8px; font-size: .98rem; }
.banner {
  position: relative; isolation: isolate; margin: 24px auto 0;
  padding-block: clamp(16px, 2vw, 26px); color: white;
}
.banner-image {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 69%; height: 100%;
  object-fit: cover; object-position: 50% 5%; border-radius: 22px;
}
.introduction {
  position: relative; isolation: isolate; width: 53%; margin-left: 4%;
  padding: clamp(25px, 3.4vw, 44px) clamp(36px, 5vw, 64px);
}
.introduction::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  transform: skewX(-13deg); border-radius: 20px; background: var(--banner);
  box-shadow: 0 12px 22px -12px rgb(0 30 69 / 46%);
}
.introduction h1 { color: #fff; max-width: 16ch; }
.introduction p { max-width: 40ch; margin-block: 12px 22px; font-size: 1.08rem; line-height: 1.5; }
.button, button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 24px; background: var(--action); color: #fff;
  font: 500 .94rem/1.3 Roboto, Arial, sans-serif; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { color: #fff; background: var(--action-hover); text-decoration: none; }
button:disabled { opacity: .62; cursor: wait; }
.secondary { color: var(--navy); border-color: #a9bad0; background: #fff; }
.secondary:hover { color: var(--navy); background: #eaf2fb; }
.registration { display: grid; gap: 24px; padding-block: 32px 64px; }
#participar, #como-participar { scroll-margin-top: 16px; }
.registration #como-participar { padding: 0; border: 0; background: none; box-shadow: none; }
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  list-style: none; padding: 0; margin: 16px 0 0;
}
.steps li {
  overflow: hidden; border: 1px solid #d3dfea; border-radius: 16px;
  background: white; box-shadow: 0 3px 10px rgb(0 55 112 / 5%);
}
.step-art {
  position: relative; overflow: hidden; aspect-ratio: 1.8; background: #dce7f1;
}
.step-art img {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.step-number {
  position: absolute; z-index: 1; top: 11px; left: 13px; display: grid; place-items: center;
  width: 29px; height: 29px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: .9rem; font-weight: 700; line-height: 1;
}
.step-copy { padding: 15px 19px 18px; }
.step-copy h3 { margin: 0; }
.step-copy p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.application { margin-top: 23px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 20px; }
@media (min-width: 641px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.submit-story { display: grid; justify-items: center; text-align: center; }
.submit-story button {
  width: min(100%, 22rem); min-height: 56px; padding: 14px 24px; border-radius: 28px;
  font-size: 1.125rem; font-weight: 700; background: #205fbb;
}
.submit-story button:hover { background: var(--action-hover); }
.submit-story .busy { margin: 0; }
.submit-story .busy:not(:empty), .submit-story .error { margin: 12px 0 0; }
label { display: block; color: var(--ink); font-size: .96rem; font-weight: 500; }
input:not([type=checkbox]):not([type=file]), textarea {
  display: block; width: 100%; margin-top: 6px; border: 1px solid #9faeba; border-radius: 10px;
  background: #fff; padding: 10px 12px; color: var(--ink); font: 400 1rem/1.5 Roboto, Arial, sans-serif;
}
textarea { resize: vertical; min-height: 76px; }
::placeholder { color: #65717c; }
.help, .muted, small { color: var(--muted); }
.help, small { font-size: .89rem; font-weight: 400; }
.field-error { color: #832626; }
#cpf[aria-invalid="true"] { border-color: #ab3838; }
.photo-field { margin: 22px 0; }
.photo-picker {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: 8px 16px; margin-top: 7px; padding: 16px; border: 1.5px dashed #8da9c6;
  border-radius: 14px; background: #f6f9fd;
}
.photo-picker.enhanced:hover, .photo-picker:focus-within { border-color: var(--action); background: #eff5fc; }
.photo-picker:focus-within { outline: 3px solid #0967b4; outline-offset: 3px; }
.photo-frame {
  position: relative; width: 64px; aspect-ratio: 1; display: grid; place-items: center;
  overflow: hidden; border-radius: 14px; background: #e2ecf8; color: #49719d;
}
.portrait-placeholder { position: relative; width: 32px; height: 35px; }
.portrait-placeholder::before, .portrait-placeholder::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid currentColor;
}
.portrait-placeholder::before { top: 1px; width: 14px; height: 14px; border-radius: 50%; }
.portrait-placeholder::after { bottom: 2px; width: 29px; height: 13px; border-radius: 16px 16px 5px 5px; }
.portrait-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #e2ecf8; }
.photo-copy > span, .photo-action { display: block; }
.photo-action { color: var(--navy); }
#photo-status { overflow-wrap: anywhere; font-size: .87rem; color: var(--muted); }
.photo-picker:has(input:user-invalid) #photo-status { color: #832626; }
.photo-picker input { grid-column: 1 / -1; width: 100%; font: inherit; }
.photo-picker.enhanced input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.counter { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 11px; margin: 23px 0; font-weight: 400; }
.check input { flex: none; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--action); }
.busy { display: inline-block; margin-left: 8px; color: var(--muted); }
.narrow { width: min(740px, var(--shell)); margin: 48px auto 68px; }
.narrow > p { margin: 14px 0; }
.script-parts { list-style: none; padding: 0; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.script-parts li { padding: 16px clamp(16px, 4vw, 28px); }
.script-parts li + li { border-top: 1px solid var(--line); }
.script-part-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--navy); }
.script-part-heading span { white-space: nowrap; color: var(--muted); font-size: .875rem; }
.script-parts p { margin: 6px 0 0; overflow-wrap: anywhere; }
.narrow .button { margin-top: 14px; }
.script-parts .shot { margin-top: 12px; }
.script-parts .shot + .shot { border-top: 1px solid #e3eaf0; padding-top: 12px; }
.script-parts .shot-time { margin: 0; font-size: .85rem; color: var(--navy); font-weight: 700; }
.script-parts .shot-audio { color: var(--muted); font-size: .9rem; }
.script-parts .shot-audio strong, .script-voice strong { margin-right: .3em; }
.script-parts .script-voice { border-left: 3px solid #76a6ce; padding: 6px 12px; margin-top: 14px; }
.narrow .series { margin-bottom: 8px; }
.series { color: var(--muted); font-size: .93rem; }
.registration > section, .surface {
  min-width: 0; padding: clamp(22px, 3vw, 36px); border: 1px solid #d7e0e9; border-radius: 20px;
  background: white; box-shadow: 0 4px 18px rgb(0 55 112 / 5%);
}
.surface { margin-top: 22px; }
.surface > label { margin: 0 0 20px; }
.surface > label small { display: block; margin-top: 2px; }
.surface p, .narrow h1, .entry b, .narrow strong { overflow-wrap: anywhere; }
.notice, .error { border-radius: 10px; padding: 13px 16px; border-left: 4px solid var(--action); background: #edf4fb; color: var(--navy); margin: 17px 0; }
.error { color: #832626; border-color: #ab3838; background: #fdf0ed; }
.notice form { margin-top: 10px; }
.inner { padding-block: 42px 65px; }
.row, .entry, .actions, .profile { display: flex; align-items: center; gap: 16px; }
.row, .entry { justify-content: space-between; }
.entry { padding: 17px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.entry small { display: block; }
.entry:hover b, .back:hover { text-decoration: underline; }
.surface h2 + p { margin-top: 8px; }
.status { font-size: .88rem; font-weight: 500; color: var(--navy); }
.back { color: #175cb6; }
.profile { margin-top: 22px; }
.profile img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.profile h1 { font-size: 2rem; margin-block: 5px; }
.actions { flex-wrap: wrap; margin: 24px 0; }
.quote { white-space: pre-wrap; margin-bottom: 26px; }
details { margin-top: 18px; }
video { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; background: var(--navy); margin: 16px 0; }
footer { background: var(--navy); }
.foot { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 15px; }
.foot > a:last-child { font-size: .9rem; }

@media (max-width: 800px) {
  :root { --shell: calc(100% - 36px); }
  .registration { padding-bottom: 46px; }
  .introduction { width: 56%; margin-left: 4%; padding: 25px 32px; }
  .introduction::before { transform: skewX(-10deg); }
  .introduction p { font-size: 1rem; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { display: grid; grid-template-columns: clamp(76px, 23vw, 112px) 1fr; }
  .step-art { aspect-ratio: auto; min-height: 95px; }
  .step-number { top: 6px; left: 6px; width: 21px; height: 21px; font-size: .75rem; }
  .step-copy { align-self: center; padding: 12px 14px; }
}
@media (max-width: 560px) {
  .mast { flex-direction: row; align-items: center; gap: 12px; padding-block: 15px; }
  .mast .brand { width: clamp(120px, 37vw, 175px); }
  .mast nav { gap: 12px; }
  .mast nav a { font-size: .85rem; }
  .banner { display: grid; margin-top: 14px; padding: 0; }
  .banner-image {
    position: relative; inset: auto; justify-self: end; width: 88%; height: clamp(148px, 42vw, 200px);
    border-radius: 16px;
  }
  .introduction { width: auto; margin: -28px 6% 0 4%; padding: 19px 22px 22px; }
  .introduction::before { transform: skew(-6deg, -1.5deg); border-radius: 16px; }
  .introduction h1 { max-width: none; font-size: clamp(1.65rem, 6.5vw, 2rem); }
  .introduction p { margin-block: 8px 16px; }
  .registration { padding-top: 18px; }
  .registration > section, .surface { padding: 20px 16px; border-radius: 16px; }
  .photo-picker { gap: 8px 12px; padding: 13px; }
  .photo-frame { width: 52px; }
  .foot { flex-wrap: wrap; padding-block: 20px; gap: 10px; }
  .foot .brand { width: 140px; }
  .narrow { margin-block: 32px 48px; }
  .entry { align-items: flex-start; }
}

.review-frame { display: block; width: 100%; height: auto; border-radius: 12px; }
