/* RingBD homepage fix round 2026-11-28 (Fix C), ported to prod 2026-11-29.
   Only the Fix-C block is included (M4 footer contrast, bug 13 sidebar
   footer, M5 cookie banner, bug 14 filter panel, bug 12 activity nowrap).
   Enqueued from layout/container.phtml after x1-web-polish-patch.css. */
/* ==========================================================================
   rb-responsive-fix.css — RingBD responsive repair (2026-11-25, staging)
   Ringbd theme — LOGGED-OUT pages only (welcome / login / register /
   forgot / reset / terms / logged-out profiles). Loaded LAST in
   container.phtml (after rb-2040-actions), so same-specificity rules
   win over rb-2027-premium / rb-2040-* ties. No element is hidden to
   mask a defect. Defect IDs refer to ringbd-responsive/AUDIT.md.
   ========================================================================== */

/* ------------------------------------------------------------------ */
/* R-12 (Blocker) — logged-out pages at 375px scroll sideways +114px */
/* (scrollWidth 489). Culprit: the header guest dropdown menu        */
/* (Login / Register / Night mode) is Bootstrap left:0, so it hangs  */
/* 114px past the right edge even while visibility:hidden — a hidden */
/* menu still expands scrollable overflow. Fix: anchor it to the     */
/* right edge of its toggle and cap it at viewport width - 16px.     */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .rb-hdr-guest .dropdown-menu,
  #welcomeheader .dropdown-menu,
  .navbar-default .navbar-nav .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    max-width: calc(100vw - 16px);
  }
}

/* ------------------------------------------------------------------ */
/* R-03 (ringbd part) — logged-out profile tab strip truncated:       */
/* "Friends" sits at x=429, off-viewport at 320. Same treatment as   */
/* the sunshine strips: keep the native horizontal scroll, add snap  */
/* + a right-edge fade so the extra tabs are discoverable.            */
/* ------------------------------------------------------------------ */
.user-bottom-nav ul,
.wow_big_head_link ul,
.wo_page_hdng_menu > ul,
.wo_page_profile .page_navbar ul,
.wo_search_page .nav-tabs {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.user-bottom-nav ul::-webkit-scrollbar,
.wow_big_head_link ul::-webkit-scrollbar,
.wo_page_hdng_menu > ul::-webkit-scrollbar,
.wo_page_profile .page_navbar ul::-webkit-scrollbar,
.wo_search_page .nav-tabs::-webkit-scrollbar { display: none; }
.user-bottom-nav ul > li,
.wow_big_head_link ul > li,
.wo_page_hdng_menu > ul > li,
.wo_page_profile .page_navbar ul > li,
.wo_search_page .nav-tabs > li { scroll-snap-align: start; flex-shrink: 0; }
.wow_big_head_link ul > li > a { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* m-01 — header icon buttons 40x40 -> 44px tap targets (all widths). */
/* m-02 — search inputs at 14-15px (iOS zooms below 16px).            */
/* m-04 — header search placeholder truncated mid-word: the input    */
/* stays 16px (which stops the iOS zoom) while the placeholder alone */
/* renders smaller at <=767px, and the bar is widened at >=1024px.   */
/* ------------------------------------------------------------------ */
#head_menu_rght > li > a,
.wow_hdr_innr_left .nav > li > a,
.side_slide_menu {
  min-width: 44px;
  min-height: 44px;
}
.side_slide_menu { display: flex; align-items: center; justify-content: center; }
#navbar-searchbox .search-input,
.search-container .search-input,
.messages-search-users-form input,
.wo_search_page input[type="text"],
.wo_search_page input[type="search"] { font-size: 16px; }
@media (min-width: 1024px) {
  #wo_home_search { max-width: 340px; }
  #wo_home_search .search-input { width: 100%; }
}
@media (max-width: 767px) {
  #navbar-searchbox .search-input::placeholder,
  .search-container .search-input::placeholder { font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* A-02 — colour contrast (axe, WCAG 2.2 AA, >=4.5:1).                */
/* .cc-btn white on #1877f2 = 4.23 -> #0b5bd3 = 6.08. Footer powered  */
/* #858585 on #f0f2f5 = 3.29 -> #595959 = 6.25. Post .small-text     */
/* #777 on white = 4.48 -> #595959 = 7.0. Post time link #9197a3 =   */
/* 2.93 -> #6b7280 = 4.83. Welcome "Ring BD Apps" button: white on  */
/* the #006a4e->#1877f2 gradient = 4.23, NEW pill #ffd36b = 2.4 ->   */
/* gradient #00573f->#0b5bd3 (white 6.08) and pill text #ffe9a8      */
/* (5.06 on #0b5bd3).                                                */
/* ------------------------------------------------------------------ */
.cc-btn { background-color: #0b5bd3 !important; }
.footer-powered > p,
.second-footer .footer-powered > p,
.second-footer .footer-powered .lang_selct > li > a { color: #595959 !important; }
.post .post-heading .meta .small-text,
.post .post-heading .meta .h5.title .small-text { color: #595959 !important; }
.post .post-heading .meta a[title] { color: #6b7280 !important; }
.welcome-apps button[data-target="#ringbd-apps-modal-welcome"] {
  background: linear-gradient(135deg, #00573f 0%, #0b5bd3 100%) !important;
}
.welcome-apps button[data-target="#ringbd-apps-modal-welcome"] > span:last-child { color: #ffe9a8 !important; }

/* ------------------------------------------------------------------ */
/* m-07 — cookie banner covers content on first paint. The banner    */
/* itself is fixed by cookieconsent; the container.phtml edit adds   */
/* body padding equal to the banner height while it is open (class   */
/* rb-cc-open). Belt and braces here: cap the banner height so the   */
/* pad can never exceed 40dvh.                                        */
/* ------------------------------------------------------------------ */
.cc-window.cc-banner { max-height: 40dvh; overflow-y: auto; }

/* ==========================================================================
   Fix C -- homepage fix round 2026-11-28 (staging, ringbd, bugs 12/13/14,
   M4/M5). See fix/C/FIX-REPORT-C.md.
   ========================================================================== */

/* M4 -- footer copyright on the glossy dark-green card: the A-02 rule above
   sets .footer-powered > p to #595959 !important for the LIGHT footer
   (6.25:1 on #f0f2f5), but the same <p> sits on the dark-green gradient
   .g-footer card on mobile (<=990px), where #595959 is ~1.7:1. This more
   specific !important rule restores the glossy light text on the card
   only; the plain/second footer keeps #595959. rgba(232,245,238,.92) on
   #043d22 is ~10:1. */
.g-footer .footer-powered > p {
  color: rgba(232, 245, 238, .92) !important;
}

/* Bug 13 -- sidebar footer: .footer-powered is a flex row, so in the
   243px right column the copyright <p> is squeezed beside the Language
   link (3 wrapped, clipped lines) and Language sits misaligned at the
   right edge. Stack them: copyright full-width on its own line, Language
   on the next line, both at AA contrast on the light sidebar. */
.footer-wrapper-sidebar .footer-powered {
  flex-wrap: wrap;
}
.footer-wrapper-sidebar .footer-powered > p {
  flex: 1 1 100%;
}
.footer-wrapper-sidebar .footer-powered .lang_selct {
  margin-top: 8px;
}
.footer-wrapper-sidebar .footer-powered .dropdown-toggle,
.footer-wrapper-sidebar .list-inline > li > a {
  color: #595959;
}

/* M5 -- cookie banner covers the fixed bottom nav (64px, <=767px) on first
   load. Lift the banner above the nav (incl. safe-area) so every nav
   item stays tappable while the banner is up; dismissal is untouched. */
@media (max-width: 767px) {
  body.rb-has-mobile-nav .cc-window.cc-banner.cc-bottom {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Bug 14 -- feed-filter panel: the chevron toggle gets a visible label
   (template) and the panel a heading (template); cap the panel so it no
   longer spills 73px into the feed column (was 250px from the 177px
   sidebar). 210px still fits the 300px mobile slide menu. */
.wow_side_post_fltr .dropdown-toggle .rb-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #047cac;
  margin-left: 2px;
  white-space: nowrap;
}
.wow_side_post_fltr .dropdown-menu.post_order_feed {
  width: 210px;
  /* A generic .post_order_feed rule sets min-width:250px, which beats a
     bare width; pin min-width too (this selector outranks it). */
  min-width: 210px;
  max-width: calc(100vw - 32px);
}
.post_order_feed .rb-filter-heading > span {
  display: block;
  padding: 10px 14px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #65676b;
}

/* Bug 12 -- Latest Activities: the relative time ("1 w") is an inline
   span, so it can wrap onto its own line mid-item. Keep it together. */
.activity .notification-time,
.activities-wrapper .notification-time {
  white-space: nowrap;
}

/* Bug 12 -- Suggested-groups names ("Outer Island Excur..."): the card
   title is .wow_my_groups_info h3 (style.css:4799, nowrap + ellipsis) in
   a ~106px cell, on top of a 20-char server truncation (removed in
   sidebar/content.phtml). Let the title wrap to two lines so the full
   name is readable in the card. */
.sidebar-group-may-know-container .wow_my_groups_info h3 {
  white-space: normal;
  overflow: hidden;
  max-height: 42px;
}
/* The name link itself is inline-block + nowrap (the real truncator);
   let it wrap so the title uses the two lines the h3 allows. Full name
   is also on the title attribute (sidebar-group-list.phtml). */
.sidebar-group-may-know-container .wow_my_groups_info h3 a {
  white-space: normal;
}
