/* Full-bleed sections use calc(50% - 50vw), and 100vw includes a classic
   scrollbar's width on Windows, so the page could scroll sideways by ~17px.
   clip, not hidden: hidden makes html a scroll container. */
html { overflow-x: clip; }

:root {
  --ink: #1B1B1B;
  --paper: #F4F5F1;
  --paper-light: #FFFFFF;
  --rust: #F26A21;      /* Scag orange - calls to action */
  --rust-dark: #C6501A;
  --rust-text: #B04716;  /* rust as TEXT on paper: #F26A21 is 2.8:1 there, this is 5.1:1 */
  --steel: #4B5A63;
  --steel-light: #D6DBDD;
  --moss: #2E7D32;      /* Deere green - structure, header, "available" */
  --moss-dark: #1F5C24;
  --warn: #FFC72C;      /* Deere yellow - highlights, "as-is" flags */
  --sold: #C8102E;      /* Exmark red - sold stamps only, used sparingly */

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Semantic roles (2026-10-13). New components use these, never raw hex.
     Orange = act, green = passed/available, yellow = one highlight per
     section, red = SOLD only. */
  --color-cta: var(--rust-dark);
  --color-pass: var(--moss);
  --color-highlight: var(--warn);
  --surface: var(--paper);
  --surface-raised: var(--paper-light);
  --surface-inverse: var(--ink);
  --text: var(--ink);
  --text-muted: var(--steel);
  --text-inverse: var(--paper-light);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: 4.5rem;
}

* { box-sizing: border-box; }

/* Safety net: no image may exceed its container. A mis-scoped height rule on
   a wide image is otherwise enough to blow out the whole page's width. */
img { max-width: 100%; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0.4em 0 0.5em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; margin-top: 0; }

a { color: var(--rust-text); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

p { max-width: 38em; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

/* Screen-reader-only text. Used where an icon carries meaning that the
   glyph alone cannot pass on, such as the completed step marker. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label { display: block; font-weight: 600; }
input, select, textarea {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--steel);
  border-radius: 3px;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
textarea { max-width: 100%; min-height: 5em; }
input[type="checkbox"], input[type="radio"] { width: auto; margin: 0; }

.form-card {
  background: var(--paper-light);
  border: 1px solid var(--steel-light);
  border-radius: 4px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin: 1rem 0 1.5rem;
  max-width: 560px;
}
.form-card h2, .form-card h3 { margin-top: 1.4rem; }
.form-card h2:first-child, .form-card h3:first-child { margin-top: 0; }

.field { margin: 0 0 1rem; }
.field label { margin: 0 0 0.35rem; }
.field input, .field select, .field textarea { max-width: 100%; }
.field:last-of-type { margin-bottom: 0; }

.field-checkbox { display: flex; align-items: center; gap: 0.5rem; }
/* A bare checkbox renders 13px. The label is a working proxy, but the box
   itself should be hittable too. */
.field-checkbox input[type="checkbox"] { width: 20px; height: 20px; }
.field-checkbox label { margin: 0; font-weight: 400; }

.form-card button { width: 100%; }

button, .btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--rust-dark);   /* white on #F26A21 is 3.06:1; on this, 4.6:1 */
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 0.6rem;
}
button:hover, .btn:hover { background: #9E3F12; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--steel-light);
}
th {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--steel);
}

.flash {
  background: var(--warn);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-weight: 600;
  margin: 0.8rem 0;
  max-width: none;
}

.price { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* Fixed bottom tab bar. Shared by the admin tool and the public site;
   each side supplies its own clearance rule for the fixed bar. */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--paper-light);
  border-top: 1px solid var(--steel-light);
  padding: 0.4rem 0.5rem max(0.4rem, env(safe-area-inset-bottom));
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 480px;
  margin: 0 auto;
}
.bottom-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--steel);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.3rem;
  cursor: pointer;
  list-style: none;
}
.bottom-nav-tab::-webkit-details-marker { display: none; }
.bottom-nav-tab.active { color: var(--rust); }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
}

/* Bottom bar treatment, shared. This used to live in site.css, which admin
   does not load, so the admin bar kept the plain look. */
.bottom-nav { padding: 0.35rem 0.5rem max(0.35rem, env(safe-area-inset-bottom)); }
.bottom-nav-tab {
  gap: 0.2rem;
  font-size: 0.66rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.bottom-nav-tab svg { width: 22px; height: 22px; }
.bottom-nav-tab.active { color: var(--rust); background: rgba(242, 106, 33, 0.12); }

/* Logo mark: badge above, tagline beneath, as two independently scaled
   images. Qualify both selectors with the element -- `.wordmark img` in the
   site stylesheets is 0,1,1 and would otherwise win on specificity. */
img.mark-badge { display: block; height: 58px; width: auto; }
/* 16px, not 12. At 12px the tagline's bold rounded face read as a smudge;
   the source is emitted at 64px so the browser downscales 4x at most. */
img.mark-tag { display: block; height: 19px; width: auto; }
