body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.nc-scroll::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
.nc-scroll::-webkit-scrollbar-thumb {
    background-color: #2563eb; /* Blue-600 */
    border-radius: 6px;
}
.nc-scroll::-webkit-scrollbar-track {
    background-color: #1d4ed8; /* Blue-700 */
}

/* ── App sidebar ────────────────────────────────────────────────────────────
   The nav entries carried the same dozen Tailwind classes each, in blue — the
   app's accent is indigo everywhere else. One class here instead, so the hover,
   the icon colour and the active marker stay in step.                        */

.nc-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    /* A <button> centres its text and an <a> does not; the rows are a mix of
       both, so say it once here. */
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;               /* gray-700 */
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* The marker grows out of the left edge rather than appearing whole, which
   keeps the row from jumping. */
.nc-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0;
    border-radius: 9999px;
    background-color: #3b82f6;    /* indigo-500 */
    transform: translateY(-50%);
    transition: height 0.15s ease;
}

.nc-nav-item:hover {
    background-color: #eff6ff;    /* indigo-50  */
    color: #1d4ed8;               /* indigo-700 */
}
.nc-nav-item:hover::before { height: 1.25rem; }

/* Set by _setActiveNav (js/app.js) on the view currently on screen. */
.nc-nav-item.is-active {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.nc-nav-item.is-active::before { height: 1.25rem; }

/* A muted icon that lights up reads as one row with its label; a fixed width
   keeps the labels aligned whatever the glyph. */
.nc-nav-item > i {
    width: 1.25rem;
    text-align: center;
    color: #9ca3af;               /* gray-400 */
    transition: color 0.15s ease;
}
.nc-nav-item:hover > i,
.nc-nav-item.is-active > i { color: #3b82f6; }

.nc-nav-item.is-disabled {
    color: #9ca3af;
    cursor: not-allowed;
}
.nc-nav-item.is-disabled:hover {
    background-color: transparent;
    color: #9ca3af;
}
.nc-nav-item.is-disabled:hover::before { height: 0; }
.nc-nav-item.is-disabled:hover > i { color: #9ca3af; }

/* The profile card at the top of the sidebar. It is not a .nc-nav-item — it is
   a card with an avatar, not a nav row — but it does lead to a page, so it
   answers to the same is-active mark _setActiveNav sets on the rest. */
[data-nav="profile"].is-active {
    border-color: #3b82f6;                                  /* indigo-500 */
    box-shadow: 0 0 0 1px #3b82f6, 0 1px 2px rgb(0 0 0 / 0.05);
}

/* Collapsed sidebar (lg:w-24): the labels are hidden, so centre what is left
   and drop the marker, which would sit against the edge of a narrow rail. */
.nc-sidebar-collapsed .nc-nav-item {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.nc-sidebar-collapsed .nc-nav-item::before { height: 0 !important; }

/* ── Preferences: the theme picker ──────────────────────────────────────────
   Three cards showing the three choices at once, where the floating gear menu
   had one pill you clicked until its label said what you wanted.              */

.nc-theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.875rem 0.5rem;
    border: 1px solid #e5e7eb;                              /* gray-200   */
    border-radius: 0.75rem;
    background-color: #f9fafb;                              /* gray-50    */
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;                                         /* gray-700   */
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.nc-theme-card > i {
    font-size: 1.125rem;
    color: #9ca3af;                                         /* gray-400   */
    transition: color 0.15s ease;
}

.nc-theme-card:hover {
    border-color: #93c5fd;                                  /* indigo-300 */
    background-color: #eff6ff;                              /* indigo-50  */
}

.nc-theme-card.is-active {
    border-color: #3b82f6;                                  /* indigo-500 */
    background-color: #eff6ff;
    color: #1d4ed8;                                         /* indigo-700 */
    box-shadow: 0 0 0 1px #3b82f6;
}

.nc-theme-card:hover > i,
.nc-theme-card.is-active > i { color: #3b82f6; }

/* ── In-app documentation ───────────────────────────────────────────────────
   The index doubles as a phone-sized chip row and a desktop sticky index, so
   the shared bits live here rather than in a long Tailwind class list.        */

.doc-toc-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    color: #374151;               /* gray-700  */
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.doc-toc-link:hover {
    background-color: #eff6ff;    /* indigo-50  */
    color: #1d4ed8;               /* indigo-700 */
}
/* Set by _docStartSpy on the section currently under the top of the viewport. */
.doc-toc-link.is-active {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.doc-toc-link.is-active > i { color: #3b82f6; }

/* Filtered out by the search box. A class rather than an inline style so a
   section can be hidden and shown again without touching its own styling. */
.doc-hidden { display: none !important; }

/* Search hits, wrapped by _docHighlight. */
.doc-mark {
    background-color: #bfdbfe;    /* indigo-200 */
    color: inherit;
    border-radius: 0.25rem;
    padding: 0 0.125rem;
}
