/* Réplica visual — Download DIRPF (gov.br / Receita Federal) */
:root {
  --color-primary: #1351b4;
  --color-primary-dark: #0c326f;
  --color-primary-darker: #071d41;
  --color-text: #555;
  --color-heading: #0c326f;
  --color-card-title: rgb(21, 50, 111);
  --color-success: #168821;
  --color-success-hover: #5cac64;
  --bg-discreta: #f8f8f8;
  --border-card: #dfdfdf;
  --max-content: 1152px;
  --max-row: 1176px;
  --font-stack: "Raleway", "Rawline", helvetica, arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text);
  background: #fff;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip links */
.govbr-skip-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  z-index: 9999;
  white-space: nowrap;
  transform: translateY(-100%);
  transition: transform 150ms ease-out;
  pointer-events: none;
}

.govbr-skip-menu:focus-within {
  transform: translateY(0);
  pointer-events: auto;
}

.govbr-skip-menu a {
  background-color: var(--color-primary);
  color: #fff;
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: auto;
}

.govbr-skip-menu a:first-of-type {
  border-radius: 0 0 0 6px;
}

.govbr-skip-menu a:last-of-type {
  border-radius: 0 0 6px 0;
}

.govbr-skip-menu a:focus,
.govbr-skip-menu a:hover {
  background-color: #40e0d0;
  color: #333;
  outline: 2px solid #40e0d0;
  outline-offset: -2px;
}

.govbr-skip-menu .access-key {
  font-size: 14px;
  display: inline-block;
  height: 20px;
  line-height: 20px;
  background-color: #dbe8fb;
  color: var(--color-primary-darker);
  font-weight: 500;
  text-align: center;
  width: 20px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Barra superior gov */
.barra-topo {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1.4rem;
  padding: 8px 16px;
}

.barra-topo-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.barra-topo-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.barra-gov-webp {
  display: block;
  height: 26px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .barra-gov-webp {
    height: 30px;
    max-width: 100px;
  }
}

@media (min-width: 1024px) {
  .barra-topo-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .barra-topo-inner {
    max-width: var(--max-content);
    padding: 0;
  }
}

.barra-topo a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Header principal */
#site-header {
  background: #fff;
  position: relative;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
}

@media (min-width: 768px) {
  .header-main {
    min-height: 88px;
    padding: 16px 40px;
  }
}

@media (min-width: 1280px) {
  .header-main {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 16px 0;
  }
}

.site-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-menu-fake {
  color: var(--color-primary);
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.btn-menu-fake:hover {
  background: #dbe8fb;
}

.site-name a {
  color: #333;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 400;
}

@media (min-width: 768px) {
  .site-name a {
    font-size: 2rem;
    line-height: 1.2;
  }
}

@media (min-width: 1280px) {
  .site-name a {
    font-size: 2.4rem;
  }
}

.busca-header {
  flex: 1;
  min-width: 200px;
  max-width: 384px;
}

.busca-header form {
  display: flex;
  align-items: center;
  background: #ededed;
  border: 1px solid #ededed;
  border-radius: 6px;
  height: 54px;
  overflow: hidden;
}

.busca-header input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 1.6rem;
  outline: none;
}

.busca-header button[type="submit"] {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.8rem;
}

.busca-header button[type="submit"]:hover {
  background: #dbe8fb;
}

/* Breadcrumbs */
#breadcrumbs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#breadcrumbs .content {
  padding: 12px 16px;
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  #breadcrumbs .content {
    padding: 12px 40px;
  }
}

@media (min-width: 1280px) {
  #breadcrumbs .content {
    max-width: var(--max-content);
    padding: 12px 0;
  }
}

#breadcrumbs .home {
  display: inline;
}

#breadcrumbs .home a {
  color: var(--color-primary);
}

#breadcrumbs .sep::before {
  content: ">";
  color: #9e9d9d;
  padding: 0 8px;
  font-size: 1.2rem;
}

#breadcrumbs .home.sep::before {
  content: none;
  padding: 0;
}

#breadcrumbs-current {
  font-weight: 600;
}

/* Wrapper principal */
#wrapper {
  padding-top: 22px;
}

#main {
  width: 100%;
  padding: 0;
}

#main-content {
  display: block;
}

#content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  #content {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  #content {
    max-width: var(--max-content);
    padding: 0;
  }
}

.documentFirstHeading {
  font-size: 3.6rem;
  line-height: 4rem;
  font-weight: 600;
  color: var(--color-heading);
  padding-bottom: 10px;
  margin: 0;
}

@media (max-width: 575px) {
  .documentFirstHeading {
    font-size: 2.4rem;
    line-height: 1.2;
  }
}

.documentDescription {
  font-weight: 400;
  font-size: 1.8rem;
  color: #555;
  line-height: normal;
  margin: 0 0 16px;
  padding-bottom: 8px;
}

#content-core {
  padding-top: 32px;
}

/* Grid Cover */
.portal-cover .row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  margin-bottom: 16px;
  margin-top: 16px;
}

.portal-cover .row-content {
  width: 100%;
  margin: 0 auto;
  padding: 0 8px;
  max-width: var(--max-row);
}

@media (min-width: 1024px) {
  .portal-cover .row-content {
    padding: 0 28px;
  }
}

@media (min-width: 1280px) {
  .portal-cover .row-content {
    width: 1176px;
    padding: 0;
  }
}

@media (min-width: 768px) {
  .portal-cover .row .row-content {
    display: flex;
    flex-wrap: wrap;
  }
}

.portal-cover .column {
  width: 100%;
  padding: 0 8px 16px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .portal-cover .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .portal-cover .col-md-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
  }

  .portal-cover .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Faixa cinza largura total (como no gov.br) */
.portal-cover .row.linha-discreta {
  background-color: var(--bg-discreta);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 24px 16px 8px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .portal-cover .row.linha-discreta {
    padding-top: 32px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .portal-cover .row.linha-discreta {
    padding-top: 40px;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
}

.cover-richtext-tile h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px;
}

.cover-richtext-tile h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin: 28px 0 20px;
}

.cover-richtext-tile p {
  margin: 0 0 20px;
  line-height: 1.75;
}

.cover-richtext-tile .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.is-hidden {
  display: none !important;
}

.cpf-check {
  margin-bottom: 20px;
}

.cpf-check label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.cpf-check-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cpf-check-row input {
  height: 44px;
  min-width: 240px;
  max-width: 320px;
  width: 100%;
  border: 1px solid #c5c5c5;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 1.6rem;
  font-family: var(--font-stack);
}

.cpf-check-row .br-button {
  min-height: 44px;
  padding: 10px 20px;
}

.cpf-feedback {
  margin: 12px 0 8px;
  min-height: 24px;
  font-size: 1.4rem;
}

.cpf-dados {
  background: #f7f7f7;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 12px 16px;
}

.cpf-dados p {
  margin: 6px 0;
}

.br-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  height: 40px;
  padding: 0 40px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}

button.br-button {
  appearance: none;
  -webkit-appearance: none;
}

.cover-richtext-tile .btn-row .br-button {
  height: auto;
  min-height: 44px;
  line-height: 1.35;
  padding: 12px 28px;
  max-width: 100%;
}

.br-button:hover {
  text-decoration: none;
}

.br-button.primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.br-button.primary:hover {
  background: #dbe8fb;
  color: var(--color-primary);
}

.br-button.secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.br-button.secondary:hover {
  background: #dbe8fb;
}

.mr-3 {
  margin-right: 16px;
}

/* Cards RFB (download) */
.rfb_container {
  display: flex;
  justify-content: center;
}

.rfb_card {
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  min-height: 120px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px 0;
  background: #fff;
  padding: 20px;
  margin: 8px auto;
}

.rfb_header {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: left;
  color: var(--color-card-title);
}

.rfb_subheader {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
}

.rfb_decaida {
  box-sizing: border-box;
  width: 80px;
  height: 16px;
  float: right;
  font-size: 9px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border-radius: 3px;
  background-color: #9e0000;
  color: #fff;
}

.rfb_card hr {
  border: 0;
  height: 1px;
  background: #ccc;
  margin: 12px 0;
}

.rfb_desc {
  font-size: 13px;
  font-weight: normal;
  text-align: left;
  margin: 14px 0;
  clear: both;
}

.rfb_btn_container {
  display: flex;
  justify-content: center;
  padding: 10px;
}

button.rfb_btn_magic,
button.rfb_ositem {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.rfb_ositem {
  background: transparent;
  border: none;
}

.rfb_btn_magic {
  box-sizing: border-box;
  display: inline-block;
  height: 60px !important;
  padding: 0 20px !important;
  margin: 10px 0 !important;
  background: var(--color-success) !important;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px 0 !important;
  border: 10px solid #f0f0f0 !important;
  border-radius: 40px !important;
  font-family: var(--font-stack);
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 40px !important;
  color: #fff !important;
  text-align: center !important;
  text-decoration: none !important;
  overflow: hidden;
}

.rfb_btn_magic:hover {
  text-decoration: none !important;
  background: var(--color-success-hover) !important;
}

.rfb_btn_magic:active {
  background: #aed5b1 !important;
  box-shadow: none !important;
}

.rfb_btn_magic .fab {
  float: left;
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  margin-right: 10px;
}

.rfb_header2 {
  font-size: 12px;
  font-weight: bold;
  text-align: left;
  margin: 8px 0 6px;
}

.rfb_osbar {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
}

.rfb_ositem {
  min-width: 76px;
  height: 68px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600 !important;
  color: #555;
  border-radius: 6px;
  text-decoration: none;
  color: rgb(85, 85, 85);
}

.rfb_ositem:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0 2px 4px 0;
  text-decoration: none;
}

.rfb_ositem .fab,
.rfb_ositem .far {
  font-size: 30px;
  display: block;
  margin-bottom: 4px;
}

/* Aviso legal */
.legal-footer {
  text-align: center;
  padding: 0 0 40px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Rodapé */
#portal-footer {
  clear: both;
  background-color: var(--color-primary-darker);
  color: #fff;
  padding: 48px 16px 0;
  font-size: 1.4rem;
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

#portal-footer a {
  color: #fff !important;
}

#portal-footer a:hover {
  color: #5992ed !important;
  text-decoration: none;
}

.footer-logo {
  width: 165px;
  height: 60px;
  margin-bottom: 32px;
  background: url("govbr.png") no-repeat left center;
  background-size: contain;
}

.footer-simple {
  padding-bottom: 40px;
}

.footer-simple ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.footer-simple li {
  margin-bottom: 8px;
}

.back-to-top {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  z-index: 12;
}

.back-to-top a {
  background: var(--color-primary);
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.back-to-top a:hover {
  background: #dbe8fb;
  color: var(--color-primary);
}
