

/* Make all elements (and their pseudo-elements) include padding and border inside their set width and height */
	*,
	*::before,
	*::after { box-sizing: border-box; }


/* Keep images responsive: scale down to fit container, maintain aspect ratio, and allow box-like styling */
	img { max-width: 100%; height: auto; display: inline-block; }

/* AsCollected and Credlab logos */
.wcl-logo-bar {
  background-color: #f7f7f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 4px 10px;
  display:flex; 
 
}



/* ===========================================
   Topbar container
   =========================================== */
.wcl-topbar {
  position: relative;            /* we’ll absolutely position children inside */
  background-color: #f7f7f7;
  width: 100%;
  max-width: 100vw;
  padding: 0;                    /* keep it tight */
  border: 0;
}

/* ===========================================
   Title row (holds the LEFT/RIGHT button clusters)
   We use it purely as a positioning layer.
   =========================================== */
.wcl-title-row {
  position: relative;            /* anchor for nav-left/right if needed */
  height: 0;                     /* collapse natural height so only tabs row shows */
  margin: 0;
  padding: 0;
  overflow: visible;             /* allow buttons to render over the tab baseline */
}

/* We’re not using the title text here; keep it hidden */
.wcl-title { display: none; }

/* ---------- Button clusters (left & right) ---------- */
/* We pin these to the bottom of the topbar so they sit on the same baseline as the tabs */
	.wcl-nav-left,
	.wcl-nav-right {
	  position: absolute;
	  bottom: 0;                     /* align to tab baseline */
	  display: inline-flex;
	  align-items: flex-end;         /* bottoms align together */
	  gap: 8px;
	  height: 54px;                  /* match the tabbar height (see .wcl-tabbar) */
	  padding-bottom: 0;
	  z-index: 2;                    /* above baseline, below active tab shadow */
	  pointer-events: auto;
	}

	.wcl-nav-left  { left: 12px; }
	.wcl-nav-right { right: 12px; }

/* ===========================================
   Tab bar (separate sibling; provides the baseline)
   =========================================== */
	.wcl-tabbar {
	  position: relative;
	  width: 100%;
	  height: 54px;                  /* overall compact height */
	  border-bottom: 1px solid #bbb; /* the shared baseline */
	  padding: 0 12px;               /* horizontal breathing room */
	  background: transparent;
	  z-index: 1;                    /* sits under the active tab’s shadow */
	}

	/* Centered tabs: absolutely centered inside .wcl-tabbar */
	.wcl-tabs {
	  position: absolute;
	  left: 50%;
	  transform: translateX(-50%);
	  bottom: -1px;                  /* sit exactly on the baseline */
	  display: flex;
	  align-items: flex-end;
	  gap: 6px;
	  padding: 0;
	  margin: 0;
	  list-style: none;
	  z-index: 3;                    /* above left/right controls for crisp overlap */
	}

/* Each tab host */
.wcl-tab-item {
  margin: 0;
  padding: 0;
  display: flex;
  min-width: 140px;              /* ensure tabs don't get too narrow */
  flex: 0 1 auto;                /* allow shrink under tight widths */
}

/* Clickable tab */
.wcl-tab-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 6px;         /* compact */
  text-decoration: none;
  color: #222;
  background: #a1a1a1;           /* inactive tab color */
  border: 1px solid transparent;
  border-bottom: none;           /* baseline is on .wcl-tabbar */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;           /* avoid wrapping */
}

.wcl-tab-link:not(.active):hover {
  background: #f2f2f2;
  border-color: #bbb;
}

/* Active tab */
.wcl-tab-link.active {
  background: #ffffff;
  border-color: #990000;         /* Penn red */
  border-bottom-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 4;
}

/* Mask the baseline under the active tab */
.wcl-tab-link.active::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 1px;
  background: #ffffff;
}

/* When hovering over other tabs, make active tab look like unselected tabs */
.wcl-tabs:hover .wcl-tab-link.active:not(:hover) {
  background: #a1a1a1;  /* same as inactive tab color */
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
  filter: none;
  text-decoration: none !important;
}

.wcl-tab-link.active:hover {
  opacity: 1;
  filter: none;
  text-decoration: none !important;
}

/* Tab contents */
.wcl-tab-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: inline-block;
}

.wcl-tab-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.wcl-tab-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #222;
}

.wcl-tab-subtitle {
  font-size: 0.84rem;
  color: #666;
}

/* ===========================================
   Utility buttons (Home/Project/Account/Help)
   =========================================== */
.wcl-nav-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  background: transparent;        /* flatter look near the baseline */
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;              /* tuned to match tab height */
  line-height: 1;
  height: 38px;                   /* ≈ tab clickable area */
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.wcl-nav-side:hover {
  background: #ffffff;
  border-color: #bbb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  color: #111;
}

.wcl-nav-side i { font-size: 1rem; }

/* ===========================================
   Responsiveness
   =========================================== */
@media (max-width: 1100px) {
  .wcl-tabbar { height: 50px; }
  .wcl-nav-left,
  .wcl-nav-right { height: 50px; }
  .wcl-nav-side { height: 34px; padding: 6px 9px; }
  .wcl-tab-logo { width: 26px; height: 26px; }
  .wcl-tab-link { padding: 7px 10px 5px; gap: 6px; }
  .right_button_text {display:none}
}

@media (max-width: 920px) {
  .wcl-tab-texts { display: none; }        /* icon-only tabs */
  .wcl-tab-link   { padding: 8px 10px; gap: 0; }
  .wcl-tab-item   { flex: 0 0 auto; min-width: 60px; }      /* size to content but maintain minimum */
  .wcl-tab-logo   { width: 24px; height: 24px; }
}

@media (max-width: 520px) {
  .wcl-tabbar { padding: 0 8px; }
  .wcl-nav-left  { left: 8px; }
  .wcl-nav-right { right: 8px; }
  .wcl-nav-side { font-size: 0.92rem; padding: 6px 8px; height: 32px; }
}




/* ===========================
   Patch: pin buttons to tabbar baseline
   =========================== */

/* 1) Single source of truth for the bar height */
:root {
    --wcl-bar-h: 54px;     /* must match .wcl-tabbar height */
}

/* 2) Ensure the tabbar uses that same height */
.wcl-tabbar {
    height: var(--wcl-bar-h);
}

/* 3) Title row is only a positioning layer */
.wcl-title-row {
    position: relative;
    height: 0;             /* collapse natural height */
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* 4) Move the left/right clusters DOWN by the tabbar height
      so they sit on the SAME baseline as the tabs */
.wcl-nav-left,
.wcl-nav-right {
    position: absolute;
    bottom: calc(-1 * var(--wcl-bar-h));  
    height: var(--wcl-bar-h);
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 3;                            
    pointer-events
}