/*
 * Nostalgar — camada final de navegação clássica.
 * Mantém a expressão autoral e reaproveita somente padrões de hierarquia do
 * portal clássico: moldura central, atalhos previsíveis e leitura compacta.
 */

html,
body.ns-corpo {
  max-width: 100%;
  min-width: 0 !important;
  overflow-x: hidden;
}

body.ns-noite {
  --ns-largura: min(1180px, calc(100vw - 28px));
}

.ns-topo-barra__inner,
.ns-banner__inner,
.ns-atalhos-principais__inner,
.ns-palco,
.ns-rodape__inner {
  width: var(--ns-largura);
  max-width: var(--ns-largura);
}

.ns-topo-barra__inner {
  min-height: 42px;
  padding: 5px 8px;
  box-sizing: border-box;
}

.ns-banner--alto .ns-banner__inner {
  min-height: 220px;
  padding: 24px 12px 22px;
  display: grid;
  place-content: center;
}

.ns-banner:not(.ns-banner--alto) .ns-banner__inner {
  min-height: 96px;
  padding: 11px 12px;
  display: grid;
  place-content: center;
}

.ns-banner__logo--composta {
  width: min(430px, calc(100vw - 40px));
  margin-inline: auto;
}

.ns-banner__logo--interna {
  width: min(320px, calc(100vw - 40px));
}

.ns-banner__tagline {
  margin: 7px auto 13px;
}

.ns-banner__acoes {
  gap: 8px;
}

.ns-atalhos-principais {
  position: relative;
  z-index: 8;
  color: #ded4c3;
  background: linear-gradient(#342d27, #211d19);
  border-block: 1px solid #0f0d0b;
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 2px 5px rgba(0,0,0,.4);
}

.ns-atalhos-principais__inner {
  margin: 0 auto;
  padding: 0 6px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.ns-atalhos-principais a {
  min-height: 35px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9cfbe;
  border-inline-start: 1px solid rgba(210,191,156,.11);
  font: 700 .69rem/1 Verdana, Arial, sans-serif;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.ns-atalhos-principais a:last-child {
  border-inline-end: 1px solid rgba(210,191,156,.11);
}

.ns-atalhos-principais a:hover,
.ns-atalhos-principais a.is-active {
  color: #fff4d8;
  background: linear-gradient(rgba(190,145,71,.23), rgba(126,86,35,.13));
  box-shadow: inset 0 -2px #bd8b3c;
}

.ns-palco {
  margin: 0 auto;
  padding: 14px 0 36px;
  grid-template-columns: 205px minmax(0, 1fr) 218px;
  gap: 12px;
}

.ns-lateral,
.ns-direita {
  gap: 9px;
}

.ns-lateral__caixa {
  border-color: #15120f;
  outline: 1px solid #706352;
  box-shadow: 0 3px 8px rgba(0,0,0,.32);
}

.ns-lateral__cabeca {
  min-height: 36px;
  padding: 7px 10px;
}

.ns-lateral__caixa li a {
  padding-block: 5px;
  font-size: .76rem;
  line-height: 1.35;
}

.ns-conteudo {
  min-width: 0;
}

.ns-conteudo__moldura {
  padding: 3px;
  background: #191613;
  border: 1px solid #090807;
  outline: 1px solid #756858;
  box-shadow: 0 7px 18px rgba(0,0,0,.38);
}

.ns-conteudo__cabeca {
  min-height: 48px;
  padding: 7px 15px 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: #eee6d7;
  background:
    linear-gradient(90deg, rgba(178,135,66,.18), transparent 38%),
    linear-gradient(#4b423a, #302b27);
  border: 1px solid #716252;
  border-bottom-color: #171411;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.ns-conteudo__cabeca span {
  color: #cfb47f;
  font: 700 .63rem/1.2 Verdana, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ns-conteudo__cabeca h1 {
  margin: 0;
  color: #fff7e7;
  font: 700 1.13rem/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: .025em;
  text-align: right;
  text-shadow: 0 1px #000;
}

.ns-miolo {
  min-height: 280px;
  padding: 20px 22px 25px;
  border: 1px solid #b8a78e;
  outline: 0;
  box-shadow: inset 0 0 30px rgba(66,53,39,.09);
}

.ns-home-welcome__lead {
  max-width: 62ch;
  margin: 0 auto 19px;
  color: #4d4339;
  font: 1rem/1.65 Georgia, 'Times New Roman', serif;
  text-align: center;
}

.ns-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ns-home-grid article {
  min-width: 0;
  padding: 16px 15px 14px;
  background: linear-gradient(#f6efe3, #ddd1bf);
  border: 1px solid #ac9878;
  box-shadow: inset 0 1px #fff, 0 2px 5px rgba(66,53,39,.12);
}

.ns-home-grid__step {
  display: inline-block;
  margin-bottom: 10px;
  color: #9a6d2c;
  font: 700 .69rem/1 Verdana, Arial, sans-serif;
  letter-spacing: .1em;
}

.ns-home-grid h2 {
  margin: 0 0 8px;
  font-size: .96rem;
  line-height: 1.3;
}

.ns-home-grid p {
  min-height: 6.1em;
  margin: 0 0 10px;
  color: #514a42;
  font-size: .76rem;
  line-height: 1.5;
}

.ns-home-grid a {
  font-size: .72rem;
  font-weight: 700;
}

.ns-conta__alerta {
  margin: 0 0 10px;
  padding: 9px;
  display: grid;
  gap: 3px;
  color: #ead8b4;
  background: rgba(164,108,36,.18);
  border: 1px solid rgba(210,170,101,.36);
  text-align: left;
}

.ns-conta__alerta b {
  color: #f4d18c;
  font: 700 .68rem/1.25 Verdana, Arial, sans-serif;
  text-transform: uppercase;
}

.ns-conta__alerta span {
  color: #d4cab9;
  font-size: .69rem;
  line-height: 1.4;
}

/* Cadastro e Recovery Key */
.ns-form-intro {
  margin: 0 0 14px;
  padding: 15px 17px;
  color: #3f372f;
  background: #f7f0e4;
  border: 1px solid #b7a382;
  border-left: 4px solid #9a6b29;
}

.ns-form-intro,
.ns-account-form,
.ns-form-section {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.ns-form-intro .ns-eyebrow {
  margin: 0 0 4px;
  color: #8c642d;
  font: 700 .64rem/1.2 Verdana, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ns-form-intro h2 {
  margin: 0 0 6px;
  color: #40352c;
  font-size: 1.18rem;
}

.ns-form-intro p,
.ns-form-intro li {
  font-size: .8rem;
  line-height: 1.55;
}

.ns-form-intro p:last-child,
.ns-form-intro ul:last-child {
  margin-bottom: 0;
}

.ns-account-form {
  display: grid;
  gap: 12px;
}

.ns-form-section {
  padding: 16px;
  display: grid;
  gap: 13px;
  background: rgba(255,255,255,.26);
  border: 1px solid #b6a58d;
  box-shadow: inset 0 1px rgba(255,255,255,.55);
}

.ns-form-section--compact {
  gap: 9px;
}

.ns-form-section__title {
  padding-bottom: 11px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #c8baa5;
}

.ns-form-section__title > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #fff8e9;
  background: linear-gradient(#9d753b, #6f4b20);
  border: 1px solid #5a3c1b;
  font: 700 .76rem/1 Verdana, Arial, sans-serif;
}

.ns-form-section__title div {
  display: grid;
  gap: 2px;
}

.ns-form-section__title b {
  color: #41372e;
  font: 700 .9rem/1.25 Georgia, 'Times New Roman', serif;
}

.ns-form-section__title small {
  color: #6a6056;
  font-size: .7rem;
  line-height: 1.35;
}

.ns-fields-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ns-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ns-field > span:first-child,
.ns-choice-group legend {
  color: #4f4338;
  font: 700 .72rem/1.3 Verdana, Arial, sans-serif;
}

.ns-field > small {
  color: #746a5f;
  font-size: .66rem;
  line-height: 1.35;
}

.ns-input-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ns-input-line input,
.ns-input-line select,
.ns-field > input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ns-input-line img {
  flex: 0 0 auto;
}

.ns-choice-group {
  margin: 0;
  padding: 10px 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid #c2b39e;
}

.ns-choice-group label,
.ns-check {
  color: #494139;
  font-size: .76rem;
}

.ns-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}

.ns-check input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.FormFieldError:empty {
  display: none;
}

.FormFieldError {
  color: #9b3025;
  font-size: .67rem;
  font-style: normal;
}

.ns-form-actions {
  padding-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ns-action-primary,
.ns-action-secondary {
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  font: 700 .7rem/1 Verdana, Arial, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.ns-miolo .ns-action-primary {
  color: #fff9ea;
  background: linear-gradient(#ad8141, #76501f);
  border: 1px solid #5b3b18;
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 2px 3px rgba(62,43,24,.25);
}

.ns-miolo .ns-action-secondary {
  color: #514437;
  background: #e9dfcf;
  border: 1px solid #af9b7d;
}

.ns-miolo .ns-action-primary:hover,
.ns-miolo .ns-action-secondary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .ns-palco {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .ns-direita {
    display: none;
  }
}

@media (max-width: 820px) {
  body.ns-noite {
    --ns-largura: calc(100vw - 18px);
  }
  .ns-topo-barra__atalhos,
  .ns-topo-barra__status {
    display: none;
  }
  .ns-nav__movel {
    display: block;
  }
  .ns-palco {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 10px;
  }
  .ns-lateral {
    display: none;
  }
  .ns-home-grid {
    grid-template-columns: 1fr;
  }
  .ns-home-grid p {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  body.ns-noite {
    --ns-largura: calc(100vw - 12px);
  }
  .ns-topo-barra__inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 10px;
  }
  .ns-topo-barra__marca b {
    font-size: .88rem;
  }
  .ns-bandeiras {
    display: none;
  }
  .ns-nav__movel {
    margin-left: auto;
    flex: 0 0 auto;
  }
  .ns-nav__movel-painel {
    position: fixed;
    inset: 44px 8px auto 8px;
    max-height: calc(100vh - 56px);
  }
  .ns-banner--alto .ns-banner__inner {
    min-height: 184px;
    padding: 18px 8px 16px;
  }
  .ns-banner:not(.ns-banner--alto) .ns-banner__inner {
    min-height: 84px;
    padding: 8px;
  }
  .ns-banner__logo--composta,
  .ns-banner__logo--interna {
    width: min(310px, calc(100vw - 30px));
    max-width: calc(100vw - 30px);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .ns-banner__logo-marca,
  .ns-banner__logo--interna .ns-banner__logo-marca {
    width: 54px;
    flex: 0 0 54px;
  }
  .ns-banner__logo-tipo {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
  }
  .ns-banner__logo-nome {
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
  }
  .ns-banner__selo {
    max-width: calc(100vw - 34px);
    white-space: normal;
  }
  .ns-banner__tagline {
    font-size: .83rem;
  }
  .ns-atalhos-principais {
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .ns-atalhos-principais__inner {
    width: max-content;
    max-width: none;
    justify-content: flex-start;
  }
  .ns-atalhos-principais a {
    min-height: 37px;
    padding-inline: 14px;
    white-space: nowrap;
  }
  .ns-conteudo__cabeca {
    min-height: 43px;
    padding-inline: 10px;
  }
  .ns-conteudo__cabeca span {
    display: none;
  }
  .ns-conteudo__cabeca h1 {
    width: 100%;
    font-size: 1rem;
    text-align: left;
  }
  .ns-miolo {
    min-height: 0;
    padding: 13px 11px 17px;
  }
  .ns-fields-two {
    grid-template-columns: 1fr;
  }
  .ns-form-intro,
  .ns-form-section {
    padding: 13px 12px;
  }
  .ns-form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ns-action-primary,
  .ns-action-secondary {
    width: 100%;
  }
  .ns-pagina--account .ns-miolo form,
  .ns-pagina--account .ns-miolo table,
  .ns-pagina--account .ns-miolo tbody,
  .ns-pagina--account .ns-miolo tr,
  .ns-pagina--account .ns-miolo td {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .ns-pagina--account .ns-miolo input[type="text"],
  .ns-pagina--account .ns-miolo input[type="email"],
  .ns-pagina--account .ns-miolo input[type="password"],
  .ns-pagina--account .ns-miolo select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ns-lgpd {
    padding: 6px;
  }
  .ns-lgpd__caixa {
    max-height: 42vh;
    overflow-y: auto;
    padding: 10px 11px;
    display: block;
  }
  .ns-lgpd__titulo {
    font-size: .69rem;
  }
  .ns-lgpd__texto {
    margin-bottom: 8px;
    font-size: .68rem;
    line-height: 1.35;
  }
  .ns-lgpd__acoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .ns-lgpd .ns-btn {
    min-width: 0;
    padding: 7px 5px;
    font-size: .58rem;
  }
}
