﻿/* Entre conclusiones: índice y una única hoja adaptable, primero móvil. */
.conclusions-page .project-heading { max-width: 680px; }
.conclusion-index { margin: 0; padding: 0; list-style: none; }
.conclusion-index > li { border-bottom: 1px solid #baa78566; }
.conclusion-index > li:first-child { border-top: 1px solid #baa78566; }
.conclusion-entry { display: block; position: relative; width: 100%; min-height: 88px; padding: 22px 30px 22px 0; border: 0; background: transparent; color: #443a2e; font: inherit; text-align: left; cursor: pointer; }
.conclusion-number { display: block; margin-bottom: 8px; font-family: 'Segoe UI', sans-serif; font-size: .72rem; letter-spacing: .09em; color: #776b58; }
.conclusion-title { display: block; font-size: 1.08rem; line-height: 1.6; overflow-wrap: anywhere; }
.conclusion-indicator { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); color: #806346; }
.conclusion-entry:hover .conclusion-title { text-decoration: underline; text-underline-offset: 5px; }
.conclusion-entry:focus-visible, .sheet-close:focus-visible { outline: 2px solid #806346; outline-offset: 4px; }
.conclusions-next { margin-top: 40px; text-align: center; }
.conclusions-next p { font-style: italic; line-height: 1.8; color: #776b58; }
.conclusion-sheet {
  width: calc(100% - 24px); max-width: 620px; max-height: calc(100dvh - 24px); margin: auto; padding: 0;
  border: 0; border-radius: 2px; color: #443a2e;
  background: #fcf7eb url('../images/texturas/papel-marfil.png') repeat; background-size: auto;
  box-shadow: 0 12px 45px #30201640; overflow-y: auto; overscroll-behavior: contain;
}
.conclusion-sheet[open] { animation: paper-appear 240ms ease-out; }
.conclusion-sheet::backdrop { background: #30201666; }
.sheet-toolbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px 12px; background: #fcf7eb url('../images/texturas/papel-marfil.png') repeat; }
.sheet-toolbar form { margin: 0; }
.sheet-close { min-height: 44px; padding: 10px 14px; border: 1px solid #baa785; border-radius: 2px; background: transparent; color: #443a2e; font: inherit; cursor: pointer; }
.sheet-reading { padding: 16px 25px 36px; }
.sheet-number { margin: 0 0 15px; color: #776b58; font-size: .85rem; letter-spacing: .06em; }
.sheet-reading h2 { margin: 0 0 25px; padding-bottom: 25px; border-bottom: 1px solid #baa78566; font-weight: 400; font-size: 1.55rem; line-height: 1.5; overflow-wrap: anywhere; color: #302016; }
.conclusion-phrases { padding: 0; margin: 0; list-style: none; }
.conclusion-phrases li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin-bottom: 25px; line-height: 1.85; }
.conclusion-phrases li:last-child { margin-bottom: 0; }
.conclusion-phrases li > span { color: #806346; }
.conclusion-phrases p { margin: 0; overflow-wrap: anywhere; }
@keyframes paper-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 641px) {
  .conclusion-sheet { max-height: calc(100dvh - 64px); }
  .sheet-reading { padding: 20px 48px 48px; }
  .sheet-reading h2 { font-size: 1.8rem; }
  .conclusion-phrases { font-size: 1.08rem; }
  .conclusion-entry { padding-top: 26px; padding-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { .conclusion-sheet[open] { animation: none; } }
