.mental-slate {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  color: #f5faf2;
  border: 1px solid #315952;
  border-radius: 1.1rem;
  background-color: #103d36;
  background-image: linear-gradient(90deg, #ffffff0c 1px, transparent 1px), linear-gradient(#ffffff0c 1px, transparent 1px);
  background-size: 1.35rem 1.35rem;
}
.mental-slate summary { display: block; padding: clamp(1.2rem, 3vw, 2rem); cursor: pointer; list-style: none; color: inherit; }
.mental-slate summary::-webkit-details-marker { display: none; }
.mental-slate summary:focus-visible { outline: .2rem solid #ffd987; outline-offset: -.4rem; }
.mental-slate__label, .mental-slate__title { display: block; }
.mental-slate__label { color: #c2e9d5; font-size: .8rem; font-weight: 650; }
.mental-slate__title { margin: .25rem 0 .85rem; font-size: clamp(1.2rem, 2.4vw, 1.65rem); letter-spacing: -.025em; }
.mental-slate__equation { display: flex; align-items: center; gap: .25em; font: 700 clamp(2.35rem, 4vw, 4rem)/1.13 ui-monospace, Menlo, monospace; }
.mental-slate__term { display: inline-block; padding: .08em .16em; border-radius: .18em; color: #11382e; background: #d5f4ad; }
.mental-slate__term:last-child { color: #432b1a; background: #ffcf94; }
.mental-slate__action { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: .55rem .8rem; color: #f8fff9; border: 1px solid #93baab; border-radius: .4rem; font-size: .9rem; font-weight: 700; }
.mental-slate summary:hover .mental-slate__action { background: #24594f; }
.mental-slate .slate-after, .mental-slate[open] .slate-before { display: none; }
.mental-slate[open] .slate-after { display: inline; }
.mental-slate > p { margin: -.25rem 0 0; padding: 0 clamp(1.2rem, 3vw, 2rem) 1.4rem; color: #f5faf2; line-height: 1.55; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .mental-slate[open] .mental-slate__term { animation: slate-shift .22s ease-out; }
  @keyframes slate-shift { from { transform: translateY(.12em); } to { transform: none; } }
}
