* { box-sizing: border-box; }
html { color-scheme: light; background: #fffaf1; color: #25201e; }
body { margin: 0; font: 1rem/1.5 Georgia, "Times New Roman", serif; }
main { margin: auto; max-width: 64rem; padding: clamp(.7rem, 2.8vw, 1.5rem); }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.2; margin-bottom: .5rem; }
h2 { font-size: 1.22rem; line-height: 1.35; margin-block: .65rem .12rem; }
h3 { font-size: 1.02rem; }
p + p { margin-top: .4rem; }
a { color: #66380a; text-underline-offset: .2em; }
form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .35rem 0 .15rem; }
label, button, input, [role=status] { font: 500 .87rem/1.3 system-ui, sans-serif; }
input, button { min-height: 2.55rem; padding: .42rem .65rem; border: 1px solid #9d8264; border-radius: .3rem; }
input { width: 7rem; background: white; color: #26211e; }
button { cursor: pointer; background: #563820; border-color: #563820; color: #fffaf2; }
button[type=button] { background: transparent; color: #563820; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #2c659e; outline-offset: 2px; }
.demo { padding: .65rem 0; border-top: 1px solid #d8c9af; }
.demo h2 { margin-block: 0 .15rem; }
.demo-intro { margin-bottom: .9rem; }
table { width: 100%; border-collapse: collapse; margin: .35rem 0 1rem; font-variant-numeric: tabular-nums; }
caption { text-align: start; font-size: .89rem; margin: .3rem 0; }
th, td { padding: .28rem .4rem; border-bottom: 1px solid #dfd2be; text-align: start; }
th { font: 600 .85rem/1.35 system-ui,sans-serif; }
td canvas { width: 100%; min-width: 5rem; height: 2.4rem; display: block; }
#ratio { overflow-wrap: anywhere; }
.table-scroll, .diagram-scroll { overflow-x: auto; }
.diagram-scroll { background: #08090b; }
#Graph-V-I { width: 100%; min-width: 680px; height: 300px; display: block; }
figcaption, .subtext { font-size: .91rem; margin: .3rem 0 .65rem; }
.results { margin-top: .55rem; }
.archive-links { margin-top:.75rem; }
@media (max-width: 500px) { th, td { padding: .2rem; } }
@media print { button, input, form { display: none; } }

.source-links { margin-top: .9rem; font-size: .83rem; }

#seventh-controls { align-items: baseline; }
.seventh-fields { display: flex; flex-wrap: wrap; gap: .5rem 1rem; width: 100%; }
.seventh-fields label { display: block; margin-bottom: .25rem; }
.seventh-phrase, .seventh-target { width: 100%; }
.seventh-phrase { margin-top: .45rem; }
.seventh-phrase button { margin-top: .2rem; }
.seventh-phrase strong, .seventh-target strong { overflow-wrap: anywhere; }

/* The MIDI comparison (compare.html) */
select { font: 500 .87rem/1.3 system-ui, sans-serif; min-height: 2.55rem; padding: .42rem .5rem; border: 1px solid #9d8264; border-radius: .3rem; background: white; color: #26211e; }
.compare-choices { display: flex; flex-wrap: wrap; gap: .4rem 1rem; width: 100%; }
.compare-choices label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.downloads { margin-top: .35rem; }
.download-head { font: 600 .85rem/1.3 system-ui, sans-serif; margin: .4rem 0 .1rem; }
.download-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; font-size: .9rem; }
.download-note { font-size: .82rem; color: #5f4e3d; margin: .15rem 0 0; }
