:root {
    --bg-color: #000000;
    --text-color: #e5e5e5;
    --heading-color: #ffffff;
    --border-color: #262626;
    /* Very subtle dark grey */
    --card-bg: #0a0a0a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    /* Slightly smaller, technical feel */
}

/* Layout Container */
main,
header,
footer {
    max-width: 760px;
    /* Specific narrow width like the ref */
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header */
header {
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: left;
    border: none;
    background: transparent;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-transform: none;
}

header .meta {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* Headings */
h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 25px 0 10px 0;
}

/* Typography & Links */
p {
    margin-bottom: 1.2rem;
    color: #a3a3a3;
    font-size: 14px;
    line-height: 1.6;
}

strong {
    color: #fff;
    font-weight: 600;
}

a {
    color: #fff;
    text-decoration: none;
}

/* Config Box (Thunderbird Style - Refined) */
.config-container {
    background: #0d0d0d;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
}

.config-section {
    background: transparent;
    border: none;
    margin-bottom: 25px;
    position: relative;
    padding: 0;
}

/* Badge (Inspo: "Responsible for Content..." small header feel) */
.config-badge {
    position: static;
    display: block;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 0;
    border: none;
    box-shadow: none;
    text-transform: none;
    /* As per ref header style */
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    margin-bottom: 8px;
    gap: 15px;
}

.form-label {
    color: #888;
    font-size: 13px;
}

.form-input {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    color: #d4d4d4;
    font-family: var(--font-main);
    font-size: 13px;
    height: 34px;
}

/* Tabs */
.tabs-container {
    margin-top: 20px;
}

.tabs {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 0px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
    font-family: var(--font-main);
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #fff;
    border-bottom: 1px solid #fff;
    /* Thin white line */
    background: transparent;
    box-shadow: none;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Lists (Inspo: Simple list of domains) */
ul,
ol {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
    /* Remove bullets like ref */
    margin-bottom: 20px;
}

li {
    margin-bottom: 6px;
    color: #a3a3a3;
    font-size: 14px;
}

/* Numbered lists in guides need numbers though, so styling specifically */
.instructions ol {
    list-style: decimal;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    color: #a3a3a3;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding-top: 20px;
    color: #444;
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tutorial-img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 20px 0;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {

    main,
    header,
    footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    header {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    header h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 16px;
        margin-top: 30px;
    }

    /* Stack the config form on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 12px;
    }

    .form-input {
        width: 100%;
        max-width: 100%;
    }

    .config-container {
        padding: 15px;
    }

    /* Tabs scrollable */
    .tabs {
        gap: 20px;
    }

    .tab-btn {
        padding: 8px 0;
        font-size: 13px;
    }
}

/* FAQ / Details Accordion */
.faq-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

details {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #0d0d0d;
    overflow: hidden;
}

summary {
    list-style: none;
    /* Hide default triangle */
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 15px;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    background-color: #1a1a1a;
}

summary::after {
    content: '+';
    font-weight: 400;
    font-size: 20px;
    color: #666;
}

details[open] summary::after {
    content: '-';
}

details .content {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: #a3a3a3;
    line-height: 1.6;
    background: #0a0a0a;
}

details .content p {
    margin-bottom: 15px;
}

details .content p:last-child {
    margin-bottom: 0;
}