:root {
  --navy: #182840;
  --gold: #b48c37;
  --muted: #647084;
  --line: #dfe3e9;
  --bg: #f3f5f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
header {
  padding: 22px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
.brand {
  font-family: Georgia, serif;
  font-size: 32px;
  letter-spacing: 3px;
}
.brand span {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 2px;
}
header p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.ribbon {
  background: var(--navy);
  color: #ddc081;
  border-bottom: 3px solid var(--gold);
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  justify-content: space-between;
}
main {
  max-width: 1228px;
  padding: 38px 24px 70px;
  margin: auto;
  min-height: 75vh;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 {
  font-size: 34px;
  margin: 8px 0 18px;
}
h2 {
  font-size: 24px;
  margin: 6px 0 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--gold);
  margin: 0 0 8px;
}
.muted {
  color: var(--muted);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  margin: 20px 0;
}
.login {
  max-width: 520px;
  margin: 45px auto;
}
.login h1 {
  font-size: 38px;
}
.login label {
  display: block;
  margin-top: 18px;
}
label {
  font-size: 12px;
  color: var(--muted);
}
input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd1db;
  border-radius: 4px;
  font: inherit;
  color: var(--navy);
  background: white;
  margin-top: 5px;
}
button {
  font: inherit;
  cursor: pointer;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--navy);
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b48c37;
  outline-offset: 3px;
}
.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.login button {
  margin-top: 22px;
  width: 100%;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search > div {
  display: flex;
  gap: 12px;
}
.search input {
  margin: 0;
}
.search label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--navy);
}
.result {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}
.result span {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 65px 20px;
  color: var(--muted);
}
.empty > span {
  font-size: 44px;
  color: var(--gold);
}
.hero {
  background: var(--navy);
  color: white;
  border-top: 3px solid var(--gold);
  padding: 32px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 25px;
}
.hero h2 {
  font-size: 36px;
}
.hero p {
  color: #c4cfdf;
}
.score {
  display: flex;
  flex-direction: column;
  min-width: 230px;
  text-align: right;
}
.score span,
.score small {
  font-size: 11px;
}
.score strong {
  font-family: Georgia, serif;
  font-size: 48px;
  color: #e6c778;
}
.score.low strong {
  color: #94d5af;
}
.score.high strong {
  color: #f2a59b;
}
.columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}
.columns .card {
  min-width: 0;
}
.notice {
  background: #fff7df;
  border: 1px solid #e4cd91;
  padding: 12px 18px;
  font-size: 12px;
  border-radius: 4px;
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 12px;
  border-bottom: 2px solid var(--line);
}
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.text-button {
  padding: 0;
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--navy);
}
.assumptions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.amount {
  display: flex;
  align-items: center;
  gap: 5px;
}
.amount input {
  min-width: 130px;
  text-align: right;
  margin: 0;
}
.amount .overridden {
  background: #fff7df;
  border-color: var(--gold);
}
.final {
  background: #edf2f8;
  font-weight: bold;
}
.factor {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.factor strong {
  flex: 1;
  font-weight: 400;
}
.factor span:last-child {
  font-variant-numeric: tabular-nums;
}
.raises {
  color: #b34035;
}
.lowers {
  color: #20794e;
}
svg {
  width: 100%;
  max-height: 200px;
  margin-top: 20px;
}
svg line {
  stroke: var(--line);
}
svg polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}
svg circle {
  fill: var(--navy);
}
svg text {
  font: 10px Arial;
  fill: var(--muted);
}
details summary {
  cursor: pointer;
  font-weight: bold;
}
dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
  font-size: 12px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
#message {
  color: #8b3e27;
  white-space: pre-wrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .ribbon span,
  .intro > p {
    display: none;
  }
  .intro h1 {
    font-size: 28px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero {
    flex-direction: column;
  }
  .score {
    text-align: left;
  }
  .assumptions {
    grid-template-columns: 1fr 1fr;
  }
  .result {
    flex-direction: column;
  }
  dl {
    grid-template-columns: 120px 1fr;
  }
  footer {
    padding: 20px;
    display: block;
  }
  .hero h2 {
    font-size: 28px;
  }
  .card {
    padding: 20px;
  }
}

/* Display the complete supplied logo, including its tagline. */
.brand-lockup { display: flex; align-items: center; gap: 24px; }
.brand-logo { width: 240px; max-width: 100%; flex-shrink: 0; }
.brand-logo img { display: block; width: 100%; height: auto; }
.brand { font-size: 25px; letter-spacing: 0; font-weight: 400; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading button { flex-shrink: 0; }
#results:has(select) { margin: 18px 0; }
#results label { display: block; margin-bottom: 6px; }
select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--navy); font: inherit; }
select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.output-fields dl { grid-template-columns: repeat(2, minmax(120px, 1fr) minmax(140px, 1.25fr)); }
.factor-comparison-label { text-align: right; font-size: 11px; }
.factor-group { font-size: 12px; margin: 20px 0 0; }
.factor span { text-align: right; }
@media (max-width: 760px) {
  .brand-lockup { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand-logo { width: 220px; }
  .brand { font-size: 19px; }
  header { padding: 14px 20px; gap: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .output-fields dl { grid-template-columns: minmax(110px, 1fr) minmax(100px, 1fr); }
}
@media (max-width: 760px) {
  /* Keep editable prices in view; full calculation descriptions remain on desktop. */
  #pricing th:nth-child(2), #pricing td:nth-child(2) { display: none; }
  #pricing th, #pricing td { padding: 10px 6px; }
  #pricing .amount { min-width: 100px; }
  #pricing .amount input { min-width: 0; width: 100%; }
  #pricing td:last-child { padding-left: 4px; padding-right: 0; }
}
