/* ============================================
   Sperling Unified Stylesheet (2026)
============================================ */

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

body
{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background: #ffffff;
}

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

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

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

main.wrap p,
main.wrap ul
{
    max-width: 720px;
}

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

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

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

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

.brand-logo
{
    width: 55px;
}

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

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

h1
{
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2
{
    font-weight: 600;
    color: #1f2937;
}

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

.nav
{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.nav a
{
    text-decoration: none;
    color: #1f2937;
    font-size: 0.85em;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

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

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

.nav a.active
{
    color: #2f80ed;
    font-weight: 600;
}

@media (max-width: 900px)
{
    .nav
    {
        justify-content: center;
        margin-top: 10px;
    }
}

/* ---------- HERO ---------- */

.hero
{
    padding: 30px 0 15px 0;
    border-bottom: 1px solid #ddd;
}

.hero h1
{
    font-size: 1.9em;
    margin-bottom: 6px;
}

.hero h2
{
    font-size: 1.1em;
    color: #6b7280;
    margin-bottom: 10px;
}

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

section
{
    margin-top: 36px;
}

section:first-of-type
{
    margin-top: 20px;
}

section h2
{
    font-family: Georgia, serif;
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

p
{
    font-size: 1em;
    line-height: 1.5;
}

ul
{
    padding-left: 20px;
}

li
{
    margin-bottom: 8px;
}

/* ---------- IMAGE ---------- */

.floatL
{
    float: left;
    margin: 5px 20px 10px 0;
    border-radius: 6px;
}

.floatR
{
    float: left;
    margin: 5px 20px 10px 0;
    border-radius: 6px;
}

/* ---------- FOOTER (FLOAT VERSION) ---------- */

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

/* LEFT BADGE */
.badge-left
{
    float: left;
    height: 16px;
    margin-left: 10px;
}

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

.badge-left,
.badge-right
{
    opacity: 0.85;
}

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

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

/* ============================================
   PUBLICATIONS (KEEP FROM OLD CSS)
============================================ */

.pub-list
{
    margin: 1.5rem 0;
}

.pub-item
{
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* ============================================
   CLEANUP — REMOVE OLD LAYOUT SYSTEM
============================================ */

/* kill legacy layout conflicts */
#wrapper,
#sidebar,
#content,
#container
{
    all: unset;
}