/* ============================================================================
   Central de Ajuda — Baú do Milhão | Afiliados
   Tema estático inspirado no tema Zendesk público da referência.
   ============================================================================ */
:root {
  --brand-orange: #F48120;
  --brand-yellow: #F48120;
  --brand-navy: #052044;
  --brand-blue: #0A4E9B;
  --brand-link: #2B8EB1;
  --text: #333333;
  --text-muted: #666666;
  --text-invert: #FFFFFF;
  --bg: #FFFFFF;
  --bg-soft: #EEF3F6;
  --border: #DDDDDD;
  --font-sans: "Open Sans", Arial, sans-serif;
  --maxw: 1160px;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 400;
  margin-top: 0;
}
h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; }
a { color: var(--brand-link); text-decoration: none; }
a:hover, a:active, a:focus { text-decoration: none; }
img { border-style: none; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
input, textarea { color: #000; font-size: 14px; }

.wrap {
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-yellow); color: var(--brand-navy);
  padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--brand-orange);
  border-bottom: 1px solid rgba(255,255,255,.85);
}
.site-header .wrap {
  min-height: 71px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; max-height: 37px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.header-nav .nav-link,
.header-nav .btn-signin {
  color: #fff;
  font-size: 14px;
  padding: 0 10px;
}
.header-nav .nav-link:hover,
.header-nav .btn-signin:hover { color: #fff; text-decoration: underline; }
.btn-signin { background: transparent; border: 0; }

/* -------------------------------------------------------------------- Hero */
.hero {
  width: 100%;
  height: 300px;
  padding: 0 20px;
  background-color: var(--brand-orange);
  color: var(--brand-navy);
  text-align: center;
}
.hero-image {
  background-image: url("img/hero-fundo.png");
  background-position: center;
  background-size: cover;
}
.hero-inner {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  max-width: 450px;
}
.hero h1 {
  margin: 0 0 10px;
  color: var(--brand-navy);
  font-size: 2.3em;
  font-weight: 700;
  line-height: 1.1;
}
.hero p.hero-sub {
  max-height: 55px;
  overflow: hidden;
  margin: 10px 0 25px;
  color: var(--brand-navy);
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.35;
}
.search-box { position: relative; max-width: 450px; margin: 0 auto; }
.search-box input[type="search"] {
  width: 100%;
  height: 50px;
  padding: 10px 145px 10px 15px;
  color: var(--text-muted);
  background: #f9f9f9;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  outline: none;
  font-weight: 300;
}
.search-box input[type="search"]:focus { border-color: var(--brand-navy); }
.search-box button {
  position: absolute;
  top: 1px;
  right: 1px;
  height: 48px;
  min-width: 125px;
  padding: 0 26px;
  overflow: hidden;
  color: #fff;
  background: var(--brand-navy);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.search-box button:hover { background: var(--brand-blue); }

/* --------------------------------------------------------------- Breadcrumbs */
.breadcrumbs {
  margin: 0 0 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline; font-size: 14px; }
.breadcrumbs li + li::before { content: " > "; margin: 0 4px; }
.breadcrumbs li[aria-current] { color: var(--text); }
.breadcrumbs a { color: var(--brand-link); }

/* -------------------------------------------------------------------- Home */
main { min-height: 35vh; padding-bottom: 40px; }
.home__categories { padding: 50px 0; background: var(--bg-soft); }
.home-promoted { padding: 15px 0 35px; }
.section-title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 700;
}
.home__categories .section-title { text-align: left; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}
.category-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 218px;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 28px 26px 24px;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid #E1E6EF;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(5, 32, 68, .055);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: category-reveal .55s ease both;
}
.category-card::before {
  position: absolute;
  z-index: -1;
  top: -85px;
  right: -65px;
  width: 190px;
  height: 190px;
  content: "";
  background: radial-gradient(circle, rgba(10, 78, 155, .10), transparent 68%);
  opacity: 0;
  transition: opacity .25s ease;
}
.category-card::after {
  position: absolute;
  right: 26px;
  bottom: 0;
  left: 26px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-yellow));
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: scaleX(.15);
  transform-origin: center;
  transition: opacity .25s ease, transform .25s ease;
}
.category-card:hover,
.category-card:focus-visible {
  border-color: var(--brand-blue);
  box-shadow: 0 16px 30px rgba(10, 78, 155, .15);
  outline: 3px solid rgba(10, 78, 155, .22);
  outline-offset: 3px;
  text-decoration: none;
  transform: translateY(-5px);
}
.category-card:hover { border-color: var(--brand-blue); box-shadow: 0 16px 30px rgba(10, 78, 155, .14); text-decoration: none; transform: translateY(-5px); }
.category-card:hover::before, .category-card:hover::after { opacity: 1; }
.category-card:hover::after { transform: scaleX(1); }
.category-card h3 { position: relative; margin: 0 0 10px; color: var(--brand-blue); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.category-card p { position: relative; margin: 0; color: var(--text-muted); font-size: .98rem; line-height: 1.55; }
.category-card .count { position: relative; display: block; margin-top: auto; padding-top: 18px; color: var(--brand-yellow); font-size: .88rem; font-weight: 700; }
.category-card:nth-child(2) { animation-delay: .06s; }
.category-card:nth-child(3) { animation-delay: .12s; }
.category-card:nth-child(4) { animation-delay: .18s; }
.category-card:nth-child(5) { animation-delay: .24s; }
.category-card:nth-child(6) { animation-delay: .30s; }

@keyframes category-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- Article lists */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li {
  position: relative;
  padding: 0 0 0 25px;
  border-bottom: 1px solid var(--border);
}
.article-list li::before {
  content: "▣";
  position: absolute;
  left: 0;
  color: var(--brand-navy);
  font-size: 12px;
}
.article-list li:last-child { border-bottom: 0; }
.article-list a { display: block; padding: 15px 0; color: var(--text); }
.article-list a:hover { color: var(--brand-link); }
.promoted { margin-top: 20px; }
.promoted .article-list { columns: 2; column-gap: 50px; }
.promoted .article-list li { break-inside: avoid; }

/* ------------------------------------------------------------ Category pages */
.section-block {
  margin: 15px 0;
  padding: 30px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.section-block > h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.section-block > h2 a { color: var(--text); }
.see-all {
  display: block;
  margin: 10px 0 5px;
  padding: 6px 15px;
  color: #fff;
  background: var(--brand-navy);
  border-radius: var(--radius);
  text-align: center;
}
.section-list { margin: 40px 0; padding: 25px; background: var(--bg-soft); border-radius: var(--radius-sm); }

/* --------------------------------------------------------------- Article page */
.article-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 40px;
  margin-top: 20px;
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 20px;
  padding: 25px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.article-sidebar h2 {
  margin: 0 0 15px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.article-sidebar ul { list-style: none; margin: 0; padding: 0; }
.article-sidebar li { position: relative; padding-left: 25px; }
.article-sidebar li::before {
  content: "▣";
  position: absolute;
  left: 0;
  color: var(--brand-navy);
  font-size: 12px;
}
.article-sidebar a { display: block; padding: 8px 0; color: var(--text); font-size: .95rem; line-height: 1.45; }
.article-sidebar a:hover { color: var(--brand-link); }
.article-sidebar a.is-current { color: var(--brand-navy); font-weight: 700; }
.article-header { margin: 0 0 20px; }
.article-header h1 { margin: 0 0 12px; color: var(--text); font-size: 32px; font-weight: 600; line-height: 1.2; }
.article-meta { list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: .9rem; }
.article-meta li { display: inline; }
.article-meta li + li::before { content: "·"; margin: 0 10px; }
.article-body { max-width: 100%; font-size: 1rem; overflow-wrap: anywhere; }
.article-body img { height: auto; max-width: 100%; }
.article-body ul, .article-body ol { margin: 20px 0 20px 20px; padding-left: 20px; list-style-position: outside; }
.article-body li { margin-bottom: 8px; }
.article-body table { max-width: 100%; border-collapse: collapse; }
.article-body td, .article-body th { max-width: 100%; }
.article-body h2 { margin: 40px 0 14px; font-size: 1.5rem; font-weight: 700; }
.article-body h3 { margin: 32px 0 12px; color: var(--brand-navy); font-size: 1.2rem; font-weight: 700; }
.article-body h4 { margin: 24px 0 8px; font-size: 1.05rem; font-weight: 700; }
.article-body p { margin: 0 0 16px; }
.article-body > *:first-child { margin-top: 0; }

/* Classes mantidas para artigos ricos já importados ou futuros. */
.hero-block { margin-bottom: 28px; padding: 34px 30px; color: #fff; background: var(--brand-navy); border-radius: var(--radius); text-align: center; }
.hero-block h2 { margin: 0 0 8px; color: #fff; }
.hero-block .lead { margin: 0; color: rgba(255,255,255,.9); }
.lead { font-size: 1.12rem; color: var(--text-muted); }
.muted { color: var(--text-muted); font-size: .92rem; }
.legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .8rem; }
.highlight { padding: 14px 18px; background: #fff7e0; border-radius: var(--radius-sm); font-weight: 600; }
.callout { margin: 22px 0; padding: 18px 22px; background: #eef3f6; border-left: 5px solid var(--brand-navy); border-radius: var(--radius-sm); }
.callout-warning { background: #fff7e0; border-left-color: var(--brand-yellow); }
.callout p:last-child { margin-bottom: 0; }
.prize-card, .combo-card { margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--border); border-left: 5px solid var(--brand-yellow); border-radius: var(--radius); }
.prize-head, .combo-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.prize-name, .combo-name { color: var(--brand-navy); font-size: 1.1rem; font-weight: 800; }
.prize-value { padding: 7px 16px; color: var(--brand-navy); background: var(--brand-yellow); border-radius: 999px; font-weight: 800; }
ol.steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: step; }
ol.steps li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; padding: 16px 18px; background: var(--bg-soft); border-radius: var(--radius-sm); }
ol.steps .step-n { display: grid; flex-shrink: 0; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--brand-navy); border-radius: 50%; font-weight: 700; }
ul.check-list { list-style: none; padding: 0; }
ul.check-list li { position: relative; margin-bottom: 10px; padding-left: 30px; }
ul.check-list li::before { content: "✓"; position: absolute; left: 0; color: #1f9d57; font-weight: 800; }

/* -------------------------------------------------------------- Article end */
.related h2 { margin: 40px 0 12px; font-size: 1.15rem; font-weight: 700; }
.article-footer { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border); }
.ask-more { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; background: var(--bg-soft); border-radius: var(--radius); }
.ask-more p { margin: 0; font-weight: 600; }
.back-to-top { display: inline-block; margin-top: 22px; color: var(--brand-link); font-weight: 600; font-size: .9rem; }
.btn { display: inline-block; padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius); text-align: center; cursor: pointer; font-size: 14px; font-weight: 600; }
.btn-primary, .btn-secondary { color: #fff; background: var(--brand-navy); border-color: var(--brand-navy); }
.btn-primary:hover, .btn-secondary:hover { color: #fff; background: #000; }
.btn-outline { color: var(--brand-navy); background: transparent; border-color: var(--brand-navy); }
.btn-outline:hover { color: #fff; background: var(--brand-navy); }

/* ------------------------------------------------------------------- Footer */
.site-footer { margin-top: 30px; padding: 50px 0 0; color: #fff; background: var(--brand-yellow); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.footer-cols h3 { margin: 0 0 14px; color: #fff; font-size: .95rem; font-weight: 700; }
.footer-cols h3::after { content: ""; display: block; width: 50px; height: 2px; margin-top: 10px; background: #fff; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 5px 0; line-height: 1.2; }
.footer-cols a { color: #fff; font-size: .9rem; }
.footer-cols a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-social a { display: grid; width: 35px; height: 35px; place-items: center; color: #fff; border: 1.5px solid #fff; border-radius: 3px; }
.footer-social a:hover { color: var(--text); background: #fff; }
.footer-social a svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 35px; padding: 14px 0; color: #fff; background: var(--brand-orange); font-size: .9em; text-align: center; }
.footer-bottom a { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ Forms */
.pending-note { margin: 20px 0; padding: 22px 26px; background: #fff7e0; border: 1px dashed var(--brand-yellow); border-radius: var(--radius); }
.pending-note p { margin: 0 0 10px; }
.pending-note p:last-child { margin-bottom: 0; }
.ticket-form { max-width: 700px; padding: 30px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.ticket-form input, .ticket-form textarea { width: 100%; max-width: 640px; padding: 10px; border: 1px solid #ddd; border-radius: var(--radius-sm); }
.ticket-form input:focus, .ticket-form textarea:focus { outline: none; border-color: var(--brand-navy); }

/* --------------------------------------------------------------- Responsivo */
@media (min-width: 1024px) {
  body > main { min-height: 65vh; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-sidebar { position: static; }
  .promoted .article-list { columns: 1; }
}
@media (max-width: 767px) {
  .wrap { width: 90%; }
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .header-nav { width: 100%; justify-content: flex-end; }
  .header-nav .nav-link, .header-nav .btn-signin { padding: 0 7px; font-size: 13px; }
  .hero { height: 300px; }
  .hero h1 { font-size: 1.85em; }
  .hero p.hero-sub { font-size: 1em; }
  .search-box input[type="search"] { padding-right: 125px; }
  .search-box button { min-width: 112px; padding: 0 17px; }
  .category-grid { grid-template-columns: 1fr; gap: 16px; margin: 0; }
  .category-card { min-height: 185px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .article-header h1 { font-size: 26px; }
  .article-body table { display: block; overflow-x: auto; }
  .ask-more { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .category-card, .category-card::before, .category-card::after {
    animation: none;
    transition: none;
  }
}
@media print {
  .site-header, .hero, .site-footer, .article-sidebar, .ask-more, .back-to-top { display: none; }
  .article-layout { display: block; }
}

/* Ponto redondo nas listas de artigos de todas as páginas */
.article-list li,
.section-list li,
.section-lists li,
.article-sidebar li,
.quick-articles li {
  position: relative;
  padding-left: 25px !important;
}

/* Marcadores em formato de ponto */
.article-list li::before,
.article-list li:before,
.section-list li::before,
.section-list li:before,
.section-lists li::before,
.section-lists li:before,
.article-sidebar li::before,
.article-sidebar li:before,
.article-sidebar ul > li::before,
.article-sidebar ul > li:before,
.quick-articles li::before,
.quick-articles li:before,
.quick-articles ul > li > a::before,
.quick-articles ul > li > a:before,
.promoted-articles-item a::before,
.promoted-articles-item a:before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  padding: 0;
  background: var(--brand-navy);
  border-radius: 50%;
  transform: translateY(-50%);
}
