/* ============================================================
   Elmar Distribuidora — página "Termos de Uso"
   Destino: Content/css/elmar-termos-uso.css
   Escopo: tudo dentro de .elmar-tu (não vaza para o site)
   ============================================================ */

.elmar-tu {
  --tu-green: #005851;
  --tu-green-dark: #0A3B36;
  --tu-green-mid: #0E7A6E;
  --tu-gold: #E8A93F;
  --tu-gold-dark: #C78A26;
  --tu-cream: #FBF5EA;
  --tu-card: #FFFFFF;
  --tu-line: #EDE2CC;
  --tu-ink: #16211E;
  --tu-ink-2: #1D2B26;
  --tu-body: #4A5C56;
  --tu-muted: #6B7C76;
  --tu-soft: #8A9A94;
  --tu-mint: #E7F0EC;
  --tu-sand: #F7F1E3;
  --tu-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  background: var(--tu-cream);
  color: var(--tu-ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}

.elmar-tu *,
.elmar-tu *::before,
.elmar-tu *::after { box-sizing: border-box; }

.elmar-tu svg { display: block; }
.elmar-tu a { text-decoration: none; }
.elmar-tu p a,
.elmar-tu li a { color: var(--tu-green-mid); text-decoration: underline; text-underline-offset: 2px; }

.elmar-tu__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.elmar-tu__kicker {
  font-family: var(--tu-mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--tu-soft);
  text-transform: uppercase;
}

.elmar-tu__h2 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.9px;
  color: var(--tu-green-dark);
  margin: 6px 0 22px;
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- hero ---------- */

.elmar-tu__hero {
  padding-top: 56px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: start;
}

.elmar-tu__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--tu-mint);
  border: 1px solid #CADFD8;
  color: #0A4A44;
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--tu-mono);
  font-size: 11.5px;
  letter-spacing: 1.6px;
  white-space: nowrap;
}

.elmar-tu__tag i { width: 7px; height: 7px; border-radius: 50%; background: #22A183; display: block; }

.elmar-tu__title {
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -1.4px;
  font-weight: 900;
  margin: 20px 0 0;
  color: var(--tu-green-dark);
  text-wrap: balance;
}

.elmar-tu__title em { font-style: normal; color: var(--tu-gold-dark); }

.elmar-tu__lead {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--tu-body);
  max-width: 540px;
  margin: 18px 0 0;
  font-weight: 600;
  text-wrap: pretty;
}

.elmar-tu__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.elmar-tu__btn {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 15px 24px;
  font-family: var(--tu-mono);
  font-size: 12.5px;
  letter-spacing: 1.4px;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.elmar-tu__btn--solid { background: var(--tu-green); color: #FFFFFF; box-shadow: 0 12px 26px -14px rgba(0, 88, 81, .8); }
.elmar-tu__btn--solid:hover,
.elmar-tu__btn--solid:focus { background: var(--tu-green-mid); color: #FFFFFF; }

.elmar-tu__btn--ghost { background: var(--tu-card); color: #0A4A44; border: 1.5px solid #DCD1B8; }
.elmar-tu__btn--ghost:hover,
.elmar-tu__btn--ghost:focus { border-color: var(--tu-green-mid); color: var(--tu-green); }

.elmar-tu__btn--gold { background: var(--tu-gold); color: var(--tu-ink); }
.elmar-tu__btn--gold:hover,
.elmar-tu__btn--gold:focus { background: #F5BB55; color: var(--tu-ink); }

.elmar-tu__btn--outline { border: 1.5px solid rgba(255, 255, 255, .35); color: #FFFFFF; }
.elmar-tu__btn--outline:hover,
.elmar-tu__btn--outline:focus { border-color: var(--tu-gold); color: var(--tu-gold); }

/* ---------- card de prazos ---------- */

.elmar-tu__deadlines {
  background: var(--tu-green);
  border-radius: 26px;
  padding: 28px 30px;
  color: #DCEFE9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 26px 60px -34px rgba(0, 60, 54, .6);
}

.elmar-tu__deadlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 14px, transparent 14px 28px);
  pointer-events: none;
}

.elmar-tu__deadlines > * { position: relative; }
.elmar-tu__deadlines .elmar-tu__kicker { color: #8FD3C4; }

.elmar-tu__deadline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.elmar-tu__deadline:last-child { border-bottom: 0; padding-bottom: 0; }
.elmar-tu__deadline strong { font-size: 34px; font-weight: 900; color: #FFFFFF; line-height: 1; white-space: nowrap; }
.elmar-tu__deadline span { font-size: 14.5px; font-weight: 700; color: #BEDDD5; line-height: 1.45; }

/* ---------- três passos ---------- */

.elmar-tu__section { padding-top: 56px; }

.elmar-tu__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.elmar-tu__step {
  background: var(--tu-card);
  border: 1.5px solid var(--tu-line);
  border-radius: 22px;
  padding: 26px;
}

.elmar-tu__step i {
  font-style: normal;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tu-green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tu-mono);
  font-size: 13px;
  margin-bottom: 16px;
}

.elmar-tu__step:nth-child(2) i { background: var(--tu-green-mid); }
.elmar-tu__step:nth-child(3) i { background: var(--tu-gold-dark); }

.elmar-tu__step strong { display: block; font-size: 18px; font-weight: 900; color: var(--tu-green-dark); }
.elmar-tu__step p { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--tu-muted); line-height: 1.55; }

/* ---------- índice + regras ---------- */

.elmar-tu__rules {
  padding-top: 56px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 36px;
  align-items: start;
}

.elmar-tu__index { position: sticky; top: 24px; }
.elmar-tu__index .elmar-tu__kicker { margin-bottom: 12px; }

.elmar-tu__index a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tu-body);
  padding: 8px 0;
  border-top: 1px solid var(--tu-line);
  transition: color .18s ease;
}

.elmar-tu__index a:last-child { border-bottom: 1px solid var(--tu-line); }
.elmar-tu__index a:hover,
.elmar-tu__index a:focus { color: var(--tu-green); }

.elmar-tu__articles { display: flex; flex-direction: column; gap: 16px; }

.elmar-tu__art {
  background: var(--tu-card);
  border: 1.5px solid var(--tu-line);
  border-radius: 22px;
  padding: 28px 32px;
  scroll-margin-top: 24px;
}

.elmar-tu__art-head { display: flex; align-items: baseline; gap: 12px; }
.elmar-tu__art-head i { font-style: normal; font-family: var(--tu-mono); font-size: 12px; color: var(--tu-gold-dark); }
.elmar-tu__art-head h3 { font-size: 23px; font-weight: 900; color: var(--tu-green-dark); letter-spacing: -.4px; margin: 0; }

.elmar-tu__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }

.elmar-tu__list li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--tu-body);
  line-height: 1.6;
}

.elmar-tu__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22A183;
  flex: none;
  margin-top: 9px;
}

.elmar-tu__list--gold li::before { background: var(--tu-gold); }
.elmar-tu__list--two { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.elmar-tu__list strong { color: var(--tu-ink-2); }

.elmar-tu__sub {
  list-style: none;
  border-left: 3px solid var(--tu-line);
  padding: 0 0 0 20px;
  margin: 14px 0 0 18px;
  display: grid;
  gap: 10px;
  counter-reset: tu-sub;
}

.elmar-tu__sub li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--tu-body);
  line-height: 1.6;
  counter-increment: tu-sub;
}

.elmar-tu__sub li::before {
  content: counter(tu-sub, lower-alpha);
  font-family: var(--tu-mono);
  font-size: 12px;
  color: var(--tu-gold-dark);
  flex: none;
  padding-top: 3px;
}

.elmar-tu__sublabel {
  font-size: 14px;
  font-weight: 800;
  color: #0A4A44;
  font-family: var(--tu-mono);
  letter-spacing: 1.2px;
  margin-top: 22px;
}

.elmar-tu__sublabel:first-of-type { margin-top: 16px; }

.elmar-tu__box {
  background: var(--tu-sand);
  border: 1.5px dashed #DCD1B8;
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #5A6B64;
  line-height: 1.6;
}

.elmar-tu__box--mint {
  background: var(--tu-mint);
  border: 1.5px solid #CADFD8;
  color: #0A4A44;
  font-size: 15.5px;
  margin-top: 16px;
}

.elmar-tu__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.elmar-tu__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tu-mint);
  border: 1.5px solid #CADFD8;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 800;
  color: #0A4A44;
  transition: border-color .18s ease, color .18s ease;
}
.elmar-tu__contact:hover { border-color: var(--tu-green-mid); color: var(--tu-green); }

.elmar-tu__contact--gold { background: #FBEFD6; border-color: #E7D5AC; color: #7A5A16; }
.elmar-tu__contact--gold:hover { border-color: var(--tu-gold-dark); color: #5F450F; }

/* ---------- fecho ---------- */

.elmar-tu__cta-sec { padding-top: 56px; padding-bottom: 72px; }

.elmar-tu__cta {
  background: linear-gradient(120deg, var(--tu-green), var(--tu-green-dark));
  border-radius: 30px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.elmar-tu__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 14px, transparent 14px 28px);
  pointer-events: none;
}

.elmar-tu__cta > * { position: relative; }
.elmar-tu__cta-txt { flex: 1 1 460px; }
.elmar-tu__cta .elmar-tu__kicker { color: #8FD3C4; }

.elmar-tu__cta h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.8px;
  color: #FFFFFF;
  margin: 8px 0 0;
  line-height: 1.2;
}

.elmar-tu__cta p {
  font-size: 16.5px;
  font-weight: 600;
  color: #BEDDD5;
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 520px;
}

.elmar-tu__sign {
  font-family: var(--tu-mono);
  font-size: 11.5px;
  letter-spacing: 1.6px;
  color: #8FD3C4;
  margin: 18px 0 0;
}

.elmar-tu__truck { margin-left: auto; }
.elmar-tu__truck svg { width: 230px; height: auto; overflow: visible; }

.elmar-tu__wheel { animation: elmar-tu-roll 3.6s linear infinite; }
.elmar-tu__wheel--r { transform-origin: 238px 228px; }
.elmar-tu__wheel--l { transform-origin: 94px 228px; }

.elmar-tu__footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 22px;
  font-family: var(--tu-mono);
  font-size: 11.5px;
  letter-spacing: 1.3px;
}

.elmar-tu__footlinks a { color: var(--tu-green-mid); }
.elmar-tu__footlinks a:hover { color: var(--tu-green); text-decoration: underline; }
.elmar-tu__footlinks span { color: #C9BFA6; }

@keyframes elmar-tu-roll { to { transform: rotate(360deg); } }

/* ---------- responsivo ---------- */

@media (max-width: 1180px) {
  .elmar-tu__title { font-size: 46px; }
  .elmar-tu__rules { grid-template-columns: 210px 1fr; gap: 28px; }
}

@media (max-width: 1000px) {
  .elmar-tu__hero { grid-template-columns: 1fr; gap: 32px; }
  .elmar-tu__lead { max-width: none; }
  .elmar-tu__steps { grid-template-columns: 1fr; }
  .elmar-tu__rules { grid-template-columns: 1fr; gap: 24px; }
  .elmar-tu__index { position: static; }
  .elmar-tu__index-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .elmar-tu__list--two { grid-template-columns: 1fr; }
  .elmar-tu__cta { padding: 32px 28px; }
  .elmar-tu__truck { margin-left: 0; }
}

@media (max-width: 720px) {
  .elmar-tu__wrap { padding-left: 18px; padding-right: 18px; }
  .elmar-tu__title { font-size: 36px; letter-spacing: -1px; }
  .elmar-tu__lead { font-size: 16.5px; }
  .elmar-tu__h2 { font-size: 26px; }
  .elmar-tu__deadlines { padding: 24px 22px; }
  .elmar-tu__deadline strong { font-size: 28px; }
  .elmar-tu__art { padding: 24px 20px; }
  .elmar-tu__art-head h3 { font-size: 20px; }
  .elmar-tu__index-list { grid-template-columns: 1fr; }
  .elmar-tu__sub { margin-left: 0; padding-left: 16px; }
  .elmar-tu__cta h2 { font-size: 24px; }
  .elmar-tu__cta h2 br { display: none; }
  .elmar-tu__truck svg { width: 180px; }
}

/* ---------- acessibilidade ---------- */

@media (prefers-reduced-motion: reduce) {
  .elmar-tu__wheel { animation: none !important; }
  .elmar-tu__btn,
  .elmar-tu__index a,
  .elmar-tu__contact { transition: none; }
}

/* ---------- preâmbulo ---------- */

.elmar-tu__intro-sec { padding-top: 40px; }

.elmar-tu__intro {
  background: var(--tu-card);
  border: 1.5px solid var(--tu-line);
  border-left: 5px solid var(--tu-gold);
  border-radius: 22px;
  padding: 26px 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tu-body);
  line-height: 1.65;
  margin: 0;
}

.elmar-tu__intro strong { color: var(--tu-ink-2); }

/* ---------- definições ---------- */

.elmar-tu__defs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 0;
}

.elmar-tu__def {
  background: var(--tu-sand);
  border-radius: 14px;
  padding: 14px 18px;
}

.elmar-tu__def strong { display: block; font-size: 15px; font-weight: 900; color: var(--tu-green-dark); }
.elmar-tu__def span { display: block; font-size: 14.5px; font-weight: 600; color: #5A6B64; line-height: 1.55; }

.elmar-tu__intro-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--tu-body);
  line-height: 1.6;
  margin: 12px 0 0;
}

/* ---------- avisos ---------- */

.elmar-tu__alert {
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.elmar-tu__alert i {
  display: block;
  font-style: normal;
  font-family: var(--tu-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  margin-bottom: 6px;
}

.elmar-tu__alert--gold { background: #FBEFD6; border: 1.5px solid #E7D5AC; color: #5A6B64; }
.elmar-tu__alert--gold i { color: #7A5A16; }
.elmar-tu__alert--mint { background: var(--tu-mint); border: 1.5px solid #CADFD8; color: #0A4A44; }
.elmar-tu__alert--mint i { color: #0A4A44; }
.elmar-tu__alert + .elmar-tu__alert { margin-top: 12px; }

/* ---------- numeração 2.1, 3.1… ---------- */

.elmar-tu__sub--manual { counter-reset: none; }
.elmar-tu__sub--manual li::before { content: attr(data-n); }

@media (max-width: 720px) {
  .elmar-tu__defs { grid-template-columns: 1fr; }
  .elmar-tu__intro { padding: 20px 22px; }
}

.elmar-tu__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }

@media (max-width: 1000px) {
  .elmar-tu__cta-btns { margin-left: 0; }
}


/* ============================================================
   TEMA ESCURO — acrescimo, nada acima foi tocado.
   O _Layout marca data-theme com a PREFERENCIA ('auto' | 'light' | 'dark'),
   nao com o tema efetivo. Por isso o escuro vale em dois casos e os dois
   blocos abaixo tem conteudo identico:
     1) html[data-theme="dark"]  — usuario escolheu escuro
     2) html[data-theme="auto"] dentro de prefers-color-scheme: dark — padrao
   Tudo escopado em .elmar-tu; nenhuma regra global, nenhum :root.
   ============================================================ */

/* ---------- variaveis ----------
   Superficies claras viram as escuras do site. Os verdes/dourados da marca
   NAO sao remapeados aqui: no arquivo eles pintam FUNDO (card de prazos,
   botao solido, chips dos passos, gradiente do fecho) e ja' sao escuros o
   bastante. Onde essas mesmas variaveis servem de COR DE TEXTO existe
   override explicito mais abaixo. */
html[data-theme="dark"] .elmar-tu {
  --tu-cream: #222222;
  --tu-card: #2A2A2A;
  --tu-sand: #333333;
  --tu-mint: #1A3A30;
  --tu-line: #4A4A4A;

  /* --tu-ink tem papel duplo: e' o texto da pagina E o texto sobre o botao
     dourado. Aqui vale o papel de pagina; o botao dourado leva override. */
  --tu-ink: #F0F0F0;
  --tu-ink-2: #F0F0F0;
  --tu-body: #BBBBBB;
  --tu-muted: #AAAAAA;
  --tu-soft: #AAAAAA;
}

/* ---------- verde da marca no papel de TEXTO ----------
   --tu-green / --tu-green-dark / --tu-green-mid e o literal #0A4A44 sao
   ilegiveis sobre fundo escuro; viram o verde-texto do site. */
html[data-theme="dark"] .elmar-tu p a,
html[data-theme="dark"] .elmar-tu li a,
html[data-theme="dark"] .elmar-tu__footlinks a,
html[data-theme="dark"] .elmar-tu__h2,
html[data-theme="dark"] .elmar-tu__title,
html[data-theme="dark"] .elmar-tu__step strong,
html[data-theme="dark"] .elmar-tu__art-head h3,
html[data-theme="dark"] .elmar-tu__def strong,
html[data-theme="dark"] .elmar-tu__sublabel { color: #ABDB92; }

html[data-theme="dark"] .elmar-tu__index a:hover,
html[data-theme="dark"] .elmar-tu__index a:focus,
html[data-theme="dark"] .elmar-tu__footlinks a:hover { color: #D6EFC6; }

/* ---------- dourado no papel de TEXTO ---------- */
html[data-theme="dark"] .elmar-tu__title em,
html[data-theme="dark"] .elmar-tu__art-head i,
html[data-theme="dark"] .elmar-tu__sub li::before,
html[data-theme="dark"] .elmar-tu__alert--gold i { color: #FFD691; }

/* ---------- caixas sand ----------
   vem antes das faixas mint de proposito: .elmar-tu__box--mint tem a mesma
   especificidade de .elmar-tu__box e no tema claro ganha por vir depois. */
html[data-theme="dark"] .elmar-tu__box { border-color: #555555; color: #BBBBBB; }
html[data-theme="dark"] .elmar-tu__def span { color: #BBBBBB; }

/* ---------- faixas mint (fundo verde sutil) ----------
   fundo vem de --tu-mint; o texto #0A4A44 e a borda #CADFD8 sao literais. */
html[data-theme="dark"] .elmar-tu__tag,
html[data-theme="dark"] .elmar-tu__box--mint,
html[data-theme="dark"] .elmar-tu__contact,
html[data-theme="dark"] .elmar-tu__alert--mint,
html[data-theme="dark"] .elmar-tu__alert--mint i { color: #ABDB92; }

html[data-theme="dark"] .elmar-tu__tag,
html[data-theme="dark"] .elmar-tu__box--mint,
html[data-theme="dark"] .elmar-tu__contact,
html[data-theme="dark"] .elmar-tu__alert--mint { border-color: #4A8A78; }

html[data-theme="dark"] .elmar-tu__contact:hover { border-color: #ABDB92; color: #D6EFC6; }

/* ---------- botao fantasma ----------
   borda mais clara que a paleta de card: e' contorno de controle e precisa
   de 3:1 contra AS DUAS superficies vizinhas — a pagina (#222) por fora e o
   proprio preenchimento do botao (--tu-card #2A2A2A) por dentro. #6E6E6E
   passava so' contra a pagina (3,12:1) e reprovava contra o preenchimento
   (2,81:1); #7A7A7A da' 3,71:1 e 3,34:1. */
html[data-theme="dark"] .elmar-tu__btn--ghost { color: #ABDB92; border-color: #7A7A7A; }
html[data-theme="dark"] .elmar-tu__btn--ghost:hover,
html[data-theme="dark"] .elmar-tu__btn--ghost:focus { border-color: #ABDB92; color: #D6EFC6; }

/* ---------- dourado no papel de FUNDO leva texto escuro ----------
   --tu-gold/--tu-gold-dark seguem claros o bastante para virar fundo; quem
   muda e' o texto por cima (o chip 03 herdava #FFF do .elmar-tu__step i). */
html[data-theme="dark"] .elmar-tu__btn--gold,
html[data-theme="dark"] .elmar-tu__btn--gold:hover,
html[data-theme="dark"] .elmar-tu__btn--gold:focus { color: #1A1A1A; }
html[data-theme="dark"] .elmar-tu__step:nth-child(3) i { color: #1A1A1A; }

/* o botao vazado fica sobre o verde do fecho, que e' o mesmo nos dois temas:
   so' sobem os dois pontos que nao alcancam o minimo — a borda de 35% de
   branco (2.4:1) e o dourado do hover (4.4:1). */
html[data-theme="dark"] .elmar-tu__btn--outline { border-color: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .elmar-tu__btn--outline:hover,
html[data-theme="dark"] .elmar-tu__btn--outline:focus { border-color: #FFD691; color: #FFD691; }

/* ---------- faixas douradas sutis ---------- */
html[data-theme="dark"] .elmar-tu__alert--gold { background: #3A3020; border-color: #9A7C34; color: #BBBBBB; }
html[data-theme="dark"] .elmar-tu__contact--gold { background: #3A3020; border-color: #9A7C34; color: #FFD691; }
html[data-theme="dark"] .elmar-tu__contact--gold:hover { border-color: #E8A93F; color: #FFE7BC; }

/* ---------- sombras ----------
   sombra colorida some no escuro; vira preta e mais forte. */
html[data-theme="dark"] .elmar-tu__btn--solid { box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .75); }
html[data-theme="dark"] .elmar-tu__deadlines { box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .8); }

/* ---------- separador do rodape ---------- */
html[data-theme="dark"] .elmar-tu__footlinks span { color: #999999; }

@media (prefers-color-scheme: dark) {
  /* ---------- variaveis ----------
     Superficies claras viram as escuras do site. Os verdes/dourados da marca
     NAO sao remapeados aqui: no arquivo eles pintam FUNDO (card de prazos,
     botao solido, chips dos passos, gradiente do fecho) e ja' sao escuros o
     bastante. Onde essas mesmas variaveis servem de COR DE TEXTO existe
     override explicito mais abaixo. */
  html[data-theme="auto"] .elmar-tu {
    --tu-cream: #222222;
    --tu-card: #2A2A2A;
    --tu-sand: #333333;
    --tu-mint: #1A3A30;
    --tu-line: #4A4A4A;

    /* --tu-ink tem papel duplo: e' o texto da pagina E o texto sobre o botao
       dourado. Aqui vale o papel de pagina; o botao dourado leva override. */
    --tu-ink: #F0F0F0;
    --tu-ink-2: #F0F0F0;
    --tu-body: #BBBBBB;
    --tu-muted: #AAAAAA;
    --tu-soft: #AAAAAA;
  }

  /* ---------- verde da marca no papel de TEXTO ----------
     --tu-green / --tu-green-dark / --tu-green-mid e o literal #0A4A44 sao
     ilegiveis sobre fundo escuro; viram o verde-texto do site. */
  html[data-theme="auto"] .elmar-tu p a,
  html[data-theme="auto"] .elmar-tu li a,
  html[data-theme="auto"] .elmar-tu__footlinks a,
  html[data-theme="auto"] .elmar-tu__h2,
  html[data-theme="auto"] .elmar-tu__title,
  html[data-theme="auto"] .elmar-tu__step strong,
  html[data-theme="auto"] .elmar-tu__art-head h3,
  html[data-theme="auto"] .elmar-tu__def strong,
  html[data-theme="auto"] .elmar-tu__sublabel { color: #ABDB92; }

  html[data-theme="auto"] .elmar-tu__index a:hover,
  html[data-theme="auto"] .elmar-tu__index a:focus,
  html[data-theme="auto"] .elmar-tu__footlinks a:hover { color: #D6EFC6; }

  /* ---------- dourado no papel de TEXTO ---------- */
  html[data-theme="auto"] .elmar-tu__title em,
  html[data-theme="auto"] .elmar-tu__art-head i,
  html[data-theme="auto"] .elmar-tu__sub li::before,
  html[data-theme="auto"] .elmar-tu__alert--gold i { color: #FFD691; }

  /* ---------- caixas sand ----------
     vem antes das faixas mint de proposito: .elmar-tu__box--mint tem a mesma
     especificidade de .elmar-tu__box e no tema claro ganha por vir depois. */
  html[data-theme="auto"] .elmar-tu__box { border-color: #555555; color: #BBBBBB; }
  html[data-theme="auto"] .elmar-tu__def span { color: #BBBBBB; }

  /* ---------- faixas mint (fundo verde sutil) ----------
     fundo vem de --tu-mint; o texto #0A4A44 e a borda #CADFD8 sao literais. */
  html[data-theme="auto"] .elmar-tu__tag,
  html[data-theme="auto"] .elmar-tu__box--mint,
  html[data-theme="auto"] .elmar-tu__contact,
  html[data-theme="auto"] .elmar-tu__alert--mint,
  html[data-theme="auto"] .elmar-tu__alert--mint i { color: #ABDB92; }

  html[data-theme="auto"] .elmar-tu__tag,
  html[data-theme="auto"] .elmar-tu__box--mint,
  html[data-theme="auto"] .elmar-tu__contact,
  html[data-theme="auto"] .elmar-tu__alert--mint { border-color: #4A8A78; }

  html[data-theme="auto"] .elmar-tu__contact:hover { border-color: #ABDB92; color: #D6EFC6; }

  /* ---------- botao fantasma ----------
     borda mais clara que a paleta de card: e' contorno de controle e precisa
     de 3:1 contra AS DUAS superficies vizinhas — a pagina (#222) por fora e o
     proprio preenchimento do botao (--tu-card #2A2A2A) por dentro. #6E6E6E
     passava so' contra a pagina (3,12:1) e reprovava contra o preenchimento
     (2,81:1); #7A7A7A da' 3,71:1 e 3,34:1. */
  html[data-theme="auto"] .elmar-tu__btn--ghost { color: #ABDB92; border-color: #7A7A7A; }
  html[data-theme="auto"] .elmar-tu__btn--ghost:hover,
  html[data-theme="auto"] .elmar-tu__btn--ghost:focus { border-color: #ABDB92; color: #D6EFC6; }

  /* ---------- dourado no papel de FUNDO leva texto escuro ----------
     --tu-gold/--tu-gold-dark seguem claros o bastante para virar fundo; quem
     muda e' o texto por cima (o chip 03 herdava #FFF do .elmar-tu__step i). */
  html[data-theme="auto"] .elmar-tu__btn--gold,
  html[data-theme="auto"] .elmar-tu__btn--gold:hover,
  html[data-theme="auto"] .elmar-tu__btn--gold:focus { color: #1A1A1A; }
  html[data-theme="auto"] .elmar-tu__step:nth-child(3) i { color: #1A1A1A; }

  /* o botao vazado fica sobre o verde do fecho, que e' o mesmo nos dois temas:
     so' sobem os dois pontos que nao alcancam o minimo — a borda de 35% de
     branco (2.4:1) e o dourado do hover (4.4:1). */
  html[data-theme="auto"] .elmar-tu__btn--outline { border-color: rgba(255, 255, 255, .6); }
  html[data-theme="auto"] .elmar-tu__btn--outline:hover,
  html[data-theme="auto"] .elmar-tu__btn--outline:focus { border-color: #FFD691; color: #FFD691; }

  /* ---------- faixas douradas sutis ---------- */
  html[data-theme="auto"] .elmar-tu__alert--gold { background: #3A3020; border-color: #9A7C34; color: #BBBBBB; }
  html[data-theme="auto"] .elmar-tu__contact--gold { background: #3A3020; border-color: #9A7C34; color: #FFD691; }
  html[data-theme="auto"] .elmar-tu__contact--gold:hover { border-color: #E8A93F; color: #FFE7BC; }

  /* ---------- sombras ----------
     sombra colorida some no escuro; vira preta e mais forte. */
  html[data-theme="auto"] .elmar-tu__btn--solid { box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .75); }
  html[data-theme="auto"] .elmar-tu__deadlines { box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .8); }

  /* ---------- separador do rodape ---------- */
  html[data-theme="auto"] .elmar-tu__footlinks span { color: #999999; }
}
