/* ═══════════════════════════════════════════════════════
   GRIMORIO.PT — Estilo da app
   Paleta: pergaminho creme + bordô + dourado. Legibilidade primeiro.
   ═══════════════════════════════════════════════════════ */
/* Fontes alojadas no próprio site (sem pedidos à Google — mais rápido e RGPD) */
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fontes/eb-garamond-600.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fontes/eb-garamond-700.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fontes/lora-400.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: italic; font-display: swap; src: url('/assets/fontes/lora-400-italico.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 600 700; font-style: normal; font-display: swap; src: url('/assets/fontes/lora-600.woff2') format('woff2'); }

:root {
  --fundo: #fbf3dc;
  --papel: #fffaee;
  --papel-2: #f6ead0;
  --texto: #1a1a1a;
  --texto-2: #463a33;
  --bordo: #7a1010;
  --bordo-esc: #5c0b0b;
  --bordo-claro: #9b2020;
  --dourado: #b8912f;
  --dourado-esc: #7d6118;
  --linha: #e4d3a6;
  --sombra: 0 1px 2px rgba(60, 30, 10, .08), 0 6px 18px rgba(60, 30, 10, .07);
  --raio: 12px;
  --letra-base: 18px;
  --f-titulo: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --f-texto: 'Lora', Georgia, 'Times New Roman', serif;
  --largura-texto: 46rem;
  --largura: 72rem;
  --barra-app: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--letra-base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: calc(var(--barra-app) + env(safe-area-inset-bottom));
}
img, svg { max-width: 100%; }
a { color: var(--bordo); text-underline-offset: 3px; }
a:hover { color: var(--bordo-esc); }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 0; background: var(--bordo); color: #fff; padding: .6rem 1rem; z-index: 100; }
.saltar:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--f-titulo); color: var(--bordo); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: .3rem 0 .6rem; }
h2 { font-size: clamp(1.5rem, 4.4vw, 1.9rem); margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }

/* ── Topo ───────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 40;
  background: var(--bordo);
  border-bottom: 3px solid var(--dourado);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.topo-in {
  max-width: var(--largura); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff7e2; flex-shrink: 0; }
.logo-marca {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fundo); color: var(--bordo);
  border: 2px solid var(--dourado);
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.6rem; line-height: 1;
}
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-nome { font-family: var(--f-titulo); font-size: 1.55rem; font-weight: 700; letter-spacing: .02em; }
.logo-sub { font-family: var(--f-titulo); font-size: .82rem; color: #f0d98f; font-variant: small-caps; letter-spacing: .08em; }
.menu { display: none; flex: 1; justify-content: center; gap: .2rem; }
.menu a {
  color: #fff7e2; text-decoration: none;
  font-family: var(--f-titulo); font-weight: 600; font-size: 1.1rem;
  font-variant: small-caps; letter-spacing: .06em;
  padding: .45rem .7rem; border-radius: 6px;
}
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 -2px 0 var(--dourado); }
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.btn-icone { color: #fff7e2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.btn-icone:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── Painel de pesquisa ─────────────────────────── */
.pesquisa-painel { position: sticky; top: 64px; z-index: 39; background: var(--papel); border-bottom: 2px solid var(--linha); box-shadow: var(--sombra); padding: .8rem 1rem; }
.pesquisa-painel .pesquisa-form { max-width: var(--largura-texto); margin: 0 auto; display: flex; gap: .5rem; }
.pesquisa-painel .sugestoes { max-width: var(--largura-texto); margin: .4rem auto 0; position: static; }
.pesquisa-form input, .heroi-pesquisa input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 1.05rem; color: var(--texto);
  padding: .8rem 1rem; border: 2px solid var(--linha); border-radius: 10px; background: #fff;
}
.pesquisa-form input:focus, .heroi-pesquisa input:focus { border-color: var(--bordo); outline: none; box-shadow: 0 0 0 3px rgba(122, 16, 16, .15); }
.pesquisa-form button, .heroi-pesquisa button {
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.1rem;
  background: var(--bordo); color: #fff; border: 0; border-radius: 10px; padding: 0 1.1rem; cursor: pointer; min-height: 52px;
}
.pesquisa-form .fechar { background: transparent; color: var(--texto-2); font-size: 1.3rem; padding: 0 .6rem; }

.sugestoes {
  list-style: none; margin: .3rem 0 0; padding: .3rem; background: #fff;
  border: 2px solid var(--linha); border-radius: 10px; box-shadow: var(--sombra);
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30; text-align: left;
}
.sugestoes a { display: block; padding: .6rem .8rem; border-radius: 8px; text-decoration: none; color: var(--texto); }
.sugestoes a:hover, .sugestoes a.foco { background: var(--papel-2); }
.sugestoes small { display: block; color: var(--texto-2); font-size: .82rem; }

/* ── Estrutura geral ────────────────────────────── */
main { display: block; }
.bloco, .relacionados, .lista-seccao { max-width: var(--largura); margin: 2.2rem auto; padding: 0 1rem; }
.largura-texto { max-width: var(--largura-texto); margin-left: auto; margin-right: auto; padding: 0 1rem; }
.titulo-bloco { font-size: 1.65rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.titulo-bloco::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--dourado), transparent); }
.titulo-bloco small { font-family: var(--f-texto); font-size: .9rem; color: var(--texto-2); font-weight: 400; }
.sobre-titulo { font-family: var(--f-titulo); font-variant: small-caps; letter-spacing: .12em; color: var(--dourado-esc); font-weight: 700; margin: 0; font-size: 1.05rem; }

/* ── Botões ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.12rem; line-height: 1.2;
  padding: .75rem 1.25rem; min-height: 50px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-pri { background: var(--bordo); color: #fff; }
.btn-pri:hover { background: var(--bordo-esc); color: #fff; }
.btn-sec { background: transparent; color: var(--bordo); border-color: var(--bordo); }
.btn-sec:hover { background: var(--bordo); color: #fff; }
.btn-wa { background: #1f7a45; color: #fff; }
.btn-wa:hover { background: #17603a; color: #fff; }
.btn-perigo { background: #8f1d1d; color: #fff; }
.btn-largo { width: 100%; }
.ligacao { background: none; border: 0; color: var(--bordo); text-decoration: underline; cursor: pointer; font: inherit; font-size: .95rem; padding: .3rem; }
.botoes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ── Página inicial ─────────────────────────────── */
.heroi {
  text-align: center; padding: 2.4rem 1rem 2rem;
  background:
    radial-gradient(ellipse at top, rgba(184, 145, 47, .18), transparent 60%),
    var(--fundo);
  border-bottom: 1px solid var(--linha);
}
.heroi-sobre { font-family: var(--f-titulo); font-variant: small-caps; letter-spacing: .16em; color: var(--dourado-esc); font-weight: 700; margin: 0; font-size: 1.1rem; }
.heroi h1 { max-width: 22ch; margin: .4rem auto .8rem; }
.heroi-txt { max-width: 38rem; margin: 0 auto 1.4rem; color: var(--texto-2); font-size: 1.05rem; }
.heroi-pesquisa { position: relative; display: flex; gap: .5rem; max-width: 40rem; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1rem auto 0; max-width: 44rem; }
.chip {
  font: inherit; font-size: .98rem; cursor: pointer;
  background: var(--papel); color: var(--bordo); text-decoration: none;
  border: 1.5px solid var(--linha); border-radius: 999px; padding: .45rem 1rem; min-height: 44px;
  display: inline-flex; align-items: center; gap: .35rem;
}
.chip.ativo { border-color: var(--bordo); background: var(--bordo); color: #fff; }
@media (hover: hover) { .chip:hover { border-color: var(--bordo); background: var(--bordo); color: #fff; } }
.chip small { opacity: .8; }

.lua-cartao {
  display: flex; align-items: center; gap: 1.1rem;
  background: linear-gradient(135deg, #2b1b1b, #4a1414);
  color: #fbeed0; text-decoration: none; border-radius: var(--raio);
  padding: 1.1rem 1.3rem; border: 1px solid var(--dourado); box-shadow: var(--sombra);
}
.lua-cartao:hover { color: #fff; }
.lua-svg { flex-shrink: 0; }
.lua-info { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.lua-rot { font-size: .92rem; color: #e9d59b; }
.lua-nome { font-family: var(--f-titulo); font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1.15; }
.lua-det { font-size: .95rem; color: #f2e4c2; }
.lua-seta { font-size: 2rem; color: var(--dourado); }
.lua-prox { display: block; }

.destaque-cipriano {
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 1.4rem 1.2rem; box-shadow: var(--sombra);
  max-width: calc(var(--largura) - 2rem);
}
.destaque-cab h2 { margin: .2rem 0 .5rem; }
.destaque-cab p { color: var(--texto-2); margin: 0; }
.destaque-cipriano .grelha-cartoes { margin-top: 1.4rem; }

.grelha-seccoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.seccao-cartao {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: .8rem;
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 1rem 1.1rem; text-decoration: none; color: var(--texto); box-shadow: var(--sombra);
  transition: border-color .15s, transform .15s;
}
.seccao-cartao:hover { border-color: var(--bordo); transform: translateY(-2px); color: var(--texto); }
.seccao-ic { grid-row: 1 / span 3; font-size: 1.7rem; line-height: 1.2; }
.seccao-nome { font-family: var(--f-titulo); font-size: 1.35rem; font-weight: 700; color: var(--bordo); line-height: 1.2; }
.seccao-desc { font-size: .95rem; color: var(--texto-2); line-height: 1.5; margin-top: .2rem; }
.seccao-n { font-size: .85rem; color: var(--dourado-esc); margin-top: .35rem; font-weight: 600; }

.meu-promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--bordo); color: #fbeed0; border-radius: var(--raio); padding: 1.5rem 1.4rem;
  max-width: calc(var(--largura) - 2rem); border: 2px solid var(--dourado);
}
.meu-promo h2 { color: #fff; margin: .1rem 0 .4rem; }
.meu-promo p { margin: 0; max-width: 36rem; }
.meu-promo .sobre-titulo { color: #f0d98f; }
.meu-promo .btn-pri { background: var(--fundo); color: var(--bordo); }

/* ── Cartões de páginas ─────────────────────────── */
.grelha-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; }
.cartao {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--papel); border: 1px solid var(--linha); border-left: 4px solid var(--dourado);
  border-radius: 10px; padding: .95rem 1.1rem; text-decoration: none; color: var(--texto);
  box-shadow: var(--sombra); transition: border-color .15s;
}
.cartao:hover { border-color: var(--bordo); color: var(--texto); }
.cartao-sec { font-size: .82rem; color: var(--dourado-esc); font-weight: 600; letter-spacing: .02em; }
.cartao-tit { font-family: var(--f-titulo); font-size: 1.28rem; font-weight: 700; color: var(--bordo); line-height: 1.25; }
.cartao-txt { font-size: .95rem; color: var(--texto-2); line-height: 1.5; }
.cartao-destaque { border-left-color: var(--bordo); margin-bottom: 1rem; }
.ver-todos { text-align: center; margin: 1.2rem 0; font-family: var(--f-titulo); font-size: 1.15rem; font-weight: 700; }

/* ── Artigo ─────────────────────────────────────── */
.artigo-topo { max-width: var(--largura-texto); margin: 0 auto; padding: 1.4rem 1rem .4rem; }
.migalhas { font-size: .9rem; color: var(--texto-2); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.migalhas a { color: var(--texto-2); }
.migalhas span[aria-current] { color: var(--texto); }
.artigo-seccao { margin: 1rem 0 0; font-family: var(--f-titulo); font-variant: small-caps; letter-spacing: .1em; font-weight: 700; color: var(--dourado-esc); font-size: 1.05rem; }
.artigo-lead { font-size: 1.12rem; color: var(--texto-2); margin: 0 0 .8rem; }
.artigo-meta { font-size: .92rem; color: var(--texto-2); display: flex; flex-wrap: wrap; gap: 1rem; }

.ferramentas {
  position: sticky; top: 64px; z-index: 20;
  max-width: var(--largura-texto); margin: .6rem auto 0; padding: .4rem 1rem;
  display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none;
  background: rgba(251, 243, 220, .96); backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--linha);
}
.ferramentas::-webkit-scrollbar { display: none; }
.ferr {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--bordo);
  background: var(--papel); border: 1.5px solid var(--linha); border-radius: 999px;
  padding: .4rem .85rem; min-height: 44px; cursor: pointer;
}
.ferr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ferr:hover { border-color: var(--bordo); }
.ferr[aria-pressed="true"] { background: var(--bordo); color: #fff; border-color: var(--bordo); }
.ferr[aria-pressed="true"] svg { fill: currentColor; }

.artigo-corpo { max-width: var(--largura-texto); margin: 0 auto; padding: 0 1rem; }
.indice-artigo { background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; padding: .8rem 1.1rem; margin: 1.2rem 0 .4rem; }
.indice-artigo summary { font-family: var(--f-titulo); font-weight: 700; color: var(--bordo); font-size: 1.15rem; cursor: pointer; }
.indice-artigo ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.indice-artigo li { margin: .2rem 0; }

.texto { font-size: 1rem; }
.texto p, .texto ul, .texto ol { margin: 0 0 1.1rem; }
.texto li { margin: .35rem 0; }
.texto strong { color: #000; }
.texto h2 { border-bottom: 1px solid var(--linha); padding-bottom: .3rem; }
.caixa-destaque {
  background: var(--papel); border: 1px solid var(--linha); border-left: 4px solid var(--bordo);
  border-radius: 8px; padding: 1rem 1.2rem; margin: 1.3rem 0; font-size: 1.05rem;
}
.caixa-destaque strong:first-child { color: var(--bordo); }
.caixa { background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; padding: 1rem 1.2rem; margin: 1.3rem 0; }
.caixa-oracao {
  background: #fffdf6; border: 1px solid var(--linha); border-left: 4px solid var(--dourado);
  border-radius: 8px; padding: 1.3rem 1.4rem; margin: 1.4rem 0;
  font-style: italic; font-size: 1.1rem; line-height: 1.95;
}
.caixa-oracao p:last-child { margin-bottom: 0; }
/* grelhas herdadas do site antigo (cartões de serviço) */
.grid-servicos { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.card-servico { background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; padding: 1rem; }
.card-servico h3 { margin: .3rem 0; font-size: 1.2rem; }
.card-servico p { font-size: .95rem; color: var(--texto-2); margin: 0 0 .4rem; }
.card-icone { font-size: 1.4rem; }
.card-link { font-weight: 600; }
.texto table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.texto th, .texto td { border: 1px solid var(--linha); padding: .5rem .7rem; text-align: left; }
.texto th { background: var(--papel-2); }

.nota-pessoal { max-width: var(--largura-texto); margin: 2.4rem auto 0; padding: 1.2rem 1rem; border-top: 2px solid var(--linha); }
.nota-pessoal .titulo-bloco { font-size: 1.4rem; }
.nota-info { color: var(--texto-2); font-size: .95rem; }
.nota-pessoal textarea {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--texto);
  border: 2px solid var(--linha); border-radius: 10px; padding: .8rem 1rem; background: #fff; margin-bottom: .6rem;
}
.nota-pessoal textarea:focus { border-color: var(--bordo); outline: none; }
.nota-pessoal .btn { margin: 0 .4rem .4rem 0; }
.nota-estado { color: #1f6b3d; font-weight: 600; margin-left: .5rem; }

.bloco-mc { background: var(--papel-2); border: 1px solid var(--linha); border-radius: 10px; padding: 1rem 1.2rem; margin: 2rem 0; font-size: .98rem; }
.bloco-mc p { margin: 0; }
.bloco-mc.forte { background: var(--papel); border: 2px solid var(--dourado); padding: 1.3rem; }
.bloco-mc-tit { font-family: var(--f-titulo); font-size: 1.4rem; font-weight: 700; color: var(--bordo); margin-bottom: .4rem !important; }
.bloco-mc-botoes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.ant-seg { max-width: var(--largura-texto); margin: 1.5rem auto; padding: 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ant-seg a { background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; padding: .8rem 1rem; text-decoration: none; font-family: var(--f-titulo); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.ant-seg a:hover { border-color: var(--bordo); }
.ant-seg small { display: block; font-family: var(--f-texto); font-weight: 400; font-size: .85rem; color: var(--texto-2); }
.ant-seg .seg { text-align: right; }

/* ── Explorar ───────────────────────────────────── */
.explorar-lista { display: grid; gap: .6rem; }
.explorar-sec { background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; }
.explorar-sec summary { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; cursor: pointer; list-style: none; min-height: 56px; }
.explorar-sec summary::-webkit-details-marker { display: none; }
.explorar-sec summary::after { content: "›"; margin-left: auto; font-size: 1.6rem; color: var(--dourado-esc); transition: transform .2s; }
.explorar-sec[open] summary::after { transform: rotate(90deg); }
.explorar-nome { font-family: var(--f-titulo); font-size: 1.3rem; font-weight: 700; color: var(--bordo); }
.explorar-nome small { font-family: var(--f-texto); font-size: .85rem; color: var(--texto-2); font-weight: 400; margin-left: .3rem; }
.explorar-desc { margin: 0 1.1rem .6rem; color: var(--texto-2); font-size: .95rem; }
.explorar-sec ul { margin: 0; padding: 0 1.1rem 1rem 2.4rem; columns: 2 16rem; column-gap: 2rem; }
.explorar-sec li { margin: .3rem 0; break-inside: avoid; }

/* ── Pesquisa ───────────────────────────────────── */
.pesquisa-pagina { margin-top: 1rem; }
.pesquisa-total { margin: 1.2rem 0 .6rem; }
.filtros { justify-content: flex-start; margin: 0 0 1rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.filtros .chip { flex-shrink: 0; }
.resultados { list-style: none; margin: 0; padding: 0; }
.resultados li { border-bottom: 1px solid var(--linha); }
.resultados a { display: flex; flex-direction: column; padding: .9rem .2rem; text-decoration: none; color: var(--texto); }
.resultados a:hover .res-tit { text-decoration: underline; }
.res-sec { font-size: .82rem; color: var(--dourado-esc); font-weight: 600; }
.res-tit { font-family: var(--f-titulo); font-size: 1.3rem; font-weight: 700; color: var(--bordo); line-height: 1.25; }
.res-txt { font-size: .95rem; color: var(--texto-2); }
.vazio { background: var(--papel); border: 1px dashed var(--linha); border-radius: 10px; padding: 1.2rem; margin: 1rem 0; }
.pesquisa-dica { margin: 1.2rem 0 0; font-weight: 600; }
.pg-pesquisa .chips { justify-content: flex-start; margin-left: 0; }

/* ── Conta / Meu Grimório ───────────────────────── */
.conta-caixa { max-width: 28rem; margin: 2rem auto; padding: 1.6rem 1.3rem; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
.conta-caixa h1 { font-size: 2rem; margin-top: 0; }
.conta-intro { color: var(--texto-2); }
.form-conta label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.form-conta input[type=text], .form-conta input[type=email], .form-conta input[type=password], .apagar-conta input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border: 2px solid var(--linha); border-radius: 10px; background: #fff; color: var(--texto);
}
.form-conta input:focus { border-color: var(--bordo); outline: none; }
.form-conta .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.form-conta .check input { width: 22px; height: 22px; margin-top: .2rem; flex-shrink: 0; }
.form-conta .btn { margin-top: 1.3rem; }
.conta-troca { text-align: center; margin-top: 1rem; }
.armadilha { position: absolute; left: -9999px; }
.alerta { background: #fbe3e0; border: 1px solid #d99a92; color: #6d1410; border-radius: 8px; padding: .7rem 1rem; }
.lista-vantagens { padding-left: 1.2rem; }
.lista-vantagens li { margin: .4rem 0; }

.meu { max-width: var(--largura-texto); margin: 0 auto 2rem; padding: 0 1rem; }
.separadores { display: flex; gap: .3rem; border-bottom: 2px solid var(--linha); margin: .8rem 0 1.2rem; overflow-x: auto; }
.separadores button {
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; color: var(--texto-2);
  background: none; border: 0; padding: .7rem .9rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; min-height: 48px;
}
.separadores button[aria-selected="true"] { color: var(--bordo); border-bottom-color: var(--bordo); }
.separadores small { font-family: var(--f-texto); font-size: .8rem; }
.filtros-col { justify-content: flex-start; margin: 0 0 1rem; }
.chip-novo { border-style: dashed; }
.lista-guardados { list-style: none; padding: 0; margin: 0; }
.lista-guardados li { border-bottom: 1px solid var(--linha); padding: .8rem 0; }
.lista-guardados a { display: flex; flex-direction: column; text-decoration: none; }
.guardado-acoes { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; flex-wrap: wrap; }
.guardado-acoes select { font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1.5px solid var(--linha); border-radius: 8px; background: #fff; min-height: 44px; color: var(--texto); }
.gerir-col, .apagar-conta { margin-top: 1.5rem; background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; padding: .8rem 1rem; }
.gerir-col summary, .apagar-conta summary { cursor: pointer; font-weight: 600; color: var(--bordo); }
.apagar-conta form { display: grid; gap: .6rem; margin-top: .6rem; }
.nota-cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: .8rem; }
.nota-cartao p { margin: .4rem 0; white-space: normal; }
.nota-cartao small { color: var(--texto-2); }

/* ── Calendário lunar ───────────────────────────── */
.lua-grande .lua-nome { font-size: 2rem; }
.mes-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.mes-nav h2 { margin: 0; }
.mes-nav a { font-size: 2rem; text-decoration: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--linha); background: var(--papel); }
.mes-grelha { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mes-cab { text-align: center; font-weight: 600; font-size: .85rem; color: var(--texto-2); padding: .3rem 0; }
.mes-dia { background: var(--papel); border: 1px solid var(--linha); border-radius: 8px; min-height: 76px; padding: .25rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .85rem; }
.mes-dia.vazio { background: transparent; border: 0; }
.mes-dia.fase { border-color: var(--dourado); background: #fff6dc; }
.mes-dia.hoje { outline: 3px solid var(--bordo); outline-offset: -2px; }
.mes-num { font-weight: 700; }
.mes-fase { font-size: .7rem; line-height: 1.2; text-align: center; color: var(--bordo); font-weight: 600; }
.mes-lista { padding-left: 1.2rem; }
.mes-lista li { margin: .35rem 0; }

/* ── Rodapé ─────────────────────────────────────── */
.rodape { background: #2b1b1b; color: #eadcb8; margin-top: 3rem; border-top: 3px solid var(--dourado); }
.rodape-in { max-width: var(--largura); margin: 0 auto; padding: 2rem 1rem 1rem; display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.rodape a { color: #f4e6bf; display: block; padding: .3rem 0; text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape p { margin: 0 0 .6rem; font-size: .95rem; }
.rodape-logo { font-family: var(--f-titulo); font-size: 1.6rem !important; font-weight: 700; color: #fff; }
.rodape-tit { font-family: var(--f-titulo); font-variant: small-caps; letter-spacing: .1em; font-weight: 700; color: var(--dourado) !important; font-size: 1.1rem !important; }
.aviso-legal { font-size: .88rem !important; color: #cdbb90; }
.rodape-fim { text-align: center; padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); margin: 0; font-size: .9rem; }
.rodape-fim a { display: inline; }

/* ── Barra de navegação da app (telemóvel) ──────── */
.barra-app {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--papel); border-top: 2px solid var(--linha);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 14px rgba(60, 30, 10, .08);
}
.barra-app a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--barra-app); color: var(--texto-2); text-decoration: none; font-size: .78rem; font-weight: 600;
}
.barra-app svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.barra-app a[aria-current="page"] { color: var(--bordo); }
.barra-app a[aria-current="page"] svg { fill: rgba(122, 16, 16, .12); }


/* ── Botão ☰ Menu (topo, lado direito) ──────────── */
.btn-menu {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 54px; height: 50px; padding: 0; cursor: pointer;
  background: transparent; border: 2px solid rgba(240, 217, 143, .6); border-radius: 10px;
}
.btn-menu span { display: block; width: 22px; height: 2.5px; background: #fff7e2; border-radius: 2px; }
.btn-menu em { font-style: normal; font-family: var(--f-titulo); font-size: .72rem; font-weight: 700; color: #f0d98f; line-height: 1; margin-top: 1px; letter-spacing: .04em; }
.btn-menu:hover { background: rgba(255, 255, 255, .1); }

/* ── Gaveta do menu ─────────────────────────────── */
.gaveta-fundo { position: fixed; inset: 0; background: rgba(20, 8, 8, .55); z-index: 70; }
.gaveta {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: 86%; max-width: 360px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--fundo); border-left: 3px solid var(--dourado);
  box-shadow: -8px 0 24px rgba(0, 0, 0, .3);
  transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
}
body.menu-aberto { overflow: hidden; }
body.menu-aberto .gaveta { transform: none; visibility: visible; }
.gaveta-cab {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bordo); color: #fff; padding: .7rem 1rem; border-bottom: 3px solid var(--dourado);
}
.gaveta-tit { font-family: var(--f-titulo); font-size: 1.5rem; font-weight: 700; }
.gaveta-fechar { background: none; border: 2px solid rgba(240, 217, 143, .6); color: #fff; font-size: 1.3rem; width: 46px; height: 46px; border-radius: 10px; cursor: pointer; }
.gaveta-pesq { padding: .9rem 1rem .3rem; }
.gaveta-pesq input { width: 100%; font: inherit; font-size: 1rem; color: var(--texto); padding: .7rem .9rem; border: 2px solid var(--linha); border-radius: 10px; background: #fff; }
.gaveta-pesq input:focus { border-color: var(--bordo); outline: none; }
.gaveta nav { padding: .3rem 0 1.5rem; }
.gaveta nav a { display: block; padding: .62rem 1.2rem; text-decoration: none; color: var(--texto); font-size: 1.05rem; border-bottom: 1px solid rgba(228, 211, 166, .6); }
.gaveta nav a:hover { background: var(--papel-2); }
.gaveta nav a.g-princ { font-family: var(--f-titulo); font-weight: 700; font-size: 1.2rem; color: var(--bordo); }
.g-grupo { margin: 1rem 1.2rem .3rem; font-family: var(--f-titulo); font-variant: small-caps; letter-spacing: .12em; font-weight: 700; color: var(--dourado-esc); font-size: 1.05rem; }
.gaveta nav a.g-todas { color: var(--bordo); font-weight: 600; border: 0; margin-top: .6rem; }

/* ── Mensagem curta ─────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #2b1b1b; color: #fbeed0; padding: .7rem 1.2rem; border-radius: 999px; z-index: 60;
  font-size: .95rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); max-width: 90vw; text-align: center;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.visivel { opacity: 1; }
.guardados-aviso { margin-top: 2rem; }

/* ── Tamanho de letra escolhido pelo leitor ─────── */
html.letra-1 { --letra-base: 20px; }
html.letra-2 { --letra-base: 22px; }
html.letra--1 { --letra-base: 16.5px; }

/* ── Ecrãs maiores ──────────────────────────────── */
@media (min-width: 900px) {
  :root { --letra-base: 19px; }
  html.letra-1 { --letra-base: 21px; }
  html.letra-2 { --letra-base: 23px; }
  body { padding-bottom: 0; }
  .barra-app { display: none; }
  .menu { display: flex; }
  .heroi { padding: 3.6rem 1rem 3rem; }
  .rodape-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .destaque-cipriano { padding: 2rem; margin-left: auto; margin-right: auto; }
  .meu-promo { margin-left: auto; margin-right: auto; padding: 2rem; }
  .mes-dia { min-height: 92px; }
  .mes-fase { font-size: .78rem; }
}
@media (max-width: 899px) {
  .destaque-cipriano, .meu-promo { margin-left: 1rem; margin-right: 1rem; }
  .pesquisa-painel { top: 60px; }
  .ferramentas { top: 60px; }
}
@media (max-width: 600px) {
  .lua-grande { flex-direction: column; align-items: flex-start; }
  .lua-grande .lua-svg { width: 80px; height: 80px; }
  .grelha-seccoes { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .seccao-cartao { grid-template-columns: 1fr; padding: .8rem .85rem; }
  .seccao-ic { grid-row: auto; font-size: 1.5rem; }
  .seccao-nome { font-size: 1.15rem; }
  .seccao-desc { display: none; }
  .destaque-cipriano .cartao-txt { display: none; }
  .destaque-cipriano .grelha-cartoes { gap: .5rem; }
  .heroi-sobre { font-size: .95rem; letter-spacing: .1em; }
  .ferr { padding: .4rem .7rem; }
  .ferr[data-partilhar] span, .ferr[data-imprimir] span { display: none; }
}
@media (max-width: 420px) {
  .logo-sub { display: none; }
  .heroi-pesquisa button { padding: 0 .8rem; }
  .ant-seg { grid-template-columns: 1fr; }
  .ant-seg .seg { text-align: left; }
  .mes-dia { min-height: 64px; }
  .mes-dia .lua-svg { width: 24px; height: 24px; }
  .mes-fase { font-size: .62rem; }
}

/* ── Impressão (orações) ────────────────────────── */
@media print {
  .topo, .barra-app, .rodape, .ferramentas, .nota-pessoal, .bloco-mc, .relacionados, .ant-seg, .migalhas, .indice-artigo, .pesquisa-painel { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12pt; }
  .caixa-oracao { border: 0; background: #fff; font-size: 14pt; }
  a { color: #000; text-decoration: none; }
}

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