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

/* ---------- VARIABLES ---------- */

:root
{
    --bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;

    --accent: #2f80ed;
    --cta: #bb3bf7;

    --maxw: 1000px;
}

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

body
{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.wrap
{
    width: 90%;
    max-width: var(--maxw);
    margin: auto;
}

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

.site-header
{
    border-bottom: 1px solid var(--border);
    background: #fff;
}

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

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

.nav
{
    display: flex;
    gap: 12px;
}

.nav a
{
    text-decoration: none;
    color: var(--text);
    font-size: 0.85em;
    letter-spacing: 1px;
}

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

.nav a:hover
{
    color: var(--accent);
}

/* ---------- 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: var(--cta);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
}

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

.footer
{
    border-top: 1px solid var(--border);
    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 var(--border);
    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;
}

.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: var(--muted);
}

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

.footer
{
    border-top: 1px solid var(--border);
    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 var(--accent);
    padding-left: 20px;
    margin-top: 20px;
}

/* MOBILE */
@media (max-width: 768px)
{
    main.wrap
    {
        border-left: none;
        padding-left: 0;
    }
}

img {
    transition: opacity 0.15s ease;
}