/* Local preview: a persistent, horizontally scrollable navigation bar. */
.slay-site .community-site-header {
  height: auto;
  min-height: 0;
  background: linear-gradient(100deg,#0b070af5,#250913ed,#0b070af5),url('/images/arena-red-v2.png') center 30%/cover;
  border-bottom: 1px solid #912043;
  box-shadow: 0 5px 25px #ef145126;
}
.slay-site .community-site-header .header-inner,
.slay-site .community-site-header .header-inner:has(.signed-in-entry) {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  grid-template-rows: 76px auto;
  gap: 0;
  width: min(100% - 32px, 1660px);
  max-width: none;
  margin: auto;
  padding: 0 0 14px;
  position: relative;
  direction: ltr;
}
.slay-site .community-site-header .brand {
  grid-area: 1 / 2;
  position: static;
  transform: none;
  justify-self: center;
  width: auto;
  margin: 0;
}
.slay-site .community-site-header .brand > img {
  width: 180px;
  max-width: 100%;
  height: 66px;
}
.slay-site .community-site-header .header-actions {
  grid-area: 1 / 3;
  justify-self: end;
  gap: 10px;
  margin: 0;
}
.slay-site .community-site-header .site-menu-toggle { display: none !important; }
.slay-site .community-site-header .site-primary-navigation,
.slay-site .community-site-header .site-primary-navigation.expanded {
  grid-area: 2 / 1 / 3 / 4;
  position: static;
  display: flex;
  direction: rtl;
  justify-content: safe center;
  align-items: stretch;
  justify-self: stretch;
  gap: 2px;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #a82a57 transparent;
  background: linear-gradient(110deg,#170910f5,#210b16f7,#120910f5);
  border: 1px solid #b7335c;
  border-radius: 14px;
  box-shadow: 0 2px 14px #ef14512b, inset 0 0 12px #ff3c7812;
}
.slay-site .community-site-header .site-primary-navigation > a {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 103px;
  min-height: 67px;
  padding: 8px 14px;
  color: #f2d8e3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
}
.slay-site .community-site-header .site-primary-navigation > a > svg {
  width: 23px;
  height: 23px;
  color: #f4c8da;
  padding: 0;
}
.slay-site .community-site-header .site-primary-navigation > a.active {
  color: white;
  background: linear-gradient(145deg,#9a1351,#4e0b29);
  border-color: #ff5d9c;
  box-shadow: inset 0 0 15px #ff4f8a47,0 0 12px #f01c6570;
}
.slay-site .community-site-header .site-primary-navigation > a:hover,
.slay-site .community-site-header .site-primary-navigation > a:focus-visible {
  color: #fff;
  border-color: #dc4c80;
  background: #53142d;
}
.slay-site .site-primary-navigation > .mobile-menu-heading,
.slay-site .site-primary-navigation > .mobile-admin-link { display: none !important; }
.slay-site .community-site-header .header-actions > .admin-entry { display: grid; }
/* The administration entry is separate from the account controls. */
.slay-site .community-site-header .header-actions > .admin-entry {
  position: absolute;
  left: 0;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 102px;
  height: 40px;
  padding: 0 12px;
  color: #ffe0ec;
  background: #1b0912;
  border: 1px solid #df3b73;
  border-radius: 10px;
  box-shadow: 0 0 13px #f6286a44;
  font-weight: 700;
}
.slay-site .community-site-header .header-actions > .admin-entry::after { content: 'الإدارة'; }
.mobile-bottom-navigation { display: none !important; }

/* Verified identity presentation on community posts. */
.sf-post:has(.sf-author-rank.leader) .sf-person strong { color: #f4c76e; }
.sf-post .sf-author-rank.leader { color: #ffda81; filter: drop-shadow(0 0 5px #df9b39); }
.sf-post:has(.sf-author-rank.official) .sf-person strong { color: #ff8db9; }
.sf-post .sf-author-rank.official { color: #ff4d94; filter: drop-shadow(0 0 5px #f52d78); }
.sf-post .sf-person[href='#members/a3a736d3-e62d-4028-bc84-0c8e2b4aecdd'] strong { color: #c7b5ff; }
.sf-post .sf-person[href='#members/a3a736d3-e62d-4028-bc84-0c8e2b4aecdd'] .sf-author-rank { color: #b99aff; filter: drop-shadow(0 0 5px #8558e8); }
.sf-post .sf-person[href='#members/a3a736d3-e62d-4028-bc84-0c8e2b4aecdd'] strong::after {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 9px;
  line-height: 1.5;
  vertical-align: middle;
}
.sf-post .sf-person[href='#members/a3a736d3-e62d-4028-bc84-0c8e2b4aecdd'] strong::after { content: 'موثّق ✦'; }
/* Keep comments visually separate without divider or thread lines. */
.slay-site .post-comment { border-bottom: 0; }
.slay-site .post-comment.comment-is-reply { border-inline-start: 0; }

/* A compact conversation layout: one soft bubble per comment. */
.slay-site .post-comments { margin-top: 14px; }
.slay-site .comment-thread { display: grid; gap: 4px; margin-bottom: 16px; }
.slay-site .post-comment,
.slay-site .sf-post-social .post-comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  align-items: start;
  padding: 7px 0;
  border: 0;
}
.slay-site .post-comment .comment-author { display: contents; }
.slay-site .post-comment .comment-author img {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #a03f61;
}
.slay-site .post-comment .comment-author bdi {
  grid-column: 2;
  direction: rtl;
  text-align: right;
  color: #f9d9e7;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.slay-site .post-comment > p,
.slay-site .sf-post-social .post-comment > p {
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
  margin: 0 !important;
  padding: 10px 14px;
  background: #2b1b27;
  border: 0;
  border-radius: 5px 15px 15px 15px;
  color: #f4e3eb;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.slay-site .post-comment .comment-meta {
  grid-column: 2;
  justify-content: flex-start;
  gap: 12px;
  padding-inline: 3px;
  color: #ad8f9f;
  font-size: 10px;
}
.slay-site .post-comment .comment-actions { gap: 12px; }
.slay-site .post-comment .comment-actions .text-button { min-height: 28px; color: #ee9cba; }
.slay-site .post-comment.comment-is-reply {
  margin-inline-start: 38px;
  padding-inline-start: 0;
  grid-template-columns: 30px minmax(0, 1fr);
}
.slay-site .post-comment.comment-is-reply .comment-author img { width: 30px; height: 30px; }
.slay-site .post-comment.comment-is-reply .comment-author bdi::after {
  content: '↳ رد';
  display: inline-block;
  margin-inline-start: 8px;
  padding: 1px 7px;
  color: #f5acc8;
  background: #4b2138;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}
.slay-site .post-comments > .quiet { color: #bda5b2; font-size: 12px; padding: 8px 2px; }
.slay-site .comment-form textarea {
  border: 1px solid #6f3851;
  border-radius: 12px;
  background: #1c111a;
  padding: 12px 14px;
}
@media (max-width: 480px) {
  .slay-site .post-comment.comment-is-reply { margin-inline-start: 24px; }
  .slay-site .post-comment > p { font-size: 12px; }
}

/* Instagram-inspired comments: avatar, name and text share a natural row. */
.slay-site .post-comment,
.slay-site .sf-post-social .post-comment {
  display: block;
  position: relative;
  min-height: 44px;
  padding: 6px 0;
  padding-inline-start: 46px;
  text-align: start;
  line-height: 1.8;
}
.slay-site .post-comment .comment-author { display: inline; text-decoration: none; }
.slay-site .post-comment .comment-author img {
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 36px;
  height: 36px;
  border: 0;
}
.slay-site .post-comment .comment-author bdi {
  display: inline;
  direction: inherit;
  color: #fff1f7;
  font-size: 12px;
  font-weight: 750;
}
.slay-site .post-comment > p,
.slay-site .sf-post-social .post-comment > p {
  display: inline;
  margin: 0 6px 0 0 !important;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #eadce3;
  font-size: 13px;
  line-height: 1.85;
}
.slay-site .post-comment .comment-meta { margin-top: 3px; padding-inline: 0; gap: 12px; }
.slay-site .comment-thread { gap: 0; margin-bottom: 13px; }
.slay-site .post-comment.comment-is-reply {
  display: block;
  margin-inline-start: 46px;
  padding-inline-start: 39px;
}
.slay-site .post-comment.comment-is-reply .comment-author img { width: 30px; height: 30px; }
@media (max-width: 480px) {
  .slay-site .post-comment.comment-is-reply { margin-inline-start: 25px; }
  .slay-site .post-comment > p { font-size: 12px; }
}

/* Fill the post with a consistently sized image; clicking opens the original. */
.slay-site .sf-post-media .post-media.count-1 button {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  background: #0d0a0d;
}
.slay-site .sf-post-media .post-media.count-1 button img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

/* Conversation: avatar beside a neat name, bubble and timestamp stack. */
.slay-site .post-comments { display: grid; gap: 16px; padding-top: 5px; }
.slay-site .comment-thread { display: grid; gap: 8px; margin: 0; }
.slay-site .post-comment,
.slay-site .sf-post-social .post-comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 4px;
  position: relative;
  min-height: 0;
  padding: 3px 0;
  direction: rtl;
  text-align: right;
}
.slay-site .post-comment .comment-author { display: contents; }
.slay-site .post-comment .comment-author img,
.slay-site .post-comment.comment-is-reply .comment-author img {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid #6f3a52;
  border-radius: 50%;
}
.slay-site .post-comment .comment-author bdi {
  display: block;
  grid-column: 2;
  grid-row: 1;
  direction: rtl;
  text-align: right;
  color: #ffe8f1;
  font-size: 12px;
  line-height: 1.55;
}
.slay-site .post-comment > p,
.slay-site .sf-post-social .post-comment > p {
  display: block;
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 9px 13px;
  background: #30212d;
  border: 0;
  border-radius: 6px 14px 14px 14px;
  color: #f5e8ee;
  text-align: right;
  font-size: 13px;
  line-height: 1.75;
}
.slay-site .post-comment .comment-meta {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0 3px;
}
.slay-site .post-comment.comment-is-reply {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  margin-inline-start: 38px;
  padding: 2px 0;
}
.slay-site .post-comment.comment-is-reply .comment-author img { width: 30px; height: 30px; }
@media (max-width: 480px) {
  .slay-site .post-comment.comment-is-reply { margin-inline-start: 22px; }
  .slay-site .post-comment > p,
  .slay-site .sf-post-social .post-comment > p { font-size: 12px; }
}
@media (max-width: 700px) {
  .slay-site .community-site-header .header-inner,
  .slay-site .community-site-header .header-inner:has(.signed-in-entry) {
    grid-template-rows: 65px auto;
    width: calc(100% - 20px);
    padding-bottom: 10px;
  }
  .slay-site .community-site-header .brand { grid-area: 1 / 2; justify-self: center; }
  .slay-site .community-site-header .brand > img { width: 105px; height: 55px; }
  .slay-site .community-site-header .header-actions { gap: 5px; }
  .slay-site .community-site-header .header-actions > .admin-entry { top: 15px; min-width: 70px; height: 36px; padding: 0 7px; gap: 4px; font-size: 10px; }
  .slay-site .community-site-header .header-actions > .admin-entry svg { width: 15px; height: 15px; }
  .slay-site .community-site-header .site-primary-navigation,
  .slay-site .community-site-header .site-primary-navigation.expanded {
    justify-content: flex-start;
    border-radius: 12px;
    padding: 4px;
    scroll-snap-type: x proximity;
  }
  .slay-site .community-site-header .site-primary-navigation > a {
    min-width: 82px;
    min-height: 62px;
    padding: 7px 9px;
    font-size: 11px;
    scroll-snap-align: start;
  }
  .slay-site .community-site-header .site-primary-navigation > a > svg { width: 21px; height: 21px; }
}
@media (max-width: 380px) {
  .slay-site .community-site-header .brand > img { width: 100px; }
  .slay-site .community-site-header .header-actions { gap: 3px; }
}
