/* Bus Central: forum homepage polish, adapted from the proven ML implementation. */
@media (max-width: 767px) {
  html,
  body,
  body .wrapper,
  #page-body,
  #page-body .layout-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  body.fixed-navbar .navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
  }

  #page-body .categories,
  #page-body .categories > .card,
  #page-body .topiclist.forums,
  #page-body .topiclist.forums > .forum,
  #page-body .topiclist.forums .row-item,
  #page-body .topiclist.forums .row-title {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  #page-body .categories,
  #page-body .categories > .card,
  #page-body .topiclist.forums,
  #page-body .topiclist.forums > .forum,
  #page-body .topiclist.forums .row-item {
    width: 100%;
  }

  .topiclist.forums .forum-activity-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0;
    gap: 0;
  }

  .topiclist.forums .forum-desc {
    font-size: 0.78125rem;
    line-height: 1.125rem;
  }

  .topiclist.forums .mobile-forum-activity {
    display: block !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.375rem;
    padding: 0.625rem 0.75rem 0.125rem !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }

  .topiclist.forums .mobile-forum-activity .lastsubject {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 !important;
    overflow: hidden;
    color: #eef3f7;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topiclist.forums .mobile-forum-activity .desktop-lastsubject {
    display: none !important;
  }

  .topiclist.forums .mobile-forum-activity .mobile-lastsubject {
    display: block !important;
  }

  .topiclist.forums .mobile-latest-divider {
    display: flex;
    width: 64%;
    max-width: 14rem;
    margin: 0 auto 0.45rem;
    gap: 0.45rem;
    align-items: center;
  }

  .topiclist.forums .mobile-latest-divider::before,
  .topiclist.forums .mobile-latest-divider::after {
    height: 1px;
    background: rgba(148, 163, 184, 0.24);
    content: "";
    flex: 1 1 auto;
  }

  .topiclist.forums .mobile-latest-divider > span {
    display: inline-block;
    padding: 0 0.4rem;
    border: 1px solid rgba(255, 101, 62, 0.32);
    border-radius: 9999px;
    background: rgba(240, 90, 54, 0.16);
    color: #ff7a5b;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1rem;
    text-transform: uppercase;
  }

  .topiclist.forums .mobile-forum-activity > div {
    display: flex;
    min-width: 0;
    margin-top: 0.125rem;
    gap: 0.35rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.71875rem;
    line-height: 1rem;
    white-space: nowrap;
  }

  .topiclist.forums .mobile-forum-activity > div > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topiclist.forums .mobile-forum-activity > div > span:first-child::before {
    content: none !important;
  }

  .topiclist.forums .mobile-forum-activity > div > span:last-child {
    flex: 0 0 auto;
  }

  .topiclist.forums .mobile-forum-activity .forum-lastpost-chevron {
    display: none;
  }

  .topiclist.forums .mobile-forum-activity > div > span:last-child::before {
    content: "\00B7";
    margin-inline-end: 0.35rem;
  }

}


/* =========================================================
   Bus Central — compact Welcome forum row (v2)
   Targets only: "Start Here: The Bus Central Guide"
   ========================================================= */

/* Desktop/tablet: make Welcome a lighter-weight opening panel. */
@media (min-width: 768px) {
  #page-body .topiclist.forums > .bc-welcome-forum .row-item {
    gap: 1rem;
    align-items: center;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-details {
    margin-inline-start: 0.75rem;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-desc {
    margin-top: 0.2rem;
    line-height: 1.25rem;
  }

  /* Welcome doesn't need topic/post counters competing for attention. */
  #page-body .topiclist.forums > .bc-welcome-forum .topics-posts {
    display: none !important;
  }

  /* Let the latest topic sit neatly on the right. */
  #page-body .topiclist.forums > .bc-welcome-forum .forum-activity-panel {
    flex: 0 0 285px;
    width: 285px;
    min-width: 0;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .lastpost {
    width: 100% !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .lastpost > div {
    margin-top: 0.15rem;
  }
}

/* Mobile: turn Welcome into a compact "start here" row. */
@media (max-width: 767px) {
  #page-body .topiclist.forums > .bc-welcome-forum {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .row-item {
    gap: 0.2rem !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .row-title {
    align-items: flex-start;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-details {
    margin-inline-start: 0.65rem;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-title {
    line-height: 1.15rem;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-desc {
    margin-top: 0.2rem !important;
    font-size: 0.75rem;
    line-height: 1.05rem;
  }

  /* Remove the oversized Latest divider/pill for Welcome only. */
  #page-body .topiclist.forums > .bc-welcome-forum .mobile-latest-divider {
    display: none !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .mobile-forum-activity {
    margin-top: 0.2rem !important;
    padding: 0.25rem 0 0 !important;
    text-align: left;
  }

  /* Make latest activity one small useful line. */
  #page-body .topiclist.forums > .bc-welcome-forum .mobile-lastsubject {
    display: block !important;
    padding: 0 !important;
    color: #ff7a5b;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1rem;
    text-align: left;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .mobile-lastsubject::before {
    content: "Latest: ";
    color: rgba(203, 213, 225, 0.72);
    font-weight: 500;
  }

  /* Author/date add noise here; the Welcome row only needs the latest title. */
  #page-body .topiclist.forums > .bc-welcome-forum .mobile-forum-activity > div {
    display: none !important;
  }
}


/* =========================================================
   Bus Central — compact Welcome forum row (v3)
   Final refinement:
   - mobile: hide Welcome category bar, one compact panel
   - desktop: latest post aligns with normal latest-post column
   ========================================================= */

/* Desktop: use the same 310px last-post column width as normal forum rows. */
@media (min-width: 768px) {
  #page-body .topiclist.forums > .bc-welcome-forum .forum-activity-panel {
    flex: 0 0 310px !important;
    width: 310px !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .lastpost {
    width: 310px !important;
  }
}

/* Mobile: Welcome becomes one self-contained compact panel. */
@media (max-width: 767px) {
  /* Remove the separate purple "Welcome Section" bar only. */
  #page-body .bc-welcome-category > .card-title {
    display: none !important;
  }

  /* Pull the remaining content up so there isn't a blank header gap. */
  #page-body .bc-welcome-category {
    margin-top: 0 !important;
  }

  #page-body .bc-welcome-category > .zn-collapse {
    margin-top: 0 !important;
  }

  #page-body .bc-welcome-category .topiclist.forums {
    margin-top: 0 !important;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .row-item {
    gap: 0 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .row-title {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-details {
    margin-inline-start: 0.6rem !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-desc {
    margin-top: 0.18rem !important;
    line-height: 1.02rem !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .mobile-forum-activity {
    margin-top: 0.35rem !important;
    padding-top: 0 !important;
    border: 0 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .mobile-lastsubject {
    font-size: 0.7rem !important;
    line-height: 0.95rem !important;
  }
}


/* =========================================================
   Bus Central — compact Welcome forum row (v4)
   Final mobile alignment pass:
   - hide speech-bubble icon on Welcome only
   - align title, description and Latest to one left edge
   - reclaim horizontal space and slightly tighten spacing
   ========================================================= */
@media (max-width: 767px) {
  /* Welcome is now a special intro panel, not a standard forum row. */
  #page-body .topiclist.forums > .bc-welcome-forum .forum_icon {
    display: none !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .row-title {
    display: block !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-details {
    margin-inline-start: 0 !important;
    width: 100% !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-title,
  #page-body .topiclist.forums > .bc-welcome-forum .forum-desc,
  #page-body .topiclist.forums > .bc-welcome-forum .mobile-forum-activity,
  #page-body .topiclist.forums > .bc-welcome-forum .mobile-lastsubject {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-desc {
    max-width: none !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .mobile-forum-activity {
    margin-top: 0.3rem !important;
  }
}


/* =========================================================
   Bus Central — Welcome final CTA pass (v6)
   - removes latest-post presentation from Welcome via template
   - explicit "Open welcome guide →" affordance
   ========================================================= */

.bc-welcome-cta-mobile {
  display: none;
}

.bc-welcome-cta-desktop {
  flex: 0 0 310px;
  width: 310px;
  min-width: 0;
  display: flex;
  align-items: center;
}

.bc-welcome-cta-desktop a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff7a5b;
  text-decoration: none;
}

.bc-welcome-cta-desktop a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .bc-welcome-cta-desktop {
    display: none !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .bc-welcome-cta-mobile {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    line-height: 1rem;
    font-weight: 600;
    color: #ff7a5b;
    text-decoration: none;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .bc-welcome-cta-mobile:active {
    opacity: 0.8;
  }

  /* Old mobile latest-area rules are irrelevant for Welcome now,
     but keep the panel compact if any inherited markup remains. */
  #page-body .topiclist.forums > .bc-welcome-forum .forum-activity-panel,
  #page-body .topiclist.forums > .bc-welcome-forum .mobile-forum-activity {
    display: none !important;
  }
}


/* =========================================================
   Bus Central — Welcome final cleanup (v8)
   - Welcome panel itself is visually inert
   - Only the explicit CTA behaves like a link
   ========================================================= */

/* Neutralise hover/press treatment inherited from normal forum rows. */
#page-body .topiclist.forums > .bc-welcome-forum,
#page-body .topiclist.forums > .bc-welcome-forum:hover,
#page-body .topiclist.forums > .bc-welcome-forum:active,
#page-body .topiclist.forums > .bc-welcome-forum:focus-within {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Prevent nested generic row/title elements from looking interactive. */
#page-body .topiclist.forums > .bc-welcome-forum .row-item,
#page-body .topiclist.forums > .bc-welcome-forum .row-item:hover,
#page-body .topiclist.forums > .bc-welcome-forum .row-title,
#page-body .topiclist.forums > .bc-welcome-forum .row-title:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default !important;
}

/* Keep the dedicated CTA obviously interactive. */
#page-body .topiclist.forums > .bc-welcome-forum .bc-welcome-cta-mobile,
#page-body .bc-welcome-cta-desktop a {
  cursor: pointer !important;
}

/* If Zeina/phpBB injects a full-row unread link overlay, neutralise it for Welcome. */
#page-body .topiclist.forums > .bc-welcome-forum > a[href],
#page-body .topiclist.forums > .bc-welcome-forum .row-item > a[href].absolute,
#page-body .topiclist.forums > .bc-welcome-forum .forum-unread-link {
  pointer-events: none !important;
}

/* Re-enable the explicit Welcome CTAs if they sit inside the row. */
#page-body .topiclist.forums > .bc-welcome-forum .bc-welcome-cta-mobile,
#page-body .bc-welcome-cta-desktop a {
  pointer-events: auto !important;
}


/* =========================================================
   Bus Central — Welcome final desktop refinement (v10)
   Hide the separate "Welcome Section" category bar on desktop too,
   matching the clean mobile gateway treatment.
   ========================================================= */
@media (min-width: 768px) {
  #page-body .bc-welcome-category > .card-title {
    display: none !important;
  }

  #page-body .bc-welcome-category > .zn-collapse {
    margin-top: 0 !important;
  }

  #page-body .bc-welcome-category .topiclist.forums {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}


/* =========================================================
   Bus Central — Main discussion row separation (v11)
   Targets ONLY the "Manifestation Discussions" category.
   Goal: make each forum read as a distinct destination without
   turning the section into a stack of heavy cards.
   ========================================================= */

#page-body .bc-main-discussions .topiclist.forums {
  border-spacing: 0;
}

/* Replace the almost-invisible divider treatment with separated rows. */
#page-body .bc-main-discussions .topiclist.forums > .forum {
  border-top: 0 !important;
  margin-top: 0.42rem !important;
  padding: 0.72rem 0.8rem !important;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.018);
  transition: background-color 160ms ease, border-color 160ms ease;
}

#page-body .bc-main-discussions .topiclist.forums > .forum:first-child {
  margin-top: 0 !important;
}

/* Keep the text/icon layout familiar; we're changing separation, not structure. */
#page-body .bc-main-discussions .topiclist.forums > .forum .row-item {
  min-width: 0;
}

/* Desktop hover: enough feedback to show each row is its own destination. */
@media (hover: hover) and (pointer: fine) {
  #page-body .bc-main-discussions .topiclist.forums > .forum:hover {
    background: rgba(240, 90, 54, 0.055);
    border-color: rgba(255, 101, 62, 0.16);
  }
}

/* Mobile: slightly tighter so separation is clearer without adding scroll bulk. */
@media (max-width: 767px) {
  #page-body .bc-main-discussions .topiclist.forums {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum {
    margin-top: 0.5rem !important;
    padding: 0.78rem 0.6rem !important;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.022);
    border-color: rgba(148, 163, 184, 0.09);
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum:first-child {
    margin-top: 0 !important;
  }
}


/* =========================================================
   Bus Central — Main discussion gradient rows (v12)
   Permanent subtle purple/navy gradient on each main forum row.
   Hover/press strengthens the same treatment slightly.
   ========================================================= */

#page-body .bc-main-discussions .topiclist.forums > .forum {
  background:
    radial-gradient(circle at 18% 15%, rgba(240, 90, 54, 0.08), transparent 42%),
    linear-gradient(135deg, rgba(24, 39, 55, 0.96) 0%, rgba(15, 29, 43, 0.98) 58%, rgba(10, 22, 34, 0.98) 100%) !important;
  border-color: rgba(255, 101, 62, 0.12) !important;
}

@media (hover: hover) and (pointer: fine) {
  #page-body .bc-main-discussions .topiclist.forums > .forum:hover {
    background:
      radial-gradient(circle at 18% 15%, rgba(240, 90, 54, 0.14), transparent 42%),
      linear-gradient(135deg, rgba(29, 47, 64, 0.98) 0%, rgba(18, 34, 49, 0.99) 58%, rgba(10, 23, 35, 0.99) 100%) !important;
    border-color: rgba(255, 101, 62, 0.22) !important;
  }
}

@media (max-width: 767px) {
  #page-body .bc-main-discussions .topiclist.forums > .forum {
    background:
      radial-gradient(circle at 16% 12%, rgba(240, 90, 54, 0.10), transparent 44%),
      linear-gradient(135deg, rgba(24, 41, 57, 0.97) 0%, rgba(15, 30, 44, 0.99) 60%, rgba(10, 22, 34, 0.99) 100%) !important;
    border-color: rgba(255, 101, 62, 0.14) !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum:active {
    background:
      radial-gradient(circle at 16% 12%, rgba(240, 90, 54, 0.17), transparent 44%),
      linear-gradient(135deg, rgba(31, 48, 64, 0.99) 0%, rgba(18, 34, 49, 1) 60%, rgba(10, 23, 35, 1) 100%) !important;
    border-color: rgba(255, 101, 62, 0.24) !important;
  }
}


/* =========================================================
   

/* =========================================================
   Bus Central — mobile scale/alignment match v5
   Match the compact finished mobile forum treatment.
   ========================================================= */
@media (max-width: 767px) {
  /* Welcome becomes a true full-width intro panel: no icon, no inherited indent. */
  #page-body .topiclist.forums > .bc-welcome-forum .forum_icon {
    display: none !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .row-item,
  #page-body .topiclist.forums > .bc-welcome-forum .row-title {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-details {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-title {
    margin: 0 !important;
    font-size: 0.82rem !important;
    line-height: 1.12rem !important;
    font-weight: 600 !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .forum-desc {
    margin-top: 0.18rem !important;
    font-size: 0.75rem !important;
    line-height: 1.05rem !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .bc-welcome-cta-mobile {
    margin-top: 0.4rem !important;
    font-size: 0.72rem !important;
    line-height: 1rem !important;
    font-weight: 600 !important;
  }

  /* Main forum rows: match the tighter ML mobile typography. */
  #page-body .bc-main-discussions .topiclist.forums > .forum .forum-title {
    font-size: 0.80rem !important;
    line-height: 1.10rem !important;
    font-weight: 600 !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum .forum-desc {
    margin-top: 0.16rem !important;
    font-size: 0.72rem !important;
    line-height: 1.02rem !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum .forum_icon svg {
    width: 1.65rem !important;
    height: 1.65rem !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum .forum-details {
    margin-inline-start: 0.6rem !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum .mobile-forum-activity {
    font-size: 0.7rem !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum .mobile-lastsubject {
    font-size: 0.70rem !important;
    line-height: 0.95rem !important;
  }

  #page-body .bc-main-discussions .topiclist.forums > .forum .mobile-forum-activity > div {
    font-size: 0.66rem !important;
    line-height: 0.92rem !important;
  }
}

/* Desktop Welcome CTA: smaller and aligned further left with the activity column. */
@media (min-width: 768px) {
  .bc-welcome-cta-desktop {
    flex: 0 0 420px !important;
    width: 420px !important;
  }

  .bc-welcome-cta-desktop a {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
    font-weight: 600 !important;
  }
}


/* =========================================================
   Bus Central — Welcome mobile typography v6
   Use fixed pixel sizes here so the Welcome copy visually matches
   the finished ML mobile row even if the Bus Central root font size differs.
   ========================================================= */
@media (max-width: 767px) {
  #page-body .topiclist.forums > .bc-welcome-forum .forum-desc {
    font-size: 12px !important;
    line-height: 17px !important;
  }

  #page-body .topiclist.forums > .bc-welcome-forum .bc-welcome-cta-mobile {
    font-size: 11.5px !important;
    line-height: 16px !important;
    font-weight: 600 !important;
  }
}


/* =========================================================
   Bus Central — desktop Welcome CTA alignment v16
   Line the CTA up with the last-post/title column below.
   ========================================================= */
@media (min-width: 768px) {
  #page-body .bc-welcome-cta-desktop {
    flex: 0 0 320px !important;
    width: 320px !important;
    justify-content: flex-start !important;
    margin-left: auto !important;
  }

  #page-body .bc-welcome-cta-desktop a {
    width: 100% !important;
    text-align: left !important;
    padding-left: 0 !important;
  }
}


/* ===== Bus Central inside-forum topic list v1 ===== */


/* Bus Central — topic feed cards v21 */
#page-body .topics .topiclist.forums{padding:.45rem!important;border:0!important}
#page-body .bc-topic-feed-row{padding:0!important;margin:0!important;border:0!important}
#page-body .bc-topic-feed-row+.bc-topic-feed-row{margin-top:.5rem!important}
#page-body .bc-topic-feed-card{display:flex;align-items:flex-start;gap:.7rem;padding:.8rem .9rem;border:1px solid rgba(255,101,62,.12);border-radius:.75rem;background:radial-gradient(circle at 14% 10%,rgba(240,90,54,.07),transparent 42%),linear-gradient(135deg,rgba(18,34,49,.97),rgba(10,22,34,.99) 68%)}
#page-body .bc-topic-feed-icon{flex:0 0 auto;margin-top:1.25rem;line-height:0}
#page-body .bc-topic-feed-main{min-width:0;flex:1 1 auto}
#page-body .bc-topic-feed-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.32rem;color:rgba(203,213,225,.72);font-size:.72rem;line-height:1rem}
#page-body .bc-topic-feed-meta a{font-weight:600}
#page-body .bc-topic-unread{width:.48rem;height:.48rem;border-radius:999px;background:#ff7757;box-shadow:0 0 .55rem rgba(255,119,87,.55)}
#page-body .bc-topic-feed-titleline{margin-top:.22rem}
#page-body .bc-topic-feed-titleline h3{margin:0;font-size:.95rem;line-height:1.2rem;font-weight:700}
#page-body .bc-topic-feed-titleline .topictitle{color:#f8fafc}
#page-body .bc-topic-feed-preview{margin:.3rem 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:rgba(203,213,225,.78);font-size:.82rem;line-height:1.18rem}
#page-body .bc-topic-feed-footer{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin-top:.55rem}
#page-body .bc-topic-replies{display:inline-flex;align-items:center;gap:.3rem;min-height:2rem;padding:.28rem .62rem;border:1px solid rgba(148,163,184,.13);border-radius:999px;color:#e2e8f0;background:rgba(30,41,59,.42);font-size:.74rem;font-weight:600;text-decoration:none}
#page-body .bc-topic-pages{display:inline-flex;align-items:center;gap:.25rem;color:rgba(203,213,225,.65);font-size:.7rem}
#page-body .bc-topic-pages a,#page-body .bc-topic-pages span{min-width:1.25rem;text-align:center}
@media (hover:hover) and (pointer:fine){#page-body .bc-topic-feed-card:hover{border-color:rgba(255,101,62,.22);background:radial-gradient(circle at 14% 10%,rgba(240,90,54,.11),transparent 42%),linear-gradient(135deg,rgba(24,41,57,.98),rgba(10,23,35,1) 68%)}#page-body .bc-topic-feed-titleline .topictitle:hover{color:#ff8b70}}
@media(max-width:767px){#page-body .topics .card>.zn-collapse>.topiclist.forums{padding:.4rem!important}#page-body .bc-topic-feed-card{gap:.58rem;padding:.72rem .68rem;border-radius:.7rem}#page-body .bc-topic-feed-icon{margin-top:1.15rem}#page-body .bc-topic-feed-meta{font-size:.69rem;line-height:.95rem}#page-body .bc-topic-feed-titleline h3{font-size:.9rem;line-height:1.12rem}#page-body .bc-topic-feed-preview{margin-top:.26rem;font-size:.79rem;line-height:1.12rem;-webkit-line-clamp:3}#page-body .bc-topic-feed-footer{margin-top:.45rem}#page-body .bc-topic-replies{min-height:1.9rem;padding:.24rem .55rem;font-size:.71rem}}


/* =========================================================
   Bus Central — Topic Feed polish v23
   Keep v22 design; make card heights more consistent.
   ========================================================= */
@media (max-width: 767px) {

  /* Keep every opening-post preview to a predictable 3 lines. */
  .bc-topic-feed-preview {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Bring reply pill a little closer to the preview copy. */
  .ml-topic-feed-replies {
    margin-top: 0.4rem !important;
  }

  /* Slightly reduce excess space at the bottom of each card. */
  .bc-topic-feed-card {
    padding-bottom: 0.78rem !important;
  }
}




/* =========================================================
   Bus Central — Forum action clarity final v27
   Explicit New Topic / Reply labels beside existing icons.
   ========================================================= */

.bc-action-label {
  display: inline-block;
  margin-left: .38rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 767px) {
  a[href*="mode=post"] .bc-action-label,
  a[href*="mode=reply"] .bc-action-label {
    font-size: .76rem;
  }
}


/* ===== Bus Central posting/reply composer v1 ===== */
/* =========================================================
   Bus Central — Forum compose / reply redesign v25
   Cleaner posting experience without changing phpBB mechanics.
   ========================================================= */

/* Full-width composer and compact utility row. */
#postingbox .bc-posting-compose {
  width: 100%;
}

#postingbox .bc-posting-toolbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}

#postingbox .bc-posting-toolbar-row .bc-format-buttons {
  flex: 1 1 auto;
}

#postingbox .bc-smilies-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2rem;
  padding: .35rem .65rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: .55rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}

#postingbox .bc-smilies-button:hover {
  background: rgba(240, 90, 54, .08);
  border-color: rgba(255, 101, 62, .38);
}

/* Hide the old technical status panel if an extension re-inserts it. */
#postingbox .bbcode-status {
  display: none !important;
}

/* Keep the useful everyday BBCode controls; remove advanced clutter. */
#postingbox .bc-format-buttons .bbcode-code,
#postingbox .bc-format-buttons .bbcode-list-,
#postingbox .bc-format-buttons .bbcode-asterisk,
#postingbox .bc-format-buttons .bbcode-flash,
#postingbox .bc-format-buttons .bbcode-color,
#postingbox .bc-format-buttons .bbcode-size {
  display: none !important;
}

/* Make the actual writing area feel like the main event. */
#postingbox .bc-message-box textarea {
  width: 100% !important;
  min-height: 260px;
  resize: vertical;
  line-height: 1.55;
}

/* Cleaner actions: cancel/preview secondary, submit primary. */
.bc-posting-actions-card {
  padding: .85rem !important;
}

.bc-posting-actions .bc-cancel-post {
  text-decoration: none;
}

/* Mobile-first density. */
@media (max-width: 767px) {
  #postingbox {
    margin-top: .75rem !important;
  }

  #postingbox > .p-4 {
    padding: .85rem !important;
  }

  #postingbox .bc-posting-toolbar-row {
    gap: .32rem;
  }

  #postingbox .bc-format-buttons {
    gap: .3rem !important;
  }

  #postingbox .bc-format-buttons button {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
  }

  #postingbox .bc-smilies-button {
    height: 2rem;
    padding: .3rem .55rem;
  }

  #postingbox .bc-message-box textarea {
    min-height: 230px;
    font-size: 16px !important;
  }

  .bc-posting-actions {
    gap: .5rem !important;
  }
}


/* =========================================================
   Bus Central — Forum compose final polish v26
   Remove unused smiley UI and legacy technical toggles.
   ========================================================= */

/* The built-in phpBB smiley picker is intentionally not exposed in the
   streamlined forum composer. Smiley parsing remains at its normal default. */
#postingbox .bc-smilies-button {
  display: none !important;
}

/* Hide legacy per-post technical switches from ordinary forum composing:
   - Disable BBCode
   - Disable smilies
   - Do not automatically parse URLs
   Their underlying phpBB defaults remain unchanged. */
#postingbox input[name="disable_bbcode"],
#postingbox input[name="disable_smilies"],
#postingbox input[name="disable_magic_url"] {
  display: none !important;
}

#postingbox input[name="disable_bbcode"] + label,
#postingbox input[name="disable_smilies"] + label,
#postingbox input[name="disable_magic_url"] + label {
  display: none !important;
}

/* Zeina may wrap these checkboxes in labels rather than pair input + label.
   Hide any wrapper that directly contains one of the three controls. */
#postingbox label:has(input[name="disable_bbcode"]),
#postingbox label:has(input[name="disable_smilies"]),
#postingbox label:has(input[name="disable_magic_url"]) {
  display: none !important;
}




/* ===== Bus Central actual post view density ===== */
/* =========================================================
   Bus Central — Mobile viewtopic density pass (v18)
   Goal: fit more actual post content on screen without hurting readability.
   Desktop is intentionally untouched.
   ========================================================= */
@media (max-width: 767px) {

  /* Post card: reduce oversized internal padding. */
  #page-body .posts .post.card {
    padding: 1rem !important;
  }

  /* Compact the mobile author/header area. */
  #page-body .posts .postprofile-simple {
    padding-bottom: 0.7rem !important;
    gap: 0.35rem !important;
  }

  #page-body .posts .postprofile-simple .author {
    gap: 0.6rem !important;
  }

  /* Avatar: still visible, but less dominant. */
  #page-body .posts .postprofile-simple .author-img-sm .avatar,
  #page-body .posts .postprofile-simple .author-img-sm .avatar img {
    width: 2rem !important;
    height: 2rem !important;
  }

  #page-body .posts .postprofile-simple .profile-author {
    font-size: 0.88rem !important;
    line-height: 1.15rem !important;
  }

  /* Topic/post subject: bring it down from article-heading scale. */
  #page-body .posts .post-title {
    font-size: 1rem !important;
    line-height: 1.35rem !important;
    margin-bottom: 0.2rem !important;
  }

  /* Date/author metadata: compact and secondary. */
  #page-body .posts .author,
  #page-body .posts time.text-secondary {
    font-size: 0.72rem !important;
    line-height: 1rem !important;
  }

  /* Quote/settings row: less vertical air. */
  #page-body .posts .post-buttons {
    gap: 0 !important;
  }

  #page-body .posts .post-buttons > a,
  #page-body .posts .post-buttons > .zn-dropdown > button {
    padding: 0.42rem !important;
  }

  /* Reduce the large divider/gap before the actual post. */
  #page-body .posts .postbody > div[id^="post_content"] > .mt-2\.5 {
    margin-top: 0.6rem !important;
    padding-top: 0.6rem !important;
  }

  /* Main post copy: still comfortable, but no longer oversized. */
  #page-body .posts .content {
    font-size: 17px !important;
    line-height: 1.58 !important;
  }

  #page-body .posts .content p {
    margin-top: 0 !important;
    margin-bottom: 0.85rem !important;
  }

  #page-body .posts .content p:last-child {
    margin-bottom: 0 !important;
  }
}


/* =========================================================
   Bus Central — Mobile viewtopic density pass (v19)
   Tighter than v18, closer to modern forum/feed density.
   Desktop remains untouched.
   ========================================================= */
@media (max-width: 767px) {

  /* Slightly tighter post card footprint. */
  #page-body .posts .post.card {
    padding: 0.85rem !important;
  }

  /* Compact author/header spacing a little further. */
  #page-body .posts .postprofile-simple {
    padding-bottom: 0.55rem !important;
    gap: 0.25rem !important;
  }

  #page-body .posts .postprofile-simple .author {
    gap: 0.5rem !important;
  }

  /* Avatar stays readable but less dominant. */
  #page-body .posts .postprofile-simple .author-img-sm .avatar,
  #page-body .posts .postprofile-simple .author-img-sm .avatar img {
    width: 1.85rem !important;
    height: 1.85rem !important;
  }

  #page-body .posts .postprofile-simple .profile-author {
    font-size: 0.84rem !important;
    line-height: 1.05rem !important;
  }

  /* Topic title becomes more forum-like and less article-like. */
  #page-body .posts .post-title {
    font-size: 0.95rem !important;
    line-height: 1.22rem !important;
    margin-bottom: 0.12rem !important;
  }

  /* Metadata slightly tighter. */
  #page-body .posts .author,
  #page-body .posts time.text-secondary {
    font-size: 0.69rem !important;
    line-height: 0.95rem !important;
  }

  /* Reduce button/header breathing room. */
  #page-body .posts .post-buttons > a,
  #page-body .posts .post-buttons > .zn-dropdown > button {
    padding: 0.34rem !important;
  }

  /* Pull the content closer to the header. */
  #page-body .posts .postbody > div[id^="post_content"] > .mt-2\.5 {
    margin-top: 0.45rem !important;
    padding-top: 0.45rem !important;
  }

  /* Main post copy: 16px with tighter but still comfortable reading rhythm. */
  #page-body .posts .content {
    font-size: 16px !important;
    line-height: 1.48 !important;
  }

  /* Reduce paragraph spacing. */
  #page-body .posts .content p {
    margin-top: 0 !important;
    margin-bottom: 0.68rem !important;
  }

  #page-body .posts .content p:last-child {
    margin-bottom: 0 !important;
  }
}


/* =========================================================
   Bus Central — Mobile viewtopic density FINAL (v20)
   Keep the approved 16px post body; only tighten the header/meta area.
   Desktop remains untouched.
   ========================================================= */
@media (max-width: 767px) {

  /* Slightly tighter card top area. */
  #page-body .posts .post.card {
    padding: 0.8rem !important;
  }

  #page-body .posts .postprofile-simple {
    padding-bottom: 0.42rem !important;
    gap: 0.18rem !important;
  }

  #page-body .posts .postprofile-simple .author {
    gap: 0.45rem !important;
  }

  /* Keep avatar readable, but a touch less dominant. */
  #page-body .posts .postprofile-simple .author-img-sm .avatar,
  #page-body .posts .postprofile-simple .author-img-sm .avatar img {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  #page-body .posts .postprofile-simple .profile-author {
    font-size: 0.82rem !important;
    line-height: 1rem !important;
  }

  /* Topic title: still prominent, but no longer oversized. */
  #page-body .posts .post-title {
    font-size: 0.9rem !important;
    line-height: 1.15rem !important;
    margin-top: 0.18rem !important;
    margin-bottom: 0.08rem !important;
  }

  /* Metadata remains clearly secondary. */
  #page-body .posts .author,
  #page-body .posts time.text-secondary {
    font-size: 0.68rem !important;
    line-height: 0.9rem !important;
  }

  /* Quote/settings row: pull it up and reduce dead space. */
  #page-body .posts .post-buttons {
    margin-top: 0.2rem !important;
    margin-bottom: 0.1rem !important;
    min-height: 0 !important;
  }

  #page-body .posts .post-buttons > a,
  #page-body .posts .post-buttons > .zn-dropdown > button {
    padding: 0.28rem !important;
  }

  /* Divider/content starts a little sooner. */
  #page-body .posts .postbody > div[id^="post_content"] > .mt-2\.5 {
    margin-top: 0.35rem !important;
    padding-top: 0.4rem !important;
  }

  /* Explicitly preserve the approved reading size from v19. */
  #page-body .posts .content {
    font-size: 16px !important;
    line-height: 1.48 !important;
  }

  #page-body .posts .content p {
    margin-top: 0 !important;
    margin-bottom: 0.68rem !important;
  }
}


