/* Sale Check — mobile-first, print-aware, no webfonts, no remote assets. */
:root {
  --paper: #f3f0e8;
  --ink: #1b2420;
  --muted: #4f5b55;
  --card: #fffcf6;
  --line: #d5d0c4;
  --forest: #1f5a45;
  --forest-dark: #163f31;
  --forest-soft: #e4f0ea;
  --gold: #8a5a12;
  --gold-soft: #f7eedc;
  --clay: #6b3a32;
  --clay-soft: #f6e8e5;
  --slate: #3c4a55;
  --focus: #0b5cab;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 36, 32, 0.06), 0 8px 24px rgba(27, 36, 32, 0.06);
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --max: 46rem;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
}
img, svg { max-width: 100%; }
a { color: var(--forest-dark); }
a:hover { color: var(--forest); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; }
.wrap { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }
.site-header {
  padding: 1.75rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #e7efe9 0%, var(--paper) 100%);
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.4rem;
  font-weight: 650;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 5vw, 2.25rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.4rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.lede { font-size: 1.05rem; margin: 0 0 0.6rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 0.92rem; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.section { padding: 1.75rem 0; }
.section-inner { margin-top: 1.5rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
input, textarea, select, button {
  font: inherit;
  color: inherit;
}
input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: #fff;
  width: 100%;
}
textarea { resize: vertical; min-height: 7rem; }
.row-actions:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin: 1rem 0 0;
}
.btn, .btn-secondary {
  display: inline-block;
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.3;
}
.btn { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn:hover { background: var(--forest-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--forest-dark); border-color: var(--forest); }
.btn-secondary:hover { background: var(--forest-soft); }
[hidden] { display: none !important; }
.notice {
  background: var(--gold-soft);
  border: 1px solid #e3d0a8;
  color: var(--gold);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.stat .label { margin: 0; color: var(--muted); font-size: 0.85rem; }
.stat .big { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 650; }
.verdict {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  margin: 0.75rem 0 1rem;
}
.verdict-head { margin: 0 0 0.35rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 650; }
.verdict.tone-good { background: var(--forest-soft); border-color: #b7d4c6; }
.verdict.tone-caution { background: var(--gold-soft); border-color: #e3d0a8; }
.verdict.tone-not-lower { background: var(--clay-soft); border-color: #e3c7c2; }
.verdict.tone-unknown { background: #eef1f2; border-color: #d0d6da; }
.math { margin: 0.5rem 0 1rem; }
.math summary { cursor: pointer; font-weight: 600; }
.math p { margin: 0.4rem 0; }
.unit-card { margin: 1rem 0; }
.unit-card p { margin: 0.35rem 0; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted); font-weight: 650; }
.plain-table tbody th { color: var(--ink); font-weight: 600; letter-spacing: 0; font-size: 0.95rem; }
.list-reset, .steps { padding-left: 1.2rem; }
.list-reset { list-style: disc; }
.steps li, .list-reset li { margin: 0.4rem 0; }
.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 1rem 0 0;
}
.sources a { word-break: break-word; }
.disclaimer { font-size: 0.95rem; }
.paid { border-color: #c9d9d0; background: #f6faf7; }
.buy { margin: 1rem 0 0.4rem; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.budget-input, .sheet-input {
  min-width: 6rem;
  padding: 0.3rem 0.4rem;
}
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}
.date-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 4.5rem;
  padding: 0.35rem 0.4rem;
  background: var(--card);
}
.date-cell .dow { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.date-cell .num { font-weight: 650; }
.date-cell textarea, .date-cell .note {
  width: 100%;
  min-height: 2.2rem;
  border: none;
  padding: 0.15rem 0;
  background: transparent;
  resize: none;
  font-size: 0.85rem;
}
.date-cell.empty { background: transparent; border-style: dotted; min-height: 2.5rem; }
@media (max-width: 640px) {
  .date-grid { grid-template-columns: repeat(7, 1fr); gap: 0.2rem; }
  .date-cell { min-height: 3.4rem; padding: 0.2rem 0.2rem; }
  .date-cell textarea, .date-cell .note { min-height: 1.4rem; font-size: 0.75rem; }
}
.print-only { display: none; }
@media print {
  body { background: #fff; color: #000; }
  .no-print, .site-nav, .skip-link, .buy, .btn, .btn-secondary, noscript { display: none !important; }
  .print-only { display: block; }
  .site-header, .site-footer, .card, .stat, .paid, details.math, .verdict, .date-cell {
    background: #fff !important;
    box-shadow: none !important;
  }
  .print-block { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 0.6in; }
  .date-grid { grid-template-columns: repeat(7, 1fr); }
}

#watch-table { font-size: 0.82rem; min-width: 36rem; }
#watch-table th, #watch-table td { padding: 0.4rem 0.4rem; }
#watch-table .sheet-input, #watch-table select.sheet-input { min-width: 0; width: 100%; }
#watch-table .sub { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; }
@media print {
  #watch-table { min-width: 0; font-size: 8pt; }
}
