.eph-page {
  background: var(--canvas);
  color: var(--ink);
}

.eph-hero {
  padding-bottom: 0;
}

.eph-hero .sub,
.eph-detail-hero .sub {
  max-width: none;
}

.eph-section {
  padding: 56px 24px;
}

.eph-section + .eph-section {
  border-top: 1px solid var(--line);
}

.eph-section-link {
  margin: 0 0 8px;
  font-size: 15px;
}

.eph-section-link a {
  color: var(--clay);
}

.eph-list {
  margin-top: 8px;
}

.eph-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.eph-item:last-child {
  border-bottom: none;
}

.eph-item-thumb {
  flex: 0 0 96px;
}

.eph-item-thumb img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.eph-item-body {
  min-width: 0;
}

.eph-item-link {
  font-family: var(--app-font-serif);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.eph-item-link:hover {
  color: var(--clay);
  text-decoration: underline;
}

.eph-item-date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 8px;
}

.eph-item-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.eph-back {
  display: inline-block;
  font-size: 14px;
  color: var(--clay);
  text-decoration: none;
  margin-bottom: 20px;
}

.eph-back:hover {
  text-decoration: underline;
}

.eph-detail-hero {
  padding: 40px 24px 8px;
}

.eph-detail-hero .headline-md {
  font-size: clamp(26px, 3vw, 38px);
}

.eph-body {
  padding: 24px 24px 8px;
}

.eph-doc {
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.eph-doc + .eph-doc {
  border-top: 1px solid var(--line);
}

.eph-scans {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.eph-scans .eph-figure {
  flex: 1 1 400px;
  max-width: 720px;
}

.eph-transcript-wrap {
  margin-top: 24px;
}

.eph-figure {
  margin: 0;
}

.eph-figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.eph-transcript-title {
  font-family: var(--app-font-serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

.eph-transcript-source {
  font-family: var(--app-font-sans, sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}

.eph-transcript {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 5px var(--surface),
    inset 0 0 0 6px var(--line);
  padding: 22px 24px;
  max-width: 720px;
}

.eph-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin: 16px 0 6px;
}

.eph-line {
  font-family: var(--app-font-serif, Georgia, serif);
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 0;
  color: var(--ink);
}

.eph-about {
  padding: 48px 24px 64px;
  border-top: 1px solid var(--line);
}

.eph-block-head {
  font-family: var(--app-font-serif);
  font-size: 22px;
  color: var(--ink);
  margin: 32px 0 16px;
}

.eph-person {
  margin-bottom: 20px;
}

.eph-person-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.eph-facts {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.eph-fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.eph-fact dt {
  color: var(--muted);
}

.eph-fact dd {
  margin: 0;
}

@media (max-width: 640px) {
  .eph-fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .eph-item-thumb {
    flex-basis: 72px;
  }

  .eph-item-thumb img {
    width: 72px;
    height: 90px;
  }
}
