:root { --navy: #003366; --grey: #555; --border: #e3e3e3; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 1.43; color: #333; background: #fff; }
[hidden] { display: none !important; }
a { color: #337ab7; }

/* navigation */
.navbar { background: #f8f8f8; border-bottom: 1px solid #e7e7e7; }
.navbar-inner { max-width: 1170px; margin: 0 auto; padding: 0 15px; display: flex; flex-wrap: wrap; align-items: center; }
.brand { font-weight: bold; font-size: 24px; color: var(--navy); padding: 12px 30px 12px 0; }
.tabs { display: flex; flex-wrap: wrap; }
.tabs a { font-size: 20px; font-weight: bold; color: var(--navy); text-decoration: none; padding: 12px 15px; border-radius: 4px; border-bottom: 3px solid transparent; }
.tabs a:hover { background: #e6f2ff; }
.tabs a.active { background: #f0f0f0; border-bottom-color: var(--navy); }
.tabs a:focus-visible, .btn:focus-visible, .infobtn:focus-visible, .info:focus-visible { outline: 3px solid #7fb2e5; outline-offset: 2px; }

/* intro band */
.intro { background: var(--navy); color: #fff; }
.intro-inner { max-width: 1170px; margin: 0 auto; padding: 14px 15px 14px; }
.intro h1 { font-size: 30px; line-height: 1.15; margin: 0 0 4px; font-weight: bold; }
.intro p { margin: 0; font-size: 18px; color: #e3edf7; }
.intro .intro-how { font-size: 16px; color: #bcd2e8; margin: 6px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }
.linkbtn:focus-visible { outline: 3px solid #7fb2e5; outline-offset: 2px; }
.narrow-only { display: none; }
@media (max-width: 899px) { .wide-only { display: none; } .narrow-only { display: inline; } .intro h1 { display: none; } .intro p { font-size: 17px; } .intro-inner { padding: 12px 15px 12px; } }
.examplenote { font-size: 16px; color: var(--grey); margin: 0 0 8px; }

.container { max-width: 1170px; margin: 0 auto; padding: 20px 15px 0; }
h3, h4 { font-size: 26px; font-weight: bold; margin: 20px 0 10px; line-height: 1.1; }
h3:first-child, h4:first-child { margin-top: 0; }
p { margin: 0 0 10px; }
ul { padding-left: 40px; margin: 0 0 10px; }
.narrow { max-width: 900px; margin: 0 auto; }
.small { font-size: 16px; }

.well { background: #f5f5f5; border: 1px solid var(--border); border-radius: 4px; padding: 19px; box-shadow: inset 0 1px 1px rgba(0,0,0,.05); margin-bottom: 20px; }

/* explorer layout */
.layout { display: grid; grid-template-columns: 1fr; gap: 0 30px; align-items: start; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(300px, 1fr) 2fr; } }
.sidebar { margin-bottom: 20px; }
.field { margin: 0 0 15px; border: 0; padding: 0; min-width: 0; }
label, legend { display: inline-block; font-size: 18px; font-weight: bold; margin-bottom: 5px; max-width: 100%; }
legend { padding: 0; }
.field > label { display: block; }
select, input[type="text"] { width: 100%; height: 42px; padding: 6px 12px; font-size: 18px; font-family: inherit; color: #555; background: #fff; border: 1px solid #ccc; border-radius: 4px; }
select:focus, input[type="text"]:focus { outline: 3px solid #7fb2e5; border-color: #66afe9; }
.radio { font-weight: normal; margin: 0 0 6px; }
.radio label { display: inline; font-weight: normal; font-size: 18px; margin: 0; cursor: pointer; }
.radio.inline { margin-right: 18px; }
input[type="radio"] { margin: 0 4px 0 0; width: 18px; height: 18px; vertical-align: -2px; accent-color: var(--navy); }
.info, .infobtn { text-decoration: none; font-size: 16px; font-weight: normal; }
.infobtn { background: none; border: 0; padding: 0 2px; margin-left: 4px; cursor: pointer; color: inherit; font-family: inherit; }
.infotext { font-size: 14px; color: var(--grey); margin: 4px 0 4px 20px; line-height: 1.4; }
.note { font-size: 15px; color: var(--grey); margin: 6px 0 0; line-height: 1.4; }
.note .bad { color: #9a3412; }
.choicehint { margin: 0 0 8px; }
.notebtn { background: none; border: 0; padding: 0; margin-top: 4px; font: inherit; font-size: 15px; color: #337ab7; text-decoration: underline; cursor: pointer; }
.notebtn:focus-visible { outline: 3px solid #7fb2e5; outline-offset: 2px; }

/* slider */
.slider { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; }
.sliderbox { flex: 1; min-width: 0; --pct: 0%; }
.step { flex: none; width: 36px; height: 36px; margin-top: -2px; border: 1px solid #b8c4d2; border-radius: 50%; background: #fff; color: var(--navy); font-size: 22px; line-height: 1; font-family: inherit; cursor: pointer; padding: 0; }
.step:hover { background: #e6f2ff; }
.step:focus-visible { outline: 3px solid #7fb2e5; outline-offset: 2px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--navy) var(--pct), #cfd8e3 var(--pct)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: #cfd8e3; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--navy); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy), 0 1px 4px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy), 0 1px 4px rgba(0,0,0,.35); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--navy), 0 0 0 5px #7fb2e5; }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--navy), 0 0 0 5px #7fb2e5; }
.ticks { position: relative; height: 34px; margin-top: -2px; }
.ticks i { position: absolute; top: 0; width: 1px; height: 6px; margin-left: -0.5px; background: #8a97a6; }
.ticks i.major { height: 11px; background: #44546a; }
.ticks b { position: absolute; top: 13px; transform: translateX(-50%); font-size: 13px; font-weight: normal; color: var(--grey); }

/* summary */
#summary p { margin: 0 0 10px; font-size: 18px; }
#summary .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
#summary .stat { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
#summary .big { font-size: 38px; line-height: 1.1; font-weight: bold; color: var(--navy); }
#summary .big .unit { font-size: 20px; font-weight: bold; margin-left: 4px; }
#summary .cap { font-size: 15px; color: var(--grey); margin-top: 4px; }
#summary .headline { font-size: 18px; margin-bottom: 8px; }
#summary .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 14px; }
#summary .card { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--navy); border-radius: 6px; padding: 10px 12px 12px; }
#summary .cardval { font-size: 34px; line-height: 1.1; font-weight: bold; color: var(--navy); }
#summary .cardtxt { font-size: 16px; color: #333; margin-top: 4px; line-height: 1.35; }
@media (max-width: 640px) {
  #summary .stats { grid-template-columns: 1fr; }
  #summary .cards { grid-template-columns: 1fr; }
  #summary .card { display: flex; align-items: center; gap: 14px; }
  #summary .cardval { flex: none; min-width: 84px; }
  #summary .cardtxt { margin-top: 0; }
}
#summary .caveat { font-size: 16px; color: var(--grey); }
#summary .closing { font-size: 15px; color: var(--grey); margin: 12px 0 0; }
#summary .empty { color: var(--grey); margin: 0; }

/* buttons */
.btn { display: inline-block; font-family: inherit; font-size: 16px; line-height: 1.43; padding: 6px 12px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; text-decoration: none; }
.btn-lg { font-size: 18px; padding: 10px 16px; border-radius: 6px; }
.btn-navy { color: #fff; background: var(--navy); }
.btn-navy:hover { background: #00264d; color: #fff; }
.btn-blue { color: #fff; background: #337ab7; border-color: #2e6da4; font-size: 18px; padding: 10px 16px; border-radius: 6px; }
.btn-blue:hover { background: #286090; color: #fff; }
#impactBtn { margin: 10px 0 10px; }

/* chart */
.chartwell { position: relative; padding: 12px; }
#chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; padding: 6px 4px 0; }
.legend span::before { content: ""; display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--c); vertical-align: middle; margin-right: 6px; }
.tip { position: absolute; pointer-events: none; background: rgba(255,255,255,.96); border: 1px solid #bbb; border-radius: 4px; padding: 6px 9px; font-size: 14px; line-height: 1.35; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 2; }
.tip b { display: block; }
.tip i { display: inline-block; width: 12px; border-top: 3px solid var(--c); vertical-align: middle; margin-right: 6px; }

.sitefooter { font-size: 14px; color: var(--grey); border-top: 1px solid #ddd; max-width: 1140px; margin: 24px auto 0; padding: 12px 0 20px; }
@media (max-width: 899px) {
  body { font-size: 18px; }
  .brand { font-size: 22px; padding-right: 10px; }
  .sitefooter { margin-left: 15px; margin-right: 15px; }
}
