.example-layout {
  display: grid;
  grid-template-columns: minmax(10.5rem, .85fr) minmax(0, 3.25fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.example-layout aside { padding-block: 1.15rem; }
.example-layout aside h2 { font: 650 1.125rem/1.4 var(--sans); letter-spacing: 0; margin-bottom: .65rem; }
.example-picker { display: grid; gap: .35rem; }
.example-picker a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .58rem .8rem;
  border: 1px solid transparent;
  border-inline-start: 4px solid transparent;
  border-radius: .4rem;
  line-height: 1.42;
  text-decoration: none;
}
.example-picker a:hover { text-decoration: underline; background: var(--glass-tint); }
.example-picker a[aria-current] { color: var(--ink); border-color: #a5c5bc; border-inline-start-color: var(--teal); background: var(--glass); font-weight: 680; }
.example-card { margin-top: 0; }
.example-card .math-sheet { padding: 1rem; }
.next-question { padding: 1.05rem 1.3rem; background: var(--apricot-tint); border-inline-start: 4px solid var(--rust); border-radius: 0 .5rem .5rem 0; margin: 1.35rem 0; }
.next-question h3 { margin: 0 0 .45rem; color: var(--rust); font-size: 1.1rem; }
.next-question p { font: 400 1.25rem/1.5 var(--serif); color: var(--ink); }
.next-question p,.math-sheet p:last-child,#sample-limit { margin-bottom: 0; }
.demo-end { display: flex; align-items: center; justify-content: center; gap: .65rem 1.5rem; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  #sample-math .math-sheet { animation: align-sheet .42s ease-out both; }
  #sample-math .math-sheet:nth-child(2) { animation-delay: .06s; }
  @keyframes align-sheet { from { transform: translateY(.45rem); } to { transform: none; } }
}
@media (max-width: 51rem) {
  .example-layout { display: block; }
  .example-layout aside { padding: 0 0 1rem; }
  .example-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .example-picker a { border-color: var(--rule); }
  .example-card { margin-top: .3rem; }
}
@media (max-width: 24rem) {
  .example-picker a { padding-inline: .55rem; }
}
@media (max-width: 38rem) {
  .example-picker { grid-template-columns: repeat(auto-fit,minmax(min(100%,7.5em),1fr)); }
  .example-picker a { min-width: 0; overflow-wrap: anywhere; padding-inline: 10px; }
  .next-question,.example-card .math-sheet { padding-inline: clamp(10px,3vw,16px); }
}
