/** Candidate 07: Blueprint-only hierarchy, disclosure parity and responsive pill layout. */

.tsr-blueprint-three-part-body {
  --tsr-company-page: #0b0d0f;
  --tsr-company-surface: #121519;
  --tsr-company-border: #2b313a;
  --tsr-company-border-strong: #444c58;
  --tsr-company-text: #f5f7fa;
  --tsr-company-muted: #b7c0cc;
  --tsr-company-subtle: #87919e;
  --tsr-company-gold: #ff9e09;
  --tsr-blueprint-derived: #29b6f6;
  --tsr-company-container: 1240px;
  --tsr-company-gutter: clamp(20px, 4vw, 48px);
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  background: var(--tsr-company-page);
  color: var(--tsr-company-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-company-header,
.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills,
.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure,
.tsr-blueprint-three-part-body > .tsr-company-disclosure-section {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  color: var(--tsr-company-text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

/* Use the same effective content width and side gutters for all plugin-owned
 * Blueprint elements. The owner-supplied HTML remains outside these selectors. */
.tsr-blueprint-three-part-body > .tsr-blueprint-company-header > .tsr-company-profile-wrap,
.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills > .tsr-company-profile-wrap,
.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure > .tsr-company-profile-wrap,
.tsr-blueprint-three-part-body > .tsr-company-disclosure-section > .tsr-company-profile-wrap {
  box-sizing: border-box !important;
  width: calc(100% - (2 * var(--tsr-company-gutter))) !important;
  max-width: min(var(--tsr-company-container), calc(100dvw - (2 * var(--tsr-company-gutter)))) !important;
  margin-inline: auto !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-company-header {
  padding: clamp(42px, 6vw, 76px) 0 0 !important;
  border: 0 !important;
  background: var(--tsr-company-page) !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-company-header h1 {
  margin: 0 !important;
  color: var(--tsr-company-text) !important;
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(44px, 5.4vw, 78px) !important;
  font-weight: 875 !important;
  letter-spacing: -.05em !important;
  line-height: .98 !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}

/* Keep the first pill visibly clear of the preceding heading and let every
 * applicable pill share one natural horizontal row that wraps as required. */
.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills {
  padding: clamp(24px, 3.5vw, 38px) 0 clamp(28px, 4vw, 46px) !important;
  border: 0 !important;
  background: var(--tsr-company-page) !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-company-header .tsr-company-profile-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tsr-blueprint-three-part-body .tsr-blueprint-last-updated {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 600px) {
  .tsr-blueprint-three-part-body > .tsr-blueprint-company-header .tsr-company-profile-wrap {
    flex-direction: column;
  }

  .tsr-blueprint-three-part-body .tsr-blueprint-last-updated {
    margin-left: 0;
  }
}

.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills .tsr-company-pill-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 10px 12px !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills .tsr-company-pill-row {
  display: contents !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills .tsr-company-last-updated {
  margin-left: 0 !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills .tsr-pill {
  box-sizing: border-box !important;
  flex: 0 1 auto !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* A compensated derivative is materially different from direct compensation.
 * Use the existing T$R system blue so it cannot be mistaken for a gold pill. */
.tsr-blueprint-three-part-body .tsr-content-compensation-derived_compensated_content {
  border-color: rgba(41, 182, 246, .82) !important;
  background: rgba(41, 182, 246, .10) !important;
  color: var(--tsr-blueprint-derived) !important;
}

.tsr-blueprint-three-part-body a.tsr-content-compensation-derived_compensated_content:hover,
.tsr-blueprint-three-part-body a.tsr-content-compensation-derived_compensated_content:focus-visible {
  border-color: #56c8fa !important;
  color: #56c8fa !important;
  outline-color: var(--tsr-blueprint-derived) !important;
}

/* Reassert the exact Profile disclosure component after any owner Blueprint CSS. */
.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure {
  padding: 0 0 clamp(44px, 6vw, 74px) !important;
  border: 0 !important;
  background: var(--tsr-company-page) !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure .tsr-company-hero-disclosure {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 28px !important;
  border: 1px solid rgba(255, 158, 9, .46) !important;
  border-radius: 20px !important;
  background: rgba(18, 21, 25, .92) !important;
  color: var(--tsr-company-text) !important;
}

.tsr-blueprint-three-part-body > .tsr-company-disclosure-section {
  padding: clamp(36px, 5vw, 58px) 0 !important;
  border-top: 1px solid var(--tsr-company-border) !important;
  border-bottom: 1px solid var(--tsr-company-border) !important;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 158, 9, .10), transparent 33%),
    var(--tsr-company-page) !important;
}

.tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-panel {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 28px !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border: 1px solid rgba(255, 158, 9, .50) !important;
  border-radius: 18px !important;
  background: rgba(18, 21, 25, .92) !important;
  color: var(--tsr-company-text) !important;
}

.tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-mark {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: 68px !important;
  height: 68px !important;
  border: 1px solid rgba(255, 158, 9, .50) !important;
  border-radius: 17px !important;
  background: rgba(255, 158, 9, .09) !important;
  color: var(--tsr-company-gold) !important;
}

.tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-mark .tsr-icon {
  width: 40px !important;
  height: 40px !important;
  color: var(--tsr-company-gold) !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure .tsr-company-component-label,
.tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-component-label {
  margin: 0 !important;
  color: var(--tsr-company-gold) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .105em !important;
  line-height: 1.45 !important;
  text-transform: uppercase !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure h2 {
  margin: 8px 0 20px !important;
  color: var(--tsr-company-text) !important;
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 27px !important;
  font-weight: 850 !important;
  letter-spacing: -.025em !important;
  line-height: 1.1 !important;
}

.tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-panel h2 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 10px 0 0 !important;
  color: var(--tsr-company-text) !important;
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(35px, 4vw, 54px) !important;
  font-weight: 870 !important;
  letter-spacing: -.04em !important;
  line-height: 1.02 !important;
  text-wrap: balance !important;
}

.tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-heading-icon {
  color: var(--tsr-company-gold) !important;
}

.tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure p:not(.tsr-company-component-label),
.tsr-blueprint-three-part-body > .tsr-company-disclosure-section p:not(.tsr-company-component-label),
.tsr-blueprint-three-part-body > .tsr-company-disclosure-section li {
  color: var(--tsr-company-muted) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

@media (max-width: 760px) {
  .tsr-blueprint-three-part-body > .tsr-blueprint-company-header h1 {
    font-size: clamp(38px, 11vw, 56px) !important;
  }

  .tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills .tsr-company-pill-layout {
    align-items: flex-start !important;
    gap: 9px !important;
  }

  .tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills .tsr-pill {
    min-height: 38px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
  }
}

/* Match the Profile disclosure cards at its established mobile breakpoints. */
@media (max-width: 720px) {
  .tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure .tsr-company-hero-disclosure {
    padding: 24px !important;
  }

  .tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-panel {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 26px !important;
  }

  .tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-mark {
    width: 58px !important;
    height: 58px !important;
    border-radius: 15px !important;
    font-size: 27px !important;
  }
}

@media (max-width: 620px) {
  .tsr-blueprint-three-part-body {
    --tsr-company-gutter: 18px;
  }

  .tsr-blueprint-three-part-body > .tsr-blueprint-summary-disclosure .tsr-company-hero-disclosure {
    padding: 22px !important;
  }

  .tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-panel {
    padding: 22px !important;
  }

  .tsr-blueprint-three-part-body > .tsr-company-disclosure-section .tsr-company-disclosure-panel h2 {
    font-size: clamp(32px, 10.5vw, 44px) !important;
  }
}

/** Candidate 21 private Blueprint validation and non-destructive repair review. */
.tsr-company-admin .tsr-c21-validation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.tsr-company-admin .tsr-c21-severity {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid #8c8f94;
  border-radius: 999px;
  background: #fff;
  color: #1d2327;
  font-weight: 650;
}

.tsr-company-admin .tsr-c21-severity--blocker { border-color: #b32d2e; color: #8a2424; }
.tsr-company-admin .tsr-c21-severity--warning { border-color: #996800; color: #6d4a00; }
.tsr-company-admin .tsr-c21-severity--info { border-color: #2271b1; color: #135e96; }

.tsr-company-admin .tsr-c21-hash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}

.tsr-company-admin .tsr-c21-hash-grid > div,
.tsr-company-admin .tsr-c21-finding {
  min-width: 0;
  padding: 12px;
  border: 1px solid #c3c4c7;
  border-radius: 5px;
  background: #fff;
}

.tsr-company-admin .tsr-c21-hash-grid dt { font-weight: 650; }
.tsr-company-admin .tsr-c21-hash-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.tsr-company-admin .tsr-c21-finding-list { display: grid; gap: 10px; margin-top: 16px; }
.tsr-company-admin .tsr-c21-finding--blocker { border-left: 4px solid #b32d2e; }
.tsr-company-admin .tsr-c21-finding--warning { border-left: 4px solid #996800; }
.tsr-company-admin .tsr-c21-finding--informational { border-left: 4px solid #2271b1; }
.tsr-company-admin .tsr-c21-finding summary { cursor: pointer; line-height: 1.5; }
.tsr-company-admin .tsr-c21-finding summary span { color: #50575e; font-weight: 400; }
.tsr-company-admin .tsr-c21-code-preview {
  box-sizing: border-box;
  max-width: 100%;
  max-height: 18rem;
  overflow: auto;
  padding: 12px;
  border: 1px solid #8c8f94;
  background: #f6f7f7;
  color: #1d2327;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tsr-company-admin .tsr-c21-approval-current {
  padding: 8px 10px;
  border-left: 4px solid #00a32a;
  background: #edfaef;
}
.tsr-company-admin #tsr-c21-repair-status:not(:empty) { margin-top: 10px; font-weight: 650; }

@media (max-width: 420px) {
	.tsr-company-admin > table.widefat,
	.tsr-company-admin > .tsr-admin-panel > table.widefat {
		box-sizing: border-box;
		display: block;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
	}

  .tsr-blueprint-three-part-body > .tsr-blueprint-disclosure-pills .tsr-pill {
    width: 100% !important;
  }
}

/* Candidate 28 final semantic pill palette. These higher-specificity rules are
 * deliberately last so retained Candidate 06/07 Blueprint colors cannot change
 * the approved compensation meaning. Visible labels and icons remain primary. */
.tsr-blueprint-three-part-body .tsr-content-compensation-compensated_content.tsr-pill,
.tsr-blueprint-three-part-body .tsr-content-compensation-derived_compensated_content.tsr-pill {
  border-color: #c47a3a !important;
  background: rgba(196, 122, 58, .13) !important;
  color: #e8aa77 !important;
}

.tsr-blueprint-three-part-body .tsr-content-compensation-no_direct_compensation.tsr-pill {
  border-color: #38c980 !important;
  background: #0b2419 !important;
  color: #d9fbe7 !important;
}

.tsr-blueprint-three-part-body .tsr-prior-content-compensation-pill.tsr-pill {
  border-color: #a9afb8 !important;
  background: rgba(169, 175, 184, .08) !important;
  color: #a9afb8 !important;
}

.tsr-blueprint-three-part-body a:is(.tsr-content-compensation-compensated_content, .tsr-content-compensation-derived_compensated_content).tsr-pill:hover,
.tsr-blueprint-three-part-body a:is(.tsr-content-compensation-compensated_content, .tsr-content-compensation-derived_compensated_content).tsr-pill:focus-visible {
  border-color: #e8aa77 !important;
  color: #ffd9b8 !important;
  outline-color: #e8aa77 !important;
}

.tsr-blueprint-three-part-body a.tsr-content-compensation-no_direct_compensation.tsr-pill:hover,
.tsr-blueprint-three-part-body a.tsr-content-compensation-no_direct_compensation.tsr-pill:focus-visible {
  border-color: #70e7aa !important;
  color: #effff5 !important;
  outline-color: #70e7aa !important;
}

.tsr-blueprint-three-part-body a.tsr-prior-content-compensation-pill.tsr-pill:hover,
.tsr-blueprint-three-part-body a.tsr-prior-content-compensation-pill.tsr-pill:focus-visible {
  border-color: #d7dce3 !important;
  color: #f2f4f7 !important;
  outline-color: #a9afb8 !important;
}
