/* ==========================================================
   FMRG Theme: PCRC — Prime Consciousness Reconstruction Center
   自然人意识重构中心
   "Realign the Self."

   Usage: add class="theme-pcrc" to .page
   ========================================================== */

.theme-pcrc{
  /* — Color System (matte, cool, desaturated blue-grey) — */
  --ink:          #16171c;
  --muted:        #7b7e8a;
  --line:         #3c3e48;
  --thin:         rgba(60,62,72,.16);
  --bg:           #f7f7f9;
  --accent:       #6a7b9a;          /* desaturated blue-grey */
  --accent-light: rgba(106,123,154,.06);
  --accent-mid:   rgba(106,123,154,.20);

  /* — Borders (restrained, thinner primary) — */
  --b1: 1px solid var(--line);
  --b0: 1px solid var(--thin);

  /* — Letterhead — */
  --lh-h:       120px;
  --lh-logo-h:  68px;
  --lh-pad-x:   24px;
  --lh-gap:     14px;

  /* — Background Texture — */
  --fog-opacity:      .030;
  --fracture-opacity: .022;
  --axis-opacity:     .045;

  /* — Watermark — */
  --wm-opacity:      .032;
  --wm-color:        var(--ink);
  --wm-rotate:       0deg;
  --wm-letterspace:  .45em;

  /* — Stamp — */
  --stamp-size:      126px;
  --stamp-ink:       var(--accent);
  --stamp-opacity:   .09;
  --stamp-rotate:    -4deg;
  --stamp-x:         0px;
  --stamp-y:         0px;

  /* — Footer Banner — */
  --fb-bg:       rgba(106,123,154,.035);
  --fb-border:   rgba(106,123,154,.14);
}


/* ==========================================================
   LETTERHEAD — matte fog gradient, restrained separator
   ========================================================== */
.page.theme-pcrc .letterhead{
  background:
    linear-gradient(to bottom,
      rgba(60,62,72,.03) 0%,
      rgba(60,62,72,.008) 60%,
      transparent 100%
    );
  border-bottom: 1.5px solid var(--line);
}


/* ==========================================================
   PAPER TEXTURE — Fog Gradient + Fracture Geometry + Axis
   ========================================================== */
.page.theme-pcrc::before{
  content:"";
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    /* L1 — matte fog: cool top → pale bottom */
    linear-gradient(
      to bottom,
      rgba(60,62,72,var(--fog-opacity)) 0%,
      rgba(60,62,72,.008) 40%,
      transparent 70%
    ),
    /* L2 — fracture slab A: large diagonal shard, upper-left */
    linear-gradient(
      158deg,
      transparent 20%,
      rgba(106,123,154,var(--fracture-opacity)) 20%,
      rgba(106,123,154,var(--fracture-opacity)) 22%,
      transparent 22%
    ),
    /* L3 — fracture slab B: large diagonal shard, lower-right */
    linear-gradient(
      -25deg,
      transparent 68%,
      rgba(60,62,72,var(--fracture-opacity)) 68%,
      rgba(60,62,72,var(--fracture-opacity)) 70%,
      transparent 70%
    ),
    /* L4 — fracture slab C: horizontal shift, mid-page */
    linear-gradient(
      92deg,
      transparent 42%,
      rgba(106,123,154,var(--fracture-opacity)) 42%,
      rgba(106,123,154,var(--fracture-opacity)) 42.4%,
      transparent 42.4%
    ),
    /* L5 — central axis line (alignment reference) */
    linear-gradient(
      90deg,
      transparent calc(50% - 1px),
      rgba(60,62,72,var(--axis-opacity)) calc(50% - 1px),
      rgba(60,62,72,var(--axis-opacity)) calc(50% + 1px),
      transparent calc(50% + 1px)
    );
  background-size: 100% 100%;
}


/* ==========================================================
   WATERMARK — centered, no rotation, wide tracking
   ========================================================== */
.page.theme-pcrc .watermark .wm-text{
  font-size: 60px;
  letter-spacing: var(--wm-letterspace);
  transform: rotate(var(--wm-rotate));
}


/* ==========================================================
   CHIP — restrained, cool-tinted
   ========================================================== */
.page.theme-pcrc .chip{
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--accent-light);
}


/* ==========================================================
   STAMP — certification / realignment seal (fine, upright)
   ========================================================== */
.page.theme-pcrc .stamp{
  transform: rotate(var(--stamp-rotate));
  border-width: 2px;
  border-color: rgba(106,123,154,.30);
  color: var(--accent);
}


/* ==========================================================
   HEADER — accent-tinted separator
   ========================================================== */
.page.theme-pcrc .header{
  border-color: var(--line);
}
.page.theme-pcrc .section-title{
  border-bottom: 1px solid rgba(106,123,154,.10);
  padding-bottom: 8px;
}


/* ==========================================================
   PRINT OVERRIDES (PCRC-specific)
   ========================================================== */
@media print{
  .page.theme-pcrc::before{
    /* keep fog very faint, suppress fractures */
    background:
      linear-gradient(
        to bottom,
        rgba(60,62,72,.015) 0%,
        transparent 50%
      ),
      linear-gradient(
        90deg,
        transparent calc(50% - 1px),
        rgba(60,62,72,.02) calc(50% - 1px),
        rgba(60,62,72,.02) calc(50% + 1px),
        transparent calc(50% + 1px)
      );
    background-size: 100% 100%;
  }
}
