body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.calc-menu-header-title,
.stack-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
}

.sumit-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* prevent horizontal scrollbar during transition */
}

.sumit-header {
    background:rgb(164, 170, 194);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sumit-logo h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.sumit-tagline {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-weight: 400;
}

.sumit-main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.sumit-footer {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.footer-links a:hover {
    color: #0a94d6;
    text-decoration: underline;
}

.page-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-content h1 {
    color: #0a94d6;
    margin-bottom: 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
}

.page-content h2 {
    color: #0a94d6;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
}

.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-family: 'Quicksand', sans-serif;
}

@media (max-width: 849px) {
    .sumit-logo h1 {
        font-size: 2rem;
    }
    
    .sumit-tagline {
        font-size: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

.calculator-container {
    margin-top: 0;
}

.calc-menu-header {
    margin-bottom: 1.5rem;
}

.horizontal-rule {
    border-bottom: 1px solid #dee2e6;
    margin: 1rem 0;
}

.text-block {
    font-family: monospace;
    background-color:rgb(223, 225, 227);
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    font-size:0.9em;
}
code {
    font-family: monospace;
    background-color:rgb(223, 225, 227);
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    color: black;
    font-size:0.9em;
}
kbd {
    font-family: monospace;
    background-color:rgb(223, 225, 227);
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    color: black;
    font-size:0.9em;
}
.kbd {
    font-family: monospace;
    background-color:rgb(223, 225, 227);
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    font-size:0.9em;
}

.sumit-logo-image {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sumit-logo a {
    display: inline-block;
    text-decoration: none;
}

.calc-drawer-backdrop {
    pointer-events: none !important;
    background: transparent !important;
}

/* Content layout handled by grid in calculator-container */
.sumit-main {
    /* Layout handled by grid system */
}

.btn {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    border: 1px solid #9b9b9b !important;
}

label,
.form-control,
.output-unit-label {
    font-family: 'Quicksand', sans-serif;
}

.help-page .tagline {
    color: #374151;
    margin-bottom: 1.5rem;
}
.toc ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: .3rem;
}
.toc a {
    color: #0a94d6;
    text-decoration: none;
}
.toc a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin-top: .75rem; }
.table-compact td, .table-compact th {
    padding: .4rem .6rem;
    border: 1px solid #d1d5db;
}
.help-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.help-page th {
    background: #f3f4f6;
    text-align: left;
}

.callouts p {
    margin: 1rem 2rem 1rem 2rem;
}
