.history-review {
  margin: 24px 0 0;
  padding: 20px 24px;
  background: var(--cp-surface-soft);
  border: 1px solid var(--cp-border);
  font-size: 1rem;
}
.history-review p { margin: 0; }
.history-review details { margin-top: 12px; }
.history-review summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 600; }
.history-review details p { margin-top: 12px; }
.history-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.history-opening p:first-child { margin-top: 0; }
.history-emir { margin: 0; }
.history-emir img { display: block; width: 100%; height: auto; }
.history-emir figcaption { margin-top: 16px; font-size: 1rem; line-height: 1.5; }
.history-emir strong, .history-emir span { display: block; }
.history-emir span { margin-top: 8px; color: var(--cp-text-muted); }
.history-photo { display: block; text-decoration: none; }
.history-photo:hover img { outline: 2px solid var(--cp-accent); outline-offset: 4px; }
.history-photo-label { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; text-decoration: underline; }
.history-chairmen { padding: 40px 0 32px; margin-top: 36px; border-top: 1px solid var(--cp-border); }
.gef-design .history-chairmen h3 { font-size: 1.625rem; margin: 0 0 12px; }
.history-chairmen > p { font-size: 1rem; margin: 0 0 28px; color: var(--cp-text-muted); }
.history-portraits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-portraits li { min-width: 0; flex: 0 0 calc((100% - 48px) / 3); }
.history-portraits figure { margin: 0; }
.history-portraits img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--cp-surface-soft);
}
.history-portraits figcaption { margin-top: 16px; }
.gef-design .history-portraits h4 { font-size: 1.125rem; line-height: 1.35; margin: 0; font-weight: 600; }
.history-portraits .history-title { margin: 4px 0 0; font-size: 1rem; }
.history-portraits .history-tenure { margin: 8px 0 0; font-size: 1rem; color: var(--cp-text-muted); }
.history-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 16px;
}
.history-current > p { margin: 0; }
.history-viewer {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--cp-border);
  background: var(--cp-surface);
  color: var(--cp-text);
  overflow: auto;
}
.history-viewer::backdrop { background: rgb(0 0 0 / 80%); }
.history-viewer-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.gef-design .history-viewer h2 { font-size: 1.5rem; margin: 0; }
.history-viewer form { flex: none; }
.history-viewer button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--cp-border-strong); background: var(--cp-surface); color: var(--cp-text); cursor: pointer; font: inherit; }
.history-viewer button:hover { background: var(--cp-surface-soft); }
.history-viewer figure { margin: 24px 0 0; }
.history-viewer img { display: block; max-width: 100%; width: auto; height: auto; max-height: 65dvh; margin-inline: auto; object-fit: contain; }
.history-viewer figcaption { margin-top: 20px; font-size: 1rem; }
.history-viewer p[role="status"]:empty { display: none; }
@media (max-width: 1100px) {
  .history-opening { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .history-current { grid-template-columns: minmax(0, 1fr); }
  .history-emir { max-width: 640px; }
  .history-portraits { justify-content: flex-start; }
  .history-portraits li { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 760px) {
  .history-review { padding: 16px; }
  .history-portraits { gap: 32px; }
  .history-portraits li { flex-basis: 100%; }
  .history-portraits figure { max-width: 440px; }
  .history-chairmen { padding-top: 32px; margin-top: 32px; }
  .history-viewer { padding: 16px; }
  .history-viewer-head { gap: 16px; }
  .gef-design .history-viewer h2 { font-size: 1.25rem; }
}
html.a11y-text-xl .history-portraits li,
html.a11y-spacing .history-portraits li { flex-basis: 100%; }
html.a11y-text-xl .history-current,
html.a11y-spacing .history-current { grid-template-columns: minmax(0, 1fr); }
