/*
 * business-plan-template.css — Furniture flipping business plan template
 *
 * All values use CSS custom properties from ash-tokens.css — no hardcoded hex.
 */

/* ── Document shell ──────────────────────────────────────────────────────── */

.ash-biz-plan__doc {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border, #dad9d4);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  margin-bottom: 20px;
}

.ash-biz-plan__section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border, #dad9d4);
}

.ash-biz-plan__section:last-child {
  border-bottom: none;
}

.ash-biz-plan__section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--foreground, #3d3929);
  margin: 0 0 6px;
}

.ash-biz-plan__guidance {
  font-size: 0.8125rem;
  color: var(--muted-foreground, #7a7568);
  margin: 0 0 10px;
  line-height: 1.45;
}

/* ── Editable field ──────────────────────────────────────────────────────── */

.ash-biz-plan__field {
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--border, #dad9d4);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.9rem;
  color: var(--foreground, #3d3929);
  background: var(--background, #faf9f5);
  line-height: 1.6;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.ash-biz-plan__field:focus {
  border-color: var(--ash-ring, #c96442);
  box-shadow: 0 0 0 3px rgba(201, 100, 66, 0.15);
}

.ash-biz-plan__field:empty::before {
  content: attr(data-placeholder);
  color: var(--muted-foreground, #7a7568);
  pointer-events: none;
}

/* ── Actions ─────────────────────────────────────────────────────────────── */

.ash-biz-plan__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

.ash-biz-plan__toast {
  display: inline-block;
  padding: 8px 14px;
  background: var(--ash-near-black, #141413);
  color: var(--background, #faf9f5);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}

.ash-biz-plan__toast[hidden] { display: none; }

/* ── Print styles ────────────────────────────────────────────────────────── */

@media print {
  .ash-biz-plan__actions,
  .ash-tool__lead { display: none; }

  .ash-tool {
    border: none;
    padding: 0;
  }

  .ash-biz-plan__section {
    page-break-inside: avoid;
  }
}

/* ── Listing checklist ───────────────────────────────────────────────────── */

.ash-listing-checklist {
  background: var(--card, #faf9f5);
  border: 1px solid var(--border, #dad9d4);
  border-radius: var(--radius-md, 10px);
  padding: 24px 20px;
  margin: 28px 0;
}

.ash-listing-checklist__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--foreground, #3d3929);
  margin: 0 0 16px;
}

.ash-listing-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ash-listing-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #dad9d4);
  transition: opacity 0.15s;
}

.ash-listing-checklist__item:last-child {
  border-bottom: none;
}

.ash-listing-checklist__item.is-done {
  opacity: 0.5;
}

.ash-listing-checklist__item.is-done .ash-listing-checklist__label {
  text-decoration: line-through;
  color: var(--muted-foreground, #7a7568);
}

.ash-listing-checklist__check {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm, 6px);
  border: 2px solid var(--border, #dad9d4);
  background: var(--background, #faf9f5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  color: transparent;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  padding: 0;
  margin-top: 1px;
}

.ash-listing-checklist__check:hover {
  border-color: var(--ash-ring, #c96442);
}

.ash-listing-checklist__item.is-done .ash-listing-checklist__check {
  background: var(--ash-ring, #c96442);
  border-color: var(--ash-ring, #c96442);
  color: #fff;
}

.ash-listing-checklist__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ash-listing-checklist__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground, #3d3929);
  line-height: 1.4;
}

.ash-listing-checklist__help {
  font-size: 0.8125rem;
  color: var(--muted-foreground, #7a7568);
  line-height: 1.45;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ash-biz-plan__field,
  .ash-listing-checklist__check,
  .ash-listing-checklist__item { transition: none; }
}
