body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}
header {
    text-align: center;
    padding: 20px;
    background-color: #1a73e8;
    color: white;
}
section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
}
a {
    text-decoration: none;
    color: #000080;
    font-size: 18px;
}
a:hover {
    color: #d4a017;
}
.calculator {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 50%;
}
.charts {
    width: 50%;
    padding-left: 20px;
}
.calculator label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}
.calculator .param-group {
    margin-bottom: 15px;
}
.calculator input[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
.calculator input[type="number"]:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 5px rgba(26, 115, 232, 0.5);
}
.calculator input[type="range"] {
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
    -webkit-appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}
.calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #1a73e8;
    border-radius: 50%;
    cursor: pointer;
}
.calculator input[type="range"]::-webkit-slider-thumb:hover {
    background: #1557b0;
}
.calculator button {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
}
.calculator button:hover {
    background-color: #1557b0;
}
canvas {
    max-width: 100%;
    margin-top: 20px;
}
.chart-coordinates {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    text-align: left;
}
#metrics {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
}
.transfer {
    margin-top: 30px;
    font-size: 18px;
    color: #1a73e8;
}
.mathjax-eq {
    margin-left: 20px;
    display: inline-block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transform: scale(1.15);
}

/* Schematic display – adjusted for placement under the note */
.schematic {
    text-align: center;
    margin: 32px 0 0 0;          /* more top spacing below the note */
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.schematic h3 {
    margin: 0 0 16px;
    color: #1a73e8;
    font-size: 1.35em;
}

.schematic-img {
    max-width: 90%;              /* fits nicely in the right column without overflowing */
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin: 12px auto;
    display: block;
}

.schematic p {
    margin: 0;
    font-size: 0.92em;
    color: #555;
    line-height: 1.5;
}