/* Richard Peters Realty — site styles
   Palette derived from the RPR logo: slate ink + brand cyan.
   Red is used semantically: it marks the wholesaler/scam content only. */

:root {
  --ink: #14181d;
  --ink-2: #1e242b;
  --ink-3: #2b333c;
  --slate: #4a535d;
  --paper: #ffffff;
  --paper-2: #f0f2f4;
  --paper-3: #e3e7ea;
  --signal: #0c8fd6;
  --signal-deep: #0a6ea6;
  --signal-soft: #e6f4fb;
  --stamp: #b8402c;
  --stamp-soft: #fbeeeb;
  /* The one action we want above every other: reserved for the offer CTA. */
  --gold: #f4c13d;
  --gold-deep: #e0ad24;
  --text: #191f26;
  --text-2: #545f6b;
  --line: #d6dbe0;
  --line-dark: rgba(255, 255, 255, 0.14);

  --w: 1160px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--signal-deep); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--w)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin: 0 0 1rem;
  font-weight: 500;
}
.eyebrow--warn { color: var(--stamp); }
.eyebrow--onink { color: #6ec5ee; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  padding: 0.95rem 1.4rem;
  border-radius: 3px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--signal); color: #fff; border-color: var(--signal); }
.btn--primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
/* Gold, so the offer CTA is never mistaken for ordinary navigation. Dark text
   on gold clears 10:1 against the slate header. */
.btn--cta { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--cta:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }
/* Inside the nav, `.nav a` would otherwise repaint the label grey on gold,
   which is both wrong and barely legible. */
.nav a.btn--cta, .nav a.btn--cta:hover { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  gap: 1rem;
  min-height: 76px;
  padding-block: 0.6rem;
  /* The header carries more across than an article line does: logo, language
     chip, five links and a long CTA come to ~1230px, which will not fit the
     1160px text measure. It gets its own wider track so the row stays on one
     line; everything below the header still reads at --w. */
  width: min(100% - 2.5rem, 1330px);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }
.brand .wordmark {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  max-width: 7.5em;
}

.nav { display: flex; align-items: center; gap: 0.95rem; justify-content: flex-end; }
.nav-cta { display: none; }
.nav a {
  color: #cdd5dd;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--signal); }

/* One line, never wrapped. The label is long, so it sets its own width and the
   nav gives way first (see the nav rules below). */
.header-cta {
  font-size: 0.72rem;
  padding: 0.62rem 1rem;
  line-height: 1.2;
  flex: none;
  white-space: nowrap;
  max-width: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: #fff;
  padding: 0.5rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* Below this the full row cannot fit even in its wider track, so fall back to
   the menu button rather than letting the CTA drop onto a second line. */
@media (max-width: 1319px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--ink-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); }
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; margin-top: 1rem; justify-content: center; text-align: center; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 0;
}
.hero-copy { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem) 0; }
.hero-grid > .hero-copy { padding-left: max(1.25rem, calc((100vw - var(--w)) / 2)); }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero p.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: #b9c3cd; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-media { position: relative; min-height: 340px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(20,24,29,0.35) 38%, rgba(20,24,29,0.1) 100%);
}
.hero--compact .hero-copy { padding-block: clamp(2.5rem, 5vw, 4rem); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > .hero-copy { padding: 2.75rem 1.25rem 2.5rem; order: 2; }
  .hero-media { order: 1; min-height: 220px; height: 34vh; }
  .hero-media::after { background: linear-gradient(180deg, rgba(20,24,29,0.15) 0%, var(--ink) 100%); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--flush { padding-bottom: 0; }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #b9c3cd; }
.page-head { padding-block: clamp(2.4rem, 4.5vw, 3.5rem); }
.page-head h1 { margin-bottom: 0; max-width: 20ch; }
.page-head .lede { color: #b9c3cd; margin-top: 1rem; max-width: 46ch; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- clause list (the signature element) ---------- */
.clauses { border-top: 1px solid var(--line); }
.clause {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.clause-no {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--stamp);
  padding-top: 0.45rem;
  font-weight: 500;
}
.clause--calm .clause-no { color: var(--signal-deep); }
.clause h3 { margin-bottom: 0.5rem; font-size: clamp(1.15rem, 2vw, 1.42rem); }
.clause .body { color: var(--text-2); max-width: 46rem; }
.clause h3 { max-width: 40rem; }
.clause .body p { margin-bottom: 0.9em; }

@media (max-width: 620px) {
  .clause { grid-template-columns: 1fr; gap: 0.35rem; }
  .clause-no { padding-top: 0; }
}

/* ---------- difference cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem); }
.card h3 { margin-bottom: 0.7rem; }
.card .body { color: var(--text-2); font-size: 0.99rem; }
.card ul { margin: 0.9em 0 0; padding-left: 1.1em; }
.card li { margin-bottom: 0.5em; text-align: left !important; }
.card .rule { width: 40px; height: 3px; background: var(--signal); margin-bottom: 1.2rem; }

/* ---------- steps (numbered process) ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step {
  background: var(--paper);
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.step-no {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  color: var(--signal);
  font-weight: 500;
  line-height: 1;
  padding-top: 0.3rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step .body { color: var(--text-2); }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- proof strip ---------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 2px;
}
.proof-strip a { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.proof-strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 0.4s ease, filter 0.3s ease; }
.proof-strip a:hover img { transform: scale(1.04); filter: saturate(1); }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery img { width: 100%; border: 1px solid var(--line); background: var(--paper-2); }

/* ---------- ordered legal list ---------- */
.commandments { counter-reset: cmd; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.commandments li {
  counter-increment: cmd;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.commandments li::before {
  content: counter(cmd, upper-roman);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--signal-deep);
  padding-top: 0.32rem;
  letter-spacing: 0.06em;
}
@media (max-width: 620px) {
  .commandments li { grid-template-columns: 2.4rem 1fr; gap: 0.75rem; }
}

/* ---------- embeds ---------- */
.embed-shell { background: var(--paper); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-2); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c3cd; max-width: 52ch; }
.cta-band .hero-actions { margin-top: 1.75rem; }

/* ---------- form ---------- */
.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-aside { position: sticky; top: 100px; }
.form-aside h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.form-aside .body { color: var(--text-2); }
@media (max-width: 900px) { .form-aside { position: static; } }

.field { margin-bottom: 1.75rem; }
.field > label, .field-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0.4rem 1.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--text); line-height: 1.45; }
.check input { margin-top: 0.32rem; accent-color: var(--signal); width: 1rem; height: 1rem; flex: none; }
.consent { background: var(--paper-2); border: 1px solid var(--line); padding: 1.1rem 1.2rem; font-size: 0.88rem; color: var(--text-2); }
.consent .check { font-size: 0.88rem; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.error { color: var(--stamp); }
.form-status.ok { color: var(--signal-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #9aa6b2; padding-block: clamp(2.75rem, 5vw, 4rem); font-size: 0.92rem; }

/* ---------- footer contact ---------- */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-contact h2 {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.3rem;
}
.footer-contact p { margin: 0; color: #cdd5dd; font-size: 1.02rem; }
/* Qualified with .site-footer so it outranks the generic `.site-footer a`
   colour, which would otherwise repaint the number the same grey as the links. */
.site-footer a.footer-phone {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--gold);
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: 3px;
  padding: 0.6rem 1.4rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-footer a.footer-phone:hover { background: var(--gold); color: var(--ink); text-decoration: none; }
.footer-consent {
  margin: -0.75rem 0 2.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #78838f;
  max-width: 78ch;
}
@media (max-width: 620px) {
  .footer-contact { display: block; }
  .footer-phone { margin-top: 1.1rem; }
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand span {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  max-width: 8em;
  line-height: 1.25;
}
.site-footer h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e7c89;
  margin: 0 0 1rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: #cdd5dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Two badges side by side on a white chip: they are dark blue artwork and
   would disappear against the ink footer without it. */
.credentials {
  background: #fff;
  padding: 0.8rem 1rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.credentials img { height: 66px; width: auto; }
@media (max-width: 400px) { .credentials img { height: 54px; } }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6e7c89;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- property catalog ---------- */

.prop-intro { max-width: 58ch; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.prop-intro h2 { margin-bottom: 0.6rem; }
.prop-intro p { color: var(--text-2); margin: 0; }

.prop-layout { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 900px) { .prop-layout { grid-template-columns: 1fr; } }

.prop-filters {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  background: var(--paper);
  position: sticky;
  top: 92px;
}
@media (max-width: 900px) { .prop-filters { position: static; } }

.filter-block + .filter-block { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.filter-title {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.7rem;
}
.filter-search {
  width: 100%;
  font-family: var(--f-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--text);
}
.filter-search:focus { outline: 2px solid var(--signal); outline-offset: 1px; }

.filter-opts { display: flex; flex-direction: column; gap: 0.15rem; }
.filter-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  font-family: var(--f-body);
  font-size: 0.92rem;
  color: var(--text);
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.filter-opt:hover { background: var(--paper-2); }
.filter-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.filter-n { font-size: 0.8rem; opacity: 0.75; font-family: var(--f-mono); }
.filter-reset {
  margin-top: 1.2rem;
  width: 100%;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.6rem;
  color: var(--slate);
  cursor: pointer;
}
.filter-reset:hover { border-color: var(--slate); color: var(--text); }

.prop-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.prop-count { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.prop-count strong { color: var(--text); }
.prop-sortwrap { font-size: 0.85rem; color: var(--slate); display: flex; align-items: center; gap: 0.5rem; }
.prop-sort {
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--text);
}
.prop-status { color: var(--text-2); font-size: 0.95rem; }
.prop-status:empty { display: none; }

.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }

.prop {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.prop-media { aspect-ratio: 4 / 3; background: var(--paper-2); position: relative; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Most rows have no photo yet, so the placeholder has to look deliberate
   rather than broken: the brand mark, quiet, on the panel tint. */
.prop-media.is-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/mark.png") center / 3.2rem no-repeat;
  opacity: 0.13;
}
.prop-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.prop-address { font-size: 0.98rem; line-height: 1.3; margin: 0; }

.prop-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.prop-tag {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--slate);
  border: 1px solid var(--line);
}
/* Condition reads as a scale: quiet for light work, the wholesaler red only
   at the top end. */
.prop-tag--light { background: #eef6ee; border-color: #cfe4cf; color: #35663a; }
.prop-tag--moderate { background: #fdf7e8; border-color: #f0e2bb; color: #7a6320; }
.prop-tag--heavy { background: #fdefe9; border-color: #f3d2c2; color: #9c4a32; }
.prop-tag--massive { background: var(--stamp-soft); border-color: #f0c1bb; color: var(--stamp); }

.prop-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0; }
.prop-figures dt {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.15rem;
}
.prop-figures dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.prop-figures dd.is-struck { color: var(--slate); font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(74, 83, 93, 0.5); }

.prop-bonus {
  margin: auto 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  padding: 0.6rem 0.8rem;
}
.prop-bonus span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa6b2;
}
.prop-bonus strong { font-size: 1.15rem; color: var(--gold); }

.prop-issues { margin: 0; font-size: 0.88rem; color: var(--text-2); line-height: 1.45; }
.prop-issues span { color: var(--slate); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.prop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-2);
  border: 1px dashed var(--line);
  border-radius: 4px;
}

/* ---------- long-form guides ----------
   The two imported guides keep their own markup and class names so the copy is
   exactly as written. Everything is scoped under .guide-article, which both
   repaints them in the site palette and stops their generic class names
   (.wrap, .btn, .label, .row, .tag, .title) colliding with the site's own. */

.guide-article { max-width: 52rem; }
.guide-article > * + * { margin-top: 1.5rem; }
.guide-article p { color: var(--text-2); }
.guide-article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.6rem 0 0.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.guide-article section > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.guide-article h3 { font-size: 1.12rem; margin: 1.8rem 0 0.4rem; }
.guide-article h4 { font-size: 1rem; margin: 1.2rem 0 0.3rem; font-family: var(--f-body); font-weight: 700; }
.guide-article ul, .guide-article ol { padding-left: 1.2rem; color: var(--text-2); }
.guide-article li + li { margin-top: 0.45rem; }
.guide-article strong, .guide-article b { color: var(--text); }
.guide-article a { color: var(--signal-deep); }

/* their eyebrow-ish labels */
.guide-article .label,
.guide-article .section-sub,
.guide-article .stamp,
.guide-article .cite {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.guide-article .cite { text-transform: none; letter-spacing: 0.02em; display: block; margin-top: 0.4rem; }
.guide-article .section-sub { text-transform: none; letter-spacing: 0.02em; font-family: var(--f-body); font-size: 0.98rem; }

/* numbered steps and tactics share one treatment */
.guide-article .step,
.guide-article .tactic {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
  background: var(--paper);
}
.guide-article .step-num,
.guide-article .tactic-num {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 0.9rem;
}
.guide-article .step-body > :first-child,
.guide-article .tactic-head { margin-top: 0; }
.guide-article .tactic { grid-template-columns: 2.4rem 1fr; }
.guide-article .tactic-head { font-weight: 700; color: var(--text); font-size: 1.02rem; }
.guide-article .what, .guide-article .why { margin-top: 0.5rem; }
.guide-article .why { color: var(--slate); font-size: 0.94rem; }

/* panels */
.guide-article .disclaimer,
.guide-article .summary,
.guide-article .template-card,
.guide-article .right-card,
.guide-article .remedy,
.guide-article .note,
.guide-article .clarify,
.guide-article .guide-colophon,
.guide-colophon {
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: 0 4px 4px 0;
  padding: 1.1rem 1.25rem;
  background: var(--paper-2);
}
.guide-article .summary { border-left-color: var(--signal); }
.guide-article .remedy { border-left-color: var(--signal); }
/* red is reserved for wholesaler behaviour, matching the rest of the site */
.guide-article .alert,
.guide-article .disclaimer {
  border: 1px solid #f0c9c0;
  border-left: 3px solid var(--stamp);
  border-radius: 0 4px 4px 0;
  padding: 1.1rem 1.25rem;
  background: var(--stamp-soft);
}
.guide-article .alert p, .guide-article .disclaimer p { color: #7c3a2b; }
.guide-article .attorney-cta {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  background: var(--signal-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.guide-article .attorney-cta .text { flex: 1 1 22rem; }
.guide-article .attorney-cta p { color: var(--text); margin: 0; }

/* the county table on the foreclosure guide */
.guide-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}
.guide-article thead th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--line-strong, var(--line));
  padding: 0.6rem 0.7rem;
  white-space: nowrap;
}
.guide-article tbody td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.7rem; vertical-align: top; color: var(--text-2); }
.guide-article tbody tr:hover td { background: var(--paper-2); }
.guide-article .county { font-weight: 600; color: var(--text); white-space: nowrap; }
.guide-article .circuit { color: var(--slate); white-space: nowrap; }

/* yes/no pills */
.guide-article .pill,
.guide-article .tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--slate);
  white-space: nowrap;
}
.guide-article .pill-yes, .guide-article .tag-yes { background: #eef6ee; border-color: #cfe4cf; color: #35663a; }
.guide-article .pill-no, .guide-article .tag-no { background: var(--stamp-soft); border-color: #f0c1bb; color: var(--stamp); }
.guide-article .pill-check { background: #fdf7e8; border-color: #f0e2bb; color: #7a6320; }

.guide-article .org { font-weight: 600; color: var(--text); }
.guide-article .links a { display: inline-block; margin-right: 0.8rem; }
.guide-article .row { margin-top: 0.6rem; }
.guide-article .meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.guide-article .sum-col + .sum-col { margin-top: 1.25rem; }
.guide-article .sub { color: var(--slate); font-size: 0.92rem; }

.guide-colophon { margin-top: 2.5rem; }
.guide-colophon p { font-size: 0.9rem; }
.guide-colophon p + p { margin-top: 0.7rem; }

@media (max-width: 600px) {
  .guide-article .step, .guide-article .tactic { grid-template-columns: 1fr; }
  .guide-article .step-num, .guide-article .tactic-num { width: 2rem; height: 2rem; font-size: 0.8rem; }
}

/* ---------- prose (privacy etc.) ---------- */
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; object-fit: contain; }
.lightbox button {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  cursor: pointer;
}

/* ---------- a11y ---------- */
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.skip {
  position: absolute;
  left: -9999px;
  background: var(--signal);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip:focus { left: 1rem; top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}

/* ---------- guides index ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.guide-card {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background-color 0.15s ease;
}
.guide-card:hover { background: var(--signal-soft); }
.guide-card h3 { margin: 0; font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
.guide-card p { color: var(--text-2); font-size: 0.97rem; margin: 0; }
.guide-more {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin-top: auto;
  padding-top: 0.6rem;
}
.guide-card--sm h3 { font-size: 1.1rem; }

/* ---------- misc content blocks ---------- */
.callout {
  background: var(--paper-2);
  border-left: 3px solid var(--signal);
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
  color: var(--text-2);
  margin-top: 2rem;
}
.callout strong { color: var(--text); }
.stage-time {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-deep);
}
.link-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.link-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.link-list--plain li { border-bottom: none; padding: 0.35rem 0 0.35rem 1.2rem; position: relative; }
.link-list--plain li::before { content: "\2014"; position: absolute; left: 0; color: var(--signal); }

.download-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.download-card h3 { margin-bottom: 0.4rem; }
.download-card p { color: var(--text-2); margin: 0; max-width: 44ch; }

/* ---------- net sheet ---------- */
.netsheet { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .netsheet { grid-template-columns: 1fr; } }

.input-money { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper); }
.input-money:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.input-money span {
  display: flex; align-items: center; padding: 0 0.5rem 0 0.9rem;
  font-family: var(--f-mono); color: var(--slate);
}
.input-money input { border: none !important; box-shadow: none !important; padding-left: 0.1rem !important; }
.field-hint { font-size: 0.86rem; line-height: 1.6; color: var(--text-2); margin: 0.55rem 0 0; }
.ns-toggle { margin-top: 2rem; align-items: flex-start; }
.ns-toggle span { line-height: 1.5; }

.netsheet-output { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 620px) { .netsheet-output { grid-template-columns: 1fr; } }
.ns-col { background: var(--paper); padding: clamp(1.4rem, 3vw, 2rem); }
.ns-col h3 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.ns-col--cash { border-top: 4px solid var(--stamp); }
.ns-col--mls { border-top: 4px solid var(--signal); }
.ns-col dl { margin: 0; }
.ns-col dl > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.ns-col dt { color: var(--text-2); margin: 0; }
.ns-col dd { margin: 0; font-family: var(--f-mono); font-size: 0.88rem; white-space: nowrap; }
.ns-col dl > div.neg dd { color: var(--stamp); }
.ns-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; }
.ns-total span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.ns-total strong { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
.ns-col--cash .ns-total strong { color: var(--stamp); }
.ns-col--mls .ns-total strong { color: var(--signal-deep); }
.ns-verdict {
  grid-column: 1 / -1; background: var(--ink); color: #cdd5dd;
  padding: 1.1rem clamp(1.4rem, 3vw, 2rem); margin: 0; font-size: 0.98rem;
}
.ns-verdict strong { color: #fff; }

/* ---------- footer additions ---------- */
.footer-grid--4 { grid-template-columns: 1.1fr 1fr 1fr 0.9fr; }
@media (max-width: 1080px) { .footer-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid--4 { grid-template-columns: 1fr; } }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  font-size: 0.85rem; max-width: 70ch;
}
.footer-legal p { margin-bottom: 0.8rem; }
.footer-legal strong { color: #cdd5dd; }

/* ---------- language switch ---------- */
.lang-switch {
  flex: none;
  /* Sits next to the logo; this is what pushes the nav and CTA right. */
  margin-right: auto;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6ec5ee; text-decoration: none;
  border: 1px solid var(--line-dark); padding: 0.4rem 0.55rem; border-radius: 3px;
  white-space: nowrap;
}
.lang-switch:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- net sheet: slider + assignment fee ---------- */
.ns-slider-field { margin-top: 2.25rem; }
.ns-slider-field > label { margin-bottom: 0.9rem; }
.ns-slider-field input[type="range"] {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: var(--signal);
  height: 1.75rem;
  cursor: pointer;
}
.ns-slider-scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.63rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
.ns-slider-scale span { white-space: nowrap; }
.ns-scale-start { text-align: left; }
.ns-scale-mid { text-align: center; color: var(--signal-deep); }
.ns-scale-end { text-align: right; }
@media (max-width: 460px) {
  .ns-slider-scale { font-size: 0.56rem; gap: 0.3rem; letter-spacing: 0.02em; }
}

.ns-slider-readout {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--paper-2);
  border-left: 3px solid var(--signal);
}
.ns-slider-readout strong { display: block; font-size: 1.02rem; color: var(--text); }
.ns-timing-delta {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--signal-deep);
  margin-top: 0.3rem;
}
.ns-timing-note { display: block; font-size: 0.88rem; color: var(--text-2); margin-top: 0.45rem; }

.ns-calc { margin-top: 2rem; width: 100%; justify-content: center; }
.ns-calc-hint { margin-top: 0.7rem; }

.ns-profit {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
}
.ns-profit span {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stamp);
}
.ns-profit strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  color: var(--stamp);
  margin: 0.2rem 0 0.4rem;
}
.ns-profit em { font-style: normal; font-size: 0.86rem; color: var(--text-2); display: block; }

/* ---------- site-wide net sheet strip ---------- */
/* Sits directly under the header now, so it needs a bottom rule rather than a
   top one; a top border would double up with the header edge. */
.tool-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.tool-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: clamp(1.4rem, 3vw, 2rem);
}
.tool-strip .tool-copy { flex: 1 1 26rem; }
.tool-strip p.eyebrow { margin-bottom: 0.4rem; }
.tool-strip h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  margin-bottom: 0.35rem;
  max-width: 30ch;
}
.tool-strip p.tool-sub { margin: 0; color: var(--text-2); font-size: 0.95rem; max-width: 52ch; }
