/* Uspica listing gallery (swipe, scroll-snap) and document list. */
.usg { position: relative; overflow: hidden; background: #f1f5f9; }
.usg .usg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; height: 100%; }
.usg .usg-track::-webkit-scrollbar { display: none; }
.usg .usg-track:focus-visible { outline: 2px solid #047857; outline-offset: -2px; }
.usg .usg-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; height: 100%; }
.usg .usg-slide img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.usg .usg-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 3; pointer-events: none; }
.usg .usg-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: width .2s, background .2s; }
.usg .usg-dot[aria-current="true"] { width: 18px; border-radius: 4px; background: #fff; }

/* Listing page */
.usg.usg-single { aspect-ratio: 4 / 3; border-radius: 24px; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 16px 40px rgba(0,0,0,.05); }
.usg.usg-single .usg-dots { pointer-events: auto; bottom: 14px; }
.usg.usg-single button.usg-dot { cursor: pointer; min-width: 7px; min-height: 7px; position: relative; }
.usg.usg-single button.usg-dot::after { content: ""; position: absolute; inset: -12px -6px; } /* 30px+ tap area */
.usg.usg-single .usg-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.82); color: #1e293b; font-size: 26px; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 4px 14px rgba(15,23,42,.12);
  display: flex; align-items: center; justify-content: center; transition: opacity .2s;
}
.usg.usg-single .usg-nav:hover { background: #fff; color: #1e293b; }
.usg.usg-single .usg-prev { left: 12px; }
.usg.usg-single .usg-next { right: 12px; }
.usg.usg-single .usg-nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .usg.usg-single .usg-nav { display: none; } }

/* Trade Board card */
.board-card-thumb .usg.usg-card { position: absolute; inset: 0; z-index: 0; }

/* Documents on the listing page */
.usd { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px 20px; box-shadow: 0 4px 20px rgba(0,0,0,.02); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.usd .usd-title { font-size: 15px !important; font-weight: 700 !important; color: #1e293b !important; margin: 0 0 10px !important; line-height: 1.3 !important; }
.usd .usd-list { list-style: none; margin: 0; padding: 0; }
.usd .usd-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid #f1f5f9; margin: 0; }
.usd .usd-item:first-child { border-top: 0; }
.usd .usd-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.usd .usd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.usd .usd-text strong { font-size: 14px; color: #1e293b; }
.usd .usd-text small { font-size: 12.5px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usd .usd-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155 !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; }
.usd .usd-btn:hover { background: #047857; border-color: #047857; color: #fff !important; }
.usd .usd-note { margin: 10px 0 0; font-size: 13px; color: #64748b; line-height: 1.5; }
