/*
 * Styles for /blog/mooring-a-4d-boat/. Linked from the post body, so it
 * arrives and leaves with the post under instant-nav.
 */
:root { --max-w: 820px; }

main article {
  background: rgba(8, 5, 16, 0.64);
  border: 1px solid rgba(235, 225, 210, 0.08);
  border-radius: 14px;
  padding: 1.75rem 2rem 2.25rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.post-content h2 { font-size: 1.75rem; margin-top: 2.75rem; }
.post-content > p { margin-bottom: 1.6rem; }
.post-content table { font-size: var(--fs-base); }
@media (max-width: 640px) {
  main article { padding: 1.1rem 1rem 1.5rem; border-radius: 10px; }
  .post-content h2 { font-size: 1.45rem; }
}

.m4-fig { margin: 2rem 0 2.25rem; font-family: var(--font-sans); font-size: var(--fs-sm); line-height: 1.5; }
.m4-wide { width: min(1000px, 94vw); position: relative; left: 50%; transform: translateX(-50%); }
.m4-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem 0.8rem; }
.m4-fig figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: 0.7rem; font-family: var(--font-sans); line-height: 1.5; }
.m4-svg { width: 100%; height: auto; display: block; }
.m4-svg text { font-family: var(--font-sans); }
.m4-controls { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-bottom: 0.8rem; }
.m4-slider { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.m4-slider input { accent-color: var(--accent); width: 200px; }
.m4-btn { font: inherit; color: var(--text); background: transparent; border: 1px solid var(--border-strong); border-radius: 7px; padding: 0.35rem 0.75rem; cursor: pointer; }
.m4-btn:hover { background: var(--bg-raised); }
.m4-btn:disabled { opacity: 0.5; cursor: default; }
.m4-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.m4-col { flex: 1 1 300px; min-width: 0; }
@media (max-width: 640px) { .m4-slider input { width: 140px; } }
.m4-controls-below { margin: 0.7rem 0 0; }
#m4-crossing .m4-svg { max-width: 560px; margin: 0 auto; }
.m4-hover { cursor: ew-resize; touch-action: pan-y; outline: none; border-radius: 8px; }
.m4-hover:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.m4-hint { color: var(--muted); font-size: var(--fs-xs); margin-top: 0.5rem; text-align: center; }
