:root {
    --bg-base: #f4f6f9;       /* Light gray background */
    --bg-surface: #ffffff;    /* Pure white for cards and header */
    --bg-elevated: #e9ecef;   /* Slightly darker gray for table headers */
    --txt-main: #495057;      /* Dark gray for standard text */
    --txt-heading: #212529;   /* Almost black for headings */
    --accent-color: #ff8c00;  /* Vibrant orange accent */
    --accent-hover: #e07b00;  /* Darker orange for hover states */
    --line-color: #dee2e6;    /* Soft gray for borders */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Barlow', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--txt-main);
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
}

.nexus-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nexus-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--line-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hdr-flex { display: flex; justify-content: center; }

@media (min-width: 768px) { .hdr-flex { justify-content: flex-start; } }

.brand-title a {
    font-size: 22px; font-weight: 700; color: var(--txt-heading);
    text-decoration: none; letter-spacing: 1px;
}

/* Typography & Layout */
.content-pad { padding: 40px 0; }

.reader-flow > h1, .reader-flow > h2, .reader-flow > h3,
.reader-flow > p, .reader-flow > ul, .reader-flow > ol, .reader-flow > nav {
    text-align: left; max-width: 900px; margin-left: auto; margin-right: auto; margin-bottom: 20px;
}

.reader-flow > nav ul { list-style: none; padding-left: 0; }
.reader-flow > nav ul li { margin-bottom: 8px; }
.reader-flow > nav ul li a { color: var(--accent-color); text-decoration: none; font-weight: bold;}
.reader-flow > nav ul li a:hover { text-decoration: underline; }

/* Reduced Headings */
h1 {
    font-size: clamp(24px, 5vw, 36px);
    color: var(--txt-heading);
    margin-bottom: 25px;
    line-height: 1.2;
}
h2 {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--txt-heading);
    margin: 40px auto 15px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
    line-height: 1.3;
}
h3 {
    font-size: 20px;
    color: var(--txt-heading);
    margin: 25px auto 12px;
}

ul, ol { padding-left: 20px; }
li { margin-bottom: 10px; }

/* --- MOBILE CARD TABLE (Affiliates) --- */
.vendor-directory { margin: 30px auto 40px; max-width: 900px; }

@media (max-width: 767px) {
    .dir-tbl, .dir-tbl thead, .dir-tbl tbody, .dir-tbl tr, .dir-tbl td { display: block; }
    .dir-tbl thead { display: none; }
    .dir-tbl tr {
        margin-bottom: 20px; border: 1px solid var(--line-color); border-radius: 10px;
        padding: 20px; background: var(--bg-surface); box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center;
    }
    .dir-tbl td { border: none; padding: 10px 0; color: var(--txt-heading); font-weight: bold;}
    .logo-wrap { flex-direction: column; gap: 10px; }
    .img-fluid { width: 140px; height: auto; margin: 0 auto; display: block; border-radius: 6px; }
    .btn-go { display: block; width: 100%; padding: 14px; }
}

@media (min-width: 768px) {
    .dir-tbl { width: 100%; border-collapse: collapse; }
    .dir-tbl th { background: var(--bg-elevated); color: var(--txt-heading); padding: 15px; text-align: left; }
    .dir-tbl td { padding: 20px 15px; border-bottom: 1px solid var(--line-color); vertical-align: middle; color: var(--txt-heading); font-weight: bold;}
    .logo-wrap { display: flex; align-items: center; justify-content: flex-start; }
    .img-fluid { width: 120px; height: auto; display: block; border-radius: 6px;}
}

/* --- DATA SCROLL TABLES (Standard Tables) --- */
.data-grid-wrap {
    overflow-x: auto;
    margin: 30px auto;
    max-width: 900px;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    background: var(--bg-surface);
    -webkit-overflow-scrolling: touch;
}
.data-grid-wrap table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-grid-wrap th, .data-grid-wrap td { padding: 15px; text-align: left; border-bottom: 1px solid var(--line-color); }
.data-grid-wrap th { background: var(--bg-elevated); font-weight: 700; color: var(--txt-heading); }
.data-grid-wrap td { color: var(--txt-main); vertical-align: top; }

/* Buttons & Footer */
.btn-go {
    background: var(--accent-color); color: #ffffff; padding: 12px 25px;
    border-radius: 6px; text-decoration: none; font-weight: bold; transition: 0.3s;
    display: inline-block; text-align: center; border: none;
}
.btn-go:hover { background: var(--accent-hover); }

.nexus-footer { background: var(--bg-surface); color: var(--txt-main); padding: 40px 0; text-align: center; margin-top: 60px; border-top: 1px solid var(--line-color); }
.nexus-footer a { color: var(--txt-heading); text-decoration: none; font-weight: bold; }
.nexus-footer a:hover { color: var(--accent-color); }

/* FAQ Schema Styling */
.faq-box { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--bg-surface); padding: 20px; border-radius: 8px; margin-bottom: 15px; border: 1px solid var(--line-color);}
.faq-item h3 { margin-top: 0; font-size: 18px;}
.faq-item p { margin-bottom: 0; }