/**
 * project-report-theme.css
 * ------------------------------------------------------------------
 * Visual identity for the Project Report tool ONLY — deliberately
 * distinct from the rest of the site so a visitor immediately reads
 * this as "a tool", not another content page.
 *
 * Design concept: an Indian bank passbook / ledger. Ruled lines,
 * hand-filled entries, an official rubber stamp — the same visual
 * language as the physical document this tool replaces. Grounded in
 * the subject, not a generic fintech gradient.
 * ------------------------------------------------------------------
 */

:root {
  /* ---- Color tokens ---- */
  --pr-ink: #0f3d3e;           /* passbook ink — headings, primary text */
  --pr-paper: #fbf7ee;         /* aged ledger paper — page background */
  --pr-paper-line: #c9d6d3;    /* ruled line on the paper */
  --pr-stamp: #9b2226;         /* rubber-stamp maroon — used sparingly */
  --pr-brass: #b08d57;         /* brass seal accent — progress, highlights */
  --pr-success: #3f6b4f;       /* muted ledger-green — approved/positive states */
  --pr-paper-raised: #ffffff;  /* card surface, slightly lifted off the paper */
  --pr-text-muted: #5b6b68;

  /* ---- Type tokens ---- */
  --pr-font-display: "Zilla Slab", "Noto Serif", Georgia, serif;
  --pr-font-body: "Source Sans 3", "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --pr-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- Layout tokens ---- */
  --pr-radius: 3px;           /* passbook pages are square-cornered, not app-rounded */
  --pr-stamp-radius: 50%;
  --pr-max-width: 760px;      /* narrow — a passbook page, not a marketing landing page */
}

.pr-scope {
  background: var(--pr-paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 35px,
    var(--pr-paper-line) 35px,
    var(--pr-paper-line) 36px
  );
  color: var(--pr-ink);
  font-family: var(--pr-font-body);
  line-height: 1.55;
  min-height: 100vh;
}

.pr-scope * {
  box-sizing: border-box;
}

.pr-container {
  max-width: var(--pr-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Hero: a live passbook entry, not a gradient banner ---- */
.pr-hero {
  padding: 56px 0 32px;
}

.pr-hero h1 {
  font-family: var(--pr-font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.pr-hero p.pr-subhead {
  font-size: 17px;
  color: var(--pr-text-muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

/* The signature element: a rotated rubber-stamp badge */
.pr-stamp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pr-stamp);
  color: var(--pr-stamp);
  font-family: var(--pr-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--pr-stamp-radius);
  transform: rotate(-6deg);
  opacity: 0.9;
}

/* ---- Ledger card: the sample entry shown in the hero ---- */
.pr-ledger-card {
  background: var(--pr-paper-raised);
  border: 1px solid var(--pr-paper-line);
  border-radius: var(--pr-radius);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: 0 1px 0 var(--pr-paper-line), 0 8px 24px -18px rgba(15, 61, 62, 0.4);
  position: relative;
}

.pr-ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--pr-paper-line);
  font-size: 15px;
}

.pr-ledger-row:last-child {
  border-bottom: none;
}

.pr-ledger-row .pr-label {
  color: var(--pr-text-muted);
}

.pr-ledger-row .pr-value {
  font-family: var(--pr-font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pr-ledger-row.pr-total .pr-value {
  color: var(--pr-stamp);
  font-size: 17px;
}

/* ---- CTA ---- */
.pr-btn {
  display: inline-block;
  font-family: var(--pr-font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--pr-radius);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pr-btn-primary {
  background: var(--pr-ink);
  color: var(--pr-paper);
}

.pr-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(15, 61, 62, 0.5);
}

.pr-btn-primary:focus-visible {
  outline: 3px solid var(--pr-brass);
  outline-offset: 2px;
}

/* ---- Step indicator: "passbook pages", not generic circles ---- */
.pr-page-tabs {
  display: flex;
  gap: 4px;
  margin: 32px 0 20px;
  border-bottom: 2px solid var(--pr-ink);
}

.pr-page-tab {
  font-family: var(--pr-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px 10px;
  color: var(--pr-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.pr-page-tab.pr-active {
  color: var(--pr-ink);
  font-weight: 700;
  border-bottom-color: var(--pr-stamp);
}

.pr-page-tab.pr-done::before {
  content: "✓ ";
  color: var(--pr-success);
}

/* ---- Form fields ---- */
.pr-field {
  margin-bottom: 20px;
}

.pr-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pr-field input,
.pr-field select,
.pr-field textarea {
  width: 100%;
  font-family: var(--pr-font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--pr-paper-line);
  border-radius: var(--pr-radius);
  background: var(--pr-paper-raised);
  color: var(--pr-ink);
}

.pr-field input:focus-visible,
.pr-field select:focus-visible,
.pr-field textarea:focus-visible {
  outline: 3px solid var(--pr-brass);
  outline-offset: 1px;
  border-color: var(--pr-ink);
}

.pr-field .pr-error {
  color: var(--pr-stamp);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.pr-field.pr-has-error input,
.pr-field.pr-has-error select {
  border-color: var(--pr-stamp);
}

.pr-field.pr-has-error .pr-error {
  display: block;
}

/* ---- Advanced assumptions (collapsible) ---- */
.pr-advanced {
  border: 1px dashed var(--pr-paper-line);
  border-radius: var(--pr-radius);
  padding: 10px 14px;
  margin: 4px 0 20px;
  background: rgba(176, 141, 87, 0.06);
}
.pr-advanced summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--pr-ink);
  padding: 4px 0;
}
.pr-advanced .pr-field { margin-top: 12px; }

/* ---- PDF download ---- */
.pr-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.pr-pdf-status {
  font-size: 13px;
  color: var(--pr-text-muted);
  margin-top: 8px;
}

/* ---- Long-form content sections (SEO depth, below/around the tool) ---- */
.pr-content { padding: 8px 0 32px; }
.pr-content h2 {
  font-family: var(--pr-font-display);
  font-size: 20px;
  margin: 32px 0 10px;
  color: var(--pr-ink);
}
.pr-content h3 {
  font-family: var(--pr-font-display);
  font-size: 16px;
  margin: 20px 0 6px;
  color: var(--pr-ink);
}
.pr-content p { margin: 0 0 12px; line-height: 1.65; }
.pr-content ul, .pr-content ol { margin: 0 0 12px; padding-left: 20px; line-height: 1.65; }
.pr-content li { margin-bottom: 6px; }
.pr-faq-item { border-bottom: 1px dashed var(--pr-paper-line); padding: 14px 0; }
.pr-faq-item:last-child { border-bottom: none; }
.pr-faq-item h3 { margin: 0 0 6px; }
.pr-breadcrumb { font-size: 13px; color: var(--pr-text-muted); margin-bottom: 16px; }
.pr-breadcrumb a { color: var(--pr-ink); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .pr-btn {
    transition: none;
  }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .pr-hero {
    padding: 32px 0 20px;
  }
  .pr-ledger-card {
    padding: 18px 16px;
  }
  .pr-ledger-row {
    font-size: 14px;
  }
}
