/* Make portrait video embeds taller */
article div[style*="padding-bottom: 56.25%"] {
  padding-bottom: 177.78% !important; /* 9:16 aspect ratio */
  max-width: 400px; /* constrain width so it doesn't get huge */
  margin: 1.5em auto;
}

/* For code blocks (wrapped in pre) */
pre {
  background-color: #1e1e1e !important;
  padding: 16px !important;
  color: #d4d4d4 !important;
  overflow-x: auto !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  font-size: 0.85em !important;
  line-height: 1.4 !important;
}

/* For inline code snippets */
code:not(pre code) {
  background-color: #1e1e1e !important;
  padding: 2px 6px !important;
  color: #d4d4d4 !important;
  font-size: 0.9em !important;
}