/* MIJUONE v1.63.5 — focused fixes; no changes to shared navigation or legacy modules. */
/* Align Community's headline to the identical 1600px reading grid used by News
   and the other service headers. Remove the v1.63.4 special-width override. */
body .page-community .mi-service-hero--community { --mi-service-h:315px !important; }
body .page-community .mi-service-hero--community .mi-service-hero__inner {
  width:min(1600px,calc(100% - 66px)) !important;
  max-width:1600px !important;
  min-height:315px !important;
  padding:28px 0 !important;
}
body .page-community .mi-service-hero--community .mi-service-hero__copy {
  width:min(740px,75%) !important;
  max-width:min(740px,75%) !important;
}
body .page-community .mi-service-hero--community h1 {
  max-width:740px !important;
  font-size:clamp(27px,2.6vw,43px) !important;
}
/* Stable post layout: every element has its own row; reaction choices can no
   longer float over the location text, toolbar separator, or comments. */
.page-community .ms-thread{overflow:visible;isolation:isolate;}
.page-community .ms-thread-content{min-width:0;}
.page-community .ms-thread-location{
  position:relative;display:flex;align-items:center;
  margin:8px 0 12px;line-height:1.5;min-height:17px;
}
.page-community .ms-actions{
  position:relative;z-index:1;display:flex;flex-wrap:wrap;
  align-items:center;gap:6px 11px;min-width:0;
  border-top:1px solid #e9eff7;border-bottom:1px solid #edf2f8;
  margin:0;padding:9px 0;isolation:isolate;
}
.page-community .ms-actions form{position:static;max-width:100%;min-width:0;}
.page-community .ms-actions [data-ms-reaction-form]{display:inline-flex;align-items:center;gap:3px;flex-wrap:wrap;}
.page-community .ms-actions .ms-action,.page-community .ms-actions button.ms-action-heart{
  min-height:34px;box-sizing:border-box;white-space:nowrap;
  padding:7px 6px;line-height:1.3;
}
.page-community .ms-reaction-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 24px;width:24px;height:30px;border:0;border-radius:8px;
  background:#eff5fd;color:#5b80ac;cursor:pointer;
}
.page-community .ms-reaction-toggle:hover,.page-community .ms-reaction-toggle[aria-expanded="true"]{background:#dfeeff;color:#1d68af;}
.page-community .ms-reaction-toggle .icon{height:13px;width:13px;}
/* Static, inline expansion: no absolute hover overlay, no overlap possible. */
.page-community .ms-actions .ms-reaction-options,
.page-community .ms-actions form[data-ms-reaction-form]:hover .ms-reaction-options,
.page-community .ms-actions form[data-ms-reaction-form]:focus-within .ms-reaction-options {
  display:none !important;
  position:static !important;top:auto !important;bottom:auto !important;left:auto !important;
  margin:0;padding:2px 5px;background:#f2f7fe;border:1px solid #dce9f8;
  border-radius:999px;box-shadow:none;z-index:auto;
}
.page-community .ms-actions .ms-reaction-options.is-open,
.page-community .ms-actions form[data-ms-reaction-form]:hover .ms-reaction-options.is-open,
.page-community .ms-actions form[data-ms-reaction-form]:focus-within .ms-reaction-options.is-open{
  display:inline-flex !important;align-items:center;gap:3px;
}
.page-community .ms-actions .ms-reaction-options button{
  display:inline-grid;place-items:center;border:0;background:transparent;
  min-width:29px;min-height:29px;border-radius:50%;font-size:14px;color:#52769a;cursor:pointer;
}
.page-community .ms-actions .ms-reaction-options button:hover,
.page-community .ms-actions .ms-reaction-options button.is-active{
  color:#cf3d77;background:#fff;
}
.page-community .ms-actions .ms-open-detail{margin-left:auto;}
.page-community .ms-trust-action-v163{display:inline-flex;max-width:100%;flex-wrap:wrap;align-items:center;gap:6px;}
.page-community .ms-thread-preview{padding:10px 0 7px;}
.page-community .ms-thread-commentbar{margin-top:9px;border-top:1px solid #edf2f8;padding-top:13px;}
/* Photographs are actually selected, previewed and then submitted. */
.page-community .ms-photo-preview{
  margin:12px 0 0 60px;padding:10px 12px;border-radius:14px;
  border:1px solid #dce9f7;background:linear-gradient(135deg,#f4faff,#fff);
}
.page-community .ms-photo-preview[hidden]{display:none !important;}
.page-community .ms-photo-preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#336397;font-size:11px;font-weight:850;}
.page-community .ms-photo-preview-clear{border:0;background:#e8f0fa;color:#366997;border-radius:8px;padding:6px 9px;font-size:11px;font-weight:750;cursor:pointer;}
.page-community .ms-photo-preview-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.page-community .ms-photo-preview-tile{width:92px;min-width:0;position:relative;border:1px solid #d6e4f2;border-radius:11px;overflow:hidden;background:#fff;}
.page-community .ms-photo-preview-tile img{display:block;object-fit:cover;width:92px;height:78px;}
.page-community .ms-photo-preview-tile span{display:block;padding:5px 6px;color:#72879d;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.page-community .ms-upload-guide{margin:8px 0 0 60px;font-size:10px;color:#7890ab;line-height:1.5;}
.page-community .ms-inline-error:not([hidden]){
  display:block;padding:10px 12px;margin-top:10px;background:#fff3f4;
  border:1px solid #f1cdd0;border-radius:10px;color:#ae3147;font-size:12px;
}
.page-community .ms-publish:disabled,.mi-avatar-upload-form button:disabled{opacity:.6;cursor:progress;}
.page-community .ms-avatar-camera{z-index:2;}
.page-community .ms-avatar-camera[aria-busy="true"]{opacity:.65;pointer-events:none;}
.mi-avatar-form-feedback-v1635{font-size:11px;color:#3b78a4;min-width:160px;line-height:1.4;}
.mi-avatar-form-feedback-v1635.is-error{color:#ae3147;}
@media(max-width:1023px){
  body .page-community .mi-service-hero--community{--mi-service-h:270px !important;}
  body .page-community .mi-service-hero--community .mi-service-hero__inner{min-height:270px!important;}
}
@media(max-width:750px){
  body .page-community .mi-service-hero--community{--mi-service-h:245px !important;}
  body .page-community .mi-service-hero--community .mi-service-hero__inner{
    width:calc(100% - 36px)!important;min-height:245px!important;padding:20px 0!important;
  }
  body .page-community .mi-service-hero--community .mi-service-hero__copy{width:100%!important;max-width:100%!important;}
  .page-community .ms-actions{gap:4px 8px;}
  .page-community .ms-actions .ms-open-detail{margin-left:0;}
  .page-community .ms-photo-preview,.page-community .ms-upload-guide{margin-left:0;}
  .page-community .ms-photo-preview-tile,.page-community .ms-photo-preview-tile img{width:73px;}
  .page-community .ms-photo-preview-tile img{height:67px;}
}
