/* Facility Fit Snapshot — standalone stylesheet matched to the
   blackrock-website-v3 design system (charcoal / gold / paper, Cormorant
   Garamond display + Source Sans 3 body, cube + wordmark brand). No imports:
   this page no longer inherits the cannabis-lab-pivot sheet. */

:root {
  /* v3 tokens */
  --br-charcoal: #1a1a1f;
  --br-slate: #2d3436;
  --br-gold: #c9a227;
  --br-gold-hover: #a8861f;
  --br-sage: #6b8f71;
  --br-paper: #f4f1eb;
  --br-paper-2: #e8e4dc;
  --br-white: #fdfcfa;
  --br-text: #2c2c2c;
  --br-muted: #5a6470;
  --br-muted-dark: #b8c4ce;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* aliases for token names used by the wizard/report markup */
  --br-charcoal-900: var(--br-charcoal);
  --br-gold-500: var(--br-gold);
  --br-gold-600: var(--br-gold-hover);
  --br-sage-500: var(--br-sage);
  --br-sage-600: #5a7a60;
  --br-silver-300: var(--br-muted-dark);
  --br-text-muted: var(--br-muted);
  --br-rule: rgba(26, 26, 31, 0.22);
  --br-rule-light: rgba(26, 26, 31, 0.1);
  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 40px rgba(26, 26, 31, 0.08);
  --font-sub: 0.95rem;
  --font-sub-sm: 0.82rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--br-text);
  background: var(--br-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--br-gold);
  color: var(--br-charcoal);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— buttons (v3) —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--br-gold);
  color: var(--br-charcoal);
}

.btn--primary:hover {
  background: var(--br-gold-hover);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(26, 26, 31, 0.25);
  color: var(--br-text);
}

.btn--ghost:hover {
  border-color: var(--br-charcoal);
}

.assess-header .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--br-white);
}

.assess-header .btn--ghost:hover {
  border-color: var(--br-white);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--br-gold);
  margin: 0 0 0.75rem;
}

/* —— header: v3 charcoal bar with cube + wordmark —— */
.assess-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 31, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
}

.assess-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-pill {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-self: center;
}

.nav-pill a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--br-muted-dark);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-pill a:hover {
  color: var(--br-white);
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 920px) {
  .nav-pill {
    display: flex;
  }
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.assess-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.assess-header .logo__mark {
  height: 46px; /* +20% per owner */
  width: auto;
}

.assess-header .logo__word {
  height: 42px; /* wordmark sized up, matching the main-page header */
  width: auto;
}

/* —— intro: dark chapter band (v3 #sop treatment) —— */
.assess-hero {
  position: relative;
  background: var(--br-charcoal);
  color: var(--br-white);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}

.assess-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/atmosphere-band.webp") center / cover no-repeat;
  opacity: 0.35;
}

.assess-hero > .container {
  position: relative;
}

.assess-intro {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}

.assess-intro .display-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--br-white);
}

.assess-intro .lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--br-muted-dark);
  margin: 0 0 1.5rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  margin: 1.5rem 0 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 16.67%;
  background: linear-gradient(90deg, var(--br-gold), var(--br-gold-hover));
  transition: width 0.3s var(--ease);
}

.progress-label {
  font-size: var(--font-sub-sm);
  color: var(--br-muted-dark);
  font-weight: 600;
  margin: 0;
}

/* —— steps overview: the seven sections with time estimates —— */
.assess-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.9rem;
  max-width: 62rem;
  margin: 2.25rem auto 0;
  padding: 0;
  text-align: left;
}

.assess-steps li {
  border-top: 1px solid rgba(201, 162, 39, 0.45);
  padding-top: 0.55rem;
}

.assess-steps strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--br-white);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.assess-steps span {
  font-size: 0.75rem;
  color: var(--br-muted-dark);
}

/* completed sections turn the same gold as the rule above them */
.assess-steps li.is-done {
  border-top-color: var(--br-gold);
}

.assess-steps li.is-done strong {
  color: var(--br-gold);
}

/* the section you're on reads as a gold button with white text */
.assess-steps li.is-current {
  border-top-color: var(--br-gold);
}

.assess-steps li.is-current strong {
  display: inline-block;
  background: var(--br-gold);
  color: var(--br-white);
  padding: 0 0.4rem;
  margin-left: -0.4rem;
  border-radius: 0;
}

@media (max-width: 880px) {
  .assess-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— main —— */
.assess-main {
  padding: 0 0 4.5rem;
  background: var(--br-paper);
  min-height: 80vh;
}

.assess-body {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.assess-overview-figure {
  margin: 0 auto 2.25rem;
  max-width: 52rem;
}

.assess-overview-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--br-rule-light);
  box-shadow: var(--shadow-card);
}

.assess-overview-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--br-muted);
  text-align: center;
}

.form-errors {
  max-width: 44rem;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(155, 35, 53, 0.08);
  border: 1px solid rgba(155, 35, 53, 0.35);
  color: #9b2335;
  font-size: 0.9rem;
  font-weight: 600;
}

/* —— wizard card —— */
.assess-form {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--br-white);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--br-rule-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.wizard-step {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.wizard-step[hidden] {
  display: none !important;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--br-charcoal);
  margin: 0 0 0.35rem;
  padding: 0;
}

.field-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr 1fr;
}

.field--full {
  grid-column: 1 / -1;
}

@media (max-width: 540px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.field span,
.choice-group__label {
  display: block;
  font-size: var(--font-sub-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--br-charcoal);
}

.choice-group__label em {
  font-weight: 400;
  color: var(--br-muted);
}

.field input,
.field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--br-rule);
  border-radius: 0.35rem;
  font: inherit;
  background: var(--br-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--br-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

.field.is-invalid input,
.field.is-invalid select,
.choice-group.is-invalid .choice-card,
.choice-group.is-invalid .choice-check {
  border-color: #c53030;
}

.field small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--br-muted);
}

.step-lead {
  margin: 0 0 1.35rem;
  color: var(--br-muted);
  font-size: var(--font-sub);
  line-height: 1.55;
}

.path-suggest {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(26, 26, 31, 0.04));
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.path-suggest strong {
  color: var(--br-charcoal);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.55rem;
}

.choice-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--br-rule);
  border-radius: 0.35rem;
  cursor: pointer;
  font-size: 0.875rem;
  background: var(--br-paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-check:has(input:checked) {
  border-color: var(--br-gold);
  background: rgba(201, 162, 39, 0.12);
}

.choice-check input {
  margin: 0;
  accent-color: var(--br-gold-hover);
}

.choice-group {
  margin-top: 1.15rem;
}

.gap-sections {
  display: grid;
  gap: 1rem;
}

.gap-block {
  padding: 1rem;
  border: 1px solid var(--br-rule-light);
  border-radius: 0.5rem;
  background: var(--br-paper);
}

.gap-block__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--br-charcoal);
}

.gap-block__help {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--br-muted);
}

.gap-block.is-invalid {
  border-color: rgba(155, 35, 53, 0.45);
  box-shadow: 0 0 0 2px rgba(155, 35, 53, 0.08);
}

.field textarea {
  width: 100%;
  min-height: 5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--br-rule);
  border-radius: 0.35rem;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-note {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--br-muted);
  line-height: 1.45;
}

.wizard-nav button[hidden] {
  display: none !important;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.45rem;
  border: 1px solid var(--br-rule);
  border-radius: 0.35rem;
  background: var(--br-white);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.choice-card:last-child {
  margin-bottom: 0;
}

.choice-card:has(input:checked) {
  border-color: var(--br-gold-hover);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18);
  background: rgba(201, 162, 39, 0.06);
}

.choice-card input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--br-gold-hover);
}

.legal-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--br-muted);
  line-height: 1.45;
}

.wizard-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--br-rule-light);
}

.wizard-nav .btn {
  min-width: 8rem;
}

.wizard-nav .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* —— report —— */
.report-panel {
  max-width: 48rem;
  margin: 2rem auto 0;
  background: var(--br-white);
  border: 1px solid var(--br-rule-light);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-card);
}

.report-panel .display-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.25rem 0 0;
  color: var(--br-charcoal);
}

.report-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--br-charcoal);
  font-size: 0.9rem;
}

.report-disclaimer {
  font-size: var(--font-sub-sm);
  color: var(--br-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.report-body {
  margin-top: 1.5rem;
}

.report-metric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--br-paper);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--br-rule-light);
}

.metric-card .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--br-charcoal);
}

.metric-card .label {
  font-size: var(--font-sub-sm);
  color: var(--br-muted);
  margin-top: 0.25rem;
}

.report-section {
  margin-bottom: 1.25rem;
}

.report-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--br-charcoal);
}

.report-facts {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--br-charcoal);
  font-size: 0.925rem;
  line-height: 1.55;
}

.gap-list {
  list-style: none;
  padding: 0;
}

.gap-list li {
  padding: 0.35rem 0;
  font-size: var(--font-sub);
}

.gap-list .status-ready { color: #2d6a4f; }
.gap-list .status-gap { color: #9b2335; }
.gap-list .status-unknown { color: var(--br-muted); }

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--br-rule-light);
}

/* —— footer: matches the v3 main-page footer —— */
.assess-footer {
  background: #121216;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0;
  color: var(--br-muted-dark);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.5rem;
}

.footer-brand img {
  height: 49px; /* wordmark sized up, matching the main-page footer */
  width: auto;
}

.footer-brand img.footer-brand__mark {
  height: 53px; /* +20% per owner */
}

.footer-tagline {
  margin: 0;
  font-style: italic;
  color: var(--br-sage);
}

.footer-legal {
  margin: 0;
  max-width: 28rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.footer-legal p {
  margin: 0 0 0.6rem;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.state-warning {
  background: rgba(155, 35, 53, 0.1);
  border: 1px solid rgba(155, 35, 53, 0.35);
  color: #9b2335;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .assess-header,
  .assess-footer,
  .assess-hero,
  .wizard-nav,
  .report-actions,
  .assess-intro,
  .assess-overview-figure,
  #assess-form,
  .form-errors {
    display: none !important;
  }
  .report-panel {
    box-shadow: none;
    border: none;
    max-width: 100%;
  }
}
