/* Rent vs Buy NYC — shared design system (mirrors live guide pages) */
:root {
  --navy: #2c3e50;
  --cream: #fff9f0;
  --teal: #00acc1;
  --green: #4caf50;
  --red: #e53935;
  --gold: #ffd54f;
  --ink: #2c3e50;
  --muted: #4a5d70;
  --line: #d9e2ea;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', 'Avenir Next', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #c4e0f9 0, #e3f2fd 420px, #e8f5e9 100%);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 17px;
}
a { color: #006978; }
.wrap { max-width: 900px; margin: 0 auto; padding: 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px; margin: 8px 0 18px; flex-wrap: wrap; }
header.top a.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav.main { display: flex; gap: 6px; flex-wrap: wrap; }
nav.main a { font-weight: 800; font-size: .92rem; text-decoration: none; color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 6px 14px; background: #fff; }
nav.main a:hover { background: var(--teal); color: #fff; }
nav.main a.active { background: var(--navy); color: #fff; }
.card { background: var(--cream); border: 3px solid var(--navy); border-radius: 24px; box-shadow: 4px 4px 0 var(--navy); padding: 24px; margin: 0 0 20px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; font-weight: 900; }
h2 { font-size: 1.35rem; margin: 24px 0 8px; font-weight: 900; }
h3 { font-size: 1.1rem; margin: 18px 0 6px; font-weight: 900; }
p { margin: 0 0 12px; }
.lead { font-size: 1.15rem; font-weight: 700; }
.small { font-size: .85rem; }
.note { font-size: .85rem; font-weight: 700; color: var(--muted); }
.draft { background: var(--gold); border: 3px solid var(--navy); border-radius: 12px; padding: 8px 12px; font-weight: 800; margin-bottom: 16px; }
.btn { display: inline-block; background: var(--teal); color: #fff; font-weight: 900; text-decoration: none; border: 3px solid var(--navy); border-radius: 12px; box-shadow: 4px 4px 0 var(--navy); padding: 12px 20px; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { transform: translateY(2px); box-shadow: 2px 2px 0 var(--navy); }
.btn.green { background: var(--green); }
.btn.dark { background: var(--navy); }
.btn.ghost { background: #fff; color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--navy); }
.btn-lg { font-size: 1.15rem; padding: 14px 26px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; border: 3px solid var(--navy); border-radius: 12px; overflow: hidden; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { background: #e1f5fe; font-weight: 900; }
tr:last-child td { border-bottom: none; }
.win-rent { color: #2e7d32; font-weight: 900; }
.win-buy { color: #b71c1c; font-weight: 900; }
.quick { background: #fff; border: 3px solid var(--navy); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
label { font-weight: 800; display: block; margin: 14px 0 4px; }
input[type=text], input[type=number], input[type=email], select {
  width: 100%; padding: 10px 12px; font-size: 1rem; font-family: inherit;
  border: 3px solid var(--navy); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 3px solid var(--teal); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.duo.field { grid-column: 1 / -1; }
.range { display: flex; align-items: center; gap: 10px; }
input[type=range] { flex: 1; accent-color: var(--teal); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .grid2, .duo { grid-template-columns: 1fr; } }
.outcomes { margin-top: 20px; }
.banner { border: 3px solid var(--navy); border-radius: 16px; padding: 16px 18px; margin: 16px 0; font-weight: 900; font-size: 1.15rem; }
.banner.rent { background: #e8f5e9; border-color: var(--green); color: #1b5e20; }
.banner.buy { background: #ffebee; border-color: var(--red); color: #b71c1c; }
.banner.mixed { background: #fff8e1; border-color: var(--gold); }
.gate { margin-top: 20px; border: 3px dashed var(--navy); border-radius: 16px; padding: 16px; background: #fff; }
.gate h3 { margin-top: 0; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 800; }
nav.more ul { columns: 2; padding-left: 18px; margin: 8px 0; }
@media (max-width: 560px) { nav.more ul { columns: 1; } h1 { font-size: 1.6rem; } .card { padding: 16px; } }
footer { font-size: .85rem; font-weight: 700; padding: 8px 4px 40px; }
footer a { margin-right: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip { border: 2px solid var(--navy); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; background: #fff; cursor: pointer; }
.chip.active { background: var(--navy); color: #fff; }
