/* Start Grana | regra de ouro (/regra-de-ouro/) */
.ro { max-width: 960px; margin: 0 auto; padding: 0 20px 28px; }
.ro-trilha { font-size: 13px; color: var(--muted); padding-top: 20px; display: flex; gap: 8px; }
.ro-trilha a { color: var(--muted); text-decoration: none; }
.ro-cab { padding: 22px 0 4px; }
.ro-cab h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-top: 16px; }
.ro-lide { font-size: 17px; line-height: 1.65; color: var(--text2); margin-top: 14px; max-width: 760px; }
.ro-card { background: var(--surface, #fff); border-radius: 24px; box-shadow: var(--shadow); padding: 24px 26px; margin-top: 16px; }
.ro-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.ro-card > p { color: var(--text2); font-size: 15px; line-height: 1.6; margin-top: 6px; }
.ro-form label { display: flex; flex-direction: column; font-size: 14px; font-weight: 800; color: #141414; }
.ro-form label span { font-size: 12px; font-weight: 500; color: #6a675d; margin: 2px 0 6px; }
.ro-form input { border: 1px solid #e4e4e0; background: #fff; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 600; }
.ro-form input:focus { outline: 2px solid #ffc400; border-color: #ffc400; }
.ro-renda { margin-top: 14px; max-width: 360px; }
.ro-renda input { font-size: 20px; }
.ro-gastos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.ro-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.ro-nums div { background: #f4f4f1; border-radius: 16px; padding: 12px 14px; }
.ro-nums span { display: block; font-size: 12px; font-weight: 700; color: #6a675d; }
.ro-nums strong { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; letter-spacing: -0.01em; }
.ro-bom { color: #15803d; } .ro-medio { color: #b45309; } .ro-ruim { color: #dc2626; }
.ro-barra { position: relative; display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: #ecece8; margin-top: 18px; }
.ro-barra i { display: block; height: 100%; }
.ro-barra b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #141414; font-size: 0; }
.ro-l-gasto { background: #141414; } .ro-l-ouro { background: #ffc400; } .ro-l-livre { background: #16a34a; }
.ro-leg { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #3a382f; margin-top: 10px; }
.ro-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -8px; }
/* !important: o guia.css força fundo branco em classes terminadas em "-card" */
.ro-porta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: #141414 !important; color: #fff; }
.ro-porta h2 { color: #ffc400; }
.ro-porta p { color: #d6d4cc; font-size: 15px; line-height: 1.6; margin-top: 8px; }
.ro-lead { display: grid; gap: 8px; }
.ro-lead input { border: 0; border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; }
.ro-lead .ro-isca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ro-aceite { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #d6d4cc; line-height: 1.45; }
.ro-aceite input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.ro-lead button { border: 0; background: #ffc400; color: #141414; border-radius: 999px; padding: 14px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.ro-lead button:disabled { opacity: .6; }
.ro-msg { font-size: 13px; color: #fca5a5; margin: 0; min-height: 0; }
.ro-msg:empty { display: none; }
.ro-diag { border-radius: 16px; padding: 16px 18px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: #fff; }
.ro-diag b { display: block; font-size: 18px; margin-bottom: 4px; }
.ro-d-bom { background: #15803d; } .ro-d-medio { background: #b45309; } .ro-d-ruim { background: #dc2626; }
.ro-sug { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--text2); }
.ro-cats { display: grid; gap: 14px; margin-top: 16px; }
.ro-cat-topo { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.ro-cat-topo span { font-weight: 700; color: #3a382f; }
.ro-cat-barra { position: relative; height: 12px; border-radius: 999px; background: #ecece8; margin-top: 6px; }
.ro-cat-barra i { display: block; height: 100%; border-radius: 999px; background: #141414; }
.ro-cat-barra i.ro-passou { background: #dc2626; }
.ro-cat-barra em { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: #ffc400; }
.ro-cat small { display: block; font-size: 12px; color: #6a675d; margin-top: 4px; }
.ro-sim { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ro-sim label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; }
.ro-sim select, .ro-sim input { border: 1px solid #e4e4e0; background: #fff; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; min-width: 200px; }
.ro-proj { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.ro-proj div { background: #ffc400; border-radius: 16px; padding: 14px 16px; color: #141414; }
.ro-proj span { display: block; font-size: 13px; font-weight: 800; }
.ro-proj strong { display: block; font-size: 22px; font-weight: 800; margin-top: 2px; letter-spacing: -0.02em; }
.ro-proj small { display: block; font-size: 12px; margin-top: 4px; line-height: 1.4; }
.ro-plano { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ro-plano label { display: flex; gap: 10px; align-items: center; background: #f4f4f1; border-radius: 12px; padding: 12px 14px; font-size: 15px; cursor: pointer; }
.ro-plano input { width: 18px; height: 18px; flex: none; accent-color: #141414; }
.ro-plano input:checked + * , .ro-plano label:has(input:checked) { text-decoration: line-through; color: #6a675d; }
.ro-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ro-acoes button, .ro-acoes a { border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; }
.ro-acoes button { background: #141414; color: #fff; } .ro-acoes a { background: #ffc400; color: #141414; }
.ro-completa { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #ffc400 !important; }
.ro-completa p { color: #141414; font-size: 15px; line-height: 1.55; margin-top: 6px; max-width: 600px; }
.ro-completa a { background: #141414; color: #fff; border-radius: 999px; padding: 13px 22px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ro-nota { font-size: 13px; color: #6a675d; line-height: 1.55; margin-top: 18px; }
@media (max-width: 720px) { .ro-card { padding: 20px 16px; border-radius: 20px; } .ro-porta { grid-template-columns: 1fr; } }
@media print {
  header.sgm, .sg-tarja, footer, .ro-porta, .ro-acoes, .ro-trilha, .sgal { display: none !important; }
  .ro-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  body { background: #fff; }
}
