:root {
  --ink: #182b26;
  --muted: #63736c;
  --line: #dce5df;
  --paper: #f4f7f5;
  --green: #176747;
  --deep: #153d34;
  --lime: #d4a83a;
  --white: #fff;
  --shadow: 0 12px 32px rgb(19 50 39 / 8%);
  --radius-card: 16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}
h1, h2, h3, h4, .brand strong, .stat strong, .stepnum, .team-card-title .link {
  font-family: Manrope, "Segoe UI", sans-serif;
}
.hero h1, .section-head h2, .hero-feature h3, .comp-content h3,
.stepgrid h3, .auth-quote h1, .auth-box h2, .pagehead h1,
.panel-head h2, .athlete-profile-head h3, .team-detail-head h3,
.team-card-title .link { font-family: Manrope, "Segoe UI", sans-serif; }
:focus-visible { outline: 3px solid #c89b2c; outline-offset: 3px; }

.brand { gap: 13px; min-width: 0; }
.brand-marks { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo-img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 2px 9px rgb(0 0 0 / 16%);
}
.brand-marks > .logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  image-rendering: auto;
}
.city-seal {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 4px;
  border: 1px solid #e2e5df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 9px rgb(0 0 0 / 10%);
}
.city-seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand strong { font-size: 15px; letter-spacing: -.25px; }
.brand small { color: var(--muted); font-size: 11px; line-height: 1.35; }

.public-head {
  position: relative;
  z-index: 2;
  min-height: 88px;
  height: auto;
  gap: 20px;
  padding: 12px max(calc((100vw - 1200px) / 2), 28px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 14px rgb(19 50 39 / 4%);
}
.nav { gap: 20px; }
.nav a { color: #344c42; font-weight: 600; }
.nav a:hover { color: var(--green); }
.public-head .outline { border-color: #cbd8d0; background: #fff; color: var(--deep); }
.public-head .outline:hover { background: #f1f6f2; }
.btn { min-height: 42px; border-radius: 10px; font-weight: 700; }
.btn:hover { box-shadow: 0 5px 14px rgb(21 61 52 / 13%); }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #10563b; }
.outline { border-color: #cbd8d0; background: #fff; color: var(--deep); }
.darkbtn { background: var(--deep); color: #fff; }

.hero {
  min-height: 410px;
  padding-top: 76px;
  padding-bottom: 76px;
  background: linear-gradient(115deg, #153d34 0%, #1e5945 68%, #285b47 100%);
}
.hero:after { color: rgb(255 255 255 / 5%); }
.eyebrow { color: #f0cc6a; letter-spacing: 1.6px; }
.hero h1 { max-width: 760px; letter-spacing: -2px; }
.hero p { color: #e0e9e3; }
.hero .outline { border-color: rgb(255 255 255 / 38%); background: transparent; color: #fff; }
.hero .primary { background: #d3aa42; color: #1c3028; }
.hero-feature { border: 1px solid rgb(255 255 255 / 16%); background: rgb(9 35 28 / 40%); }
.wrap { padding-top: 54px; padding-bottom: 54px; }
.section-head h2 { letter-spacing: -.6px; }
.cards { gap: 20px; }
.card, .panel, .stat { border-color: var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.card { padding: 23px; }
.comp-card { padding: 0; }
.comp-content { padding: 21px; }
.sport-art { background-image: linear-gradient(135deg, rgb(0 0 0 / 5%), transparent 60%); }
.steps { padding: 6px 0; background: #fff; }
.stepgrid { gap: 24px; }
.stepnum { color: #a67a11; }

.auth { min-height: 100vh; background: #fff; }
.auth-side {
  position: relative;
  overflow: hidden;
  padding: 38px clamp(24px, 5vw, 68px);
  background: linear-gradient(145deg, #153d34, #214f40);
}
.auth-side:after {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(255 255 255 / 3%), 0 0 0 70px rgb(255 255 255 / 2%);
  content: "";
  pointer-events: none;
}
.auth-side .brand, .auth-quote, .auth-side > small { position: relative; z-index: 1; }
.auth-side .brand small { color: #d1ddd5; }
.auth-quote h1 { max-width: 450px; font-size: clamp(34px, 4vw, 48px); letter-spacing: -1.7px; }
.auth-quote p { max-width: 440px; color: #d7e2db; }
.auth-main { padding: 42px 28px; }
.auth-box { width: min(440px, 100%); }
.auth-box h2 { letter-spacing: -.7px; }
.auth-box > p { line-height: 1.6; }
.formrow { margin-bottom: 17px; }
.formrow label { color: #30483d; font-size: 13px; }
.formrow input, .formrow select, .formrow textarea {
  min-height: 46px;
  border-color: #cbd8d0;
  border-radius: 10px;
  background: #fff;
}
.formrow input:focus, .formrow select:focus, .formrow textarea:focus {
  border-color: #277653;
  box-shadow: 0 0 0 3px rgb(39 118 83 / 14%);
}
.role-card, .field-config, fieldset { border-color: var(--line); border-radius: 12px; }
.role-card.active { border-color: var(--green); background: #f0f7f2; }

.dashboard { background: var(--paper); }
.sidebar { background: #153d34; }
.side-brand { position: relative; border-color: rgb(255 255 255 / 13%); }
.side-brand .sidebar-close { position: absolute; top: 0; right: 0; }
.sidebar .brand { flex-direction: column; align-items: flex-start; gap: 10px; }
.sidebar .brand-marks { gap: 10px; }
.sidebar .brand-marks > .logo-img, .sidebar .city-seal {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.sidebar .brand-marks > .logo-img {
  width: 52px;
  height: 52px;
  margin: -3px;
  border-radius: 50%;
  clip-path: circle(43% at 50% 50%);
  image-rendering: auto;
}
.sidebar .brand > span:last-child { width: 100%; }
.sidebar .brand strong { font-size: 16px; line-height: 1.45; }
.sidebar .brand small { margin-top: 5px; letter-spacing: 1.2px; }
.sidebar .brand strong { color: #fff; }
.sidebar .brand small { color: #c0d2c8; }
.side-nav button.active, .side-nav button:hover { background: #285646; color: #f3d67f; }
.side-bottom { border-color: rgb(255 255 255 / 13%); }
.avatar { background: #2b5a47; color: #f3d67f; }
.topbar { min-height: 68px; height: auto; border-color: var(--line); }
.content { padding: clamp(20px, 3vw, 36px); }
.pagehead { gap: 18px; margin-bottom: 28px; }
.pagehead h1 { letter-spacing: -.7px; }
.stats { gap: 16px; }
.stat { padding: 21px; }
.panel { padding: clamp(17px, 2vw, 24px); }
.panel-head { gap: 12px; }
.tablewrap { border: 1px solid #edf1ee; border-radius: 11px; }
table { background: #fff; }
th { background: #f1f5f2; color: #42574c; }
td, th { padding-right: 13px; padding-left: 13px; }
td { line-height: 1.5; }
.tag { background: #e8f2eb; color: #1b6444; }
.notice { border-left-color: #c09224; background: #fff9e9; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 19px clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: #56685f;
  font-size: 12px;
}
.site-footer strong { color: var(--deep); }
body > #app > footer {
  padding: 23px max(calc((100vw - 1200px) / 2), 28px);
  border-top: 1px solid rgb(255 255 255 / 12%);
  background: #12342d;
  color: #d5e0d9;
  line-height: 1.6;
}
body > #app > footer strong { color: #fff; }

@media (max-width: 850px) {
  .public-head { flex-wrap: wrap; padding: 12px 22px; }
  .public-head > .brand { flex: 1 1 100%; }
  .nav { width: 100%; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
  .nav a { padding: 6px 0; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { min-height: 300px; gap: 18px; padding: 24px; }
  .auth-quote { margin: 20px auto; }
  .auth-quote h1 { margin: 14px 0; }
  .auth-side > small { display: none; }
}
@media (max-width: 600px) {
  .brand { gap: 10px; }
  .brand-marks { gap: 7px; }
  .brand-marks > .logo-img { width: 48px; height: 48px; }
  .logo-img { width: 48px; height: 48px; }
  .city-seal { width: 44px; height: 44px; border-radius: 10px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .public-head { gap: 7px; padding: 10px 16px 13px; }
  .public-head > .brand { flex-basis: auto; }
  .nav { width: 100%; min-width: 0; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .nav a { display: none; }
  .nav .btn { min-width: 0; flex: 1 1 0; padding: 10px 8px; }
  .hero { min-height: 0; padding: 48px 20px 46px; }
  .hero-inner { width: 100%; min-width: 0; }
  .hero h1 { max-width: 100%; margin: 15px 0; font-size: clamp(28px, 7.7vw, 33px); letter-spacing: -1px; overflow-wrap: anywhere; }
  .hero p { font-size: 15px; }
  .actions { flex-wrap: wrap; }
  .actions .btn { min-width: 0; flex: 1 1 100%; }
  .hero .actions button[onclick="openPrototype()"] { display: none; }
  .wrap { padding: 36px 18px; }
  .section-head { align-items: flex-start; gap: 14px; flex-direction: column; }
  .section-head h2 { font-size: 23px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .stepgrid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stepgrid > div { padding: 13px 0 13px 13px; border-left: 2px solid #e4e9e5; }
  .stepgrid h3 { margin-top: 5px; }
  body > #app > footer, .site-footer { flex-direction: column; gap: 5px; padding: 18px; }
  .auth-side { min-height: 250px; padding: 19px 17px; }
  .auth-quote h1 { font-size: 27px; letter-spacing: -1px; }
  .auth-quote p { margin-bottom: 0; font-size: 14px; }
  .auth-main { padding: 30px 18px 36px; }
  .auth-box h2 { font-size: 25px; }
  .role-choice { gap: 8px; }
  .role-card { padding: 12px; }
  .content { padding: 17px 14px 22px; }
  .topbar { padding: 9px 14px; gap: 8px; }
  .topbar span { font-size: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 25px; }
  .pagehead { align-items: stretch; }
  .pagehead > button { align-self: stretch; }
  .panel-head { align-items: flex-start; flex-wrap: wrap; }
  .panel-head > .btn { width: 100%; }
  .panel { margin-bottom: 13px; }
  .formgrid { grid-template-columns: minmax(0, 1fr); }
  .wide { grid-column: auto; }
  .detail-list { grid-template-columns: minmax(0, 1fr); }
  .tablewrap { overscroll-behavior-x: contain; }
  input, select, textarea { font-size: 16px; }
  .btn, .btn.small { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Identidade visual: verde da Diretoria, dourado do brasao e neutros. */
:root { --green: #176747; --deep: #153d34; --lime: #d5ad43; --gold: #d5ad43; }
.eyebrow { color: var(--green); }
.hero .eyebrow { color: #f0cd70; }
.hero { border-bottom: 5px solid var(--gold); }
.hero:before, .hero:after { display: none; }
button[onclick*="openPrototype"] { display: none !important; }
.hero-inner { border-left: 3px solid var(--gold); padding-left: 20px; }
.hero h1 { letter-spacing: -1.6px; }
.hero-feature {
  width: 320px;
  padding: 22px;
  border: 1px solid #e5d39c;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 15px 36px rgb(7 32 24 / 17%);
}
.hero-feature-head { display: flex; align-items: center; gap: 14px; }
.hero-feature-seal {
  display: grid;
  flex: none;
  place-items: center;
  width: 74px;
  height: 78px;
  padding: 5px;
  border: 1px solid #e7d391;
  border-radius: 13px;
  background: #fff;
}
.hero-feature-seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-feature .feature-kicker { color: #6f5a20; }
.hero-feature h3 { margin: 6px 0 0; color: var(--deep); font-size: 18px; }
.hero-feature p { margin: 15px 0 0; color: #51635a; }
.feature-foot { border-color: #e3e9e4; color: #40584b; }
.hero .primary { background: var(--gold); color: #263128; }
.hero .primary:hover { background: #e3c15e; }
.section-head h2 { color: var(--green); }
.section-head .eyebrow { color: var(--green) !important; }

/* Cada modalidade usa a mesma paleta institucional, sem cores aleatorias. */
.sport-art {
  --sport-bg: #174a39 !important;
  --sport-accent: #e0c15f !important;
  background: linear-gradient(125deg, #174a39, #225b45) !important;
  color: #e0c15f !important;
}
.sport-art::before, .sport-art::after { display: none; }
.sport-art span { color: #e0c15f; letter-spacing: 1.4px; }
.sport-art span { font-family: Manrope, "Segoe UI", sans-serif; }
.sport-art small { background: #fff; color: #264437; }
.sport-tag { background: #f2ead1; color: #574714; }
.tag.yellow { background: #f6edcf; color: #6a5310; }

/* Selecao por cartoes claros e acessiveis, mantendo os valores do formulario. */
.role-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; }
.role-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 104px;
  padding: 15px;
  border: 1px solid #d7e1da;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.role-card:hover { border-color: #6e9b7d; box-shadow: 0 5px 16px rgb(22 72 51 / 8%); }
.role-card:has(input:checked) { border: 2px solid var(--green); background: #f2f7f3; box-shadow: inset 0 0 0 1px rgb(23 103 71 / 5%); }
.role-card:has(input:focus-visible) { outline: 3px solid #d5ad43; outline-offset: 3px; }
.role-card input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.role-mark { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #e8f0eb; color: var(--green); font: 800 15px Manrope, sans-serif; }
.role-card:has(input:checked) .role-mark { background: var(--green); color: #fff; }
.role-card-copy { display: grid; min-width: 0; gap: 3px; }
.role-card-copy b { color: var(--deep); font-size: 14px; }
.role-card-copy small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.role-indicator { position: absolute; top: 12px; right: 12px; width: 17px; height: 17px; border: 1.5px solid #aabbb0; border-radius: 50%; background: #fff; }
.role-card:has(input:checked) .role-indicator { border: 5px solid var(--green); }
.signup-role > label { margin-bottom: 9px; font-size: 13px; }
.checkrow { display: block; margin: 13px 0 16px; color: #4e6258; font-size: 12px; line-height: 1.65; }
.checkrow input { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--green); }
.checkrow a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.auth-main { background: #f3f6f4; }
.auth-box { padding: 34px; border: 1px solid #e3eae5; border-radius: 18px; background: #fff; box-shadow: 0 14px 36px rgb(19 50 39 / 8%); }
.auth-box h2 { color: var(--deep); }
.auth-box .primary { background: var(--green); color: #fff; }
.auth-box .primary:hover { background: #10563b; }
.auth-side { background: linear-gradient(145deg, #153d34, #214f40); }
.auth-side:after { display: none; }
.auth-quote { padding-left: 19px; border-left: 3px solid var(--gold); }
.auth-side .eyebrow { color: #f0cd70; }

@media (max-width: 850px) {
  .hero-feature { width: 300px; }
}
@media (min-width: 651px) and (max-width: 1050px) {
  .hero-inner { max-width: 100%; }
  .hero-feature { display: none; }
}
@media (max-width: 650px) {
  .hero-inner { border-left-width: 2px; padding-left: 14px; }
  .hero .hero-feature {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    width: 100%;
    margin-top: 23px;
    padding: 15px;
    transform: none;
  }
  .hero-feature-seal { width: 60px; height: 64px; }
  .hero-feature h3 { font-size: 16px; }
  .auth-box { padding: 23px 18px; border-radius: 15px; }
  .role-choice { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .role-card { min-height: 78px; }
}

.standalone-demo-notice{padding:10px 18px;background:#fff4d8;color:#523d12;text-align:center;font:600 12px/1.5 Arial,sans-serif;border-bottom:1px solid #e8d5a4}@media print{.standalone-demo-notice{display:none}}
