:root {
    --bg: #faf7f3;
    --panel: #ffffff;
    --border: #e5e0da;
    --text: #2c2c2c;
    --muted: #6b6b6b;
    --accent: #2f4f6f;
    --accent-light: #e7eef5;
}

* {
    box-sizing: border-box;
    outline: none !important;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: #f1ece6;
    line-height: 1.6;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


h1, h2, h3, h4 {
    font-family: "Libre Baskerville", serif;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.noSelect {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.noSelect:focus {
    outline: none !important;
}

/* Header */

.site-header {
    background: linear-gradient(#fdfcfb, #f2ede7);
    border-bottom: 2px solid var(--border);
}

input {
    border: 1px solid #7d5a68;
    background: #eaeaea;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0.5em 0.5em 0.5em 0;
}

button {
    font-size: 0.9rem;
    font-weight: bold;
    font-family: Inter, system-ui, sans-serif;
    padding: 5px 10px 5px 10px;
    /*
    background: #7d5a68;
    color: #cfcfdf;
     */
    background: #99536c;
    color: #efefef;
    text-transform: uppercase;
    border-radius: 6px;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.logo {
    background: url('/logo.png') no-repeat no-repeat;
    padding: 0 0 0 32px;
    font-size: 1.6rem;
}
/*

.search-form {
display: flex;
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
background: white;
}

.search-form input {
border: none;
padding: 0.5rem 0.75rem;
min-width: 180px;
}

.search-form button {
border: none;
background: var(--accent-light);
padding: 0 0.75rem;
cursor: pointer;
}
 */

    .main-nav a {
        font-weight: 500;
        padding-left: 1rem;
    }

    .layout-container {
        display: block;
        width: 100%;
        padding: 0 0 20px 0;
        background: #ffffff;
    }

    /* Layout */
    .layout {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .two-column {
        display: grid;
        grid-template-columns: 260px 1fr;
        padding: 1.5rem 1rem;
        gap: 2rem;
        flex: 1;
    }

    .content p {
        padding: 0 0 0 0;
        margin: 0 0 0 0;
        text-align: justify;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .panel {
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 1rem;
    }

    .panel h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .panel ul {
        padding-left: 1rem;
    }

    .panel label {
        display: block;
        margin: 0.4rem 0;
        font-size: 0.9rem;
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-title {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.5rem;
    }


    /* Buttons */

    .center {
        text-align: center;
    }

    .primary-button {
        background: var(--accent);
        color: white;
        border: none;
        padding: 0.6rem 1.4rem;
        border-radius: 6px;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .primary-button:hover {
        background: #243c55;
    }

    /* Footer */

    .site-footer {
        background: #f1ece6;
        border-top: 2px solid var(--border);
    }

    .footer-inner {
        max-width: 1200px;
        margin: auto;
        padding: 2rem 1rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }

    .footer-inner h4 {
        margin-bottom: 0.5rem;
    }

    .footer-inner a {
        display: block;
        margin: 0.25rem 0;
        font-size: 0.9rem;
    }

    .copyright {
        text-align: center;
        font-size: 0.85rem;
        color: var(--muted);
    }

    /* Mobile */

    @media (max-width: 900px) {
        .header-inner {
            grid-template-columns: 1fr;
        }

        .main-nav {
            display: flex;
            gap: 1rem;
        }
        .main-nav a {
            padding-left: 0;
        }

        .layout {
            grid-template-columns: 1fr;
        }

        .sidebar {
            order: 1;
        }

        .content {
            order: 2;
        }
    }


    @media only screen and (max-width: 600px) {
        nav {
            display: block;        /* stack nav items vertically */
        }
        .two-column {
            display: block;
        }
        .sidebar {
        }
    }

    @media only screen and (orientation: landscape) {
        .header {
            font-size: 1.1rem; /* adjust landscape styles */
        }
    }
