/* Uses the existing MOTIKA design-system variables. Do not define a parallel :root. */
.video-container.text{
  background:#f5f5f5;
}

.mk-post-text{
  position:relative;
  font-family:var(--mk-font, 'Montserrat', "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  width:100%;
  max-width:380px;
  min-height:640px;
  margin:0 auto;
  background:var(--mk-bg-soft, #f5f5f5);
  border-radius:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 30px;
  text-align:center;
}
.mk-post-text__avatar{
  width:176px;
  height:176px;
  border-radius:50%;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  object-fit:cover;
  background:var(--mk-gradient-brand, linear-gradient(122deg, #99cc00, #40a629, #01a0c6, #01a0c6));
  color:#fff;
  font-weight:700;
  font-size:48px;
  margin-bottom:20px;
}
.mk-post-text__profile{ display:flex; flex-direction:column; align-items:center; gap:2px; }
.mk-post-text__username{ font-weight:700; font-size:16px; color:var(--mk-text, #242424); }
.mk-post-text__rank{ font-weight:700; font-size:.6em; letter-spacing:4px; color:var(--mk-text-muted, #8a8f99); text-transform:uppercase; }
.mk-post-text__bubble{
  position:relative;
  margin-top:25px;
  border:1px solid var(--mk-green, #99cc00);
  border-radius:var(--mk-radius-md, 10px);
  background:#fff;
  padding:16px 20px 28px;
  max-width:300px;
}
.mk-post-text__bubble::before,
.mk-post-text__bubble::after{
  content:'';
  position:absolute;
  left:50%;
  border-style:solid;
  border-color:transparent;
}
.mk-post-text__bubble::before{ top:-15px; margin-left:-11px; border-width:0 11px 15px; border-bottom-color:var(--mk-green, #99cc00); }
.mk-post-text__bubble::after{ top:-14px; margin-left:-10px; border-width:0 10px 14px; border-bottom-color:#fff; }
.mk-post-text__title{ font-weight:700; font-size:19px; line-height:1.45; color:var(--mk-text, #242424); overflow-wrap:anywhere; }
.mk-post-text__more{
  position:absolute;
  left:50%;
  bottom:-22px;
  transform:translateX(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid var(--mk-green, #99cc00);
  background:#fff;
  color:var(--mk-green-dark, #506b00);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
}
.mk-post-text__more:hover,
.mk-post-text__more:focus-visible{ background:var(--mk-green, #99cc00); color:#fff; outline:none; }
.mk-post-text__more svg{ width:18px; height:18px; }
.mk-text-post-dialog{
  position:fixed;
  top:50%;
  left:0;
  right:0;
  transform:translateY(-50%);
  margin:0 auto;
  border:0;
  padding:20px;
  background:transparent;
  width:min(calc(100vw - 32px), 380px);
  max-width:none;
  max-height:calc(100vh - 32px);
  overflow:auto;
  text-align:left;
}
.mk-text-post-dialog::backdrop{ background:rgba(0,0,0,.55); }
.mk-text-post-dialog .mk-modal{
  background:#fff;
  border-radius:var(--mk-radius-sm, 8px);
  padding:2rem 2rem 1.75rem;
  max-width:340px;
  width:100%;
  margin: auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.mk-post-text__body{ text-align:left; align-self:stretch; overflow-wrap:anywhere; }
.mk-post-text__body strong{ font-weight:700; }
.mk-post-text__body em{ font-style:italic; }
.mk-post-text__body p{ font-size:15px; line-height:1.55; color:var(--mk-text, #242424); margin-top:10px; }
.mk-post-text__body p:first-of-type{ margin-top:0; }
.mk-post-text__body a{ color:var(--mk-green-dark, #506b00); font-weight:700; text-decoration:underline; }
.mk-post-text__body ul,
.mk-post-text__body ol{ margin:8px 0 0; padding-left:1.2em; font-size:14px; line-height:1.5; }
.mk-modal__close{
  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  background:var(--mk-green, #99cc00);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  margin: auto;
  align-self:center;
}
.mk-modal__close:hover,
.mk-modal__close:focus-visible{ background:var(--mk-green-dark, #506b00); outline:none; }
.mk-modal__close svg{ width:20px; height:20px; }
@media (max-width:400px){
  .mk-post-text{ min-height:560px; padding:36px 20px; }
  .mk-post-text__avatar{ width:140px; height:140px; font-size:38px; margin-bottom:16px; }
  .mk-post-text__title{ font-size:17px; }
  .mk-post-text__bubble{ max-width:260px; padding:14px 18px 26px; }
}
@media (max-width:340px){
  .mk-post-text{ min-height:520px; padding:28px 16px; }
  .mk-post-text__avatar{ width:112px; height:112px; font-size:30px; margin-bottom:14px; }
  .mk-post-text__title{ font-size:15px; line-height:1.4; }
  .mk-post-text__bubble{ max-width:230px; margin-top:20px; padding:12px 16px 24px; }
  .mk-post-text__more{ width:38px; height:38px; bottom:-19px; }
  .mk-post-text__more svg{ width:16px; height:16px; }
}
