/* Under New Construction — Blueprint Wash visual prototype
   SCOPE: body.unc-blueprint-wash only (Personal Assessment prototype).
   Do not apply site-wide. Controlled local prototype — no deployment. */

body.unc-blueprint-wash {
  --unc-bp-dust: rgba(35, 79, 115, 0.045);
  --unc-bp-dust-mid: rgba(47, 113, 148, 0.07);
  --unc-bp-guide: rgba(35, 79, 115, 0.1);
  --unc-bp-tick: rgba(35, 79, 115, 0.18);
  --unc-bp-field: rgba(255, 252, 247, 0.97);
  --unc-bp-field-solid: #fffcf7;
  --unc-bp-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M56 0H0v56' fill='none' stroke='%23234f73' stroke-opacity='0.055' stroke-width='1'/%3E%3C/svg%3E");
  --unc-bp-grid-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M14 0H0v14' fill='none' stroke='%232f7194' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
}

/* Working background: warm parchment kept; dusty-blue drafting felt, not announced */
body.unc-blueprint-wash main.page.wmin-page {
  background:
    linear-gradient(180deg, #f8f5ef 0%, var(--wmin-parchment, #f7f3ec) 24%, #f3efe6 100%);
}

body.unc-blueprint-wash main.page.wmin-page::before {
  background-image:
    var(--wmin-grain),
    var(--unc-bp-grid-fine),
    var(--unc-bp-grid);
  opacity: 0.72;
}

/* Architectural guides + delicate corner registration marks (edges only) */
body.unc-blueprint-wash main.page.wmin-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* soft vertical guide near left edge */
    linear-gradient(90deg, transparent 0, transparent calc(50% - 23.5rem), var(--unc-bp-guide) calc(50% - 23.5rem), var(--unc-bp-guide) calc(50% - 23.5rem + 1px), transparent calc(50% - 23.5rem + 1px)),
    /* soft vertical guide near right edge of content column */
    linear-gradient(90deg, transparent 0, transparent calc(50% + 23.5rem), var(--unc-bp-guide) calc(50% + 23.5rem), var(--unc-bp-guide) calc(50% + 23.5rem + 1px), transparent calc(50% + 23.5rem + 1px)),
    /* top horizontal whisper */
    linear-gradient(180deg, transparent 0, transparent 4.25rem, var(--unc-bp-dust-mid) 4.25rem, var(--unc-bp-dust-mid) calc(4.25rem + 1px), transparent calc(4.25rem + 1px)),
    /* corner registration — top-left */
    linear-gradient(90deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) 1.15rem 1.15rem / 12px 1px no-repeat,
    linear-gradient(180deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) 1.15rem 1.15rem / 1px 12px no-repeat,
    /* top-right */
    linear-gradient(270deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) calc(100% - 1.15rem) 1.15rem / 12px 1px no-repeat,
    linear-gradient(180deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) calc(100% - 1.15rem) 1.15rem / 1px 12px no-repeat,
    /* bottom-left */
    linear-gradient(90deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) 1.15rem calc(100% - 1.15rem) / 12px 1px no-repeat,
    linear-gradient(0deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) 1.15rem calc(100% - 1.15rem) / 1px 12px no-repeat,
    /* bottom-right */
    linear-gradient(270deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) calc(100% - 1.15rem) calc(100% - 1.15rem) / 12px 1px no-repeat,
    linear-gradient(0deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 12px, transparent 12px) calc(100% - 1.15rem) calc(100% - 1.15rem) / 1px 12px no-repeat;
  opacity: 0.85;
}

/* Calm warm fields — no distracting grid behind reading/entry surfaces */
body.unc-blueprint-wash .unc-panel,
body.unc-blueprint-wash .unc-intro,
body.unc-blueprint-wash #unc-assessment-shell {
  position: relative;
}

body.unc-blueprint-wash .unc-panel {
  background: var(--unc-bp-field);
  border-color: rgba(107, 83, 68, 0.14);
  border-left: 2px solid rgba(35, 79, 115, 0.42);
  box-shadow: none;
}

body.unc-blueprint-wash .unc-field textarea,
body.unc-blueprint-wash .unc-field input[type="text"],
body.unc-blueprint-wash .unc-field select {
  background: var(--unc-bp-field-solid);
  border-color: rgba(107, 83, 68, 0.2);
}

body.unc-blueprint-wash .unc-progress__track {
  background: rgba(35, 79, 115, 0.06);
}

body.unc-blueprint-wash .unc-kicker {
  color: var(--unc-ink, #234f73);
  letter-spacing: 0.16em;
}

body.unc-blueprint-wash .unc-page-title {
  border-bottom: 1px solid rgba(35, 79, 115, 0.12);
  padding-bottom: 0.55rem;
}

/* —— Journey strip redesign (Assessment prototype only) ——
   Soft GH button language; light; not institutional tabs; not a tracker. */
body.unc-blueprint-wash .unc-journey-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0 0 1.35rem;
  padding: 0.35rem 0 0.85rem;
  border: none;
  border-bottom: 1px solid rgba(35, 79, 115, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.unc-blueprint-wash .unc-journey-strip__label {
  margin: 0;
  width: 100%;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--unc-muted, #5c6f7f);
}

body.unc-blueprint-wash .unc-journey-strip__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

body.unc-blueprint-wash .unc-journey-strip__steps li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--unc-muted, #5c6f7f);
}

/* Soft connectors instead of heavy arrows */
body.unc-blueprint-wash .unc-journey-strip__steps li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 1px;
  margin: 0 0.3rem 0 0.45rem;
  background: rgba(35, 79, 115, 0.28);
  vertical-align: middle;
}

body.unc-blueprint-wash .unc-journey-strip__steps [data-step] {
  padding: 0;
  border-bottom: none;
  font-weight: inherit;
  color: inherit;
}

/* Neutralize shared workbook strip current-state underline on the <li> */
body.unc-blueprint-wash .unc-journey-strip[data-current="assessment"] [data-step="assessment"],
body.unc-blueprint-wash .unc-journey-strip[data-current="map"] [data-step="map"],
body.unc-blueprint-wash .unc-journey-strip[data-current="choose"] [data-step="choose"],
body.unc-blueprint-wash .unc-journey-strip[data-current="blueprint"] [data-step="blueprint"],
body.unc-blueprint-wash .unc-journey-strip[data-current="work-lane"] [data-step="work-lane"],
body.unc-blueprint-wash .unc-journey-strip[data-current="maintenance"] [data-step="maintenance"] {
  color: inherit;
  font-weight: inherit;
  border-bottom: none;
}

body.unc-blueprint-wash .unc-journey-strip__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.78rem;
  border: 1px solid rgba(35, 79, 115, 0.16);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.82);
  color: var(--unc-muted, #5c6f7f);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

body.unc-blueprint-wash a.unc-journey-strip__step:hover,
body.unc-blueprint-wash a.unc-journey-strip__step:focus-visible {
  border-color: rgba(35, 79, 115, 0.4);
  color: var(--unc-ink-deep, #1a3a56);
  background: rgba(255, 252, 247, 0.98);
  outline: none;
}

body.unc-blueprint-wash a.unc-journey-strip__step:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 252, 247, 0.95), 0 0 0 3px rgba(35, 79, 115, 0.45);
}

/* Prepared / not-yet-linked stages — visually ready, not interactive */
body.unc-blueprint-wash .unc-journey-strip__step--prepared {
  border-style: dashed;
  border-color: rgba(35, 79, 115, 0.14);
  background: rgba(255, 252, 247, 0.55);
  color: rgba(92, 111, 127, 0.85);
  cursor: default;
}

/* Current location — Assessment */
body.unc-blueprint-wash .unc-journey-strip[data-current="assessment"] [data-step="assessment"] .unc-journey-strip__step,
body.unc-blueprint-wash .unc-journey-strip__step[aria-current="page"] {
  color: var(--unc-ink-deep, #1a3a56);
  font-weight: 700;
  border-color: rgba(35, 79, 115, 0.42);
  border-style: solid;
  background: rgba(35, 79, 115, 0.08);
  box-shadow: inset 0 0 0 1px rgba(35, 79, 115, 0.06);
}

body.unc-blueprint-wash .unc-journey-strip__map {
  margin-left: auto;
  padding: 0.2rem 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--unc-ink, #234f73);
  border-bottom: 1px solid rgba(35, 79, 115, 0.28);
  white-space: nowrap;
}

body.unc-blueprint-wash .unc-journey-strip__map:hover,
body.unc-blueprint-wash .unc-journey-strip__map:focus-visible {
  text-decoration: none;
  border-bottom-color: rgba(35, 79, 115, 0.65);
  color: var(--unc-ink-deep, #1a3a56);
}

@media (max-width: 720px) {
  body.unc-blueprint-wash .unc-journey-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  body.unc-blueprint-wash .unc-journey-strip__map {
    margin-left: 0;
  }

  body.unc-blueprint-wash .unc-journey-strip__steps li:not(:last-child)::after {
    width: 0.4rem;
    margin: 0 0.2rem 0 0.35rem;
  }

  body.unc-blueprint-wash .unc-journey-strip__step {
    min-height: 1.9rem;
    padding: 0.26rem 0.68rem;
    font-size: 0.72rem;
  }

  /* Soften edge guides on narrow viewports so they don't crowd content */
  body.unc-blueprint-wash main.page.wmin-page::after {
    opacity: 0.55;
    background:
      linear-gradient(90deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) 0.75rem 0.85rem / 10px 1px no-repeat,
      linear-gradient(180deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) 0.75rem 0.85rem / 1px 10px no-repeat,
      linear-gradient(270deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) calc(100% - 0.75rem) 0.85rem / 10px 1px no-repeat,
      linear-gradient(180deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) calc(100% - 0.75rem) 0.85rem / 1px 10px no-repeat,
      linear-gradient(90deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) 0.75rem calc(100% - 0.85rem) / 10px 1px no-repeat,
      linear-gradient(0deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) 0.75rem calc(100% - 0.85rem) / 1px 10px no-repeat,
      linear-gradient(270deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) calc(100% - 0.75rem) calc(100% - 0.85rem) / 10px 1px no-repeat,
      linear-gradient(0deg, var(--unc-bp-tick) 0, var(--unc-bp-tick) 10px, transparent 10px) calc(100% - 0.75rem) calc(100% - 0.85rem) / 1px 10px no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.unc-blueprint-wash .unc-journey-strip__step {
    transition: none;
  }
}

/* Print: remove blueprint decoration; keep calm fields */
@media print {
  body.unc-blueprint-wash main.page.wmin-page {
    background: #fff;
  }

  body.unc-blueprint-wash main.page.wmin-page::before,
  body.unc-blueprint-wash main.page.wmin-page::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }

  body.unc-blueprint-wash .unc-panel {
    background: #fff;
    border-left-color: #999;
    box-shadow: none;
  }

  body.unc-blueprint-wash .unc-page-title {
    border-bottom: none;
    padding-bottom: 0;
  }

  body.unc-blueprint-wash .unc-journey-strip {
    display: none !important;
  }
}
