/* shared base; page-specific styles stay inline (copied from the canvas pages) */
img,svg{max-width:100%}

/* phones: stack the multi-column blocks that are too narrow to read side by side */
@media (max-width: 720px) {
  [style*="grid-template-columns: repeat(3, minmax(0, 1fr))"],
  [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 2fr 3fr"],
  [style*="grid-template-columns: 1fr auto 1fr"],
  [style*="grid-template-columns: 210px 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr auto 1fr"] > [aria-hidden="true"] { transform: rotate(90deg); justify-self: center; }
  h1 { font-size: 26px !important; }
  main { padding-left: 16px !important; padding-right: 16px !important; }
  article { padding-left: 16px !important; padding-right: 16px !important; }
}

/* article visuals (classes added by gen_article.py) */
@media (max-width: 720px) {
  .v-span { flex-direction: column; gap: 30px !important; }
  .v-span .v-line { width: 70%; flex: none !important; }
  .v-extend { height: auto !important; }
  .v-extend > div { padding: 8px 6px; text-align: center; font-size: 12px; line-height: 1.5; }
  .v-extend > div:first-child { width: 26% !important; }
  .v-extend > div:last-child { width: 74% !important; }
  .v-cal { flex-wrap: wrap; }
  .v-cal > span { flex: 0 0 calc((100% - 24px) / 7) !important; }
}
