/* ============================================
   SPERLING UNIFIED CSS (CLEAN + ASK SUPPORT)
============================================ */

/* ---------- BASE ---------- */

body
{
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #FFFFFF;
    color: #111;
}

.wrap
{
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

/* ---------- HEADER ---------- */

.site-header
{
    width: 100%;
    background: #FFF;
    border-bottom: 1px solid #E5E5E5;
}

.site-header .wrap
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
}

/* ---------- NAV ---------- */

.nav
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end; /* keeps right alignment */
}

.nav a
{
    text-decoration: none;
    color: #1F2937;
    font-size: 0.85em;
    letter-spacing: 1px;
    white-space: nowrap; /* keeps each item intact */
}

.nav a::before
{
    content: "[ ";
}

.nav a::after
{
    content: " ]";
}

.nav a:hover
{
    color: #2F80ED;
}

/* ---------- BRAND ---------- */
.brand
{
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo
{
    height: 42px; /* match Ask scale */
    width: auto;
}

.brand-name
{
    font-family: Georgia, serif;
    font-size: 1.4em;
    font-weight: bold;
}

.brand-sub
{
    font-size: 0.75em;
    letter-spacing: 2px;
    color: #6B7280;
}


/* ---------- CONTENT ---------- */

section
{
    margin-top: 36px;
}

section + section
{
    border-top: 1px solid #EEE;
    padding-top: 24px;
}

h2
{
    font-family: Georgia, serif;
    font-size: 1.4em;
}

p
{
    max-width: 720px;
}

ul
{
    padding-left: 20px;
}

/* ---------- IMAGES ---------- */

img
{
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

figure
{
    margin: 20px 0;
    text-align: center;
}

figcaption
{
    font-size: 0.9em;
    color: var(--muted);
}

/* ---------- BUTTONS ---------- */

.cta
{
    display: inline-block;
    background: #BB3BF7;
    color: #FFF;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
}

/* ---------- FOOTER ---------- */

.footer
{
    border-top: 1px solid #E5E7EB;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

/* ============================================
   ASK / CHAT (MINIMAL VERSION ONLY)
============================================ */

#chat
{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

#chat .user,
#chat .assistant
{
    padding: 10px;
    border-radius: 10px;
    max-width: 700px;
}

#chat .user
{
    background: #743CF0;
    color: #FFF;
}

#chat .assistant
{
    background: #F2F3FF;
    color: #111;
}

/* ---------- INPUT ---------- */

form
{
    display: flex;
    gap: 8px;
}

input[type="text"]
{
    flex: 1;
    padding: 10px;
    border: 1px solid  #E5E7EB;
    border-radius: 8px;
}

button
{
    background: var(--cta);
    color: #FFF;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
}

/* ---------- UTILITIES ---------- */

.center
{
    text-align: center;
}

.left
{
    text-align: left;
}

.right
{
    text-align: right;
}

.clear
{
    clear: both;
}

/* ---------- HEADER BRAND (RESTORED) ---------- */

.brand
{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo
{
    height: 42px; /* match Ask scale */
    width: auto;
}

.brand-name
{
    font-family: Georgia, serif;
    font-size: 1.4em;
    font-weight: bold;
}

.brand-sub
{
    font-size: 0.75em;
    letter-spacing: 2px;
    color: #6B7280;
}

/* ---------- FOOTER (RESTORED LAYOUT) ---------- */

.footer
{
    border-top: 1px solid  #E5E7EB;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.9em;
    color: #555;
    position: relative;
}

/* LEFT BADGE */
.badge-left
{
    float: left;
    height: 24px; /* larger than before */
    margin-left: 10px;
}

/* RIGHT BADGE */
.badge-right
{
    float: right;
    height: 40px; /* larger emphasis */
    margin-right: 10px;
}

/* CENTER TEXT */
.footer-text
{
    text-align: center;
}

/* CLEAR FLOATS */
.footer::after
{
    content: "";
    display: block;
    clear: both;
}

/* ---------- MAIN CONTENT STRIPE ---------- */

main.wrap
{
    border-left: 3px solid #2F80ED;
    padding-left: 20px;
    margin-top: 20px;
}

/* MOBILE */
@media (max-width: 768px)
{
    .nav a::before,
    .nav a::after
    {
        content: ""; /* 👈 removes [ ] */
    }

    main.wrap
    {
        border-left: none;
        padding-left: 0;
    }
}

img
{
    transition: opacity 0.15s ease;
}

@media (max-width: 900px)
{
    .nav
    {
        width: 100%; /* 👈 forces drop below */
        justify-content: flex-start;
        margin-top: 8px;
    }
}

#toggleBtn
{
    background: #743cf0;
    color: #fff;
}