/* Shared slim tab row for Live Feed / Noticeboard / Chat (Square, Noticeboard, Chat). */
.sqc-community-nav {
  display: flex;
  width: 100%;
  align-items: stretch;
  border-bottom: 1px solid color-mix(in oklab, currentColor 14%, transparent);
}

.sqc-community-nav__link {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem; /* comfortable tap target (~44px) */
  padding: 0.625rem 0.5rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: color-mix(in oklab, currentColor 70%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sqc-community-nav__link:hover {
  color: var(--color-primary, #1b5e3b);
}

.sqc-community-nav__link.is-active,
.sqc-community-nav__link[aria-current="page"] {
  color: var(--color-primary, #1b5e3b);
  font-weight: 600;
  border-bottom-color: var(--color-primary, #1b5e3b);
}

/* FEATURE_SIMPLE_SQUARE: newspaper section bar — underlined text tabs that
   scroll sideways on phones; deep green underline marks the selected one. */
.sqc-community-nav--simple {
  gap: 1.35rem;
  overflow-x: auto;
  /* Sideways only: overflow-x alone makes the row scroll vertically too
     (the tabs' -1px underline overlap), so it wobbled up and down. */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding: 0 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* The bottom line is drawn inside the row (inset shadow) so the tabs'
   underline can sit on it without the -1px overlap that made the row taller
   than itself. */
.sqc-community-nav.sqc-community-nav--simple {
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 color-mix(in oklab, currentColor 14%, transparent);
}

.sqc-community-nav--simple .sqc-community-nav__link {
  margin-bottom: 0;
}

.sqc-community-nav--simple::-webkit-scrollbar {
  display: none;
}

.sqc-community-nav--simple .sqc-community-nav__link {
  flex: 0 0 auto;
  min-height: 2.9rem; /* 46px tap target */
  padding: 0.6rem 0.1rem 0.55rem;
  border-bottom-width: 3px;
  /* !important: landing.css colours every `main a` via a long :not() chain. */
  color: color-mix(in oklab, var(--color-base-content) 78%, transparent) !important;
  font-size: 0.95rem;
  font-weight: 500;
}

.sqc-community-nav--simple .sqc-community-nav__link.is-active,
.sqc-community-nav--simple .sqc-community-nav__link[aria-current="page"] {
  border-bottom-color: var(--color-primary);
  color: var(--color-base-content) !important;
  font-weight: 700;
}

.sqc-community-nav--simple .sqc-community-nav__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
