/* ============================================================
   cesletter.info — Base Styles
   Academic documentation layout mirroring read.cesletter.org
   Brand red: #f93724 | Text: #2c3e50 | Font: Open Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

body {
    background-color: #ffffff;
    color: #2c3e50;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* --- Header --- */
.headerContents {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    padding: 0;
}

/* --- Navigation — white bar with red accents like read.cesletter.org --- */
.menuContents {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #ffffff;
    width: 100%;
    border-top: 1px solid #eaecef;
    border-bottom: 1px solid #eaecef;
    min-height: 3.6rem;
}

.parent-menu-button {
    min-width: unset !important;
    color: #2c3e50 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 0.875rem !important;
    text-transform: none !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
}

.parent-menu-button:hover {
    background-color: #fff5f5 !important;
    color: #f93724 !important;
}

/* Active / open menu section */
.parent-menu-button.active,
.parent-menu-button[aria-expanded="true"] {
    color: #f93724 !important;
    border-bottom: 2px solid #f93724 !important;
}

/* --- Dropdown menu items --- */
.child-menu-button {
    color: #2c3e50 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

.child-menu-button:hover {
    color: #f93724 !important;
    background-color: #fff5f5 !important;
}

/* --- Body / content area --- */
.bodyStyle {
    margin-left: 8%;
    margin-right: 8%;
    max-width: 960px;
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    line-height: 1.7;
    color: #2c3e50;
}

/* --- Main content wrapper --- */
.mainContent {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* --- Headings --- */
h1 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

h2 {
    font-size: 1.65rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3rem;
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1.5rem 0 0.75rem 0;
}

.question {
    font-weight: 600;
    font-size: 1.4em;
    padding-bottom: 16px;
    color: #2c3e50;
    font-family: "Open Sans", sans-serif;
}

/* --- Links --- */
a {
    color: #377dff;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: #f93724;
    text-decoration: underline;
}

/* --- Blockquotes --- */
blockquote {
    border-left: 4px solid #f93724;
    background: #fff8f7;
    margin: 20px 0;
    padding: 12px 20px;
    color: #2c3e50;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Tables --- */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0 1.5rem 0;
    font-size: 0.9rem;
}

th {
    background-color: #f93724;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6em 1em;
    border: 1px solid #dfe2e5;
    text-align: left;
}

td {
    padding: 0.6em 1em;
    border: 1px solid #dfe2e5;
    color: #2c3e50;
    vertical-align: top;
}

tr:nth-child(2n) {
    background-color: #f6f8fa;
}

/* --- Red title bar (mirrors CES Letter chapter headers) --- */
.red-title-bar {
    background-color: #f93724;
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Open Sans", sans-serif;
    margin: 0 0 1.5rem 0;
}

/* --- Placeholder / coming soon --- */
.comingSoon {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
    color: #f93724;
    padding: 60px 0;
}

/* --- Horizontal rules --- */
hr {
    border: none;
    border-top: 1px solid #eaecef;
    margin: 2rem 0;
}

/* --- Code --- */
code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
    background-color: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.875em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bodyStyle {
        margin-left: 4%;
        margin-right: 4%;
    }

    .menuContents {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.4rem; }
}
