/* CSP-safe utility and one-off classes replacing inline style= attributes.

   Most of this file was a dump of single-purpose helpers, and nearly all of them
   were unreferenced after the shell and page migrations moved to the kit: 185
   lines of width/height/font-size/z-index helpers with no template or JS using
   them. `manage.py audit_unused_css` reports what is left; keep this file for
   the cases that cannot be a utility (values from data attributes, user data, or
   a computed custom property). */

.u-d-none { display: none !important; }

.u-h-18px { height: 18px; }

.u-fs-65rem { font-size: 0.65rem; }
.u-fs-8rem { font-size: 0.8rem; }

/* Dynamic width via data attribute (applied by JS) */
[data-u-width-pct] {
    width: attr(data-u-width-pct);
}

/* Mastery badge neutral style (unified across list and detail) */
.mastery-badge {
    background-color: var(--surface-hover);
    color: var(--ink-muted);
    border: 1px solid var(--border);
}

/* Tag badge dynamic color via CSS custom property */
.tag-badge-dynamic {
    border-color: var(--tag-color, #6c757d) !important;
    color: var(--tag-color, #6c757d) !important;
}

/* Progress bar dynamic width */
.progress-fill-dynamic {
    width: var(--progress-width, 0%);
}

/* Level circle dynamic rotation */
.level-circle {
    --progress-deg: 0deg;
}

/* Session UI */
.session-progress-track {
    width: 80%;
    max-width: 600px;
}

.session-progress-fill {
    width: 0%;
}
.session-dropdown-menu {
    width: 250px;
}
.session-audio-btn {
    z-index: 10;
    width: 40px;
    height: 40px;
}

/* Typing keyboard */
.keyboard-details-panel {
    display: none;
}

/* Lesson detail sticky sidebar */
.lesson-sidebar-sticky {
    top: 1rem;
    z-index: 1;
}

/* Lesson detail close button */
.lesson-close-btn {
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Markdown content hidden source */
.markdown-source {
    display: none;
}

/* Word detail illustration */
.word-illustration {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

/* User dictionary modal overlay */
.modal-overlay.active {
    display: flex;
}

/* Avatar styles */
.avatar-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

/* Navbar avatar */
.navbar-avatar-sm {
    width: 24px;
    height: 24px;
    object-fit: cover;
}
.navbar-avatar-md {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

/* Mobile app */
.app-gradient-bg {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.app-device-frame {
    max-height: 580px;
    border-radius: 2.5rem;
    box-shadow: 0 28px 64px rgba(0,0,0,.2);
    z-index: 1;
}

/* Sign detail / list */
.sign-tag-badge {
    border-color: var(--sign-tag-color, #6c757d) !important;
    color: var(--sign-tag-color, #6c757d) !important;
}

/* Tag colours come from user data and can be arbitrarily dark; on a dark
   surface they are unreadable as text. Keep the colour on the border and use
   the themed muted ink for the label. */
html[data-theme="dark"] .sign-tag-badge,
html[data-theme="dark"] .tag-badge-dynamic {
    background-color: var(--surface-active);
    color: var(--ink-muted) !important;
}

/* Vocabulary list link */
.vocab-link {
    text-decoration: none;
    color: inherit;
}
