/* Plan and roadmap presentation boundary. */

.recGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rec {
  min-width: 0;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.rec small {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  font-size: 11px;
}

.rec h3 {
  margin: 7px 0 8px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .recGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.specialistBoundaryCard {
  margin-bottom: 18px;
}

.specialistBoundary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.specialistBoundary h3 {
  margin: 4px 0 6px;
  color: var(--navy);
}

.specialistBoundary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.specialistBoundaryLead {
  flex: 0 1 43%;
}

.specialistControls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 57%;
  gap: 12px;
  margin-top: 0;
}

.specialistControls label {
  color: #394651;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.specialistControls input,
.specialistControls select,
.specialistControls textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.specialistScope {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #dbe5eb;
  border-radius: 10px;
}

.specialistScope legend {
  color: #3c5262;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.specialistScope label {
  display: block;
  margin: 4px 0;
  font-weight: 700;
}

.specialistScope input {
  display: inline-block;
  width: auto;
  margin: 0 5px 0 0;
  accent-color: #2b7784;
}

@media (max-width: 900px) {
  .specialistBoundary {
    display: block;
  }

  .specialistControls {
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  .specialistControls {
    grid-template-columns: minmax(0, 1fr);
  }
}

.releaseRoadmapSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.releaseRoadmapSummary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.releaseRoadmapSummary b {
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
}

.releaseRoadmapCard {
  display: grid;
  gap: 8px;
}

.releaseRoadmapCard[data-release-status="next"] {
  border-top: 3px solid var(--blue);
}

.releaseRoadmapCard[data-release-status="planned"] {
  border-top: 3px solid var(--cyan);
}

.releaseRoadmapCard[data-release-status="deferred"] {
  border-top: 3px solid var(--muted);
}

.releaseRoadmapMeta {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.releaseRoadmapMeta span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.releaseRoadmapMeta b {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.planPanel {
  display: grid;
  gap: 10px;
}

.planMove {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 15px;
}

.planMove header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.planMove h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -.02em;
}

.planMove p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.planSection {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--sm);
  padding: 0;
  overflow: hidden;
}

.planSection summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 16px 18px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.planSection summary b {
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.planMoves {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.planMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.planTimelineCard {
  display: grid;
  gap: 12px;
}

.planTimelineCard h3 {
  margin: 0;
  color: var(--navy);
}

.planTimelineCard p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.appTransformationLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.transformationMap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.tmFlow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.tmHorizonArrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 2px 12px;
}

.tmHorizonArrow span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.tmHorizonArrow div {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 103, 232, .9), rgba(105, 217, 255, .72), rgba(139, 104, 79, .78));
}

.tmHorizonArrow div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 13px;
  height: 13px;
  border-top: 4px solid rgba(139, 104, 79, .78);
  border-right: 4px solid rgba(139, 104, 79, .78);
  transform: translateY(-50%) rotate(45deg);
}

.tmHorizonCard {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #fff);
  padding: 12px;
}

.tmHorizonHead {
  display: grid;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(23, 103, 232, .12);
}

.tmStateTag {
  justify-self: start;
  border: 1px solid rgba(23, 103, 232, .16);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

.tmHorizonCard:last-child .tmStateTag {
  border-color: rgba(139, 104, 79, .22);
  background: #f3fbf7;
}

.tmHorizonHead b,
.tmHorizonHead span {
  display: block;
}

.tmHorizonHead b {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.1;
}

.tmHorizonHead span {
  margin-top: 3px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tmHorizonCard > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tmFlowStream {
  display: grid;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(7, 24, 63, .08);
}

.tmFlowStreamHead {
  display: block;
}

.tmStreamName {
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.tmPills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tmAr,
.tmEmpty {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--blue);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
}

.tmAr {
  cursor: pointer;
}

.tmHorizonCard:nth-child(1) .tmAr {
  border-color: rgba(23, 103, 232, .24);
  background: rgba(244, 248, 255, .95);
  color: #1767e8;
}

.tmHorizonCard:nth-child(2) .tmAr {
  border-color: rgba(52, 146, 222, .24);
  background: rgba(242, 250, 255, .95);
  color: #247fc5;
}

.tmHorizonCard:nth-child(3) .tmAr {
  border-color: rgba(42, 150, 146, .25);
  background: rgba(242, 252, 250, .95);
  color: #1d8881;
}

.tmHorizonCard:nth-child(4) .tmAr {
  border-color: rgba(139, 104, 79, .26);
  background: rgba(243, 251, 247, .95);
  color: #1f8b61;
}

.tmAr:hover,
.tmAr:focus-visible {
  outline: 3px solid rgba(23, 103, 232, .22);
  outline-offset: 2px;
  background: #fff;
}

.tmEmpty {
  color: var(--muted);
  font-weight: 700;
}

.tmNote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.planPreviewPanel {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  align-content: start;
  align-items: start;
  min-height: 96px;
  border: 1px solid rgba(23, 103, 232, .2);
  border-radius: 10px;
  background: #f8fbff;
  padding: 14px 16px;
}

.planPreviewPanel span:first-child,
.planPreviewPanel h4 {
  grid-column: 1;
}

.planPreviewPanel p {
  grid-column: 2;
}

.planPreviewPanel p:first-of-type {
  grid-row: 1 / span 2;
}

@media (max-width: 720px) {
  .planPreviewPanel {
    grid-template-columns: minmax(0, 1fr);
  }

  .planPreviewPanel span:first-child,
  .planPreviewPanel h4,
  .planPreviewPanel p {
    grid-column: 1;
  }

  .planPreviewPanel p:first-of-type {
    grid-row: auto;
  }
}

.planPreviewPanel span:first-child {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.planPreviewPanel h4,
.planPreviewPanel p {
  margin: 0;
}

.planPreviewPanel h4 {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.2;
}

.planPreviewPanel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

/* Domain work-stream drawer: launch->complete timeline rows. */
.wsDomain {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.wsDomainHead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  cursor: pointer;
}

.wsDomainHead::-webkit-details-marker,
.wsDomainHead::marker {
  display: none;
  content: "";
}

.wsDomain[open] .wsRollupTrack {
  display: none;
}

.wsDomainHead h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 14px;
}

.wsGateLine {
  margin: 0 0 10px;
  flex: 1;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wsRows {
  display: grid;
  gap: 8px;
}

.wsRow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.5fr) minmax(140px, 1fr);
  gap: 10px;
  align-items: start;
}

.wsId {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.wsName {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.wsName small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.wsGateChip {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid rgba(23, 103, 232, .3);
  border-radius: 999px;
  background: #eef6ff;
  color: var(--navy);
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.wsOwnerChip {
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
  font-style: normal;
}

.wsOwnerChip-wwt {
  border: 1px solid var(--line);
  background: #f4f8ff;
  color: var(--muted);
}

.wsOwnerChip-subcontractor {
  border: 1px solid rgba(69, 111, 143, .35);
  background: #f3f7fa;
  color: #31435f;
}

.wsOwnerChip-shared {
  border: 1px solid rgba(191, 91, 34, .35);
  background: #fff3ea;
  color: #7a3a12;
}

.wsTrack {
  position: relative;
  display: block;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  overflow: hidden;
}

.wsTrack i {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: var(--navy);
  opacity: .82;
}

.wsTrack em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  mix-blend-mode: multiply;
}

@media (max-width: 720px) {
  .wsRow {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* Plan-phase work-stream swimlane (Executive transformation map). */
.wsPlan {
  position: relative;
  padding: 14px 14px 10px;
}

.wsAxis {
  display: grid;
  grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

.wsAxisTrack {
  position: relative;
  display: block;
  height: 30px;
}

.wsBand {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
  padding: 1px 0 0 7px;
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.wsBand small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.wsPlan .wsAtoLine {
  position: absolute;
  top: 44px;
  bottom: 44px;
  left: calc(14px + (100% - 28px - max(240px, (100% - 28px) * .32) - 10px) * .375 + max(240px, (100% - 28px) * .32) + 10px);
  width: 0;
  border-left: 2px solid var(--blue);
  z-index: 3;
  pointer-events: none;
}

.wsAtoLine b {
  position: absolute;
  top: -4px;
  left: 7px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wsLane {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.wsLaneHead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px 7px;
  background: var(--soft, #f8fbff);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  list-style: none;
  cursor: pointer;
}

.wsLaneHead::-webkit-details-marker,
.wsLaneHead::marker {
  display: none;
  content: "";
}

.wsLaneToggle {
  align-self: center;
  border: 5px solid transparent;
  border-left-color: var(--muted);
  transition: transform .15s ease;
}

.wsLane[open] .wsLaneToggle {
  transform: rotate(90deg);
}

.wsTrack.wsRollupTrack {
  flex-basis: 100%;
  margin-top: 2px;
}

.wsTrack.wsRollupTrack i {
  background: var(--blue);
  opacity: .26;
}

.wsLane[open] .wsRollupTrack {
  display: none;
}

.wsLaneHead h4 {
  margin: 0;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}

.wsLaneHead p {
  margin: 0;
  flex: 1;
  min-width: 260px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.wsPlanRow {
  grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  gap: 10px;
  padding: 3px 12px;
}

.wsNameBtn {
  display: flex;
  gap: 8px;
  align-items: baseline;
  border: 0;
  background: transparent;
  padding: 2px 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.wsNameBtn:hover .wsName,
.wsNameBtn:focus-visible .wsName {
  color: var(--blue);
}

.wsPlanRow .wsName {
  font-size: 12px;
}

.wsPlanRow .wsTrack {
  align-self: center;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 12.5% 100%,
    #fbfdff;
}

.wsGateBar,
.wsSuppBar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
}

.wsGateBar {
  background: var(--navy);
  opacity: .85;
}

.wsSuppBar {
  background: #9dbdf0;
}

.wsArRow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 12px 9px;
  border-top: 1px dashed var(--line);
}

.wsArLabel {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-right: 2px;
}

.wsAr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.wsAr small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.wsAr:hover,
.wsAr:focus-visible {
  border-color: var(--blue);
}

.wsAr[data-ws-horizon="transition"] small { color: var(--hz1t); }
.wsAr[data-ws-horizon="h1"] small { color: var(--hz2t); }
.wsAr[data-ws-horizon="h2"] small { color: var(--hz3t); }
.wsAr[data-ws-horizon="h3"] small { color: var(--hz4t); }
.wsAr[data-ws-horizon="target"] { border-color: rgba(139, 104, 79, .42); }
.wsAr[data-ws-horizon="target"] small { color: var(--hz4t); }

.wsStreamGroup {
  display: grid;
  gap: 3px;
}

.wsStreamArRow {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0 0 2px 4px;
}

.wsStreamArRow .wsAr {
  padding: 2px 8px;
  font-size: 10.5px;
}

.wsStreamDep {
  padding: 0 0 2px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 940px) {
  .wsAxis,
  .wsPlanRow {
    grid-template-columns: minmax(0, 1fr);
  }

  .wsAxisLabel,
  .wsPlan .wsAtoLine {
    display: none;
  }

  .wsPlanRow .wsTrack em {
    font-size: 10px;
  }
}

@media (max-width: 620px) {
  .wsLaneHead,
  .wsDomainHead {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
  }

  .wsLaneHead h4,
  .wsLaneHead p,
  .wsDomainHead h4,
  .wsGateLine {
    grid-column: 2;
    min-width: 0;
    white-space: normal;
  }

  .wsLaneHead p,
  .wsGateLine {
    width: 100%;
  }

  .wsTrack.wsRollupTrack {
    grid-column: 1 / -1;
    flex-basis: auto;
    margin-top: 2px;
  }
}


/* Journey position marker on plan lanes. */
.wsPositionRow {
  padding-top: 6px;
}

.wsPositionLabel {
  align-self: center;
  color: var(--hz4t);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-left: 2px;
}

.wsPositionTrack {
  border-style: dashed;
  background: #fbfcfd;
}

.wsPositionMarker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--blue);
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(69, 111, 143, .18);
}

.wsPositionTrack em {
  color: #31435f97;
  color: #31435f;
}

.planMove {
  box-shadow: 0 1px 2px rgba(7, 24, 63, .05), 0 12px 30px rgba(23, 103, 232, .045);
}

.planMove {
  border-color: rgba(63, 83, 106, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(34, 42, 52, .055);
}

@media (max-width: 940px) {
  .appTransformationLayout,
  .tmFlow { grid-template-columns: 1fr; }
  .tmHorizonCard { min-height: auto; }
}
