/* Use the lab's Bootstrap typography, white background, and burgundy links. */
:root { color-scheme: light; }
body { background: #fff; }
a, a:hover { color: #8c1515; }
a:focus-visible, button:focus-visible { outline: 2px solid #8c1515; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.navbar-brand img { height: 40px; width: auto; }
.skip-link { position: absolute; top: -100px; left: 15px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }
.index-main { padding-top: 30px; padding-bottom: 50px; }
.index-main h1 { color: #35635b; font-size: 2rem; font-weight: 400; margin-bottom: 30px; }
.post { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 30px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #e5e5e5; }
.post:last-child { border-bottom: 0; }
.post-image { width: 100%; border-radius: 4px; }
.post h2 { font-size: 1.5rem; line-height: 1.35; font-weight: 500; margin-bottom: 8px; }
.post p { margin-bottom: 8px; }
.post-author { color: #6c757d; font-size: .9rem; }
.article-main { max-width: 960px; padding: 28px 15px 50px; margin: auto; }
.back-link { font-size: .9rem; }
.article-header { margin: 25px 0 30px; padding-bottom: 22px; border-bottom: 1px solid #e5e5e5; }
.article-header h1 { font-size: 2.25rem; line-height: 1.2; font-weight: 500; margin-bottom: 14px; }
.subtitle { font-size: 1.15rem; color: #6c757d; margin-bottom: 18px; }
.article-meta { display: flex; gap: 12px; flex-wrap: wrap; color: #6c757d; font-size: .875rem; }
.article-meta a { margin-left: auto; }
.article-body { font-size: 1rem; line-height: 1.75; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { color: #35635b; font-size: 1.65rem; line-height: 1.3; font-weight: 400; margin: 36px 0 18px; }
.article-body h3 { font-size: 1.3rem; line-height: 1.4; font-weight: 500; margin: 30px 0 16px; }
.article-body figure { margin: 28px 0; }
.figure-media img { display: block; width: 100%; }
.diagram-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: center; }
.diagram-label { display: block; color: #6c757d; font-size: .8rem; margin-top: 8px; }
figcaption { color: #6c757d; font-size: .85rem; line-height: 1.6; margin-top: 10px; }
.animation-controls { margin-top: 10px; font-size: .8rem; }
.animation-toggle { border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #8c1515; padding: 5px 10px; font: inherit; cursor: pointer; }
.animation-toggle:hover { border-color: #8c1515; }
.animation-toggle[hidden] { display: none; }
.math { font-family: "Cambria Math", "Times New Roman", serif; font-style: italic; white-space: nowrap; }
.math sub { font-size: .72em; }
.equation { overflow-x: auto; text-align: center; padding: 16px 10px; margin: 24px 0; font-size: 1.2rem; }
.citation { font-size: .75rem; white-space: nowrap; vertical-align: super; }
.references { border-top: 1px solid #e5e5e5; margin-top: 36px; }
.references ol { padding-left: 22px; font-size: .875rem; }
.references li { margin-bottom: 14px; padding-left: 4px; }
.references li:target { background: #f8f9fa; }
.article-end { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
@media (max-width: 767px) {
  .post { grid-template-columns: 1fr; gap: 18px; }
  .post-image { max-width: 420px; }
  .article-header h1 { font-size: 1.8rem; }
  .diagram-pair { grid-template-columns: 1fr; }
  .article-meta a { margin-left: 0; }
}
@media print {
  .navbar, .back-link, .animation-controls, .article-end, .skip-link { display: none; }
  .article-main { max-width: none; padding: 0; }
  .article-header { margin-top: 0; }
  figure, .equation { break-inside: avoid; }
}
