.report-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.report-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.report-date {
  color: #666;
  font-size: 0.95rem;
}

.report-section,
.dashboard-section {
  margin-bottom: 1.5em;
  padding: 2em 3em 3em 3em;
  background: var(--color-white);
  border-start-start-radius: 2em;
  border-end-end-radius: 2em;
  position: relative;
  background: var(--color-white);

  /* Create gradient border using pseudo-element */
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to right, var(--color-gold) 0% 25%, var(--color-orange) 37.5% 62.5%, var(--color-green) 75% 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
  }

  /* Ensure content appears above the border */
  > * {
    position: relative;
    z-index: 1;
  }

  ul li {
    padding: 0.5em 0;
    border-top: 2px solid var(--color-cream);

    &:last-child {
      border-bottom: 2px solid var(--color-cream);
    }
  }
}

.report-subsection {
  margin-bottom: 3em;

  &:last-child {
    margin-bottom: 0;
  }
}

.report-highlight {
  margin: 1rem 0;
  padding: 1.5em;
  background: var(--color-gold-light);
  border-start-start-radius: 0.5em;
  border-end-end-radius: 0.5em;
  color: var(--color-orange);
  line-height: 1.3;
  font-weight: 600;

  p {
    font-size: 1.25em;
    margin: 0;
  }
}

.report-intro {
  color: var(--color-orange);
  font-size: 1.25em;
  margin: 0 0 2em 0;
  font-weight: 600;
  line-height: 1.3;
}

.report-lists,
.report-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2em;
}

.columns-narrow {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.highlight-grid.columns-narrow,
.report-columns.columns-narrow {
    gap: 1rem;
}

.report-list,
.report-column {
  h3 {
    font-size: 1.25em;
    text-align: left;
    margin-bottom: 0.5em;
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  li {
    padding: 0.5em 1em 0.5em 0;
    border-top: 2px solid var(--color-cream);

    &:last-child {
      border-bottom: 2px solid var(--color-cream);
    }
  }
}

.report-actions {
  text-align: center;
}

.transformation-pace h3 {
  text-align: center;
  font-size: 1.25em;
}


/* Current State */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  margin: 2em 0;
  gap: 1em;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 0.875em;
  font-weight: bold;
}

.stat-value {
  font-size: 1.25em;
  font-weight: bold;
  color: var(--color-deep-green);
}

/* Task Profile Bar */
.task-bar {
  display: flex;
  height: 9px;
  margin: 1em 0 3em 0;
  border-radius: 8px;
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;

  .bar-label {
    position: relative;
    top: 17px;
    color: var(--color-deep-green);
  }

  &:first-child {
    border-start-start-radius: 8px;
    border-end-start-radius: 8px;
  }

  &:last-child {
    border-start-end-radius: 8px;
    border-end-end-radius: 8px;
  }
}

.bar-segment.help-me {
  background: var(--color-indicator-orange);
  background: linear-gradient(to right, var(--color-gold), var(--color-orange));
}

.bar-segment.keep-it {
  background: var(--color-indicator-green);
  /* background: linear-gradient(to right, var(--color-green), var(--color-deep-green)); */
}

.bar-segment.unsure {
  background: var(--color-gray-medium-light);
}

.task-interpretation {
  margin: 2rem 0;
  padding: 1.5em;
  background: var(--color-gold-light);
  border-start-start-radius: 0.5em;
  border-end-end-radius: 0.5em;
  color: var(--color-orange);
  line-height: 1.3;

  p {
    font-size: 1.25em;
    margin: 0;
  }
}

/* Risk Section */
.risk-header {
  display: flex;
  align-items: center;
  gap: 3em;
  padding: 0 1.5em;
  text-align: center;
}

.risk-badge {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.risk-badge-high {
  background: var(--color-indicator-red);
  color: white;
}

.risk-badge-medium {
  background: var(--color-indicator-orange);
  color: white;
}

.risk-badge-low {
  background: var(--color-indicator-green);
  color: white;
}

.risk-score {
  text-align: center;
}

.score-number {
  font-size: 3rem;
  font-weight: normal;
  line-height: 1;

  &:after {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    margin-left: 0.5rem;
    background-color: var(--color-gray-medium);
    position: relative;
    top: -0.5rem;
  }
}

.risk-score-high .score-number:after {
  background-color: var(--color-indicator-red);
}

.risk-score-medium .score-number:after {
  background-color: var(--color-indicator-orange);
}

.risk-score-low .score-number:after {
  background-color: var(--color-indicator-green);
}

.score-label,
.urgency-label {
  font-size: 0.875em;
  font-weight: bold;
}

.urgency-value {
  font-size: 1.25em;
  margin-top: 0.375em;
  color: var(--color-deep-green);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
  align-content: center;
}

/* Task Breakdown */
.task-category {
  margin: 3rem 0;

  &:last-of-type {
    margin-bottom: 0;
  }
}

.category-title {
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 0;
  border-top: 2px solid var(--color-cream);

  &:last-child {
    border-bottom: 2px solid var(--color-cream);
  }
}

.task-name {
  flex: 1;
  font-weight: 500;
}

.automation-badge,
.value-badge {
  font-weight: bold;
  white-space: nowrap;
  font-size: 0.875em;

  &:after {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    margin-left: 0.25em;
    background-color: var(--color-gray-medium);
    position: relative;
    top: 0.25em;
  }
}

.task-item.automation-medium .automation-badge:after {
  background: var(--color-indicator-yellow);
}

.task-item.automation-high .automation-badge:after {
  background: var(--color-indicator-orange);
}

.task-item.automation-immediate .automation-badge:after {
  background: var(--color-indicator-red);
}

.value-badge:after {
  background: var(--color-indicator-green);
}

.category-note {
  color: var(--color-deep-green);
  margin-top: 0.5em;
}

/* Skills Section */
.skill-category {
  margin: 3em 0;

  h3 {
    text-align: left;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

.category-intro {
  font-weight: 500;
  margin-bottom: 1em;
  /* text-align: center; */
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-item {
  border-top: 2px solid var(--color-cream);
  padding-top: 0.5em;
  padding-bottom: 1em;

  strong {
    font-size: 1.25em;
    color: var(--color-orange);
  }

  &:last-child {
    border-bottom: 2px solid var(--color-cream);
  }
}

/* Evolution Path */
.path-header {
  margin-bottom: 1em;
}

.path-name {
  color: var(--color-orange);
  text-align: left;
  margin-bottom: 0.25em;
}

.path-transition {
  display: flex;
  align-items: top;
  gap: 1em;
  padding: 0 1.5em;
  margin-top: -1em;
  margin-bottom: 3em;
  justify-content: center;
  text-align: center;
  text-wrap: balance;
}

.from-state,
.to-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-gold-light);
  border-radius: 2em;
}

.from-state .value,
.to-state .value {
  font-size: 1.25em;
  font-weight: 600;
  color: var(--color-deep-green);
  padding: 1em 1.5em;
  border-radius: 3em;
  height: 100%;
  align-content: center;
  text-align: center;
  line-height: 1.3;
}

.arrow {
  font-size: 3rem;
  color: var(--color-green);
  align-content: center;
}

.path-details ul {
  margin: 0.75em 0 0 0;
  padding: 0;
}

.path-details li {
  padding: 0.5rem 0;
  border-top: 2px solid var(--color-cream);

  &:last-child {
    border-bottom: 2px solid var(--color-cream);
  }
}

/* Value Proposition */
.value-summary {
  margin: 2rem 0;
  padding: 1.5em;
  background: var(--color-gold-light);
  border-start-start-radius: 0.5em;
  border-end-end-radius: 0.5em;
  color: var(--color-orange);
  /* font-weight: bold; */
  line-height: 1.3;
}

.summary-text {
  font-size: 1.25em;
  margin: 0;
}

.value-components {
  /* display: grid; */
  margin-top: 2rem;
}

.value-component {
  padding: 1.5rem 0;

  &:first-child {
    padding-top: 0;
  }

  ul {
    li {
      padding: 0.5rem 0;
      border-top: 2px solid var(--color-cream);

      &:last-child {
        border-bottom: 2px solid var(--color-cream);
      }
    }
  }

  h4 {
    font-size: 1.25em;
    margin-bottom: 0.5em;
  }
}

.component-note {
  margin-top: -0.5em;
  margin-bottom: 0.5em;
}

/* Action Plan */
.timeline {
  display: grid;
}

.timeline-item {
  margin: 1.5em 0;
}

.timeline-item h3 {
  text-align: left;
  font-size: 1.25em;
  color: var(--color-deep-green);
}

.timeline-item ul {
  margin: 0.75em 0 0 0;
}

.timeline-item li {
  padding: 0.5em 0;
  border-top: 2px solid var(--color-cream);

  &:last-child {
    border-bottom: 2px solid var(--color-cream);
  }
}

/* Learning Path */
.learning-approach,
.barrier-strategies {
  margin: 2em 0;
  padding: 1.5rem;
  background: var(--color-gold-light);
  border-start-start-radius: 0.5em;
  border-end-end-radius: 0.5em;

  h3 {
    color: var(--color-orange);
    margin-bottom: 0.5em;
  }
}

.learning-timeline {
  margin: 2rem 0;
}

h3 + .timeline-period {
  margin-top: 0.75em;
}

.timeline-period {
  padding: 0.5em 0 1em 0;
  border-top: 2px solid var(--color-cream);

  h4 {
    color: var(--color-orange);
    font-size: 1.25em;
    margin-bottom: 0.25em;
  }

  &:last-child {
    border-bottom: 2px solid var(--color-cream);
  }
}

.learning-period {
  margin-bottom: 3em;

  .target-competencies {
    margin-bottom: 1.5em;
  }
}

.difficulty-badge,
.opportunity-relevance-badge,
.title-meta {
  font-size: 0.875em;
  font-weight: bold;
  color: var(--color-deep-green);
  margin-bottom: 0.5em;
}

/* Footer */
.report-footer {
  margin-top: 3rem;
  text-align: center;
}



/* Responsive */
@media (max-width: 768px) {
  .role-impact-report {
    padding: 1rem;
  }

  .report-header h1 {
    font-size: 1.8rem;
  }

  .stat-grid,
  .path-details,
  .value-components {
    grid-template-columns: 1fr;
  }

  .path-transition {
    flex-direction: column;
    gap: 1rem;
  }

  .arrow {
    transform: rotate(90deg);
  }

  .risk-header {
    flex-direction: column;
    text-align: center;
  }
}

.transition-cards,
.confidence-cards,
.highlight-grid,
.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1em;
}

.highlight-list {
  gap: 1em;

  .highlight-card {
    margin-bottom: 1em;
  }
}

.learning-periods .action-cards {
  grid-template-columns: none;
}

.transition-card,
.confidence-card,
.action-card,
.highlight-card {
  padding: 1.5em;
  background: linear-gradient(
    to bottom,
    var(--color-gold-light),
    var(--color-white)
  );
  background: var(--color-gold-light);
  border-start-start-radius: 0.5em;
  border-end-end-radius: 0.5em;
  /* margin-bottom: 1em; */

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    gap: 1rem;
  }

  h3 {
    text-align: left;
    margin-bottom: 0.5em;
    font-size: 1.25em;
    font-weight: 600;
    color: var(--color-orange);
    line-height: 1.3;
    flex: 1;
  }

  h4.card-title {
    color: var(--color-orange);
  }

  li {
    padding: 0.5em 0;
    border-top: 2px solid var(--color-cream-dark);

    &:last-child {
      border-bottom: 2px solid var(--color-cream-dark);
    }
  }

  button,
  a.button {
    font-size: 1rem;
  }

  .button-primary {
    background: white;
    color: var(--color-orange);

    &:hover {
      background: var(--color-orange);
      color: var(--color-white);
    }
  }

  .button-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #d1d5db;

    &:disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }
  }

}

.analysis-callout-actions {
  text-align: center;
}

.automatable-tasks,
.target-competencies {
  li {
    padding: 0.5em 0;
    border-top: 2px solid var(--color-cream-dark);

    &:last-child {
      border-bottom: 2px solid var(--color-cream-dark);
    }
  }
}

.analysis-callout-actions {
  margin-top: 1.5em;
}


  /* .skill {
    padding-left: 2em;

    &.priority-critical:before {
      background-color: var(--color-indicator-red);
      color: var(--color-indicator-red);
    }

    &.priority-important:before {
      background-color: var(--color-indicator-orange);
      color: var(--color-indicator-orange);
    }

    &.priority-helpful:before {
      background-color: var(--color-indicator-green);
      color: var(--color-indicator-green);
    }
  }

  .skill:before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-right: 0.5em;
    margin-left: -2em;
    background-color: var(--color-gray-medium);
    position: relative;
    top: 0.25em;
  } */

.action-plan {
  .timeline {
    gap: 1.5rem;
  }
}

/* Gauge Charts */
.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1em;
}

.gauge-label {
  font-size: 0.875em;
  font-weight: bold;
  color: var(--color-deep-green);
}

.gauge {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.gauge-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--color-orange) 0%,
    var(--color-orange) calc(var(--score) * 1%),
    var(--color-gray-light) calc(var(--score) * 1%),
    var(--color-gray-light) 100%
  );
  mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 60%,
    black 60%,
    black 100%
  );
  -webkit-mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 60%,
    black 60%,
    black 100%
  );
}

.gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.gauge-value {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-deep-green);
}

.gauge-max {
  font-size: 0.875rem;
  color: var(--color-gray-medium);
}

/* Small gauge for cards */
.gauge-small {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gauge-small .gauge-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--color-orange) 0%,
    var(--color-orange) calc(var(--score) * 1%),
    var(--color-gray-light) calc(var(--score) * 1%),
    var(--color-gray-light) 100%
  );
  mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 60%,
    black 60%,
    black 100%
  );
  -webkit-mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 60%,
    black 60%,
    black 100%
  );
}

.gauge-small .gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-small .gauge-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-deep-green);
}

/* Large gauge variant */
.gauge-large {
  width: 160px;
  height: 160px;
}

.gauge-large .gauge-value {
  font-size: 3rem;
}

.gauge-large .gauge-max {
  font-size: 1rem;
}

/* Risk-based color variations */
.gauge-risk-low .gauge-fill {
  background: conic-gradient(
    from -90deg,
    var(--color-indicator-green) 0%,
    var(--color-indicator-green) calc(var(--score) * 1%),
    var(--color-gray-light) calc(var(--score) * 1%),
    var(--color-gray-light) 100%
  );
}

.gauge-risk-medium .gauge-fill {
  background: conic-gradient(
    from -90deg,
    var(--color-indicator-orange) 0%,
    var(--color-indicator-orange) calc(var(--score) * 1%),
    var(--color-gray-light) calc(var(--score) * 1%),
    var(--color-gray-light) 100%
  );
}

.gauge-risk-high .gauge-fill {
  background: conic-gradient(
    from -90deg,
    var(--color-indicator-red) 0%,
    var(--color-indicator-red) calc(var(--score) * 1%),
    var(--color-gray-light) calc(var(--score) * 1%),
    var(--color-gray-light) 100%
  );
}

/* Circle Rating System */
.rating-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 0.375em;
  flex-shrink: 0;
}

.rating-label {
  font-size: 0.875em;
  font-weight: bold;
  color: var(--color-deep-green);
}

.circle-rating {
  display: flex;
  gap: 0.25em;
  flex-shrink: 0;
  padding-top: 0.375em;
}

.circle {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--color-orange);
  position: relative;
}

.circle-full {
  background-color: var(--color-orange);
}

.circle-half {
  background: linear-gradient(
    to right,
    var(--color-orange) 50%,
    transparent 50%
  );
}

.circle-empty {
  background-color: transparent;
}

.card-small {
  h4 {
    font-size: 1.125em;
    margin: 1.5em 0 0.5em 0;
  }

  p {
    margin: 0 0 1em 0;
  }

  ul {
    margin: 0 0 1em 0;
    padding: 0;
    list-style: none;

    li {
      padding: 0.25em 0;
      border-top: 2px solid var(--color-cream);

      &:last-child {
        border-bottom: 2px solid var(--color-cream);
      }
    }
  }
}

.practice-projects,
.community-resources {
  margin-top: 3em;
}

.shift {
  display: flex;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

.shift-from,
.shift-to {
  font-weight: 600;
  flex: 1;
  justify-self: center;
  text-wrap: balance;

  h3 {
    background: var(--color-white);
    color: var(--color-deep-green);
    font-size: 1.25em;
    padding: 1em 1.5em;
    border-radius: 3em;
    height: 100%;
    align-content: center;
    text-align: center;
  }
}

.shift-from {
  flex-basis: 50%;
}

.shift-to {
  flex-basis: 50%;
}

.shift-arrow {
  flex: 0 0 2em;
  text-align: center;
  font-size: 3rem;
  margin-top: 0.5em;
  color: var(--color-green);
}

.shift + h4 {
  margin-top: 0.75em;
}

.ethical-frameworks h3 {
  text-align: left;
}

.closing-thought {
  font-size: 2em;
  background: linear-gradient(to right, var(--color-gold) 0% 25%, var(--color-orange) 37.5% 62.5%, var(--color-green) 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  line-height: 1.2;
  text-wrap: balance;
  text-align: center;
  font-weight: 700;
  padding: 1em 0;
}
