@import url('https://npm.elemecdn.com/lxgw-wenkai-screen-webfont@1.1.0/style.css');

/* This stylesheet is loaded only by the moments page. */
body, .moment-body :is(h1,h2,h3,h4,h5,h6), #moments-more {
  font-family: "LXGW WenKai Screen", sans-serif;
}
.moments-intro { opacity: .68; margin-bottom: 2.2rem; }
.moment { padding: 0 0 2rem; margin: 0 0 2rem; border-bottom: 1px solid #8883; }
.moment-date { font-size: .82em; opacity: .65; text-decoration: none; }
.moment-body { margin-top: .8rem; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.moment-body > :first-child { margin-top: 0; }
.moment-body pre { max-width: 100%; overflow-x: auto; }
.moment-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: .5rem; width: 100%; max-width: 520px; margin: 1rem auto 0; }
.moment-images a { display: block; overflow: hidden; border-radius: 8px; }
.moment-images img { width: 100%; height: auto; object-fit: contain; display: block; margin: 0; }
.moment-images a:only-child { grid-column: 1 / -1; }
.moment video { width: auto; max-width: 100%; max-height: 36rem; border-radius: 8px; }
.moment-body img { display: block; max-width: min(100%, 520px); height: auto; margin-inline: auto; border-radius: 8px; }
/* Wide tables scroll within each post, without widening the page. */
.moment-table-frame { max-width: 100%; min-width: 0; margin: 1rem 0; }
.moment-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #8b8276 #e6e1d8; }
.moment-body .moment-table-scroll table { display: table; width: max-content; min-width: 100%; max-width: none; table-layout: auto; margin: 0; border-collapse: collapse; }
.moment-body .moment-table-scroll :is(th,td) { padding: .6rem .8rem; border: 1px solid #8884; text-align: left; white-space: nowrap; overflow-wrap: normal; word-break: normal; line-height: 1.6; }
.moment-body .moment-table-scroll th { background: #8881; font-weight: 700; }
.moment-body .moment-table-scroll tbody tr:nth-child(even) { background: rgb(128 128 128 / 4%); }
.moment-table-scroll:focus-visible { outline: 2px solid #a77442; outline-offset: 2px; }
.moment-video-hint { font-size: .8em; opacity: .7; }
.moment-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.moment-tags button, #moments-filter button { color: inherit; background: #8881; border: 0; border-radius: 4px; padding: .2rem .5rem; cursor: pointer; font: inherit; font-size: .8em; }
#moments-filter { margin-bottom: 1.5rem; }
#moments-status { font-size: .9em; opacity: .65; text-align: center; }
#moments-more { display: block; margin: 1.5rem auto; border: 1px solid #8885; padding: .65rem 1.4rem; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
#moments-more[hidden] { display: none; }
#moments-more:disabled { opacity: .5; cursor: wait; }
@media (max-width: 480px) { .moment-images { gap: .3rem; } .moment { margin-bottom: 1.5rem; padding-bottom: 1.5rem; } }
