/* ================================
   LAND SURVEYORS UNITED - MODERN UI
   Infinity Template Override
================================ */

/* ---------- ROOT DESIGN SYSTEM ---------- */
:root {
  --primary: #ffb300;
  --primary-glow: rgba(255,179,0,0.25);

  --bg-main: #0b1622;
  --bg-card: #132235;
  --bg-elevated: #182c44;

  --text-main: #e6edf3;
  --text-muted: #8aa0b6;

  --border-soft: rgba(255,255,255,0.08);
}

/* ---------- GLOBAL ---------- */
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
}

a {
  color: var(--primary);
  transition: all 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* ---------- HEADER ---------- */
#xg_head {
  background: #09121c;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* ---------- LEFT SIDEBAR ---------- */
.xg_module_nav {
  padding: 10px;
}

.xg_module_nav li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.xg_module_nav li a:hover {
  background: rgba(255,179,0,0.08);
  color: var(--primary);
}

.xg_module_nav li.current a {
  background: rgba(255,179,0,0.15);
  color: var(--primary);
  font-weight: 600;
}

/* ---------- MAIN FEED ---------- */
.xg_module_activity .feed-event {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border-soft);
  transition: all 0.2s ease;
}

.xg_module_activity .feed-event:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* ---------- POST INPUT ---------- */
textarea {
  background: #0f1e2d;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
  color: white;
  width: 100%;
}
div.ningbar.cf {background-color:#111827;}
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ---------- BUTTONS ---------- */
button, .button {
  background: var(--primary);
  color: #000;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  border: none;
}

button:hover {
  transform: translateY(-1px);
}

/* ---------- RIGHT SIDEBAR ---------- */
.xg_module .xg_list li {
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
}

.xg_module .xg_list h3 {
  color: var(--primary);
  font-size: 16px;
}

/* ---------- CARDS / GLASS ---------- */
.xg_module,
.xg_module_activity {
  backdrop-filter: blur(6px);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}


/* ---------------------------------------------------
   RESPONSIVE
--------------------------------------------------- */

@media (max-width:768px){

    .form1{width:100%}

    #profile_form.form1{
        background:#eee;
        padding:5px;
    }

}

@media (min-width:769px){

    .newPhotoList-v5 .matrix-itemFluid{
        width:50%;
    }

}
/* Hide all user links initially */
.ningbar-userLinks .ningbar-list,

.ningbar-userLinks select,
.ningbar-userLinks #signout {
    display: none;
}
/* Style for the locale select dropdown */
.ningbar-memberLocale {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #333;
    color: white;
}

badge {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1em;
  height: 2em;
  line-height: 2em;
  margin-right: .5em;
  padding: 0 .75em;
  background: currentColor;
  font-family: sans-serif;
}

badge:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0 1.5em 0 0;
  margin-right: -.75em;
  text-indent: .75em;
  overflow: hidden;
  background-clip: content-box;
}

badge:not(:last-child):after {
  content: '';
  position: absolute;
  top: -.25em;
  bottom: -.25em;
  left: 100%;
  width: 4em;
  margin-left: -1em;
  border-radius: 2em;
  box-shadow: -2em 0 0 0px currentColor;
  z-index: -1;
}
ul.ningbar-userLinks.linkbar { clear: left;}
/*** NING BAR BOX ***/

div.dashboardBar, .ningbar-box.open {
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  position: relative;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  transition: var(--transitionMedium);
}

i.icon.icon-add {
  font-weight: 900;
  font-size: 1.1em!important;
  -webkit-animation-duration: 1.8s;
  -webkit-transform-origin: 50% 50%;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
}
.ningbar-box.open>.ningbar-box-container {
  max-width: 380px;
  height: 400px;
  background-color: white;
  right: 30px;
  top: 20px;
  position: absolute;
  border-radius: 10px;
  min-width: 300px;
  z-index: 2;
  box-shadow: var(--boxShadowLow);
}
.ningbar-profilePhoto {
  padding-right: 5px
}
.ningbar-profilePhoto img {
  border-radius: 50%;
}
.dashboardBar-innerSection, .ningbar .dashboardBarWrap {
  background-color: #111827!important;
}
.dashboardBar-ningLogo {
  display: none;
}
div.module-actions.cf, footer.activityFeed-footer, footer.entry-footnote {
  background: #212121!important;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  padding: 5px;
  line-height: 1.3;
  padding: .25em;
  margin: .25em;
  color: #fff;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  /* future proofing */
  -khtml-border-radius: 10px;
  /* for old Konqueror browsers */
}
.ningbar #dashboardBar {
  width: 100%;
  height: 34px;
  background-color: #111827;
}
.ningbar .dashboardBar-ningLogo.ningbar-show {
  display: none!important;
}

span.dashboardBar_title, #membersButton span {
    display: none;
}

/* ===== LSU TOOL SHELF ===== */
.lsu-shelf {
  --lsu-accent: #ff9900;
  --lsu-ink: #e6edf3;
  --lsu-muted: #9aa8b6;
  --lsu-card-bg: #111f2e;
  --lsu-panel: #0f1c2a;
  --lsu-line: #22354a;
  --lsu-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 16px 0 24px;
  font-family: inherit;
  color: var(--lsu-ink);
}
.lsu-shelf *, .lsu-shelf *::before, .lsu-shelf *::after { box-sizing: border-box; }
.lsu-shelf--bleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); padding: 0 16px; }

.lsu-notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  background: var(--lsu-panel);
  border: 1px solid var(--lsu-line);
  border-left: 5px solid var(--lsu-accent);
  border-radius: var(--lsu-radius);
  font-size: 15px; line-height: 1.5;
  color: var(--lsu-ink);
}
.lsu-notice[hidden] { display: none; }
.lsu-notice__text { flex: 1; }
.lsu-notice__text strong { color: #fff; }
.lsu-notice__text a { color: var(--lsu-accent) !important; font-weight: 700; text-decoration: underline; }
.lsu-notice__small { display: block; margin-top: 4px; font-size: 13px; color: var(--lsu-muted); }
.lsu-notice__close {
  flex: 0 0 auto; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: transparent;
  font-size: 22px; line-height: 1; color: var(--lsu-muted); cursor: pointer;
}
.lsu-notice__close:hover { background: rgba(255,255,255,.08); color: #fff; }

.lsu-shelf__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lsu-shelf__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--lsu-accent); }
.lsu-shelf__nav { display: flex; gap: 8px; }
.lsu-shelf__nav button {
  width: 38px; height: 38px;
  border: 1px solid var(--lsu-line); border-radius: 50%;
  background: var(--lsu-card-bg); color: var(--lsu-ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.lsu-shelf__nav button:hover:not(:disabled) { border-color: var(--lsu-accent); color: var(--lsu-accent); }
.lsu-shelf__nav button:disabled { opacity: .35; cursor: default; }

.lsu-shelf__track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #2c4560 transparent;
}
.lsu-shelf__track::-webkit-scrollbar { height: 6px; }
.lsu-shelf__track::-webkit-scrollbar-thumb { background: #2c4560; border-radius: 3px; }

.lsu-card {
  flex: 0 0 clamp(220px, 27%, 320px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--lsu-card-bg);
  border: 1px solid var(--lsu-line);
  border-radius: var(--lsu-radius);
  overflow: hidden;
  text-decoration: none !important;
  color: var(--lsu-ink) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lsu-card:hover, .lsu-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--lsu-accent);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  outline: none;
}
.lsu-card:focus-visible { box-shadow: 0 0 0 3px var(--lsu-accent); }
.lsu-card__media {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #16293d, #1f3d55);
  overflow: hidden;
}
.lsu-card__mono {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; letter-spacing: 1px;
  color: rgba(255,153,0,.85);
}
.lsu-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .3s ease;
}
.lsu-card.has-thumb .lsu-card__media img { opacity: 1; }
.lsu-card__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.lsu-card__title { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--lsu-ink); }
.lsu-card__cta {
  flex: 0 0 auto; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--lsu-accent);
}

.lsu-viewer {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; flex-direction: column;
  width: 100vw; height: 100vh; height: 100dvh;
  background: #0b1622;
}
.lsu-viewer[hidden] { display: none; }
.lsu-viewer__bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 10px; padding-top: env(safe-area-inset-top);
  background: #0f1c2a; border-bottom: 2px solid #ff9900;
  color: #e6edf3; font-family: inherit;
}
.lsu-viewer__title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsu-viewer__back, .lsu-viewer__close, .lsu-viewer__newtab {
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #e6edf3 !important;
  font-size: 14px; font-weight: 600;
  padding: 8px 12px; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
}
.lsu-viewer__close { font-size: 22px; line-height: 1; padding: 6px 12px; }
.lsu-viewer__back:hover, .lsu-viewer__close:hover, .lsu-viewer__newtab:hover { background: #ff9900; color: #0b1622 !important; }
.lsu-viewer__frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

html.lsu-lock, html.lsu-lock body { overflow: hidden !important; }

@media (max-width: 640px) {
  .lsu-card { flex-basis: 78%; }
  .lsu-shelf__nav { display: none; }
  .lsu-shelf__title { font-size: 18px; }
  .lsu-viewer__back { display: none; }
  .lsu-viewer__newtab { padding: 8px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lsu-card, .lsu-card__media img { transition: none; }
}
/* ===== END LSU TOOL SHELF ===== */
