:root {
  --green: #071E12;
  --cream: #FBF4EA;
  --cream-2: #EFE3D3;
  --teal: #006666;
  --teal-dark: #004C4C;
  --pink: #FF9999;
  --sand: #E8D5B7;
  --muted: #6F7D74;
  --white: #fff;
  --line: rgba(7, 30, 18, .14);
  --radius: 14px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Myriad Pro', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--green); font: 17px/1.5 var(--body); }
a { color: var(--teal); }
button, input, select { font: inherit; color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 48px); position: sticky; top: 0; z-index: 20; background: rgba(251, 244, 234, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--green); font: 700 22px/1 var(--head); letter-spacing: 3px; }
.brand em { font-style: normal; color: var(--teal); }
.region { display: flex; border: 2px solid var(--green); border-radius: 999px; overflow: hidden; }
.region button { border: 0; background: transparent; padding: 6px 14px; cursor: pointer; font-weight: 700; }
.region button[aria-pressed="true"] { background: var(--green); color: var(--cream); }

main > section { padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
main > section.band { max-width: none; background: var(--cream-2); }
main > section.band > * { max-width: 1104px; margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: var(--head); line-height: .95; margin: 0 0 .4em; }
h1 { font-size: clamp(56px, 11vw, 120px); font-weight: 900; letter-spacing: -2px; }
h1 span { color: var(--teal); display: block; }
h2 { font-size: clamp(36px, 6vw, 56px); font-weight: 900; letter-spacing: -1px; }
h3 { font-size: 26px; font-weight: 700; }
h3 small { font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--muted); }
.kicker { font: 400 28px var(--head); font-family: 'Caveat Brush', cursive; color: var(--teal); margin: 0; }
.lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 640px; }
.sub { color: #2d3b33; max-width: 700px; margin-top: 0; }
.stamp { display: inline-block; background: var(--green); color: var(--cream); padding: 6px 12px; border-radius: 8px; font-size: 15px; }
.stamp a { color: var(--pink); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jump a { text-decoration: none; color: var(--green); border: 2px solid var(--green); border-radius: 999px; padding: 6px 16px; font-weight: 600; }
.jump a:hover { background: var(--green); color: var(--cream); }
.fine { font-size: 14px; color: var(--muted); }
.hint { font-size: 15px; color: var(--muted); margin-top: -4px; }

/* Hires */
.hires { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.hire { background: var(--white); border-radius: var(--radius); padding: 20px; border-top: 6px solid var(--teal); }
.hire.executive { border-color: var(--green); }
.hire.intern { border-color: var(--pink); }
.hire .role { font: 900 30px/1 var(--head); margin: 0 0 4px; }
.hire .who { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.hire .price { font: 700 22px var(--head); color: var(--teal); }
.hire ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }

/* Tables */
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); z-index: 1; white-space: normal; min-width: 150px; }
thead th { font-family: var(--head); font-size: 17px; font-weight: 700; vertical-align: bottom; }
thead tr.tiers th { font-size: 14px; color: var(--cream); background: var(--teal); text-align: center; letter-spacing: 1px; text-transform: uppercase; }
thead tr.tiers th.executive { background: var(--green); }
thead tr.tiers th.intern { background: #c96b6b; }
thead tr.tiers th:first-child { background: var(--white); }
th .prov { display: block; font: 600 12px var(--body); color: var(--muted); }
td.cheapest { background: #dff0ec; font-weight: 700; }
tbody tr:hover td { background: #faf7f2; }
.rates td.cheapest { background: #d5ece6; }

.switch, .check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; cursor: pointer; }
.switch input, .check input { width: 20px; height: 20px; accent-color: var(--teal); margin-top: 3px; flex: none; }

/* Job cards */
.wage-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
select, input[type=number], input[type=text], input[type=email] { border: 2px solid var(--green); border-radius: 10px; padding: 6px 10px; background: var(--white); max-width: 100%; }
.job-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.job { background: var(--white); border-radius: var(--radius); padding: 18px; }
.job h3 { font-size: 24px; }
.bars { display: grid; gap: 8px; margin: 12px 0; }
.bar { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.bar .track { height: 14px; background: var(--cream-2); border-radius: 7px; overflow: hidden; display: flex; }
.bar .fill { height: 100%; }
.fill.person { background: var(--green); }
.fill.ai { background: var(--teal); }
.fill.review { background: var(--pink); }
.bar b { font-variant-numeric: tabular-nums; }
.job .saving { font: 700 20px var(--head); color: var(--teal); margin: 4px 0 0; }
.job .detail { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* Planner */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.vol-list { display: grid; gap: 8px; }
.vol { display: grid; grid-template-columns: 1fr 90px; gap: 8px; align-items: center; font-size: 15px; }
.vol input { width: 100%; text-align: right; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0; font-size: 15px; }
.mixrow { display: grid; grid-template-columns: 1fr 120px 48px; gap: 8px; align-items: center; margin: 8px 0; font-size: 15px; }
.mixrow input[type=range] { width: 100%; accent-color: var(--teal); }
.mix-total { font-size: 14px; color: var(--muted); }
.mix-total.bad { color: #b03a3a; font-weight: 700; }
.money-in { display: inline-flex; align-items: center; gap: 4px; }
.money-in input { width: 110px; text-align: right; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.project input[type=text] { grid-column: 1 / -1; }
.project select, .project input { width: 100%; }
.project .rm { grid-column: 1 / -1; justify-self: end; }
.seat { display: grid; grid-template-columns: 1fr 80px; gap: 8px; align-items: center; margin: 8px 0; font-size: 15px; }
.seat input { width: 100%; text-align: right; }
.seat small { display: block; color: var(--muted); }

button.primary { background: var(--pink); color: var(--green); border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 18px; cursor: pointer; }
button.primary:hover { background: #ff8585; }
button.ghost { background: transparent; border: 2px solid var(--green); border-radius: 999px; padding: 6px 16px; font-weight: 600; cursor: pointer; }
button.link { background: none; border: 0; color: var(--teal); text-decoration: underline; padding: 0; cursor: pointer; font-size: 15px; }

.results { margin-top: 24px; display: grid; gap: 16px; }
.headline { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.headline .k { font-size: 14px; opacity: .8; margin: 0; }
.headline .v { font: 900 clamp(40px, 6vw, 56px)/1 var(--head); margin: 4px 0; }
.headline .v.small { font-size: 34px; }
.headline .n { font-size: 14px; opacity: .85; margin: 0; }
.headline .v.pink { color: var(--pink); }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.card h3 { font-size: 24px; }
.card table td:first-child, .card table th:first-child { min-width: 0; }
.scen-shock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.scen-shock input { width: 70px; }
.buys { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.buys li { font-size: 16px; }
.buys b { font: 700 22px var(--head); color: var(--teal); }
.callout { background: #e8f3f0; border-left: 4px solid var(--teal); padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.callout.warn { background: #fdeceb; border-color: var(--pink); }

.cta { text-align: center; }
.cta .sub { margin-left: auto; margin-right: auto; }

/* Assumptions */
details { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); margin: 12px 0; }
summary { cursor: pointer; padding: 14px 18px; font: 700 22px var(--head); }
details > div { padding: 0 18px 18px; }
details > .scroller { margin: 0 12px 12px; border: 0; }
.assume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px 24px; }
.assume-grid label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.assume-grid input { width: 110px; text-align: right; }
table.edit input { width: 90px; text-align: right; padding: 4px 6px; border-width: 1px; }
table.edit td.src { font-size: 13px; text-align: left; }
table.edit td.changed input { background: #fff6d6; }
.assume-actions { margin-bottom: 8px; }
.prose p { max-width: 760px; }
.sources ul { padding-left: 18px; font-size: 14px; columns: 2 320px; }
.sources li { break-inside: avoid; margin-bottom: 4px; }

footer { background: var(--green); color: var(--cream); padding: 28px clamp(16px, 4vw, 48px); font-size: 14px; }
footer a { color: var(--pink); }

.modal { position: fixed; inset: 0; background: rgba(7, 30, 18, .6); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: var(--cream); border-radius: var(--radius); padding: 24px; max-width: 440px; width: 100%; position: relative; }
.modal-card .row input { flex: 1 1 200px; }
.modal-card .primary { width: 100%; margin-top: 8px; }
.close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; cursor: pointer; }
.err { color: #b03a3a; font-size: 14px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .bar { grid-template-columns: 74px 1fr auto; }
  .headline { padding: 18px; }
}

@media print {
  .top, .jump, #summary, #assumptions, .modal { display: none; }
}

.results > *, .cards2 > *, .plan-grid > *, .headline > * { min-width: 0; }
.card { overflow-x: auto; }
.card th, .card td { white-space: normal; padding: 8px; }
.card td:last-child, .card th:last-child { white-space: nowrap; }
.headline .v { overflow-wrap: anywhere; }
.sources a { overflow-wrap: anywhere; word-break: break-word; }
tr.dept td { background: var(--cream-2) !important; font: 700 16px var(--head); letter-spacing: 1px; text-transform: uppercase; color: var(--teal-dark); position: static; }
.dept-h { font-size: 28px; margin: 24px 0 10px; color: var(--teal-dark); }
.dept-pick { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; }
.vol-dept { border: 0; margin: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.vol-dept summary { font-size: 18px; padding: 8px 0; }
.vol-dept .vol { margin: 0 0 8px; }
tr.dept { cursor: pointer; }
tr.dept .caret::before { content: '▾'; display: inline-block; width: 18px; }
tr.dept.closed .caret::before { content: '▸'; }
.dept-fold { margin: 10px 0; }
.dept-fold > summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; list-style: none; }
.dept-fold > summary::-webkit-details-marker { display: none; }
.dept-fold > summary .dname::before { content: '▸ '; color: var(--teal); }
.dept-fold[open] > summary .dname::before { content: '▾ '; }
.dept-fold > summary .dmeta { font: 600 15px var(--body); color: var(--muted); }
.dept-fold > .job-cards { padding: 0 14px 14px; }
.job { background: var(--cream); }
.xrate { display: flex; align-items: baseline; justify-content: space-between; background: var(--green); color: var(--cream); border-radius: 10px; padding: 8px 12px; margin: 10px 0 6px; }
.xrate span { font-size: 14px; opacity: .85; }
.xrate b { font: 900 26px/1 var(--head); color: var(--pink); }
.bar { grid-template-columns: 104px 1fr auto; }
details.more { background: transparent; border: 0; margin: 16px 0 0; }
details.more > summary { display: inline-block; border: 2px solid var(--green); border-radius: 999px; padding: 8px 18px; font: 600 16px var(--body); }
details.more[open] > summary { margin-bottom: 14px; }
details.more > .plan-grid, details.more > .results { padding: 0; margin-top: 0; }
.headline .v small { font: 600 18px var(--body); opacity: .8; }
.assume-grid select { max-width: 160px; }
.hero-rate { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 18px 22px; max-width: 560px; margin: 8px 0 16px; }
.hero-rate .k { margin: 0; font-size: 15px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }
.hero-rate .big { margin: 4px 0; font: 900 clamp(48px, 9vw, 80px)/1 var(--head); color: var(--pink); }
.hero-rate .n { margin: 0; font-size: 16px; }
.hero-rate .lead { margin: 8px 0 6px; font-size: 18px; line-height: 1.4; }
.hero-rate .small { margin: 12px 0 0; font-size: 13px; line-height: 1.45; opacity: .75; border-top: 1px solid rgba(251, 244, 234, .2); padding-top: 10px; }
.hero-rate .small a { color: var(--cream); }
.disclaimer { max-width: 760px; border-bottom: 1px solid rgba(251, 244, 234, .2); padding-bottom: 12px; margin-bottom: 12px; }
.disclaimer p { margin: 0 0 8px; }
#sourcesFold { background: var(--white); }
#sourcesFold > summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; list-style: none; font-size: 26px; }
#sourcesFold > summary::-webkit-details-marker { display: none; }
#sourcesFold > summary .dname::before { content: '▸ '; color: var(--teal); }
#sourcesFold[open] > summary .dname::before { content: '▾ '; }
#sourcesFold > summary .dmeta { font: 600 15px var(--body); color: var(--muted); }
.hero-rate { max-width: 680px; }
.rates2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px 24px; margin: 6px 0 10px; }
.rates2 .lbl { margin: 0; font-size: 15px; font-weight: 600; }
.rates2 .big { margin: 2px 0 0; }
.rates2 .big.promise { color: var(--cream); opacity: .55; }
.team-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.team-row select { grid-column: 1 / -1; }
.team-row label { display: flex; flex-direction: column; gap: 4px; }
.team-row input { width: 100%; text-align: right; }
.team-row .rm { grid-column: 1 / -1; justify-self: end; }
#addDept { margin-top: 12px; }
.usage { display: grid; gap: 8px; margin: 4px 0 12px; }
.usage label { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.usage label:has(input:checked) { border-color: var(--teal); background: #e8f3f0; }
.usage input { accent-color: var(--teal); width: 18px; height: 18px; }
.usage span { color: var(--muted); font-size: 14px; }

/* Light text on dark or teal backgrounds: smoother rendering, no tracking, Barlow 800 instead of 900. */
.region button[aria-pressed="true"],
.stamp, .stamp *,
.jump a:hover,
thead tr.tiers th,
.hero-rate, .hero-rate *,
.headline, .headline *,
.xrate, .xrate *,
footer, footer * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0 !important;
}
.hero-rate .big, .headline .v, .xrate b { font-weight: 800; }
