

.character-page {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 54px);
}


.character-hero {
  min-height: 420px;
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  align-items: stretch;
  gap: var(--content-gap);
  background: var(--primary);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.character-hero-copy {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.character-hero-copy h1 {
  margin: auto 0 0;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: .82;
  letter-spacing: -.075em;
}

.character-taxonomy {
  margin: var(--space-5) 0 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.character-iconic {
  flex: 0 1 42%;
  min-width: 280px;
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius-card) - 6px);
  overflow: hidden;
  background: var(--surface);
}

.character-iconic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-iconic figcaption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.86);
  font-family: var(--font-display);
  font-size: var(--text-xs);
}

.character-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  padding: var(--space-6);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 54% 30%, var(--soft-accent) 0 15%, transparent 15.5%),
    linear-gradient(145deg, var(--primary), var(--graphite));
}

.character-image-placeholder p {
  max-width: 30ch;
  margin: var(--space-4) 0 0;
  color: var(--white);
  line-height: 1.45;
}


.character-section {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  gap: clamp(24px, 5vw, 76px);
  background: var(--white);
  border-radius: var(--radius-card);
}

.section-heading {
  flex: 0 0 min(28%, 280px);
}

.section-heading h2 {
  margin: var(--space-2) 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .92;
}

.prose-block,
.fact-list,
.psychology-layout {
  flex: 1 1 auto;
  min-width: 0;
}

.prose-block {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose-block p { margin: 0 0 1em; }


.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.fact-item {
  flex: 1 1 210px;
  min-height: 110px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--secondary);
  border-radius: var(--radius-md);
}

.fact-item dt {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.fact-item dd {
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}


.psychology-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-list li {
  padding: 8px 12px;
  background: var(--soft-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}


.history-section {
  flex-direction: column;
  background: var(--graphite);
  color: var(--white);
}

.history-heading {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.timeline-controls {
  display: flex;
  gap: var(--space-2);
}

.timeline-controls button {
  width: var(--tap-target);
  height: var(--tap-target);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.history-summary {
  max-width: 72ch;
  margin: 0;
  line-height: 1.7;
}

.history-layout {
  display: flex;
  align-items: stretch;
  gap: var(--content-gap);
}

.timeline-viewport {
  flex: 1 1 58%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding: var(--space-3) 0 var(--space-6);
}

.timeline-track {
  min-width: max-content;
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-2);
  position: relative;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 45px;
  height: 1px;
  background: rgba(255,255,255,.35);
}

.timeline-node {
  width: 170px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.timeline-node-dot {
  width: 18px;
  height: 18px;
  margin: 24px 0 18px;
  border: 3px solid var(--graphite);
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 1px rgba(255,255,255,.65);
  position: relative;
  z-index: 2;
}

.timeline-node[aria-selected="true"] .timeline-node-dot {
  background: var(--accent);
  transform: scale(1.25);
}

.timeline-node-open .timeline-node-dot { background: var(--accent); }

.timeline-node-date {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .72;
}

.timeline-node-title {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
}

.history-detail {
  flex: 0 1 38%;
  min-width: 280px;
  padding: var(--space-6);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-md);
}

.history-detail h3 {
  margin: var(--space-2) 0 var(--space-4);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: .95;
}

.history-references {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}

.history-deep-link {
  margin-top: var(--space-5);
  min-height: var(--tap-target);
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}


.field-state {
  width: fit-content;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .08em;
}

.field-state-aperto { background: var(--accent); color: var(--ink); }
.field-state-da-definire { background: var(--soft-accent); color: var(--ink); }

.field-note {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.45;
  opacity: .72;
}


.source-footer {
  padding: var(--space-6);
  border-top: 1px solid rgba(0,0,0,.12);
}

.source-footer ul {
  margin: var(--space-4) 0 0;
  padding-left: 1.2em;
}

@media (max-width: 760px) {
  .character-hero,
  .character-section,
  .history-layout {
    flex-direction: column;
  }

  .character-iconic,
  .history-detail {
    min-width: 0;
    width: 100%;
  }

  .character-iconic { aspect-ratio: 4 / 5; }
  .section-heading { flex-basis: auto; }
}


.character-reference-list { display: flex; flex-direction: column; gap: 24px; min-width: 0; width: 100%; }
.character-reference-list figure { margin: 0; width: 100%; }
.character-reference-list a { display: block; }
.character-reference-list img { display: block; width: 100%; height: auto; object-fit: contain; }
.character-reference-list figcaption { margin-top: 8px; }
.character-iconic.character-iconic-contain img { object-fit: contain; }

.character-page, .character-page * { box-sizing: border-box; }
.character-page { min-width: 0; }
.character-page [hidden] { display: none !important; }
.character-section[data-section="visual-references"] { flex-direction: column; }
