/* UmrahRoom Community Discussions Mobile v1 — Step 5 — 2026-10-03 */
.ur-disc-mobile-v1{display:none}
@media(max-width:900px){
  body.ur-discussions-mobile-step5{background:#f7fbff!important}
  body.ur-discussions-mobile-step5 .community-top-nav{display:none!important}
  body.ur-discussions-mobile-step5 .urc-discussions-shell{display:none!important}
  body.ur-discussions-mobile-step5 #mainContent{background:#f7fbff!important}
  .ur-disc-mobile-v1{display:block;position:relative;width:100%;max-width:560px;margin:0 auto;padding:0 10px 86px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0b2358}
  .ur-disc-mobile-v1 *{box-sizing:border-box}
  .ur-disc-mobile-v1 a{text-decoration:none;color:inherit}
  .ur-disc-mobile-v1 svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

  .ur-disc-hero{position:relative;overflow:hidden;margin:8px 0 8px;padding:18px 14px 12px;border:1px solid #dbe8f8;border-radius:17px;background:linear-gradient(90deg,rgba(247,252,255,.98) 0%,rgba(238,248,255,.92) 50%,rgba(228,244,255,.78) 100%),url('../images/hero-home-final-reference.jpg') right 40% center/58% 100% no-repeat;box-shadow:0 8px 26px rgba(35,94,153,.06)}
  .ur-disc-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.86) 52%,rgba(255,255,255,.18) 100%);pointer-events:none}
  .ur-disc-hero-copy,.ur-disc-search{position:relative;z-index:2}
  .ur-disc-hero-copy{max-width:70%;padding:0 2px 12px}
  .ur-disc-hero h1{margin:0 0 5px;color:#0b1d56;font-size:27px;line-height:1.02;letter-spacing:-1.1px;font-weight:800}
  .ur-disc-hero p{margin:0;color:#506b92;font-size:12px;line-height:1.4;font-weight:500}
  .ur-disc-search{height:44px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid #d5e3f4;border-radius:13px;background:#fff;box-shadow:0 7px 18px rgba(40,91,151,.08)}
  .ur-disc-search svg{width:20px;height:20px;flex:0 0 auto;color:#173b7a}
  .ur-disc-search input{width:100%;height:100%;border:0;outline:0;background:transparent;color:#0b2358;font:500 11px/1.2 Inter,sans-serif;min-width:0}
  .ur-disc-search input::placeholder{color:#7d91af}

  .ur-disc-sort{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0 5px;white-space:nowrap}
  .ur-disc-sort::-webkit-scrollbar,.ur-disc-categories::-webkit-scrollbar{display:none}
  .ur-disc-sort a{height:36px;display:flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;padding:0 13px;border:1px solid #d7e5f6;border-radius:999px;background:#fff;color:#173465;font-size:10.5px;font-weight:700}
  .ur-disc-sort a:first-child{padding-inline:17px}
  .ur-disc-sort a.active{border-color:#0874f9;background:#0874f9;color:#fff;box-shadow:0 7px 16px rgba(8,116,249,.18)}
  .ur-disc-sort a.active-soft{border-color:#bcd8fb;background:#eef6ff;color:#0874f9}
  .ur-disc-sort svg{width:18px;height:18px;color:#0874f9}
  .ur-disc-sort a.active svg{color:#fff}

  .ur-disc-categories{display:flex;flex-wrap:wrap;gap:6px;padding:1px 0 9px}
  .ur-disc-categories a{height:34px;display:flex;align-items:center;gap:7px;padding:0 12px;border:1px solid #dbe7f5;border-radius:999px;background:#fff;color:#173465;font-size:9.9px;font-weight:650;box-shadow:0 3px 10px rgba(40,91,151,.025)}
  .ur-disc-categories a.active{border-color:#b7d6fb;background:#edf6ff;color:#0874f9}
  .ur-disc-categories svg{width:17px;height:17px;color:#0874f9}

  .ur-disc-list{display:grid;gap:7px}
  .ur-disc-card{padding:10px 10px 7px;border:1px solid #dce7f4;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(28,73,126,.045)}
  .ur-disc-card-main{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:start}
  .ur-disc-card.has-image .ur-disc-card-main{grid-template-columns:36px minmax(0,1fr) 78px}
  .ur-disc-avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;display:grid;place-items:center;border:1px solid #dbe6f3;color:#0f58b8;font-size:11px;font-weight:800;background:#e9f4ff}
  .ur-disc-avatar.shade-2{background:#edf7ff}.ur-disc-avatar.shade-3{background:#f6efff;color:#6a42cf}.ur-disc-avatar.shade-4{background:#edf9f3;color:#16895e}
  .ur-disc-avatar img{width:100%;height:100%;object-fit:cover}
  .ur-disc-copy{min-width:0}
  .ur-disc-meta{display:flex;align-items:center;gap:4px;min-width:0;margin-bottom:3px;white-space:nowrap;overflow:hidden}
  .ur-disc-meta strong{font-size:10.2px;line-height:1.1;color:#0b2358;overflow:hidden;text-overflow:ellipsis;max-width:90px}
  .ur-disc-meta i{display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#0874f9;color:#fff;font-style:normal;font-size:8px;flex:0 0 auto}
  .ur-disc-meta em{max-width:88px;overflow:hidden;text-overflow:ellipsis;padding:3px 7px;border-radius:999px;background:#eaf4ff;color:#0874f9;font-style:normal;font-size:8.2px;line-height:1;font-weight:700;flex:0 1 auto}
  .ur-disc-meta time{margin-inline-start:auto;color:#6c83a4;font-size:8.3px;flex:0 0 auto}
  .ur-disc-copy h2{margin:0 0 3px;color:#0b2358;font-size:12.1px;line-height:1.2;letter-spacing:-.15px;font-weight:800}
  .ur-disc-copy p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:#607795;font-size:9.2px;line-height:1.32}
  .ur-disc-thumb{display:block;width:78px;height:68px;border-radius:10px;overflow:hidden;background:#eef5fd}
  .ur-disc-thumb img{width:100%;height:100%;display:block;object-fit:cover}
  .ur-disc-card-actions{display:flex;align-items:center;gap:14px;padding:7px 1px 0;margin-top:5px;border-top:1px solid #eef3f9;color:#254a7d}
  .ur-disc-card-actions button,.ur-disc-card-actions a{border:0;background:transparent;padding:0;display:flex;align-items:center;gap:5px;color:#254a7d;font:600 8.8px/1 Inter,sans-serif;cursor:pointer}
  .ur-disc-card-actions button.active{color:#0874f9}
  .ur-disc-card-actions svg{width:16px;height:16px}
  .ur-disc-card-actions .ur-disc-more{margin-inline-start:auto;font-size:13px;letter-spacing:1px;color:#153d7c}

  .ur-disc-empty{display:grid;place-items:center;text-align:center;min-height:220px;padding:28px 18px;border:1px solid #dbe7f4;border-radius:16px;background:#fff}
  .ur-disc-empty>span{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#edf6ff;color:#0874f9;font-size:22px;font-weight:800}
  .ur-disc-empty h2{margin:10px 0 3px;font-size:16px}.ur-disc-empty p{margin:0 0 12px;color:#607795;font-size:11px}
  .ur-disc-empty a,.ur-disc-empty button{height:38px;padding:0 16px;border:0;border-radius:10px;background:#0874f9;color:#fff;font:700 10px Inter,sans-serif}

  .ur-disc-fab{position:fixed;right:13px;bottom:calc(70px + env(safe-area-inset-bottom));z-index:5700;height:40px;display:flex;align-items:center;gap:6px;padding:0 14px;border:0;border-radius:999px;background:#0874f9;color:#fff!important;box-shadow:0 10px 24px rgba(8,116,249,.28);font:750 10px/1 Inter,sans-serif}
  .ur-disc-fab span{font-size:18px;font-weight:400;line-height:1}
}
@media(max-width:380px){
  .ur-disc-mobile-v1{padding-inline:8px}
  .ur-disc-hero{padding-inline:12px}.ur-disc-hero-copy{max-width:76%}.ur-disc-hero h1{font-size:25px}
  .ur-disc-card.has-image .ur-disc-card-main{grid-template-columns:34px minmax(0,1fr) 72px}.ur-disc-avatar{width:34px;height:34px}.ur-disc-thumb{width:72px;height:64px}
  .ur-disc-card-actions{gap:10px}
}
@media(min-width:901px){.ur-disc-mobile-v1{display:none!important}}
/* Step 5 QA polish */
@media(max-width:900px){
  .ur-disc-sort{gap:4px;overflow:visible;white-space:normal}
  .ur-disc-sort a{min-width:0;height:34px;padding:0 9px;font-size:9.3px;gap:4px;flex:1 1 auto}
  .ur-disc-sort a:first-child{padding-inline:10px;flex:1.25 1 auto}
  .ur-disc-sort svg{width:15px;height:15px}
  .ur-disc-fab{display:none!important}
}
@media(max-width:370px){
  .ur-disc-sort a{padding-inline:7px;font-size:8.6px}
  .ur-disc-sort a:first-child{padding-inline:8px}
}
