/* Brand banner alongside the wordmark */
.glq-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}
.glq-brand-img {
    height: 44px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px -2px rgba(15,23,42,0.2);
}
.glq-brand-text { display: inline-flex; align-items: baseline; }
.glq-foot-brand .glq-brand-text { display: inline; }

/* Quiz slide + timer UI */
.glq-take-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glq-line);
    padding: .9rem 0;
    margin-bottom: 1.5rem;
}
.glq-take-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.glq-timer {
    font-family: var(--glq-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--glq-ink);
    letter-spacing: -.01em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.glq-timer.glq-timer-warn { color: var(--glq-gold); }
.glq-timer.glq-timer-danger { color: var(--glq-red); animation: glq-pulse 1s ease-in-out infinite; }
@keyframes glq-pulse { 50% { opacity: .55; } }
.glq-timer-label {
    font-family: var(--glq-sans);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--glq-muted);
    margin-right: .6rem;
}
.glq-more-time {
    background: var(--glq-gradient-soft);
    color: var(--glq-blue-dark);
    border: 1px solid rgba(37,99,235,.2);
    border-radius: 10px;
    padding: .45rem .9rem;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s ease;
}
.glq-more-time:hover { background: rgba(37,99,235,.15); }

.glq-progress {
    flex: 1 1 200px;
    min-width: 180px;
    height: 8px;
    background: var(--glq-line);
    border-radius: 99px;
    overflow: hidden;
}
.glq-progress-fill {
    height: 100%;
    background: var(--glq-blue);
    transition: width .25s ease;
}
.glq-progress-text {
    font-size: .85rem;
    font-weight: 600;
    color: var(--glq-muted);
    min-width: 140px;
    text-align: right;
}
.glq-progress-text .glq-unanswered {
    color: var(--glq-gold);
    font-weight: 700;
}

/* Slide carousel */
.glq-slides { position: relative; min-height: 420px; }
.glq-slide { display: none; }
.glq-slide.is-active { display: block; animation: glq-slide-in .25s ease; }
@keyframes glq-slide-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.glq-slide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--glq-line);
}
.glq-slide-nav-center { display: flex; gap: .5rem; align-items: center; }
.glq-question-pill {
    background: var(--glq-bg);
    color: var(--glq-muted);
    font-size: .78rem;
    padding: .3rem .7rem;
    border-radius: 99px;
    font-weight: 600;
}

/* Dots for jump navigation */
.glq-dots {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    padding: .75rem 0;
    max-height: 4.5rem;
    overflow-y: auto;
}
.glq-dot {
    width: 28px; height: 28px;
    border: 1px solid var(--glq-line);
    background: #fff;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--glq-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all .15s ease;
}
.glq-dot:hover { border-color: var(--glq-blue); color: var(--glq-blue); }
.glq-dot.is-answered { background: var(--glq-gradient-soft); border-color: rgba(37,99,235,.3); color: var(--glq-blue-dark); }
.glq-dot.is-current { background: var(--glq-blue); color: #fff; border-color: var(--glq-ink); box-shadow: 2px 2px 0 0 var(--glq-ink); }

/* Home hero flashcard (CPM) slides */
.glq-fc-slide { display: none; }
.glq-fc-slide.is-active { display: block; animation: glq-slide-in .35s ease; }
.glq-fc-dots {
    display: inline-flex;
    gap: .4rem;
    margin-left: .5rem;
}
.glq-fc-dot {
    width: 8px; height: 8px;
    border-radius: 99px;
    background: rgba(15,23,42,.2);
    cursor: pointer;
    padding: 0;
    border: none;
    transition: background .15s ease, width .15s ease;
}
.glq-fc-dot.is-active { background: var(--glq-blue); width: 18px; }
.glq-fc-title {
    font-family: var(--glq-serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--glq-ink);
    line-height: 1.2;
    margin-bottom: .85rem;
}
.glq-fc-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--glq-muted);
    margin-bottom: .25rem;
}
.glq-fc-row { margin-bottom: .85rem; }
.glq-fc-subtitle {
    font-family: var(--glq-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--glq-ink);
    margin: .9rem 0 .5rem;
}
.glq-fc-body { color: var(--glq-ink-soft); line-height: 1.55; font-size: .95rem; margin: 0 0 .65rem; }
.glq-fc-list { margin: 0 0 .65rem 1.2rem; padding: 0; color: var(--glq-ink-soft); font-size: .92rem; }
.glq-fc-list li { margin-bottom: .25rem; }
.glq-fc-formula {
    background: var(--glq-bg);
    border: 1px solid var(--glq-line);
    border-radius: 10px;
    padding: .7rem .9rem;
    margin-top: .6rem;
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    color: var(--glq-ink);
    line-height: 1.5;
}
.glq-fc-or { text-align: center; color: var(--glq-muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; margin: .35rem 0; }

/* Identity (Login/Register) polish */
.glq-auth-wrap {
    max-width: 440px;
    margin: 3rem auto;
    background: #fff;
    border: 1px solid var(--glq-line);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--glq-shadow);
}
.glq-auth-wrap h1 {
    font-family: var(--glq-serif);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: .25rem;
}
.glq-auth-sub { color: var(--glq-muted); margin-bottom: 1.5rem; }
.glq-auth-wrap .form-label { font-weight: 600; font-size: .9rem; }
.glq-auth-wrap .form-control {
    border: 1px solid var(--glq-line);
    border-radius: 10px;
    padding: .7rem .85rem;
}
.glq-auth-wrap .form-control:focus {
    border-color: var(--glq-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.glq-auth-footer { text-align: center; margin-top: 1.5rem; color: var(--glq-muted); font-size: .9rem; }
