/* ══════════════════════════════════════════════════════════════════
   Área do assinante — Jornal Só Negócios
   Mesma paleta e tipografia da home (index.html).
   ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

:root {
  --p:        #2F4F4F;
  --p-m:      #4A7070;
  --p-d:      #1E3535;
  --p-t:      #E8F2F2;
  --gold:     #B8973A;
  --gold-d:   #8A6E28;
  --gold-t:   #F5EDD4;
  --paper:    #F7F5F0;
  --white:    #FFFFFF;
  --ink:      #1C2424;
  --ink-2:    #4A5555;
  --ink-3:    #7A8888;
  --border:   #D8E4E4;
  --border-s: #B8CECE;
  --alert:    #A4442E;
  --alert-t:  #FBEAE5;
  --ok:       #2E6E52;
  --ok-t:     #E3F1EA;
  --radius:   8px;
  --radius-l: 14px;
  --shadow:   0 1px 3px rgba(47,79,79,.08), 0 4px 12px rgba(47,79,79,.06);
  --shadow-l: 0 12px 34px rgba(30,53,53,.20);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

svg { width: 18px; height: 18px; fill: none; stroke: currentColor;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ─── Botões ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 11px 18px; font-size: 14px; font-weight: 600; line-height: 1;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-ouro   { background: var(--gold); color: #fff; }
.btn-ouro:hover { background: var(--gold-d); }

.btn-primario { background: var(--p); color: #fff; }
.btn-primario:hover { background: var(--p-d); }

.btn-linha { background: transparent; color: var(--p); border-color: var(--border-s); }
.btn-linha:hover { background: var(--p-t); border-color: var(--p-m); }

.btn-fantasma { background: transparent; color: rgba(255,255,255,.86); border-color: rgba(255,255,255,.28); }
.btn-fantasma:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-bloco { width: 100%; padding: 14px 18px; font-size: 15px; }

/* ══════════════════════════════════════════════════════════════
   TELA DE LOGIN
   ══════════════════════════════════════════════════════════════ */

body.login {
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(184,151,58,.16), transparent 62%),
    linear-gradient(168deg, var(--p-d) 0%, var(--p) 58%, #16292a 100%);
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.login-caixa { width: 100%; max-width: 424px; }

.login-marca { text-align: center; margin-bottom: 22px; }
.login-marca .nome {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(27px, 7vw, 34px);
  font-weight: 900; color: #fff; letter-spacing: -.4px; line-height: 1.15;
}
.login-marca .nome em { color: var(--gold); font-style: italic; }
.login-marca .sub {
  margin-top: 7px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,.62); font-weight: 500;
}

.cartao {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.cartao-faixa { height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-d) 55%, var(--p-m)); }
.cartao-corpo { padding: 28px 24px 26px; }

.cartao-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 5px;
}
.cartao-texto { font-family: 'Source Serif 4', Georgia, serif; color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }

/* Campos */
.campo { margin-bottom: 16px; }
.campo label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 7px;
}
.campo-caixa { position: relative; display: flex; align-items: center; }
.campo input {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.campo input::placeholder { color: var(--ink-3); }
.campo input:focus {
  outline: none; background: var(--white);
  border-color: var(--p-m); box-shadow: 0 0 0 3px rgba(74,112,112,.16);
}
.campo:has(.olho) input { padding-right: 48px; }

.olho {
  position: absolute; right: 6px; width: 38px; height: 38px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius); color: var(--ink-3);
}
.olho:hover { color: var(--p); background: var(--p-t); }
.olho .risco { display: none; }
.olho.is-visivel .risco { display: block; }

/* Avisos */
.aviso {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px;
  font-size: 14px; line-height: 1.5;
}
.aviso svg { margin-top: 2px; }
.aviso-erro  { background: var(--alert-t); color: #7A2E1E; border: 1px solid #EFC9BE; }
.aviso-ok    { background: var(--ok-t);    color: #1F4E3B; border: 1px solid #C3E0D2; }
.aviso-neutro{ background: var(--p-t);     color: #234040; border: 1px solid var(--border); }

.login-rodape {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  text-align: center; font-size: 14px; color: var(--ink-2);
}
.login-rodape a { color: var(--p); font-weight: 600; border-bottom: 1px solid var(--gold-t); }
.login-rodape a:hover { color: var(--gold-d); border-bottom-color: var(--gold); }
.login-rodape p + p { margin-top: 9px; }

.login-legal {
  margin-top: 20px; text-align: center;
  font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.55);
}
.login-legal a { color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.3); }

/* ══════════════════════════════════════════════════════════════
   ÁREA INTERNA
   ══════════════════════════════════════════════════════════════ */

.topo { background: var(--p-d); color: #fff; border-bottom: 3px solid var(--gold); }
.topo-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 18px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.marca-nome {
  display: block; font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 900; letter-spacing: -.3px; line-height: 1.1;
}
.marca-nome em { color: var(--gold); font-style: italic; }
.marca-sub {
  display: block; margin-top: 3px;
  font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; color: rgba(255,255,255,.6);
}

.topo-dir { display: flex; align-items: center; gap: 14px; }
.assinante { text-align: right; line-height: 1.35; }
.assinante-nome { display: block; font-size: 14px; font-weight: 600; }
.selo {
  display: inline-block; margin-top: 3px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3px;
  padding: 3px 8px; border-radius: 100px;
}
.selo-ok { background: rgba(184,151,58,.2); color: var(--gold-t); border: 1px solid rgba(184,151,58,.45); }

.conteudo { flex: 1; padding: 30px 0 52px; }

.secao + .secao { margin-top: 42px; }
.secao-cabeca {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--p);
}
.secao-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px; font-weight: 700; letter-spacing: -.2px;
}
.secao-nota { font-size: 13px; color: var(--ink-3); margin-left: auto; }

.saudacao { margin-bottom: 28px; }
.saudacao h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(25px, 5.5vw, 33px); font-weight: 900; letter-spacing: -.6px; line-height: 1.15;
}
.saudacao p {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink-2); font-size: 16.5px; margin-top: 7px; max-width: 62ch;
}

/* ─── Edição em destaque ─────────────────────────────────────── */

.destaque {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1fr;
}
.destaque-capa { position: relative; background: var(--p); min-height: 210px; }
.destaque-corpo { padding: 24px 22px 26px; }

.etiqueta {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--gold-d); background: var(--gold-t);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.destaque-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 5vw, 32px); font-weight: 900; letter-spacing: -.5px; line-height: 1.1;
}
.destaque-meta { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.destaque-chamada {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px; color: var(--ink-2); margin-top: 14px;
}
.destaque-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Capa tipográfica (quando não há imagem) */
.capa-arte {
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 70% 8%, rgba(184,151,58,.28), transparent 68%),
    linear-gradient(150deg, var(--p-d), var(--p) 62%, #16292a);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; text-align: center; padding: 26px 18px; gap: 6px;
}
.capa-arte::after {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid rgba(184,151,58,.35); border-radius: 6px; pointer-events: none;
}
.capa-arte .cabecalho {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 700; line-height: 1.2;
}
.capa-arte .cabecalho em { color: var(--gold); font-style: italic; }
.capa-arte .risca { width: 46px; height: 1px; background: rgba(184,151,58,.6); margin: 8px 0; }
.capa-arte .numero {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1;
}
.capa-arte .periodo {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin-top: 6px;
}
.capa-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ─── Grade de edições anteriores ────────────────────────────── */

.grade { display: grid; gap: 18px; grid-template-columns: 1fr; }

.edicao {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.edicao:hover { border-color: var(--border-s); box-shadow: var(--shadow-l); transform: translateY(-2px); }
.edicao-capa { position: relative; aspect-ratio: 3 / 4; background: var(--p); }
.edicao-corpo { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.edicao-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; font-weight: 700; letter-spacing: -.2px;
}
.edicao-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.edicao-acoes { display: flex; gap: 8px; margin-top: 14px; }
.edicao-acoes .btn { flex: 1; padding: 9px 10px; font-size: 13px; }

.indisponivel {
  font-size: 12.5px; color: var(--alert); background: var(--alert-t);
  border: 1px solid #EFC9BE; border-radius: var(--radius);
  padding: 8px 10px; margin-top: 13px;
}

/* ─── Aviso de sessão ────────────────────────────────────────── */

.faixa-sessao {
  background: var(--gold-t); border-bottom: 1px solid #E2D3A4;
  color: #6B5418; font-size: 13.5px; text-align: center; padding: 9px 16px;
}

/* ─── Leitor ─────────────────────────────────────────────────── */

.leitor-barra {
  background: var(--p-d); color: #fff;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 2px solid var(--gold);
}
.leitor-titulo { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 700; }
.leitor-titulo span { display: block; font-family: 'DM Sans', sans-serif; font-size: 11px;
  font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 2px; }
.leitor-acoes { display: flex; gap: 8px; align-items: center; }

.leitor-palco { flex: 1; display: flex; background: #33403f; min-height: 60vh; }
.leitor-quadro { display: none; flex: 1; width: 100%; min-height: 60vh; border: 0; }

.leitor-movel { flex: 1; padding: 44px 20px 56px; text-align: center; color: var(--paper); }
.leitor-movel .capa-mini { width: 132px; margin: 0 auto 22px; aspect-ratio: 3/4; position: relative;
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-l); }
.leitor-movel h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; }
.leitor-movel p { font-family: 'Source Serif 4', Georgia, serif; color: rgba(247,245,240,.72);
  font-size: 15px; margin: 9px auto 22px; max-width: 34ch; }

/* ─── Rodapé ─────────────────────────────────────────────────── */

.rodape { background: var(--p-d); color: rgba(255,255,255,.68); padding: 26px 0 30px; }
.rodape-inner { max-width: 1080px; margin: 0 auto; padding: 0 18px; text-align: center; }
.rodape-aviso {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 14px;
  max-width: 60ch; margin: 0 auto 14px; line-height: 1.6;
}
.rodape-links { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.rodape-links a { color: var(--gold-t); border-bottom: 1px solid transparent; }
.rodape-links a:hover { border-bottom-color: var(--gold); }
.rodape-copy { font-size: 12px; color: rgba(255,255,255,.42); margin-top: 15px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 560px) {
  .grade { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .destaque { grid-template-columns: 300px 1fr; }
  .destaque-capa { min-height: 100%; aspect-ratio: auto; }
  .destaque-corpo { padding: 32px 30px; }
  .cartao-corpo { padding: 34px 32px 30px; }
  .conteudo { padding: 40px 0 64px; }
  .leitor-quadro { display: block; }
  .leitor-movel { display: none; }
}

@media (min-width: 980px) {
  .grade { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 559px) {
  .topo-inner { justify-content: center; text-align: center; }
  .topo-dir { width: 100%; justify-content: space-between; }
  .assinante { text-align: left; }
  .rodape-links { flex-direction: column; gap: 7px; }
  .rodape-links span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .topo, .rodape, .destaque-acoes, .edicao-acoes, .faixa-sessao { display: none; }
}
