/* Level Up Leadership — App CSS
   Tailwind is loaded from CDN; this file holds any custom overrides. */

/* Smooth transitions for interactive elements */
a, button {
    transition-property: color, background-color, border-color, box-shadow;
    transition-duration: 150ms;
}

/* Table row hover */
tbody tr:hover {
    background-color: #f9fafb;
}

/* Focus ring consistency */
:focus-visible {
    outline: 2px solid #657a62;
    outline-offset: 2px;
}

/* Brand typography */
body {
    font-family: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

/* ── Help drawer ──────────────────────────────────────────────────────────── */

.help-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 49;
}
.help-backdrop.open {
    display: block;
}

.help-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 460px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: right 280ms ease;
}
.help-drawer.open {
    right: 0;
}

.help-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.help-drawer-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.help-drawer-close {
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 150ms, background-color 150ms;
}
.help-drawer-close:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.help-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.7;
}
.help-drawer-body h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #657a62;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}
.help-drawer-body h3:first-child {
    margin-top: 0;
}
.help-drawer-body p {
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.help-drawer-body ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    list-style: disc;
}
.help-drawer-body ul li {
    margin-bottom: 0.35rem;
}
.help-drawer-body code {
    background: #f3f4f6;
    border-radius: 0.25rem;
    padding: 0.1em 0.35em;
    font-size: 0.82rem;
    color: #374151;
}

.help-drawer-footer {
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    font-size: 0.82rem;
}
.help-drawer-footer a {
    color: #657a62;
    text-decoration: none;
}
.help-drawer-footer a:hover {
    text-decoration: underline;
}

/* Fixed help ? button */
.help-trigger {
    position: fixed;
    bottom: 5rem;
    right: 1.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1.5px solid #657a62;
    background: #fff;
    color: #657a62;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(101,122,98,0.25);
    z-index: 40;
    transition: color 150ms, background-color 150ms, border-color 150ms, box-shadow 150ms;
}
.help-trigger:hover {
    background-color: #657a62;
    color: #fff;
    box-shadow: 0 4px 14px rgba(101,122,98,0.4);
}
