.expert-card-viewer {
  display: grid;
  gap: 18px;
}

.expert-card {
  display: grid;
  gap: 18px;
  border: 1px solid #d8e5df;
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(53, 129, 94, .12), transparent 34%),
    #fff;
  box-shadow: 0 10px 30px rgba(22, 62, 48, .07);
}

.expert-card__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.expert-card__header h3 {
  margin: 6px 0 4px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.12;
  color: #123f32;
}

.expert-card__header p {
  margin: 0;
  color: #52645c;
}

.expert-card__eyebrow {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5f1eb;
  color: #155b46;
  font-weight: 800;
  font-size: 13px;
}

.expert-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.expert-card__tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0f6f3;
  color: #315246;
  font-size: 13px;
  font-weight: 700;
}

.expert-card__section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.expert-card__section h4 {
  margin: 0;
  color: #1a493b;
  font-size: 18px;
}

.expert-card__section p,
.expert-card__section li,
.expert-case-card dd,
.expert-question-card p {
  line-height: 1.62;
}

.expert-card__section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.expert-card-svg {
  width: 100%;
  max-width: 900px;
  min-height: 132px;
  overflow: visible;
}

.expert-card-svg__node {
  fill: #f4faf7;
  stroke: #6aa987;
  stroke-width: 2;
}

.expert-card-svg__text {
  fill: #123f32;
  font-size: 15px;
  font-weight: 800;
}

.expert-card-svg__arrow {
  stroke: #2d7b5d;
  stroke-width: 3;
  fill: none;
}

.expert-card-svg marker path {
  fill: #2d7b5d;
}

.expert-learning-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #edf5f1;
}

.expert-learning-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #245244;
  font-size: 14px;
  font-weight: 900;
}

.expert-learning-tab.is-active {
  background: #155b46;
  color: #fff;
}

.expert-learning-panels {
  display: grid;
  gap: 14px;
}

.expert-learning-panel,
.expert-learning-highlight,
.expert-learning-infographic,
.expert-trainer-notes {
  border: 1px solid #dce8e2;
  border-radius: 16px;
  background: #fbfdfc;
}

.expert-learning-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.expert-learning-panel h4 {
  margin: 0;
  color: #123f32;
  font-size: 19px;
}

.expert-learning-panel p {
  margin: 0;
  line-height: 1.68;
}

.expert-learning-panel ul {
  margin: 0;
  padding-left: 20px;
}

.expert-learning-infographic {
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(45, 123, 93, .08), rgba(255, 255, 255, .9)),
    #fff;
}

.expert-learning-highlight {
  padding: 14px;
  background: #f4faf7;
}

.expert-trainer-notes {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fff8e8;
  border-color: #ead7ac;
}

.expert-trainer-notes strong {
  color: #7a4b06;
}

.expert-trainer-notes p {
  margin: 0;
}

.expert-product-learning-card {
  border-color: #cddfd6;
  background:
    radial-gradient(circle at 12% 0, rgba(249, 202, 96, .16), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(45, 123, 93, .15), transparent 34%),
    #fff;
}

.expert-participant-collapse {
  display: grid;
  gap: 12px;
  border: 1px solid #cddfd6;
  border-left: 5px solid #155b46;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 247, 243, .92)),
    #fff;
  box-shadow: 0 8px 22px rgba(18, 63, 50, .06);
}

.expert-participant-collapse__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.expert-participant-collapse__summary h3 {
  margin: 8px 0 4px;
  color: #123f32;
  font-size: 24px;
  line-height: 1.15;
}

.expert-participant-collapse__summary p {
  margin: 0;
  color: #465b52;
  font-size: 16px;
  line-height: 1.55;
}

.expert-collapse-toggle {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: #155b46;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.expert-collapse-toggle:hover,
.expert-collapse-toggle:focus-visible {
  outline: 2px solid #6aa987;
  outline-offset: 2px;
}

.expert-participant-collapse__body[hidden] {
  display: none;
}

.expert-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.expert-product-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  background: #e8f3ed;
  color: #155b46;
  font-size: 13px;
  font-weight: 900;
}

.expert-product-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dce8e2;
  border-radius: 18px;
  background: #f4faf7;
}

.expert-product-tab {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: transparent;
  color: #245244;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.expert-product-tab:hover,
.expert-product-tab:focus-visible {
  outline: 2px solid #6aa987;
  outline-offset: 2px;
}

.expert-product-tab.is-active {
  background: #155b46;
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 91, 70, .18);
}

.expert-product-panels {
  display: grid;
  gap: 14px;
}

.expert-product-panel[hidden] {
  display: none;
}

.expert-product-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dce8e2;
  border-radius: 18px;
  background: #fbfdfc;
}

.expert-product-panel h4,
.expert-product-panel h5 {
  margin: 0;
  color: #123f32;
}

.expert-product-panel h4 {
  font-size: clamp(22px, 2vw, 30px);
}

.expert-product-panel h5 {
  font-size: 17px;
}

.expert-panel-lede {
  margin: 0;
  color: #465b52;
  line-height: 1.7;
  font-size: 17px;
}

.expert-product-theory,
.expert-product-scenario,
.expert-product-case,
.expert-product-reflection,
.expert-product-actions {
  display: grid;
  gap: 16px;
}

.expert-theory-origin,
.expert-case-section {
  display: grid;
  gap: 10px;
}

.expert-theory-origin {
  padding: 16px;
  border: 1px solid #d8d2c2;
  border-radius: 8px;
  background: #fffaf0;
}

.expert-theory-origin p,
.expert-case-section p,
.expert-product-reflection em,
.expert-bullet-card em,
.expert-metric-grid p,
.expert-cause-chain p,
.expert-scenario-contrast p {
  margin: 0;
  line-height: 1.68;
}

.expert-theory-citation {
  padding-top: 6px;
}

.expert-theory-citation summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #6f4d10;
  font-weight: 900;
}

.expert-department-grid,
.expert-product-case__grid,
.expert-fact-interpretation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.expert-department-grid article,
.expert-product-case__grid section,
.expert-fact-interpretation > div {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #dce8e2;
  background: #fff;
}

.expert-department-grid strong,
.expert-product-case__grid span,
.expert-fact-interpretation strong,
.expert-scenario-contrast span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #e8f3ed;
  color: #155b46;
  font-weight: 900;
}

.expert-product-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 12px;
}

.expert-product-flow__node {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 2px solid #cfe1d7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 250, 246, .92)),
    linear-gradient(90deg, rgba(42, 119, 183, .12), rgba(243, 173, 64, .14));
  box-shadow: 0 8px 20px rgba(18, 63, 50, .06);
}

.expert-product-flow__node--watch {
  border-color: #bdd7ec;
}

.expert-product-flow__node--alert {
  border-color: #f0c36b;
}

.expert-product-flow__node--danger {
  border-color: #dd8d7a;
}

.expert-product-flow__node:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: -15px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #155b46;
  color: #fff;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: center;
  font-weight: 900;
  z-index: 1;
}

.expert-product-flow__node span {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #155b46;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.expert-product-flow__node strong {
  color: #123f32;
  font-size: 17px;
}

.expert-product-flow__node i {
  display: block;
  width: min(100%, calc(30px + var(--signal) * 14px));
  height: calc(8px + var(--signal) * 2px);
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #2a77b7 0 12px, #f0a83b 12px 24px, #cb5b49 24px 36px);
  clip-path: polygon(0 55%, 10% 20%, 20% 55%, 30% 85%, 40% 55%, 50% 20%, 60% 55%, 70% 85%, 80% 55%, 90% 20%, 100% 55%, 100% 100%, 0 100%);
  opacity: .82;
}

.expert-product-flow__node p,
.expert-product-case p,
.expert-management-insight p,
.expert-department-grid p,
.expert-fact-interpretation p {
  margin: 0;
  line-height: 1.66;
}

.expert-product-flow--compact {
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  overflow: visible;
}

.expert-product-flow--compact .expert-product-flow__node {
  min-height: 86px;
  align-content: center;
  text-align: center;
}

.expert-management-insight,
.expert-action-list li {
  padding: 15px;
  border-radius: 8px;
  background: #eaf6ef;
  border: 1px solid #cfe1d7;
}

.expert-bullet-card-grid,
.expert-metric-grid,
.expert-scenario-contrast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.expert-bullet-card,
.expert-metric-grid article,
.expert-scenario-contrast section {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #dce2e6;
  border-radius: 8px;
  background: #fff;
}

.expert-bullet-card strong,
.expert-metric-grid span,
.expert-cause-chain strong {
  color: #244a64;
}

.expert-bullet-card em,
.expert-product-reflection em,
.expert-cause-chain em {
  color: #6c5a37;
  font-style: normal;
}

.expert-compact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-compact-list li {
  padding: 10px 12px;
  border-left: 4px solid #2a77b7;
  border-radius: 8px;
  background: #f5f9fc;
  line-height: 1.55;
}

.expert-risk-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.expert-risk-ladder span {
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, #fff4df calc(100% - var(--risk-index) * 8%), #cb5b49 calc(var(--risk-index) * 8%));
  border: 1px solid #e8c0a9;
  color: #6d2e22;
  font-weight: 900;
}

.expert-case-timeline {
  display: grid;
  gap: 10px;
}

.expert-case-timeline article {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) 1fr 1fr 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #dce2e6;
  border-radius: 8px;
  background: #fff;
}

.expert-case-timeline span {
  color: #155b46;
  font-weight: 900;
}

.expert-case-timeline strong {
  color: #123f32;
}

.expert-case-timeline p,
.expert-case-timeline em {
  margin: 0;
  line-height: 1.55;
}

.expert-case-timeline em {
  color: #6c5a37;
  font-style: normal;
}

.expert-cause-chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.expert-cause-chain article {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #ccd9e8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f5f9fc);
}

.expert-cause-chain article:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2a77b7;
  color: #fff;
  transform: translateY(-50%);
  font-weight: 900;
  z-index: 1;
}

.expert-cause-chain span,
.expert-metric-grid strong {
  color: #cb5b49;
  font-weight: 900;
}

.expert-metric-grid strong {
  font-size: 22px;
}

.expert-not-to-copy {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e8c0a9;
  background: #fff5f0;
}

.expert-not-to-copy strong {
  color: #8a3729;
}

.expert-not-to-copy p {
  margin: 0;
  line-height: 1.66;
}

.expert-product-questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.expert-product-questions article {
  padding: 15px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid #ead7ac;
}

.expert-product-questions span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #7a4b06;
  font-weight: 900;
}

.expert-action-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: action;
}

.expert-action-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.expert-action-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #155b46;
  color: #fff;
  font-weight: 900;
}

.expert-action-list p {
  margin: 4px 0 0;
  line-height: 1.66;
}

.expert-action-list strong {
  display: block;
  margin-bottom: 6px;
  color: #123f32;
  font-size: 18px;
}

.expert-action-list b {
  color: #244a64;
}

.expert-source-details {
  border-top: 1px solid #dce8e2;
  padding-top: 10px;
}

.expert-source-details summary {
  min-height: 44px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #155b46;
  font-weight: 900;
}

.expert-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.expert-timeline__item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #f6faf8;
  border-left: 5px solid #2d7b5d;
}

.expert-timeline__item span {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #155b46;
  color: #fff;
  font-weight: 800;
}

.expert-timeline__item strong {
  color: #123f32;
}

.expert-timeline__item em {
  color: #5b6f66;
  font-style: normal;
}

.expert-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.expert-case-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dce8e2;
  border-radius: 14px;
  background: #fbfdfc;
}

.expert-case-card h4 {
  margin: 0;
  font-size: 22px;
}

.expert-case-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.expert-case-card__meta span,
.expert-case-card__meta strong {
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf5f1;
  color: #174938;
  font-size: 13px;
  font-weight: 800;
}

.expert-case-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.expert-case-card dt {
  font-weight: 900;
  color: #214a3d;
}

.expert-case-card dd {
  margin: 0;
  color: #465b52;
}

.expert-fact-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.expert-source-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f8f6;
  border: 1px solid #dce8e2;
}

.expert-source-block__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.expert-source-block__head span,
.expert-source-compact,
.expert-source-warning {
  color: #52645c;
  font-size: 13px;
}

.expert-source-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-source-block li {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #dce8e2;
}

.expert-source-block a {
  width: max-content;
  color: #155b46;
  font-weight: 800;
  text-decoration: none;
}

.expert-source-block a:hover {
  text-decoration: underline;
}

.expert-source-block em {
  color: #5b6f66;
  font-style: normal;
  overflow-wrap: anywhere;
}

.expert-source-warning {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff8e8;
  color: #7a4b06;
}

.expert-source-compact {
  padding-top: 6px;
  border-top: 1px solid #dce8e2;
}

.expert-projection-takeaway {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #cfe1d7;
  background: #eaf6ef;
}

.expert-question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.expert-question-card {
  padding: 14px;
  border-radius: 14px;
  background: #fff8e8;
  border: 1px solid #ead7ac;
}

.expert-question-card span {
  display: inline-block;
  margin-bottom: 7px;
  color: #7a4b06;
  font-weight: 900;
}

.expert-question-card p {
  margin: 0;
}

.expert-card--participant {
  padding: 16px;
  border-left: 5px solid #155b46;
}

.expert-card--participant .expert-card__header h3 {
  font-size: 24px;
}

.expert-card--participant .expert-card-svg {
  min-height: 112px;
}

.expert-card__action {
  padding: 14px;
  border-radius: 14px;
  background: #eef7f2;
}

.expert-card--projection {
  background: linear-gradient(135deg, #ffffff, #f4faf7);
}

.expert-card-viewer--projection {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.expert-card--projection .expert-card__header h3 {
  font-size: clamp(28px, 3vw, 44px);
}

.expert-card--projection .expert-card__section h4 {
  font-size: clamp(20px, 2vw, 30px);
}

.expert-card__fallback {
  padding: 18px;
  border: 1px dashed #bdcbc4;
  border-radius: 14px;
  background: #fbfdfc;
  color: #5a6b63;
}

@media (max-width: 760px) {
  .expert-card__header,
  .expert-timeline,
  .expert-case-grid,
  .expert-department-grid,
  .expert-product-case__grid,
  .expert-fact-interpretation {
    grid-template-columns: 1fr;
    display: grid;
  }

  .expert-card__tags,
  .expert-product-tags {
    justify-content: flex-start;
  }

  .expert-card {
    padding: 16px;
  }

  .expert-learning-tabs {
    gap: 6px;
  }

  .expert-learning-tab {
    min-height: 44px;
    flex: 1 1 46%;
    justify-content: center;
  }

  .expert-product-tablist {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .expert-product-tab {
    flex: 0 0 auto;
    min-width: 116px;
    text-align: center;
    scroll-snap-align: start;
  }

  .expert-product-panel {
    padding: 14px;
  }

  .expert-product-flow {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .expert-product-flow__node {
    min-height: auto;
  }

  .expert-product-flow__node:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%);
  }

  .expert-card-svg {
    min-width: 520px;
  }

  .expert-card__section:has(.expert-card-svg) {
    overflow-x: auto;
  }

  .expert-case-timeline article,
  .expert-cause-chain,
  .expert-bullet-card-grid,
  .expert-metric-grid,
  .expert-scenario-contrast,
  .expert-compact-list {
    grid-template-columns: 1fr;
  }

  .expert-cause-chain article:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -17px;
    transform: translateX(-50%) rotate(90deg);
  }
}

@media (max-width: 430px) {
  .expert-card-viewer {
    max-width: 100%;
    overflow-x: hidden;
  }

  .expert-participant-collapse {
    padding: 12px;
  }

  .expert-participant-collapse__summary {
    grid-template-columns: 1fr;
  }

  .expert-collapse-toggle {
    width: 100%;
  }

  .expert-card {
    padding: 14px;
    border-radius: 8px;
  }

  .expert-product-learning-card {
    gap: 14px;
  }

  .expert-product-panel h4 {
    font-size: 22px;
    line-height: 1.22;
  }

  .expert-product-panel h5,
  .expert-product-tab,
  .expert-product-panel p,
  .expert-product-panel li,
  .expert-action-list p,
  .expert-bullet-card,
  .expert-case-timeline,
  .expert-cause-chain,
  .expert-metric-grid,
  .expert-scenario-contrast {
    font-size: 16px;
  }

  .expert-action-list li {
    grid-template-columns: 1fr;
  }

  .expert-action-list span {
    width: max-content;
  }
}
