.nav-block:active
{
    background-color: blue;
}

.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

@media (min-width: 768px) {
.bd-placeholder-img-lg {
  font-size: 3.5rem;
}
}

.b-example-divider {
height: 3rem;
background-color: rgba(0, 0, 0, .1);
border: solid rgba(0, 0, 0, .15);
border-width: 1px 0;
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}

.bi {
vertical-align: -.125em;
fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    border: 1px solid #CCC;
}

.item-menu {
  display: none;  
}

.list-group-item:hover .item-menu {
  display:block;  
}

.bottom-nav-size {
  min-width: fit-content;
}

@media (max-width:370px) { 
  .nav-link {
    display: inline;
    font-size: 11px;
  }
  
  .mx-auto {
    margin-right: 0!important;
    margin-left: 10%!important; 
  }

  .mx-auto-tiny {
    margin-right: 0!important;
    margin-left: 10%!important; 
  }

}

/*
@keyframes move-it {
  0% {
    background-position: initial;
  }
  100% {
    background-position: 100px 0px;
  }
}

.list-group-item {  
  background: repeating-linear-gradient(
    45deg,
    #e2ffd1,
    #e2ffd1 5%,
    #b6f78f 5%,
    #b6f78f 10%
  );
  animation: move-it 5s linear infinite;
}
*/

/* (A) SPEECH BOX */
.speech {
  /* (A1) FONT & COLORS */
  font-size: .8em;
  color: #000;
  background: #edf0ee;

  /* (A2) DIMENSIONS */
  padding: 10px;
  border-radius: 10px;
  max-width: 600px;
}

/* (B) USE ::AFTER TO CREATE THE "CALLOUT" */
.speech::after {
  display: block; width: 0; content: "";
  border: 15px solid transparent;
}
 
/* (C) "CALLOUT" DIRECTIONS */
.speech.up::after {
  border-bottom-color: #edf0ee;
  border-top: 0;
}
.speech.down::after {
  border-top-color: #edf0ee;
  border-bottom: 0;
}
.speech.left::after {
  border-right-color: #edf0ee;
  border-left: 0;
}
.speech.right::after {
  border-left-color: #edf0ee;
  border-right: 0;
}

/* (D) POSITION THE CALLOUT */
.speech {
  position: relative;
  margin: 5px;
}
.speech::after { position: absolute; }
.speech.up::after {
  top: -15px; left: calc(50% - 15px);
}
.speech.down::after {
  bottom: -15px; left: calc(50% - 15px);
}
.speech.left::after {
  left: -10px; top: calc(38% - 10px);
}
.speech.right::after {
  right: -15px; top: calc(50% - 15px);
}

/* ─── Return note hover-reveal ──────────────────────────────────────
   Replace previous return note CSS in: /scripts/css/app-0.1.6.css
─────────────────────────────────────────────────────────────────── */
 
.return-note-btn {
    display: none;
}

.return-row:hover .return-note-btn {
    display: inline-block;
}

.speech[contenteditable="true"] {
    outline: 0px solid #0d6efd;
    border-radius: 4px;
    min-width: 100px;
    cursor: text;
}

.speech[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #aaa;
}

/* ── Home page pills ─────────────────────────────────── */
.home-tab-btn {
    background-color: #eeeeee;
    color: #495057;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    margin: 0 4px;
    font-size: .85em;
}

.home-tab-btn.active {
    background-color: #6c757d;
    color: #ffffff;
    border: none;
}

.home-tab-btn:hover:not(.active) {
    background-color: #dee2e6;
    color: #212529;
}

.home-tab-content {
    background-color: transparent;
    border: none;
    padding: 12px 0;
    color: #212529;
    text-align: left;
}

.home-tab-content .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    border-color: #f0f0f0;
    background-color: transparent;
    color: #212529;
    padding-left: 0;
    padding-right: 0;
}

.home-tab-content .list-group-item h6 {
    color: #212529;
}

.home-tab-content .small,
.home-tab-content p {
    color: #495057 !important;
}

.home-tab-content .text-muted {
    color: #adb5bd !important;
}

/* ── Home group filter ──────────────────────────────── */
.home-group-filter {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    border-radius: 20px;
    font-size: .85em;
    padding: 4px 12px;
}

.home-group-filter:focus {
    background-color: #ffffff;
    color: #212529;
    border-color: #adb5bd;
    box-shadow: none;
}

/* ── Home feed item hover menu ──────────────────────── */
.home-post,
.home-task {
    position: relative;
}

.home-post .item-menu,
.home-task .item-menu {
    position: absolute;
    top: 8px;
    right: 4px;
}

/* ── Comment item hover controls ────────────────────────────────────
   Add to: /scripts/css/app-0.1.6.css
   Replace any existing comment-controls block.
────────────────────────────────────────────────────────────────── */

.comment-item {
    position: relative;
}

.comment-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.comment-item:hover .comment-controls {
    display: block;
}

.comment-controls a {
    font-size: .75em;
    text-decoration: none;
    color: #6c757d;
}

.comment-controls a:hover {
    color: #212529;
    text-decoration: underline;
}

.comment-controls a.text-danger {
    color: #dc3545 !important;
}

.comment-controls a.text-danger:hover {
    color: #a71d2a !important;
}

/* ── Comment menu hover reveal ──────────────────────── */
.comment-item .comment-menu {
    visibility: hidden;
}

.comment-item:hover .comment-menu {
    visibility: visible;
}

/* ── Home feed action buttons ───────────────────────── */
.home-post .btn-xs,
.home-post .open-comments,
.home-post .thumb-up {
    font-size: .75em;
    padding: 4px 8px;
    line-height: 1.4;
}

/* ── Bottom nav active state ─────────────────────────────────────────
   Highlights the current page in the fixed bottom navbar:
   - Icon + label tinted with --nav-active.
   - Notch arrow in the navbar's own colour (--nav-arrow) pokes up
     above the top edge of the footer over the active item, so the
     bar looks like it's pointing up at the page content.
   Markup: /includes/views/master/_navbar.php adds .active (and drops
   .text-white) on the current item.
   Note: the arrow offset differs per breakpoint because the nav <ul>
   uses my-2 on mobile and my-md-0 from 768px up.
──────────────────────────────────────────────────────────────────── */

:root {
    --nav-active: #ffc107;   /* icon + label tint */
    --nav-arrow:  #212529;   /* Bootstrap bg-dark, matches the footer */
}

.navbar.fixed-bottom .nav-block {
    position: relative;
    color: rgba(255, 255, 255, .75);
    transition: color .15s ease-in-out;
}

.navbar.fixed-bottom .nav-block:hover {
    color: #ffffff;
}

.navbar.fixed-bottom .nav-block.active {
    color: var(--nav-active);
}

/* Notch arrow: bottom edge sits flush with the footer's top edge,
   triangle points upward in the footer colour. */
.navbar.fixed-bottom .nav-block.active::before {
    content: "";
    position: absolute;
    top: -23px;              /* overlaps footer edge by 1px so subpixel rounding never shows a gap */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 8px solid var(--nav-arrow);
}

@media (min-width: 768px) {
    /* ul margin drops to 0 (my-md-0), so the link sits 8px closer
       to the footer's top edge. */
    .navbar.fixed-bottom .nav-block.active::before {
        top: -15px;
    }
}