/* JobCostLab site styles. Brand colors match the Etsy listing images. */
:root {
  --green: #1e5631;
  --green-dark: #17452a;
  --green-light: #e6efe9;
  --cream: #f1eee4;
  --paper: #ffffff;
  --ink: #1b1b1b;
  --muted: #5f6660;
  --line: #d9d6cc;
  --yellow: #fff6c7;
  --red: #b3261e;
  --amber: #9a6a00;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--green); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.brand span { opacity: .75; font-weight: 400; }
.nav a { color: #fff; text-decoration: none; margin-left: 20px; font-size: .95rem; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero { padding: 36px 0 12px; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* Calculator card */
.calc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; padding: 18px; } }
.calc h2 { margin-top: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; color: var(--green); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.field .hint { display: block; font-size: .82rem; color: var(--muted); margin-top: 3px; }
.field input, .field select {
  width: 100%;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid #bfbcb0;
  border-radius: 6px;
  background: var(--yellow);
}
.field input:focus, .field select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prefix { position: relative; }
.prefix input { padding-left: 24px; }
.prefix::before { content: "$"; position: absolute; left: 10px; top: 9px; color: var(--muted); }

.results table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.results td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.results td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.results tr.sub td { font-weight: 700; }
.results tr.total td { font-weight: 700; border-bottom: 2px solid var(--green); }
.big {
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.big .label { font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .9rem; }
.big .value { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 12px 0; }
.kpi { background: var(--green-light); border-radius: 8px; padding: 10px 12px; }
.kpi .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.kpi .v { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.note { font-size: .85rem; color: var(--muted); }

.reality { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
.reality .field { max-width: 320px; }
.verdict { font-weight: 700; padding: 10px 14px; border-radius: 8px; margin-top: 6px; }
.verdict.ok { background: var(--green-light); color: var(--green); }
.verdict.warn { background: #fff1d6; color: var(--amber); }
.verdict.bad { background: #fde7e5; color: var(--red); }
.verdict.idle { background: #eee; color: var(--muted); font-weight: 500; }

/* CTA */
.cta {
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.cta h2 { margin-top: 0; }
.cta ul { margin: 0 0 16px; padding-left: 20px; }
.cta li { margin-bottom: 4px; }
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
}
.btn:hover { background: var(--green-dark); }
.cta .price { color: var(--muted); font-size: .9rem; margin-left: 12px; }

/* Ad slot: reserved height so the layout does not jump when ads load */
.ad-slot { min-height: 90px; margin: 24px 0; display: flex; align-items: center; justify-content: center; color: #b5b2a6; font-size: .8rem; }

/* Article */
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
@media (max-width: 760px) { .article { padding: 20px; } }
.article table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: .95rem; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article th { background: var(--green-light); }
.article .table-wrap { overflow-x: auto; }
.article ul, .article ol { padding-left: 22px; }
.callout { background: var(--green-light); border-left: 4px solid var(--green); padding: 12px 16px; margin: 1em 0; border-radius: 0 8px 8px 0; }
.faq h3 { margin-top: 1.1em; }

/* Home grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 20px 0 40px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); display: block; }
.card:hover { border-color: var(--green); }
.card h3 { margin-top: 0; color: var(--green); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card.soon { opacity: .6; pointer-events: none; }
.tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; background: var(--green-light); color: var(--green); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .85rem; }
.site-footer a { color: var(--muted); margin-right: 16px; }

/* Mobile tweaks */
@media (max-width: 600px) {
  .brand span { display: none; }
  .kpi .v { font-size: .95rem; }
  .kpi .k { font-size: .7rem; }
  .big .value { font-size: 1.5rem; }
}
