/* RILHIA BRAND IDENTITY SYSTEM v21.0
   Design: F1 Professional Hub
   Logic: BREADCRUMB REPOSITIONING / LOCKED SIDEBAR HEADER
*/

/* --- 1. FONT REGISTRATION --- */
@font-face {
    font-family: "Formula1";
    src: url("../fonts/Formula1 Display-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Formula1";
    src: url("../fonts/Formula1 Display-Bold Bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Formula1";
    src: url("../fonts/Formula1 Display-Black.woff2") format("woff2");
    font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Formula1Wide";
    src: url("../fonts/Formula1 Display-Wide.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}

/* --- 2. THE DESIGNER PALETTE --- */
:root {
    --rilhia-carbon: #101010;
    --rilhia-slate-ui: #efefef;
    --rilhia-border-metal: #d1d1d1;
    --plasma-cyan: #00EFFF;
    --plasma-purple: #C740FF;
    --text-body: #333333;
}

/* --- 3. GLOBAL LAYOUT --- */
body {
    font-family: "Formula1", sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

#body { background-color: #ffffff !important; }

@media (min-width: 48rem) {
    #body { margin-left: 300px; }
    #body-inner {
        max-width: 1100px !important;
        width: 95% !important;
        padding: 2rem 5% 4rem 5% !important; /* Adjusted top padding for 
breadcrumbs */
    }
}

/* --- 4. BREADCRUMBS (Top Left Fix) --- */
#breadcrumbs {
    display: block !important;
    text-align: left !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
    font-family: "Formula1", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

#breadcrumbs a {
    color: #888 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s;
}

#breadcrumbs a:hover {
    color: var(--plasma-cyan) !important;
}

/* The separator (the ">" or "/") */
#breadcrumbs span {
    margin: 0 10px;
    color: var(--rilhia-border-metal);
}

/* --- 5. TYPOGRAPHY HIERARCHY --- */
h1 {
    font-family: "Formula1", sans-serif !important;
    font-weight: 700 !important; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 2.8rem;
    color: var(--rilhia-carbon);
    border-bottom: 3px solid var(--rilhia-carbon);
    padding-bottom: 12px;
    margin-bottom: 35px;
    text-align: left; /* Switched to Left to match Breadcrumbs */
}

h2 {
    font-family: "Formula1", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #444;
    text-align: left; /* Switched to Left */
    margin-top: 0;
    letter-spacing: 1px;
}

h3 {
    font-family: "Formula1", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--rilhia-carbon);
    margin-top: 4rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rilhia-border-metal);
}

p, li { font-size: 1.1rem; }

/* --- 6. THE SIDEBAR (LOCKED HEADER AREA) --- */
#sidebar {
    background-color: var(--rilhia-slate-ui) !important;
    border-right: 1px solid var(--rilhia-border-metal);
}

#sidebar a {
    color: #666666 !important;
    transition: 0.3s;
    display: block;
    margin: 0 1.5rem;
    padding: 0.6rem 0;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

#sidebar a:hover {
    color: var(--rilhia-carbon) !important;
    border-bottom: 1px solid var(--plasma-purple);
}

#sidebar li.active > a {
    color: var(--rilhia-carbon) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-left: 5px solid var(--plasma-cyan) !important;
    margin-left: 0;
    padding-left: 1.5rem;
    border-bottom: none !important;
}

#sidebar #clear-history {
    color: var(--plasma-purple) !important;
    margin: 1.5rem 1.5rem;
    border-bottom: 1px solid var(--plasma-purple) !important;
    width: auto;
}

#built-with { display: none !important; }

/* --- 7. TECHNICAL DETAILS --- */
#body a {
    color: var(--rilhia-carbon);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--plasma-purple);
}

#body a:hover {
    border-bottom-color: var(--plasma-cyan);
}

pre code {
    background: var(--rilhia-carbon) !important;
    color: #eeeeee !important;
    border-left: 5px solid var(--plasma-cyan);
    padding: 2rem !important;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, 
var(--rilhia-border-metal), transparent);
    margin: 4rem 0;
}
