/* ===== Original Jomebrew classes, unchanged ===== */
.formLabel {
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
}
.fieldSet {
    text-decoration: none;
    font-weight: bold;
    font-variant: small-caps;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}
.formHeader {
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}
.inputButton {
    text-decoration: none;
    font-weight: normal;
    font-size: 11px;
}
.inputText {
    text-decoration: none;
    font-weight: normal;
    font-size: 11px;
}
.requiredText {
    text-decoration: none;
    font-weight: Bold;
    font-size: 13px;
    font-family: Comic Sans MS, sans-serif;
    color: red;
}
.rrequiredText {
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    color: blue;
}
.normalText {
    text-decoration: none;
    font-weight: Normal;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: blue;
}
a:link {
    color: #0073c7;
}
a:visited {
    color: #5A88B5;
}
a:hover,
a:active {
    color: #0073c7;
}
body {
    background: #FFFFFF;
}

/* ===== Structural CSS for the rebuilt page =====
   Just enough to make the page lay out and stay usable on a phone;
   it doesn't add any new typography or color choices beyond what's above. */

* { box-sizing: border-box; }

body {
    margin: 0;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

header.site {
    text-align: center;
    margin-bottom: 1.5rem;
}

header.site h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    margin: 0.25rem 0 0;
}

header.site p.tag {
    margin: 0.25rem 0 0;
    font-style: italic;
}

section.panel,
details.calc {
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 1rem 1.25rem 1.25rem;
    margin-bottom: 1rem;
    background: #FFFFFF;
}

section.panel.primary {
    border-color: #0073c7;
    border-width: 2px;
}

h2.panel-title {
    margin: 0 0 0.5rem;
}

p.panel-desc {
    margin: 0 0 1rem;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin-bottom: 0.75rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 150px;
}

.field label,
.field-row label {
    display: block;
}

.unit {
    margin-left: 0.3rem;
}

input[type="text"] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    padding: 0.35rem 0.4rem;
    border: 1px solid #999999;
    border-radius: 2px;
    width: 8ch;
}

input[type="text"].wide { width: 100%; }

input[type="text"][readonly] {
    background: #f2f2f2;
    border: 1px solid #cccccc;
    font-weight: bold;
    width: auto;
    min-width: 3ch;
    padding: 0.3rem 0.4rem;
}

table.results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

table.results tr { border-top: 1px solid #dddddd; }
table.results tr:first-child { border-top: none; }

table.results td {
    padding: 0.4rem 0.35rem;
    vertical-align: middle;
}

table.results td:first-child { width: 55%; }

tr.section-label td {
    text-align: center;
    font-style: italic;
    padding-top: 0.9rem;
}

details.calc summary {
    cursor: pointer;
    list-style: none;
    padding: 0.15rem 0 0.15rem 1.1rem;
    position: relative;
}

details.calc summary::-webkit-details-marker { display: none; }

details.calc summary::before {
    content: "+";
    position: absolute;
    left: 0;
    font-family: Arial, Helvetica, sans-serif;
}

details.calc[open] summary::before { content: "\2212"; }

details.calc .calc-body {
    padding-top: 0.75rem;
}

.note {
    border-top: 1px solid #dddddd;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 12px;
}

footer.site {
    text-align: center;
    font-size: 12px;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .field { min-width: 45%; }
    section.panel, details.calc { padding-left: 0.85rem; padding-right: 0.85rem; }
}
