/* Gerado/atualizado em: L340 — estilos compartilhados da página-mãe "Argumento" e das subpáginas dos pilares */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter Tight', sans-serif; font-size: 17px; line-height: 1.6; background: #191919; color: #bbbaa6; position: relative; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(25,25,25,0.85), rgba(25,25,25,0.85)), url("../img/egr-bg-03.jpeg") center top / cover no-repeat; pointer-events: none; }
a { text-decoration: none; color: inherit; }

/* barra de progresso de leitura */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: rgba(220,60,60,0.85); z-index: 50; }

.topbar { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 24px 0; }
.topbar a { font-size: 14px; color: rgba(187,186,166,0.5); transition: color 0.2s; }
.topbar a:hover { color: #fefce1; }
.topbar.wide { max-width: 1040px; }

.page-card { max-width: 720px; margin: 24px auto 40px; padding: 56px 48px 48px; background: #141514; border: 0.5px solid rgba(187,186,166,0.1); position: relative; }
.page-card::before, .page-card::after { content: ""; position: absolute; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(140,20,20,0.7) 50%, transparent); }
.page-card::before { top: 14px; }
.page-card::after { bottom: 14px; }

.eyebrow { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 6px; text-transform: uppercase; color: rgba(220,60,60,0.7); margin-bottom: 10px; }
.title { text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 600; color: #fefce1; letter-spacing: 1px; margin-bottom: 8px; line-height: 1.1; }
.tagline { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; color: rgba(187,186,166,0.7); margin-bottom: 28px; }
.ornament { text-align: center; color: rgba(140,20,20,0.7); font-size: 14px; letter-spacing: 8px; margin: 8px 0 32px; }

.section-title { text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: #fefce1; margin: 52px 0 6px; scroll-margin-top: 24px; }
.section-num { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 4px; color: rgba(220,60,60,0.6); margin-top: 52px; }
.section-num + .section-title { margin-top: 4px; }
.section-sub { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; color: rgba(187,186,166,0.55); margin-bottom: 26px; }

.prose p { font-size: 16px; color: rgba(187,186,166,0.88); line-height: 1.9; margin-bottom: 18px; }
.prose p strong { color: #fefce1; font-weight: 600; }
.prose p em { color: rgba(254,252,225,0.8); }

.lead { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.6; color: rgba(254,252,225,0.9); text-align: center; margin: 0 0 8px; }

.flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; margin: 26px 0 30px; }
.flow .step { font-family: 'Cormorant Garamond', serif; font-size: 18px; padding: 6px 16px; border-radius: 100px; background: rgba(140,20,20,0.12); color: rgba(254,252,225,0.9); border: 0.5px solid rgba(140,20,20,0.45); }
.flow .arrow { color: rgba(140,20,20,0.8); font-size: 14px; }

.timeline { list-style: none; margin: 26px 0 30px; border-left: 1px solid rgba(140,20,20,0.55); padding-left: 26px; }
.timeline li { position: relative; margin-bottom: 20px; font-size: 15.5px; color: rgba(187,186,166,0.85); line-height: 1.75; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: #8c1414; }
.timeline .year { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: #fefce1; margin-right: 10px; }
.tag { display: inline-block; font-family: 'Inter Tight', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 1px 8px; margin-left: 6px; border: 0.5px solid rgba(187,186,166,0.3); color: rgba(187,186,166,0.7); border-radius: 100px; vertical-align: middle; white-space: nowrap; }
.tag.hist { border-color: rgba(120,180,140,0.5); color: rgba(150,205,165,0.9); }
.tag.fic { border-color: rgba(220,90,80,0.5); color: rgba(235,120,110,0.9); }
.tag.tese { border-color: rgba(200,170,90,0.5); color: rgba(215,190,110,0.9); }

.eras { list-style: none; counter-reset: era; margin: 26px 0 30px; }
.eras li { counter-increment: era; position: relative; padding: 0 0 0 52px; margin-bottom: 22px; font-size: 15.5px; color: rgba(187,186,166,0.85); line-height: 1.75; }
.eras li::before { content: counter(era, upper-roman); position: absolute; left: 0; top: -2px; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: rgba(220,60,60,0.7); width: 40px; }
.eras.arabic li::before { content: counter(era); }
.eras .era-name { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: #fefce1; letter-spacing: 0.5px; }
.eras .era-q { display: block; font-style: italic; color: rgba(254,252,225,0.7); margin-bottom: 2px; }

.pull { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; line-height: 1.5; color: #fefce1; margin: 34px auto; max-width: 560px; }
.pull span { display: block; }

.triad { margin: 28px 0 8px; }
.triad-item { padding: 16px 0; border-top: 0.5px solid rgba(187,186,166,0.12); }
.triad-item:last-child { border-bottom: 0.5px solid rgba(187,186,166,0.12); }
.triad-name { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; color: #fefce1; }
.triad-name em { font-style: italic; color: rgba(220,90,80,0.9); font-weight: 500; }
.triad-desc { font-size: 15px; color: rgba(187,186,166,0.8); line-height: 1.75; margin-top: 4px; }

/* tabelas compactas */
.tbl-wrap { overflow-x: auto; margin: 22px 0 26px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
table.tbl th { text-align: left; font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; letter-spacing: 1px; color: #fefce1; padding: 8px 12px; border-bottom: 1px solid rgba(140,20,20,0.6); white-space: nowrap; }
table.tbl td { padding: 9px 12px; border-bottom: 0.5px solid rgba(187,186,166,0.12); color: rgba(187,186,166,0.85); vertical-align: top; }
table.tbl td:first-child { color: #fefce1; }

/* blocos recolhíveis */
details.more { margin: 22px 0 26px; border: 0.5px solid rgba(187,186,166,0.18); background: rgba(187,186,166,0.025); }
details.more > summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: #fefce1; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-family: 'Inter Tight', sans-serif; font-size: 20px; color: rgba(220,60,60,0.8); transition: transform 0.2s; }
details.more[open] > summary::after { content: "–"; }
details.more > summary small { display: block; font-family: 'Inter Tight', sans-serif; font-weight: 400; font-size: 13px; color: rgba(187,186,166,0.6); margin-top: 2px; }
details.more > .more-body { padding: 4px 18px 6px; border-top: 0.5px solid rgba(187,186,166,0.12); }
details.more .more-body > :first-child { margin-top: 18px; }

/* nota de status (cânone, bastidor, etc.) */
.note { margin: 24px 0; padding: 14px 18px; border-left: 2px solid rgba(220,60,60,0.6); background: rgba(140,20,20,0.07); font-size: 14.5px; line-height: 1.75; color: rgba(187,186,166,0.88); }
.note strong { color: #fefce1; }

.recognition { text-align: center; margin: 12px auto 0; }
.recognition p { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.7; color: rgba(254,252,225,0.9); }

.link-inline { color: rgba(220,90,80,0.9); border-bottom: 0.5px dotted rgba(220,90,80,0.6); }
.link-inline:hover { color: #fefce1; }

/* navegação entre pilares */
.pager { max-width: 720px; margin: 0 auto 60px; padding: 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { display: block; padding: 16px 20px; background: #141514; border: 0.5px solid rgba(187,186,166,0.12); transition: border-color 0.2s; }
.pager a:hover { border-color: rgba(220,60,60,0.55); }
.pager .dir { display: block; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(220,60,60,0.65); margin-bottom: 4px; }
.pager .nm { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: #fefce1; }
.pager .next { text-align: right; grid-column: 2; }
.pager .prev { grid-column: 1; }

.page-footer { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px; color: rgba(187,186,166,0.35); margin-top: 44px; line-height: 1.7; }

/* ── hub (página-mãe) ── */
.hub { max-width: 1040px; margin: 24px auto 60px; padding: 0 24px; }
.hub-head { text-align: center; padding: 40px 0 8px; }
.hub-head .lead { max-width: 640px; margin: 0 auto; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 20px; }
.pillar { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; background: #141514; border: 0.5px solid rgba(187,186,166,0.12); transition: border-color 0.2s, transform 0.2s; }
.pillar:hover { border-color: rgba(220,60,60,0.6); transform: translateY(-2px); }
.pillar .num { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 600; line-height: 1; color: rgba(140,20,20,0.75); margin-bottom: 10px; }
.pillar .pn { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 600; color: #fefce1; line-height: 1.15; }
.pillar .pq { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: rgba(187,186,166,0.6); margin: 4px 0 12px; }
.pillar .pd { font-size: 14.5px; line-height: 1.7; color: rgba(187,186,166,0.82); flex: 1; }
.pillar .go { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(220,90,80,0.85); }
.pillar.entry { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; padding: 32px 36px; border-color: rgba(140,20,20,0.5); background: linear-gradient(90deg, rgba(140,20,20,0.12), #141514 60%); }
.pillar.entry .num { font-size: 60px; margin: 0; }
.pillar.entry .body { flex: 1; }
.hub-note { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: rgba(187,186,166,0.5); margin-top: 22px; }

/* ── índice lateral (desktop) ── */
.toc { display: none; }
@media (min-width: 1180px) {
  .toc { display: block; position: fixed; top: 96px; left: calc(50% - 360px - 250px); width: 210px; font-size: 13px; line-height: 1.5; }
  .toc .toc-h { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(220,60,60,0.65); margin-bottom: 12px; }
  .toc a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid rgba(187,186,166,0.15); color: rgba(187,186,166,0.55); transition: color 0.2s, border-color 0.2s; }
  .toc a:hover { color: #fefce1; }
  .toc a.on { color: #fefce1; border-left-color: rgba(220,60,60,0.85); }
}

/* ── revelar ao rolar (só com JS) ── */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── filtro de senha (spoiler) ── */
.lock { margin: 26px 0; padding: 22px 20px; border: 0.5px dashed rgba(220,60,60,0.45); text-align: center; }
.lock p { font-size: 14px; color: rgba(187,186,166,0.7); margin-bottom: 12px; }
.lock-row { display: flex; justify-content: center; gap: 8px; }
.lock-input { width: 120px; padding: 8px 12px; background: #0e0f0e; border: 0.5px solid rgba(187,186,166,0.3); color: #fefce1; font-size: 15px; text-align: center; letter-spacing: 3px; }
.lock-btn { padding: 8px 18px; background: rgba(140,20,20,0.25); border: 0.5px solid rgba(140,20,20,0.7); color: #fefce1; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.lock-btn:hover { background: rgba(140,20,20,0.45); }
.lock-msg { min-height: 18px; margin-top: 8px; font-size: 13px; color: rgba(235,120,110,0.9); }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-card { padding: 40px 22px 32px; margin: 12px 12px 32px; }
  .pager { margin: 0 12px 48px; grid-template-columns: 1fr; }
  .pager .next, .pager .prev { grid-column: 1; text-align: left; }
  .title { font-size: 38px; }
  .prose p { font-size: 16px; }
  .pull { font-size: 21px; }
  .recognition p { font-size: 20px; }
  .timeline { padding-left: 22px; }
  .eras li { padding-left: 44px; }
  .hub { padding: 0 12px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar.entry { flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 22px; }
  .pillar.entry .num { font-size: 44px; }
  .lead { font-size: 19px; }
}

/* ── créditos do portal ── */
.site-credits { max-width: 720px; margin: 0 auto 48px; padding: 24px 24px 0; border-top: 0.5px solid rgba(187,186,166,0.12); text-align: center; }
.hub + .site-credits { max-width: 1040px; }
.site-credits .credits p { font-size: 12px; line-height: 1.7; color: rgba(187,186,166,0.45); margin-bottom: 6px; }
