/* Exact-match preview shell. Uses the existing Encoded tokens.
   Horizontal inset matches the shared header so the film aligns with it.
   The film frame is a 10px card with an inset ring, per the visual system. */
.emd-page main { padding: 40px 53px 80px; }
.emd-page .section { padding: 0; }
.emd-pending {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 24px;
  border-radius: 10px;
  background: var(--ec-surface);
  color: var(--ec-text-secondary);
  box-shadow: var(--ec-ring-default);
}
.emd-pending p,
.emd-pending li {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}
.emd-pending ul { margin: 0; padding-left: 18px; }
.emd-pending-label {
  font-family: var(--ec-font-mono);
  font-size: 12px;
  line-height: 19.2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-text-primary);
}
.emd-film {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
.emd-film-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ec-surface-inverse);
  box-shadow: var(--ec-ring-default);
}
.emd-film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ec-surface-inverse);
}
.emd-film figcaption {
  margin: 0;
  font-family: var(--ec-font-mono);
  font-size: 12px;
  line-height: 19.2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-text-secondary);
}
.emd-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.emd-links a {
  color: var(--ec-text-primary);
  font-family: var(--ec-font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
.emd-ownership {
  margin: 0;
  font-family: var(--ec-font-mono);
  font-size: 12px;
  line-height: 19.2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-text-secondary);
}
.emd-ownership a { color: inherit; }
.emd-note {
  margin: 0;
  max-width: 720px;
  font-family: var(--ec-font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--ec-text-secondary);
}
.emd-copy { display: flex; flex-direction: column; gap: 16px; }
.emd-copy h2 {
  margin: 28px 0 0;
  font-family: var(--ec-font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ec-text-primary);
}
.emd-copy p,
.emd-copy li {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 26px;
  color: var(--ec-text-primary);
}
.emd-copy ul,
.emd-copy ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.emd-copy a { color: inherit; text-underline-offset: 3px; }
.emd-inline-code {
  font-family: var(--ec-font-mono);
  font-size: 0.92em;
  color: var(--ec-text-primary);
  background: var(--ec-surface-subtle);
  border-radius: 4px;
  padding: 0 4px;
}
.emd-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.emd-text-link {
  color: var(--ec-text-primary);
  font-family: var(--ec-font-body);
  font-size: 16px;
  line-height: 24px;
}
.emd-table-wrap { overflow-x: auto; }
.emd-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ec-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--ec-text-primary);
}
.emd-table th,
.emd-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ec-border-hairline, #e7e7e7);
  font-weight: 400;
}
.emd-table th {
  font-family: var(--ec-font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-text-secondary);
}
.emd-code {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--ec-surface-inverse);
  color: var(--ec-text-inverse);
  box-shadow: var(--ec-ring-default);
  font-family: var(--ec-font-mono);
  font-size: 13px;
  line-height: 20px;
}
.emd-page .section-head { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) {
  .emd-copy h2 { font-size: 26px; }
}
@media (max-width: 960px) {
  .emd-page main { padding: 32px 28px 64px; }
}
@media (max-width: 640px) {
  .emd-page main { padding: 24px 24px 56px; }
}
