/* post page layout */
body {
  background: var(--bg3);
}
main {
  max-width: 60rem !important;
}

h1 {
  background: none;
  color: var(--txt1);
}
main {
  max-width: 100%;
  margin-top: 0;
  gap: 0;
  align-items: start;
}

article {
  background: var(--bg3);
  width: 100%;
}
.postdata {
    align-self: start;
    margin-left: calc(0.5rem + 2vw);
    margin: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 0.1rem dashed var(--border1);
    color: var(--txt1);
}
.postdata p {
    font-size: 0.8rem;
    color: var(--txt1);
}
.wrapper-div {
  padding: 0.5rem;
  display: flex;   
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
}
.wrapper-div img {
    height: 2rem;
    width: 2rem;
}
.wrapper-div p {
  font-weight: bold;
  font-size: 1rem;
}
.name {
  font-weight: bold;
}
.message-div {
  padding-top: 1rem;
  border-top: 0.2rem double var(--border1);
}
.message {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  border-bottom: 0.05rem solid var(--border2);
}
.reply-snippet {
  all: unset;
  font-size: 0.8em;
  opacity: 0.75;
  padding: 0.25rem 0.5rem;
  padding-right: 1rem;
  border-radius: 0.5rem;
  margin: 0 0 0.35rem 0;
  box-shadow: 0 0 0.2rem var(--shadow);
  position: relative;
  margin-left: 0.5rem;
  border-left: 0.15rem solid var(--border1);
}
.reply-snippet-text {
  overflow-wrap: anywhere;   /* best / modern */
  word-break: break-word;    /* fallback */
  display: block;
  overflow: hidden;
  padding-left: 0.5rem;
  /* collapsed: show ~2 lines (tweak) */
  max-height: 2.6lh;
  transition: max-height 280ms ease;
}

/* expanded: grow to full height smoothly */
.reply-snippet[data-expanded="1"] .reply-snippet-text {
  max-height: max-content;
}

.reply-snippet span:first-child {
  color: var(--bg4);
}
.reply-snippet span:first-child::after {
  content: ": ";
}
.message:target .message-body {
  outline: 0.05rem solid var(--cool);
  outline-offset: 0.2rem;
  border-radius: 0.5rem;
}
.answer-btn {
  padding: 0.5rem;
  border-radius: 999px;
  background-color: var(--bg2);
  color: var(--txt2);
}
.message-form {
  position: sticky;
  bottom: 0;
}
.ans {
}
article time {
  color: var(--muted);
}
#create_msg_dialog {
  padding: 5vh 5vw;
}
.create-msg-btn {
  margin: 0 auto;
  margin-top: 1rem;
  border: 0.05rem solid var(--border2);
  max-width: 20rem;
  width: 100%;
  padding: 1.5rem 0;
  border-radius: 999px;
  font-size: 0.8rem;
  box-shadow: 0 0 0.5rem var(--shadow);
  color: var(--txt2);
  background-color: var(--bg2);
}
.quote-div {
  max-height: 45vh;
  min-height: 5rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.05rem 0 0 0.5rem;
  border-left: 0.2rem solid var(--border1);
}
.quote-div h1,
.quote-div .wrapper-div {
  padding-left: 0;
}
#create_msg_dialog h3 {
  color: var(--muted);
}
main > time:first-of-type,
#create_msg_dialog time {
  font-size: 0.8rem;
  color: gray;
}
main > time:first-of-type {
  padding-left: 0.5rem;
}
#create_msg_dialog form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.5rem;
  border-radius: 0.5rem;
  background: var(--bg3);
  position: sticky;
  bottom: 0;
}
#create_msg_dialog form textarea {
  width: 100%;
  border-radius: inherit;
  padding: 0.5rem;
  resize: none;
  height: 5rem;
  font-size: 0.7rem;
  border: 0.05rem solid var(--border2);
}
#create_msg_dialog form > div:last-child {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}
.answer-ui .message-body {
  padding-bottom: 0.5rem;
  color: var(--txt1);
}
/*  */
aside:last-of-type {
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  padding: 3rem 1rem;
}
aside:last-of-type p {
  color: var(--muted);
}
aside:last-of-type p a {
  white-space: nowrap;
}
.message-body {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.post-body {
  margin-bottom: 1rem;
}
.action-btn-div {
  align-self: start;
  position: relative;
  margin: 1rem;
  display: flex;
  margin-top: 0;
  top: 0;
  left: 0;
}
.new-comments-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cool);
    white-space: nowrap;
}
.new-comments-line::before,
.new-comments-line::after {
    content: "";
    width: 100%;
    height: 0.05rem;
    background: var(--border1);
}
.meme-picker summary {
  font-size: 0.8rem;
}
/* for post image */
.post-img {
    display: block;
    max-width: 100%;
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: max-height 180ms ease;
}
.post-hero-box.is-expanded .post-img {
    max-height: 2000px;
}
.post-hero-box.is-expanded {
    cursor: zoom-out;
}

